diff --git a/src/components/printBill/bill.vue b/src/components/printBill/bill.vue index d0cc721..32c0e84 100644 --- a/src/components/printBill/bill.vue +++ b/src/components/printBill/bill.vue @@ -153,7 +153,7 @@ const summaryList = computed(() => { props.billAllObj.forEach(item => { if (map.has(item.wlNo)) { const existing = map.get(item.wlNo); - const total = (parseFloat(existing.totalQty) + parseFloat(item.realQty)) * 100*10000 + const total = (parseFloat(existing.totalQty)*100 *10000 + parseFloat(item.realQty)*100 *10000) existing.totalQty = total / ( 100 * 10000); } else { map.set(item.wlNo, { diff --git a/src/components/storageBill/bill.vue b/src/components/storageBill/bill.vue index 059c2e7..9f55c92 100644 --- a/src/components/storageBill/bill.vue +++ b/src/components/storageBill/bill.vue @@ -145,7 +145,7 @@ const summaryList = computed(() => { props.billAllObj.forEach(item => { if (map.has(item.wlNo)) { const existing = map.get(item.wlNo); - const total = (parseFloat(existing.totalQty) + parseFloat(item.realQty)) * 100*10000 + const total = (parseFloat(existing.totalQty) * 100*10000+ parseFloat(item.realQty)* 100*10000) existing.totalQty = total / ( 100 * 10000); } else { map.set(item.wlNo, {