Browse Source

修改数量的显示

master
聂喜婷 11 months ago
parent
commit
73178363e3
  1. 4
      src/common/detail.js
  2. 2
      src/pages/purchaseReceipt/job/receiptDetail.vue

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);
} }
} }
} }

2
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -192,7 +192,7 @@
// that.subList[1].containerNumber = "CN-00000001"; // that.subList[1].containerNumber = "CN-00000001";
that.jobStatus = res.data.status that.jobStatus = res.data.status
that.jobToLocationCode = that.subList[0].toLocationCode that.jobToLocationCode = that.subList[0].toLocationCode
that.detailSource = getDataSource(that.subList) that.detailSource = getDataSource(that.subList)
} else { } else {
that.showMessage('列表数据为0'); that.showMessage('列表数据为0');
} }

Loading…
Cancel
Save