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