Commit c77f4943 by 前端

Merge branch 'master' into 'develop'

Master

See merge request !10
2 parents 2ba162dd 8548db03
...@@ -1166,7 +1166,8 @@ export default { ...@@ -1166,7 +1166,8 @@ export default {
}) })
}, },
getPackageList() { getPackageList() {
this.$apis.beforeSale.getPackageListApi({}).then(res => { let contractNo = this.routeInfo.contractNo==-1? '': this.routeInfo.contractNo
this.$apis.beforeSale.getPackageListApi({contractNo}).then(res => {
this.toTestProductData(res) this.toTestProductData(res)
}) })
}, },
...@@ -1548,6 +1549,7 @@ export default { ...@@ -1548,6 +1549,7 @@ export default {
if (!params.sn) { if (!params.sn) {
delete params.sn delete params.sn
} }
params.isOss = 1
this.$apis.beforeSale.updateEquityApi(params).then(res => { this.$apis.beforeSale.updateEquityApi(params).then(res => {
this.submit = false this.submit = false
......
...@@ -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 + parseInt(cur.approveAmount * 100) return prev + (+(cur.approveAmount * 100).toFixed(0))
}, 0) }, 0)
return total / 100 return total / 100
} }
...@@ -122,7 +122,10 @@ export default { ...@@ -122,7 +122,10 @@ export default {
for (let key in this.accountForm) { for (let key in this.accountForm) {
this.accountForm[key] = res[key] 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 if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
this.serviceItemsList = serviceItemsList this.serviceItemsList = serviceItemsList
// 以下是文件数据 // 以下是文件数据
......
...@@ -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 + parseInt(cur.approveAmount * 100) return prev + (+(cur.approveAmount * 100).toFixed(0))
}, 0) }, 0)
return total / 100 return total / 100
} }
...@@ -122,7 +122,10 @@ export default { ...@@ -122,7 +122,10 @@ export default {
for (let key in this.accountForm) { for (let key in this.accountForm) {
this.accountForm[key] = res[key] 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 if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
this.serviceItemsList = serviceItemsList this.serviceItemsList = serviceItemsList
// 以下是文件数据 // 以下是文件数据
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!