修改打印单据总计求和方法

This commit is contained in:
zx
2026-02-11 09:34:37 +08:00
parent d8c071952c
commit 2252b561de
2 changed files with 4 additions and 2 deletions

View File

@@ -151,7 +151,8 @@ const summaryList = computed(() => {
props.billAllObj.forEach(item => { props.billAllObj.forEach(item => {
if (map.has(item.wlNo)) { if (map.has(item.wlNo)) {
const existing = map.get(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 { } else {
map.set(item.wlNo, { map.set(item.wlNo, {
...item, ...item,

View File

@@ -145,7 +145,8 @@ const summaryList = computed(() => {
props.billAllObj.forEach(item => { props.billAllObj.forEach(item => {
if (map.has(item.wlNo)) { if (map.has(item.wlNo)) {
const existing = map.get(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 { } else {
map.set(item.wlNo, { map.set(item.wlNo, {
...item, ...item,