|
|
@ -282,6 +282,7 @@ |
|
|
|
that.jobStatus = res.data.status |
|
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
|
|
that.detailSource = getTreeDataSource(that.subList) |
|
|
|
console.log(333,that.detailSource) |
|
|
|
that.isCheckLocation = getSwitchInfoByCode(that.isCheckLocation) |
|
|
|
if (that.isCheckLocation) { |
|
|
|
that.toLocationCode = "" |
|
|
@ -528,6 +529,9 @@ |
|
|
|
// 当前批次剩余可以扫进的数量大于当前扫描的标签数量的时候直接插入当前的批次 |
|
|
|
if(handleQtySub >= parseFloat(qty)){ |
|
|
|
pack.handleQty = Number(qty); |
|
|
|
pack.convertRate = result.label.convertRate |
|
|
|
pack.supplierQty = parseFloat(calc.div(parseFloat(pack.handleQty),parseFloat(pack.convertRate)).toFixed(5)) |
|
|
|
pack.supplierUom = result.label.purchaseUom |
|
|
|
batchDetailList[i].packList.push(pack) |
|
|
|
batchDetailList[i].scaned = true |
|
|
|
const isHave = this.packingNumberList.find(item=>item.packingNumber == packingNumber) |
|
|
@ -546,6 +550,9 @@ |
|
|
|
// 不是最后一行取当前批次剩余可以扫进的数量 |
|
|
|
pack.handleQty = handleQtySub; |
|
|
|
} |
|
|
|
pack.convertRate = result.label.convertRate |
|
|
|
pack.supplierQty = parseFloat(calc.div(parseFloat(pack.handleQty),parseFloat(pack.convertRate)).toFixed(5)) |
|
|
|
pack.supplierUom = result.label.purchaseUom |
|
|
|
batchDetailList[i].packList.push(pack) |
|
|
|
batchDetailList[i].scaned = true |
|
|
|
qty = calc.sub(parseFloat(qty),parseFloat(handleQtySub)) |
|
|
@ -557,11 +564,7 @@ |
|
|
|
calcTreeHandleQty(this.detailSource); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
console.log(8777,this.detailSource) |
|
|
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
this.$refs.comReceiptDetailCardBacthRef.forEach(item=>{ |
|
|
|
item.resizeCollapse() |
|
|
|