Commit 70388565 authored by 332784038@qq.com's avatar 332784038@qq.com

客户类型默认值跳转参数

parent 6056e844
......@@ -1040,7 +1040,6 @@ export default {
getCustomer(this.id).then(response => {
this.customer = {...this.customer, ...response.data}
console.log(this.customer, 'this.customer')
getCustomerContactsListByCustomer({customerId: this.id}).then(r => {
this.customerContacts = r.data
if (this.customerContacts.length > 0) {
......@@ -1213,6 +1212,7 @@ export default {
serviceUserList: [],
customerContacts: [],
memberList: [],
relation: 1,
customer: {
id: undefined,
number: undefined,
......@@ -1386,7 +1386,17 @@ export default {
this.$message.error(this.$t("此客户属于其他客户经理名下的客户。"));
return;
}
this.$router.push({path: "/offer/create", query: {customer: row, type: 1}})
const type = this.customer.type
if (type){
// 客户类型不为空时
const types = type.split(',');
if (types.includes("0")) {
this.relation = 1
}else {
this.relation = 2
}
}
this.$router.push({path: "/offer/create", query: {relation: this.relation, type: 1}})
},
handleCustomerFollow(row, flag) {
this.customerFollowVisible = true
......
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