|
|
@ -58,10 +58,12 @@ import { |
|
|
|
//计算实际数量
|
|
|
|
export function calcHandleQty(detailSource) { |
|
|
|
for (let item of detailSource) { |
|
|
|
item.handleQty = 0; |
|
|
|
item.handleQty = new Decimal(0).toNumber(); |
|
|
|
item.qty = new Decimal(0).toNumber(); |
|
|
|
for (let detail of item.subList) { |
|
|
|
if (detail != undefined && detail.scaned) { |
|
|
|
item.handleQty = calc.add(item.handleQty, detail.handleQty) |
|
|
|
item.handleQty = calc.add(item.handleQty,detail.handleQty); |
|
|
|
item.qty = calc.add(item.qty,detail.qty); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|