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