Commit c77f4943 by 前端

Merge branch 'master' into 'develop'

Master

See merge request !10
2 parents 2ba162dd 8548db03
......@@ -86,7 +86,7 @@ export default {
computed: {
totalPrice() {
let total = this.serviceItemsList.reduce(function(prev, cur) {
return prev + parseInt(cur.approveAmount * 100)
return prev + (+(cur.approveAmount * 100).toFixed(0))
}, 0)
return total / 100
}
......@@ -122,7 +122,10 @@ export default {
for (let key in this.accountForm) {
this.accountForm[key] = res[key]
}
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.accountType !== 1) {
this.accountForm.accountType = 0
this.accountForm.objectType = 0
}
if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
this.serviceItemsList = serviceItemsList
// 以下是文件数据
......
......@@ -86,7 +86,7 @@ export default {
computed: {
totalPrice() {
let total = this.serviceItemsList.reduce(function(prev, cur) {
return prev + parseInt(cur.approveAmount * 100)
return prev + (+(cur.approveAmount * 100).toFixed(0))
}, 0)
return total / 100
}
......@@ -122,7 +122,10 @@ export default {
for (let key in this.accountForm) {
this.accountForm[key] = res[key]
}
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.accountType !== 1) {
this.accountForm.accountType = 0
this.accountForm.objectType = 0
}
if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
this.serviceItemsList = serviceItemsList
// 以下是文件数据
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!