Commit fe480935 by 张权

价格小数问题

1 parent e83dd5f1
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
computed: { computed: {
totalPrice() { totalPrice() {
let total = this.serviceItemsList.reduce(function(prev, cur) { let total = this.serviceItemsList.reduce(function(prev, cur) {
return prev + (cur.approveAmount * 100) return prev + (+(cur.approveAmount * 100).toFixed(0))
}, 0) }, 0)
return total / 100 return total / 100
} }
......
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
computed: { computed: {
totalPrice() { totalPrice() {
let total = this.serviceItemsList.reduce(function(prev, cur) { let total = this.serviceItemsList.reduce(function(prev, cur) {
return prev + (cur.approveAmount * 100) return prev + (+(cur.approveAmount * 100).toFixed(0))
}, 0) }, 0)
return total / 100 return total / 100
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!