|
@ -42,9 +42,9 @@ export default { |
|
|
// 扫码之后的处理 |
|
|
// 扫码之后的处理 |
|
|
enterPress() { |
|
|
enterPress() { |
|
|
this.statusInfo = '' |
|
|
this.statusInfo = '' |
|
|
if (this.pickCode.indexOf('P-') != -1) { // 拣料项 |
|
|
|
|
|
|
|
|
if (this.pickCode.indexOf('P-') != -1) { // 捡料项 |
|
|
if (!this.shipOrderId) { |
|
|
if (!this.shipOrderId) { |
|
|
this.msgInfo('请先扫描发运单!') |
|
|
|
|
|
|
|
|
this.statusInfo = '请先扫描捡料单!' |
|
|
return |
|
|
return |
|
|
} else { |
|
|
} else { |
|
|
let params = { |
|
|
let params = { |
|
@ -68,7 +68,7 @@ export default { |
|
|
this.isSuccess = false |
|
|
this.isSuccess = false |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} else { // 发运单 |
|
|
|
|
|
|
|
|
} else { // 捡料单 |
|
|
this.tableData.forEach(el => { |
|
|
this.tableData.forEach(el => { |
|
|
if (el['JIT_ShipOrder-ShipOrderId'] === this.pickCode) { |
|
|
if (el['JIT_ShipOrder-ShipOrderId'] === this.pickCode) { |
|
|
this.currentShipOrder = el |
|
|
this.currentShipOrder = el |
|
@ -77,10 +77,12 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$emit('handleSuccessCode', this.newEmitObj) |
|
|
this.$emit('handleSuccessCode', this.newEmitObj) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.statusInfo = '请正确扫描捡料单!' |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.pickCode = '' |
|
|
}, |
|
|
}, |
|
|
// 重置扫描条码 |
|
|
// 重置扫描条码 |
|
|
resetCode() { |
|
|
resetCode() { |
|
|