From 35ceb8fc3d631d6df079558db7d0dd60bf058f30 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Tue, 12 Mar 2024 17:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statisticalReport/quarterlyStatistics.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/statisticalReport/quarterlyStatistics.vue b/src/views/statisticalReport/quarterlyStatistics.vue index ac15f48..455bb35 100644 --- a/src/views/statisticalReport/quarterlyStatistics.vue +++ b/src/views/statisticalReport/quarterlyStatistics.vue @@ -74,7 +74,7 @@ export default { if (b == 0) { return 0 } - return (parseInt(a) / parseInt(b) * 100).toFixed(2) + return (Number(a) / Number(b) * 100).toFixed(2) }, async getList() { @@ -127,8 +127,8 @@ export default {

{ row.plan?.reduce((a, b) => { - return parseInt(a) + parseInt(b.money) - },0) + return Number(a) + Number(b.money) + },0).toFixed(2) }

{ row.plan?.map((i,index) => { @@ -166,8 +166,8 @@ export default {

{ row.plan?.reduce((a, b) => { - return parseInt(a) + parseInt(b.detail[z].plan_total) - },0) + return Number(a) + Number(b.detail[z].plan_total) + },0).toFixed(2) }

{ row.plan?.map((i,index) => { @@ -189,8 +189,8 @@ export default {

{ row.plan?.reduce((a, b) => { - return parseInt(a) + parseInt(b.detail[z].act_total) - },0) + return Number(a) + Number(b.detail[z].act_total) + },0).toFixed(2) }

{ row.plan?.map((i,index) => { @@ -212,9 +212,9 @@ export default {

{ this.percent(row.plan?.reduce((a, b) => { - return parseInt(a) + parseInt(b.detail[z].act_total) + return Number(a) + Number(b.detail[z].act_total) },0),row.plan?.reduce((a, b) => { - return parseInt(a) + parseInt(b.detail[z].plan_total) + return Number(a) + Number(b.detail[z].plan_total) },0)) }%

{ @@ -247,8 +247,8 @@ export default { return (

{ i.detail?.reduce((a,b) => { - return a + parseInt(b.plan_total) - },0) + return a + Number(b.plan_total) + },0).toFixed(2) }

) })