Browse Source

完善客户账单汇总

master
yunuo970428 5 months ago
parent
commit
0213744bc0
  1. 15
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/customerBillingSummary.vue

15
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/customerBillingSummary.vue

@ -241,35 +241,32 @@ export default {
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr) const value = Number(curr)
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else { } else {
return prev return Math.round((parseFloat(prev)) * 100) / 100
} }
}, 0) }, 0)
sums[index] += '' sums[index] += ''
this.formobj.withRebate = sums[index] += ''
} else if (column.property === 'subscriptionMoney') { } else if (column.property === 'subscriptionMoney') {
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr) const value = Number(curr)
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else { } else {
return prev return Math.round((parseFloat(prev)) * 100) / 100
} }
}, 0) }, 0)
sums[index] += '' sums[index] += ''
this.formobj.distributionMoneyTotal = sums[index] += ''
} else if (column.property === 'noSubscriptionMoney') { } else if (column.property === 'noSubscriptionMoney') {
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr) const value = Number(curr)
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else { } else {
return prev return Math.round((parseFloat(prev)) * 100) / 100
} }
}, 0) }, 0)
sums[index] += '' sums[index] += ''
this.formobj.distributionMoneyTotal = sums[index] += ''
} }
}) })
return sums return sums

Loading…
Cancel
Save