Browse Source

计算数量

hella_online_20240829
yufei0306 6 months ago
parent
commit
121712ab8e
  1. 4
      src/common/detail.js

4
src/common/detail.js

@ -104,8 +104,10 @@ export function calcHandleQty(detailSource) {
item.handleQty = new Decimal(0).toNumber();
item.qty = new Decimal(0).toNumber();
for (let detail of item.subList) {
if (detail != undefined && detail.scaned) {
if (detail != undefined ) {
if(detail.scaned){
item.handleQty = calc.add(item.handleQty, detail.handleQty);
}
item.qty = calc.add(item.qty, detail.qty);
}
}

Loading…
Cancel
Save