操作屏

This commit is contained in:
蔡玲
2024-09-26 16:51:28 +08:00
parent 60fe5c8658
commit 5a3ecc9a93

View File

@@ -335,7 +335,21 @@ export default {
this.disabled = false
})
} else if (this.type === 'SCANER') {
crudProduceScreen.sendMater({ device_code: this.popData.device_code, mater: this.popList, point_code: this.value1 }).then(res => {
if (!this.vcode) {
this.$message('请填写载具号')
return
}
if (!this.value1) {
this.$message('请选择目的地')
return
}
const arr = []
this.popList.map(el => {
if (el.order_code !== '' && el.material_qty !== '') {
arr.push(el)
}
})
crudProduceScreen.sendMater({ device_code: this.popData.device_code, mater: arr, point_code: this.value1, vehicle_code: this.vcode }).then(res => {
this.disabled = false
this.$message(res.msg)
}).catch(() => {