|
|
@ -390,7 +390,7 @@ |
|
|
|
pack.labelQty = Number(result.label.qty); |
|
|
|
} |
|
|
|
} |
|
|
|
calcTreeHandleQty(this.detailSource); |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
itemDetail.packList.sort(compareDesc('scanDate')); //按扫描信息排序 |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
@ -456,7 +456,6 @@ |
|
|
|
item.scaned = true; |
|
|
|
itemDetail.scanDate = new Date(); |
|
|
|
item.handleQty = calc.add(item.handleQty,result.label.qty) |
|
|
|
item.balanceQty = balanceInfo.qty; |
|
|
|
item.toLocationCode = this.toLocationCode; |
|
|
|
}) |
|
|
|
// calcHandleQty(this.detailSource); |
|
|
@ -497,7 +496,9 @@ |
|
|
|
} |
|
|
|
if (isScan) { |
|
|
|
pack.scanDate = new Date(); |
|
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描"); |
|
|
|
// this.showMessage("箱码【" + packingNumber + "】已经扫描"); |
|
|
|
|
|
|
|
pack.handleQty = calc.add(pack.handleQty,result.label.qty) |
|
|
|
} else { |
|
|
|
this.packingNumberList.push(packingNumber) |
|
|
|
pack.scaned = true |
|
|
@ -507,8 +508,7 @@ |
|
|
|
pack.labelQty = Number(result.label.qty); |
|
|
|
} |
|
|
|
} |
|
|
|
itemDetail.balanceQty = balanceInfo.qty; |
|
|
|
calcTreeHandleQty(this.detailSource); |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
itemDetail.packList.sort(compareDesc('scanDate')); //按扫描信息排序 |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
@ -529,7 +529,8 @@ |
|
|
|
} |
|
|
|
if (isScan) { |
|
|
|
itemDetail.scanDate = new Date(); |
|
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
|
// this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
|
itemDetail.handleQty = calc.add(itemDetail.handleQty,result.label.qty) |
|
|
|
} else { |
|
|
|
this.packingNumberList.push(packingNumber) |
|
|
|
itemDetail.scaned = true; |
|
|
@ -539,7 +540,6 @@ |
|
|
|
console.log(itemDetail.handleQty) |
|
|
|
itemDetail.toLocationCode = this.toLocationCode; |
|
|
|
itemDetail.labelQty = Number(result.label.qty); |
|
|
|
itemDetail.balanceQty = balanceInfo.qty; |
|
|
|
itemDetail.packList.forEach(pac => { |
|
|
|
pac.scaned = true |
|
|
|
pac.scanDate = new Date(); |
|
|
@ -551,6 +551,7 @@ |
|
|
|
this.continueScan() |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -570,11 +571,11 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
updateData() { |
|
|
|
if(this.managementType == 'BY_BATCH'){ |
|
|
|
}else{ |
|
|
|
calcTreeHandleQty(this.detailSource) |
|
|
|
} |
|
|
|
// calcHandleQty(this.detailSource); |
|
|
|
// if(this.managementType == 'BY_BATCH'){ |
|
|
|
// }else{ |
|
|
|
// calcTreeHandleQty(this.detailSource) |
|
|
|
// } |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
}, |
|
|
|
|
|
|
|
scanLocationCode(location, code) { |
|
|
@ -715,7 +716,6 @@ |
|
|
|
var params = this.setParams(); |
|
|
|
let that = this |
|
|
|
console.log(params) |
|
|
|
return |
|
|
|
purchaseReceiptJobSubmit(params).then(res => { |
|
|
|
if (res.data) { |
|
|
|
let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单 |
|
|
|