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() {