From 8c56de573d891d910754788f28d53f3e315f9615 Mon Sep 17 00:00:00 2001 From: wangxy Date: Wed, 10 Nov 2021 11:12:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=BF=90=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/component/shipmentCode.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/quality/component/shipmentCode.vue b/src/views/quality/component/shipmentCode.vue index 86e1a43..9bd9b55 100644 --- a/src/views/quality/component/shipmentCode.vue +++ b/src/views/quality/component/shipmentCode.vue @@ -42,9 +42,9 @@ export default { // 扫码之后的处理 enterPress() { this.statusInfo = '' - if (this.pickCode.indexOf('P-') != -1) { // 拣料项 + if (this.pickCode.indexOf('P-') != -1) { // 捡料项 if (!this.shipOrderId) { - this.msgInfo('请先扫描发运单!') + this.statusInfo = '请先扫描捡料单!' return } else { let params = { @@ -68,7 +68,7 @@ export default { this.isSuccess = false }) } - } else { // 发运单 + } else { // 捡料单 this.tableData.forEach(el => { if (el['JIT_ShipOrder-ShipOrderId'] === this.pickCode) { this.currentShipOrder = el @@ -77,10 +77,12 @@ export default { } this.$emit('handleSuccessCode', this.newEmitObj) } else { + this.statusInfo = '请正确扫描捡料单!' return } }) } + this.pickCode = '' }, // 重置扫描条码 resetCode() {