Commit 027a4f59 authored by youjie's avatar youjie

主账户

parent 207706d7
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
@change="getCustomer(1)" @change="getCustomer(1)"
class=""> class="">
<el-option v-for='item in CustomerList' <el-option v-for='item in CustomerList'
:label='item.CustomerName+"("+item.ContactNumber+")"' :label='item.CustomerName+"-"+item.Contact+"("+item.ContactNumber+")"'
:value='item.ID' :value='item.ID'
:key='item.ID'> :key='item.ID'>
</el-option> </el-option>
...@@ -398,16 +398,16 @@ export default { ...@@ -398,16 +398,16 @@ export default {
this.dialogFormVisible = true this.dialogFormVisible = true
this.addType = 2 this.addType = 2
console.log(obj) console.log(obj)
let list = obj.CustomerChildrenIds.split(',')
this.addMsg = { this.addMsg = {
...JSON.parse(JSON.stringify(obj)), ...JSON.parse(JSON.stringify(obj)),
CustomerChildrenIds: obj.CllianceChildList.map(x=>{ CustomerChildrenIds: obj.CustomerChildrenIds,
return x.ID CustomerChildrenIdList: [],
}).join(','),
CustomerChildrenIdList: obj.CllianceChildList.map(x=>{
return x.ID
}),
accountId: obj.ClientBankAccountId accountId: obj.ClientBankAccountId
} }
list.forEach(item=>{
this.addMsg.CustomerChildrenIdList.push(Number(item))
})
}, },
ViewContract(item){ ViewContract(item){
window.open(item.TravelAgency_SignAddress, '_blank'); window.open(item.TravelAgency_SignAddress, '_blank');
...@@ -640,7 +640,7 @@ export default { ...@@ -640,7 +640,7 @@ export default {
this.saveLoading = false this.saveLoading = false
}) })
}, },
iniTAddMsg: function () { iniTAddMsg() {
this.addMsg = { this.addMsg = {
Id: this.addMsg.Id,// 主账户信息(也就是customerId) Id: this.addMsg.Id,// 主账户信息(也就是customerId)
CustomerId: this.addMsg.CustomerId, CustomerId: this.addMsg.CustomerId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment