From 0213744bc0a3ee486a96494fbb52849d0ffbe96d Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 14 Nov 2024 09:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AE=A2=E6=88=B7=E8=B4=A6?= =?UTF-8?q?=E5=8D=95=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerBillingSummary.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/customerBillingSummary.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/customerBillingSummary.vue index 1275d23219..3be69a5360 100644 --- a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/customerBillingSummary.vue +++ b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/customerBillingSummary.vue @@ -241,35 +241,32 @@ export default { sums[index] = values.reduce((prev, curr) => { const value = Number(curr) if (!isNaN(value)) { - return prev + curr + return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100 } else { - return prev + return Math.round((parseFloat(prev)) * 100) / 100 } }, 0) sums[index] += '' - this.formobj.withRebate = sums[index] += '' } else if (column.property === 'subscriptionMoney') { sums[index] = values.reduce((prev, curr) => { const value = Number(curr) if (!isNaN(value)) { - return prev + curr + return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100 } else { - return prev + return Math.round((parseFloat(prev)) * 100) / 100 } }, 0) sums[index] += '' - this.formobj.distributionMoneyTotal = sums[index] += '' } else if (column.property === 'noSubscriptionMoney') { sums[index] = values.reduce((prev, curr) => { const value = Number(curr) if (!isNaN(value)) { - return prev + curr + return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100 } else { - return prev + return Math.round((parseFloat(prev)) * 100) / 100 } }, 0) sums[index] += '' - this.formobj.distributionMoneyTotal = sums[index] += '' } }) return sums