|
|
@ -206,6 +206,7 @@ |
|
|
|
|
|
|
|
updateData() { |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
this.$forceUpdate() |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -220,19 +221,17 @@ |
|
|
|
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") |
|
|
|
} else { |
|
|
|
|
|
|
|
var itemDetail = detail.subList.find(r => r.packingNumber == packingNumber && r.batch == batch && |
|
|
|
r.fromLocationCode == result.fromLocationCode); |
|
|
|
var itemDetail = detail.subList.find(r => r.packingNumber == packingNumber && r.batch == batch |
|
|
|
); |
|
|
|
if (itemDetail == undefined) { |
|
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result |
|
|
|
.fromLocationCode + "】不在列表中") |
|
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】" +"不在列表中") |
|
|
|
} else { |
|
|
|
if (itemDetail.scaned) { |
|
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result |
|
|
|
.fromLocationCode + "】已经扫描") |
|
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】" +"已经扫描") |
|
|
|
} else { |
|
|
|
itemDetail.scaned = true; |
|
|
|
itemDetail.handleQty = Number(result.label.qty); |
|
|
|
itemDetail.toLocationCode = this.toLocationCode; |
|
|
|
itemDetail.toLocationCode = this.toLocationCode? this.toLocationCode:itemDetail.toLocationCode ; |
|
|
|
itemDetail.packQty = result.package.packQty |
|
|
|
itemDetail.labelQty = Number(result.label.qty); |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|