refactor(入库计划): 工具
This commit is contained in:
parent
9ec49ee144
commit
2ab8f7ca26
@ -63,16 +63,6 @@
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
size="mini"
|
||||
@click="removeItemsThatHaveNoLifeSpan"
|
||||
v-hasPermi="['md:PLAN:add']"
|
||||
>一键清退无寿命物品
|
||||
</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="success"-->
|
||||
|
@ -9,10 +9,6 @@ export default {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
require: true
|
||||
},
|
||||
knifeType: {
|
||||
type: String,
|
||||
require: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@ -33,7 +29,7 @@ export default {
|
||||
knifeCode: null,
|
||||
knifeName: null,
|
||||
knifeUnit: null,
|
||||
knifeType: this.knifeType,
|
||||
knifeType: null,
|
||||
safeStock: null,
|
||||
standardQuantity: null,
|
||||
areaCode: null,
|
||||
|
@ -363,7 +363,7 @@ export default {
|
||||
computed: {
|
||||
/** 控制弹窗类型 */
|
||||
isKnifeBack() {
|
||||
return this.form.planTypeId == 9 || this.form.planTypeId == 7 || this.form.planTypeId == 15;
|
||||
return this.form.planTypeId == 19;
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
@ -98,7 +98,7 @@ export default {
|
||||
</el-col>
|
||||
</el-row>
|
||||
<!--整刀回库-->
|
||||
<el-table :data="localEntityList" v-if="planTypeId==9" @selection-change="handleSelectionChange">
|
||||
<el-table :data="localEntityList" v-if="planTypeId==19" @selection-change="handleSelectionChange">
|
||||
<el-table-column label="台账ID" align="center" prop="knifeId">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.knifeId" @change="updateEntityList">
|
||||
@ -111,19 +111,19 @@ export default {
|
||||
<el-input v-model="scope.row.source" @change="updateEntityList"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="消耗寿命" align="center" prop="consumeLife">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.consumeLife" type="number" min="0" @change="updateEntityList"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="消耗寿命" align="center" prop="consumeLife">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-input v-model="scope.row.consumeLife" type="number" min="0" @change="updateEntityList"></el-input>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope)"
|
||||
v-hasPermi="['wm:wmsInPlanDetailsEntity:remove']"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope)"
|
||||
v-hasPermi="['wm:wmsInPlanDetailsEntity:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
@ -139,18 +139,18 @@ export default {
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope)"
|
||||
v-hasPermi="['wm:wmsInPlanDetailsEntity:remove']"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope)"
|
||||
v-hasPermi="['wm:wmsInPlanDetailsEntity:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--拆刀回库-->
|
||||
<el-table :data="localEntityList" v-if=" planTypeId==15" @selection-change="handleSelectionChange">
|
||||
<el-table :data="localEntityList" v-if="planTypeId==15" @selection-change="handleSelectionChange">
|
||||
<el-table-column label="台账ID" align="center" prop="knifeId">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.knifeId" @change="updateEntityList">
|
||||
@ -166,18 +166,18 @@ export default {
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope)"
|
||||
v-hasPermi="['wm:wmsInPlanDetailsEntity:remove']"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope)"
|
||||
v-hasPermi="['wm:wmsInPlanDetailsEntity:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<base-knife-select-cmps :visible.sync="baseKnifeVisible" :knife-type="getKnifeType"
|
||||
<base-knife-select-cmps :visible.sync="baseKnifeVisible"
|
||||
@change="selectBaseKnifeChange"></base-knife-select-cmps>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user