From 8595b6aa074eafd86cdd99d1ab3a2623b842e961 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 20 三月 2024 18:13:26 +0800 Subject: [PATCH] 11 --- src/views/project/tallage/computingBill/index.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/project/tallage/computingBill/index.vue b/src/views/project/tallage/computingBill/index.vue index a617bec..584b962 100644 --- a/src/views/project/tallage/computingBill/index.vue +++ b/src/views/project/tallage/computingBill/index.vue @@ -777,7 +777,7 @@ this.donorchargeorgans.forEach(item => { item.taXmoney = item.pretaxcost - item.taxedcost; item.taXmoney = item.taXmoney.toFixed(2); - this.accumulation();//璁$畻 + this.accumulation(); //璁$畻 this.form.istax = 1; this.submitForm(); }); @@ -798,7 +798,7 @@ // 閲戦鍚堣 accumulation() { this.form.pretaxamount = this.donorchargeorgans.reduce( - (acc, obj) => acc + obj.pretaxcost, + (acc, obj) => acc + Number(obj.pretaxcost), 0 ); this.form.taxMoney = this.donorchargeorgans.reduce( @@ -806,7 +806,7 @@ 0 ); this.form.taxedamount = this.donorchargeorgans.reduce( - (acc, obj) => acc + obj.taxedcost, + (acc, obj) => acc + Number(obj.taxedcost), 0 ); }, -- Gitblit v1.9.3