Browse Source

完善单车返利管理

master
yunuo970428 3 months ago
parent
commit
d23f8730f8
  1. 4
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bikerebatemanagement/bicyclerebatemanagementAdd.vue

4
anrui-scm/anrui-scm-ui/src/views/bikerebate/bikerebatemanagement/bicyclerebatemanagementAdd.vue

@ -313,9 +313,9 @@ 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] += ''

Loading…
Cancel
Save