From 5a3ecc9a93a3814113a62a8a55cd31b3b8a87239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Thu, 26 Sep 2024 16:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/wms/produceScreen/index.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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(() => {