|
|
@ -166,12 +166,13 @@ |
|
|
|
let newDetail = createDetailInfo(balance, pack); // |
|
|
|
itemp.subList.push(newDetail); |
|
|
|
this.detailSource.push(itemp) |
|
|
|
this.packGetFocus() |
|
|
|
} else { |
|
|
|
var detail = item.subList.find(r => { |
|
|
|
if (r.packingNumber == result.packingNumber && |
|
|
|
r.batch == result.batch && |
|
|
|
r.locationCode == result.locationCode && |
|
|
|
r.inventoryStatus == result.inventoryStatus && |
|
|
|
if (r.packingNumber == balance.packingNumber && |
|
|
|
r.batch == balance.batch && |
|
|
|
r.locationCode == balance.locationCode && |
|
|
|
r.inventoryStatus == balance.inventoryStatus && |
|
|
|
r.scaned == true) { |
|
|
|
return r; |
|
|
|
} |
|
|
@ -180,13 +181,21 @@ |
|
|
|
if (detail == undefined) { |
|
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
|
item.subList.push(newDetail); |
|
|
|
this.packGetFocus() |
|
|
|
} else { |
|
|
|
this.showErrorMessage(result.packingNumber + "重复扫描") |
|
|
|
this.showErrorMessage("包装["+balance.packingNumber+"]"+"批次["+balance.batch+"]" + "重复扫描") |
|
|
|
} |
|
|
|
} |
|
|
|
this.calcHandleQty(); |
|
|
|
|
|
|
|
}, |
|
|
|
packGetFocus(){ |
|
|
|
if(this.$refs.scanPopup){ |
|
|
|
this.$refs.scanPopup.packGetFocus() |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
calcHandleQty() { |
|
|
|
calcHandleQty(this.detailSource); |
|
|
@ -196,7 +205,7 @@ |
|
|
|
showErrorMessage(message) { |
|
|
|
this.$refs.comMessage.showErrorMessage(message, res => { |
|
|
|
if (res) { |
|
|
|
|
|
|
|
this.packGetFocus() |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|