diff --git a/common/detail.js b/common/detail.js index 07d28531..c0d297ed 100644 --- a/common/detail.js +++ b/common/detail.js @@ -59,7 +59,7 @@ export function calcHandleQty(detailSource) { item.handleQty = 0; for (let detail of item.subList) { if (detail != undefined && detail.scaned) { - item.handleQty += Number(detail.handleQty) + item.handleQty = calc.add(item.handleQty,detail.handleQty) } } } diff --git a/common/record.js b/common/record.js index 6b310f39..2e457395 100644 --- a/common/record.js +++ b/common/record.js @@ -28,8 +28,10 @@ export function createDetailInfo(data, pack) { let detail = {}; Object.assign(detail, data) detail.balanceQty = Number(detail.qty) + detail.qty = Number(detail.qty); detail.stdPackQty = Number(pack.stdPackQty) detail.stdPackUnit = pack.stdPackUnit + detail.handleQty =0; detail.package = pack; return detail; diff --git a/mycomponents/balance/handleBalance.vue b/mycomponents/balance/handleBalance.vue index a35de49c..963e3c02 100644 --- a/mycomponents/balance/handleBalance.vue +++ b/mycomponents/balance/handleBalance.vue @@ -1,12 +1,12 @@