diff --git a/src/components/printBill/bill.vue b/src/components/printBill/bill.vue index 1532306..65ae0f4 100644 --- a/src/components/printBill/bill.vue +++ b/src/components/printBill/bill.vue @@ -151,7 +151,8 @@ const summaryList = computed(() => { props.billAllObj.forEach(item => { if (map.has(item.wlNo)) { const existing = map.get(item.wlNo); - existing.totalQty = (parseFloat(existing.totalQty) + parseFloat(item.realQty)); + const total = (parseFloat(existing.totalQty) + parseFloat(item.realQty)) * 100*10000 + existing.totalQty = total / ( 100 * 10000); } else { map.set(item.wlNo, { ...item, diff --git a/src/components/storageBill/bill.vue b/src/components/storageBill/bill.vue index 2b45b68..059c2e7 100644 --- a/src/components/storageBill/bill.vue +++ b/src/components/storageBill/bill.vue @@ -145,7 +145,8 @@ const summaryList = computed(() => { props.billAllObj.forEach(item => { if (map.has(item.wlNo)) { const existing = map.get(item.wlNo); - existing.totalQty = (parseFloat(existing.totalQty) + parseFloat(item.realQty)); + const total = (parseFloat(existing.totalQty) + parseFloat(item.realQty)) * 100*10000 + existing.totalQty = total / ( 100 * 10000); } else { map.set(item.wlNo, { ...item,