diff --git a/lms/nladmin-ui/src/views/wms/produceScreen/index.vue b/lms/nladmin-ui/src/views/wms/produceScreen/index.vue index 5bbc06c..26084d6 100644 --- a/lms/nladmin-ui/src/views/wms/produceScreen/index.vue +++ b/lms/nladmin-ui/src/views/wms/produceScreen/index.vue @@ -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(() => {