|
|
|
@ -25,7 +25,7 @@ |
|
|
|
<view class="card-con-span">{{ v.customerResource.phone_number }}</view> |
|
|
|
</view> |
|
|
|
<view class="card-con"> |
|
|
|
所属校区:{{ v.customerResource.name }} |
|
|
|
所属校区:{{ v.customerResource.campus_name }} |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="card-con"> |
|
|
|
@ -347,7 +347,7 @@ |
|
|
|
} |
|
|
|
] |
|
|
|
//是经理的情况下,获取这个校区的全部用户(身份是销售的) |
|
|
|
await this.getPersonnelAll(); |
|
|
|
// await this.getPersonnelAll(); |
|
|
|
} else { |
|
|
|
this.values = [{ |
|
|
|
id: 1, |
|
|
|
@ -358,10 +358,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
//获取全部员工 |
|
|
|
async getPersonnelAll() { |
|
|
|
async getPersonnelAll(campus='') { |
|
|
|
let res = await apiRoute.common_getPersonnelAll({ |
|
|
|
personnel_id: this.userInfo.id, //客户id |
|
|
|
account_type: 'market', //账号类型|teacher=老师,market=销售 |
|
|
|
campus:campus |
|
|
|
}) |
|
|
|
if (res.code != 1) { |
|
|
|
uni.showToast({ |
|
|
|
@ -591,6 +592,8 @@ |
|
|
|
//公海-分配客户给员工相关 |
|
|
|
//打开分配列表 |
|
|
|
openAssign(item) { |
|
|
|
console.log(item) |
|
|
|
this.getPersonnelAll(item.customerResource.campus) |
|
|
|
this.select_item = item |
|
|
|
this.select_show = true |
|
|
|
}, |
|
|
|
|