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) }

) })