|
@ -143,11 +143,11 @@ export function calcTreeHandleQty(detailSource) { |
|
|
item.handleQty = new Decimal(0).toNumber(); |
|
|
item.handleQty = new Decimal(0).toNumber(); |
|
|
|
|
|
|
|
|
for (let detail of item.subList) { |
|
|
for (let detail of item.subList) { |
|
|
if (detail != undefined && detail.scaned) { |
|
|
if (detail) { |
|
|
if (detail.packList.length > 0) { |
|
|
if (detail.packList&&detail.packList.length > 0) { |
|
|
detail.handleQty = new Decimal(0).toNumber(); |
|
|
detail.handleQty = new Decimal(0).toNumber(); |
|
|
for (let pack of detail.packList) { |
|
|
for (let pack of detail.packList) { |
|
|
if (pack != undefined && pack.scaned) { |
|
|
if (pack && pack.scaned) { |
|
|
detail.handleQty = calc.add(detail.handleQty, pack.handleQty); |
|
|
detail.handleQty = calc.add(detail.handleQty, pack.handleQty); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|