Commit e83dd5f1 by 张权

价格自动减0.01 bug

1 parent 8755f264
......@@ -724,7 +724,6 @@ export default {
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
const urlParam = this.$route.params
this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id))
console.log(this.routeInfo,8889999)
this.disabled = this.routeInfo.addOrEdit == '5'
// 提单成功 - 修改
if (this.routeInfo.isSuper != 'true') {
......
......@@ -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)
}, 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)
}, 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!