代码更新:
1. 增加非计划领料的配置。 2. 备料界面的备料列表展示增加。
This commit is contained in:
parent
37ebf9ddf5
commit
a2918c1ac1
|
|
@ -221,7 +221,7 @@ export default {
|
|||
this.$refs.goodsId.focus()
|
||||
this.timer = setInterval(() => {
|
||||
this.queryFinish()
|
||||
// this.getWorkList()
|
||||
this.getWorkList()
|
||||
}, 1500)
|
||||
},
|
||||
beforeUnmount() {
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@
|
|||
<el-table-column prop="pickVehicle" label="拣选箱号" show-overflow-tooltip min-width="120px" />
|
||||
<el-table-column prop="pickTip" label="提示" show-overflow-tooltip min-width="120px" />
|
||||
<el-table-column prop="pickVehicleCount" label="站台料箱数量" min-width="120px" />
|
||||
<el-table-column prop="allowNoPlan" label="非计划" :formatter="allowNoPlanFormat" show-overflow-tooltip
|
||||
min-width="120px" />
|
||||
<el-table-column fixed="right" label="操作" width="120px">
|
||||
<template v-slot="scope">
|
||||
<el-button plain type="primary" @click="editCurrentRow(scope.row)">编辑</el-button>
|
||||
|
|
@ -90,7 +92,17 @@
|
|||
<el-col :span="12">
|
||||
<el-form-item label="站台料箱数量" prop="pickVehicleCount">
|
||||
<el-input-number v-model.number="standFormEntity.pickVehicleCount"
|
||||
controls-position="right" clearable />
|
||||
controls-position="right" :disabled="standFormEntity.standType != 2"
|
||||
clearable />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="16">
|
||||
<el-col :span="12" :offset="0">
|
||||
<el-form-item label="非计划" prop="allowNoPlan">
|
||||
<el-select-v2 v-model="standFormEntity.allowNoPlan" placeholder="请选择是否允许非计划领料"
|
||||
:options="allowNoPlanOptions"
|
||||
:disabled="standFormEntity.standType != 2"></el-select-v2>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -175,6 +187,16 @@ export default {
|
|||
label: '不可用'
|
||||
},
|
||||
],
|
||||
allowNoPlanOptions: [
|
||||
{
|
||||
value: 1,
|
||||
label: '允许'
|
||||
},
|
||||
{
|
||||
value: 0,
|
||||
label: '不允许'
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -242,6 +264,16 @@ export default {
|
|||
return '未知'
|
||||
}
|
||||
},
|
||||
allowNoPlanFormat: (row, column, cellValue, index) => {
|
||||
switch (cellValue) {
|
||||
case 0:
|
||||
return '不允许'
|
||||
case 1:
|
||||
return '允许'
|
||||
default:
|
||||
return '无效'
|
||||
}
|
||||
},
|
||||
reset() {
|
||||
this.standIdQuery = ''
|
||||
this.standTypeQuery = -99
|
||||
|
|
@ -256,10 +288,14 @@ export default {
|
|||
standStatus: row.standStatus,
|
||||
lastUseTime: row.lastUseTime,
|
||||
pickVehicleCount: row.pickVehicleCount,
|
||||
allowNoPlan: row.allowNoPlan
|
||||
}
|
||||
this.dialogVisible = true
|
||||
},
|
||||
submitInfo(formData) {
|
||||
if (formData.standType == 3) {
|
||||
return errorBox('堆垛机不允许非计划。')
|
||||
}
|
||||
const params = {
|
||||
standId: formData.standId,
|
||||
standType: formData.standType,
|
||||
|
|
@ -267,6 +303,7 @@ export default {
|
|||
standStatus: formData.standStatus,
|
||||
lastUseTime: formData.lastUseTime,
|
||||
pickVehicleCount: formData.pickVehicleCount,
|
||||
allowNoPlan: formData.allowNoPlan,
|
||||
userName: store.getters.getUserName
|
||||
}
|
||||
updateStandInfo(params).then(res => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user