修改打印单据总计求和方法
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user