|
|
@ -296,7 +296,7 @@ const queryBalance = (result)=>{ |
|
|
|
|
|
|
|
result.balance = res.data[0] |
|
|
|
if (result.label.packingNumber != result.balance.packingNumber) { |
|
|
|
result.balance.lableQty = result.label.qty |
|
|
|
result.balance.lableQty = Number(result.label.qty) |
|
|
|
} |
|
|
|
this.afterGetBalance(result.label, result.balance, result.package); |
|
|
|
} else { |
|
|
@ -524,8 +524,9 @@ const creatRecord = (label, balance, packageInfo) => { |
|
|
|
packingNumber: label.packingNumber, |
|
|
|
parentPackingNumber: packageInfo.parentNumber, |
|
|
|
batch: label.batch, |
|
|
|
qty: Number(balance.qty), |
|
|
|
// qty: Number(balance.qty), |
|
|
|
// qty: Number(label.qty) > Number(balance.qty) ? Number(balance.qty) : Number(label.qty), |
|
|
|
qty: balance.lableQty ?? Number(label.qty), |
|
|
|
uom: balance.uom, |
|
|
|
inventoryStatus: balance.inventoryStatus, |
|
|
|
balance, |
|
|
|