Browse Source

修改数量的显示

master
niexiting 6 months ago
parent
commit
73178363e3
  1. 4
      src/common/detail.js

4
src/common/detail.js

@ -61,11 +61,11 @@ import { Decimal } from 'decimal.js';//引入
export function calcHandleQty(detailSource) { export function calcHandleQty(detailSource) {
for (let item of detailSource) { for (let item of detailSource) {
item.handleQty = new Decimal(0).toNumber(); item.handleQty = new Decimal(0).toNumber();
item.qty = new Decimal(0).toNumber(); // item.qty = new Decimal(0).toNumber();
for (let detail of item.subList) { for (let detail of item.subList) {
if (detail != undefined && detail.scaned) { 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); // item.qty = calc.add(item.qty,detail.qty);
} }
} }
} }

Loading…
Cancel
Save