代码更新:

1. 增加非计划领料的配置。
2. 备料界面的备料列表展示增加。
This commit is contained in:
梁州 2024-12-24 17:40:02 +08:00
parent 37ebf9ddf5
commit a2918c1ac1
2 changed files with 39 additions and 2 deletions

View File

@ -221,7 +221,7 @@ export default {
this.$refs.goodsId.focus() this.$refs.goodsId.focus()
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.queryFinish() this.queryFinish()
// this.getWorkList() this.getWorkList()
}, 1500) }, 1500)
}, },
beforeUnmount() { beforeUnmount() {

View File

@ -38,6 +38,8 @@
<el-table-column prop="pickVehicle" label="拣选箱号" show-overflow-tooltip min-width="120px" /> <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="pickTip" label="提示" show-overflow-tooltip min-width="120px" />
<el-table-column prop="pickVehicleCount" label="站台料箱数量" 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"> <el-table-column fixed="right" label="操作" width="120px">
<template v-slot="scope"> <template v-slot="scope">
<el-button plain type="primary" @click="editCurrentRow(scope.row)">编辑</el-button> <el-button plain type="primary" @click="editCurrentRow(scope.row)">编辑</el-button>
@ -90,7 +92,17 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="站台料箱数量" prop="pickVehicleCount"> <el-form-item label="站台料箱数量" prop="pickVehicleCount">
<el-input-number v-model.number="standFormEntity.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-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -175,6 +187,16 @@ export default {
label: '不可用' label: '不可用'
}, },
], ],
allowNoPlanOptions: [
{
value: 1,
label: '允许'
},
{
value: 0,
label: '不允许'
},
]
} }
}, },
mounted() { mounted() {
@ -242,6 +264,16 @@ export default {
return '未知' return '未知'
} }
}, },
allowNoPlanFormat: (row, column, cellValue, index) => {
switch (cellValue) {
case 0:
return '不允许'
case 1:
return '允许'
default:
return '无效'
}
},
reset() { reset() {
this.standIdQuery = '' this.standIdQuery = ''
this.standTypeQuery = -99 this.standTypeQuery = -99
@ -256,10 +288,14 @@ export default {
standStatus: row.standStatus, standStatus: row.standStatus,
lastUseTime: row.lastUseTime, lastUseTime: row.lastUseTime,
pickVehicleCount: row.pickVehicleCount, pickVehicleCount: row.pickVehicleCount,
allowNoPlan: row.allowNoPlan
} }
this.dialogVisible = true this.dialogVisible = true
}, },
submitInfo(formData) { submitInfo(formData) {
if (formData.standType == 3) {
return errorBox('堆垛机不允许非计划。')
}
const params = { const params = {
standId: formData.standId, standId: formData.standId,
standType: formData.standType, standType: formData.standType,
@ -267,6 +303,7 @@ export default {
standStatus: formData.standStatus, standStatus: formData.standStatus,
lastUseTime: formData.lastUseTime, lastUseTime: formData.lastUseTime,
pickVehicleCount: formData.pickVehicleCount, pickVehicleCount: formData.pickVehicleCount,
allowNoPlan: formData.allowNoPlan,
userName: store.getters.getUserName userName: store.getters.getUserName
} }
updateStandInfo(params).then(res => { updateStandInfo(params).then(res => {