|
|
|
@ -27,14 +27,14 @@ |
|
|
|
<view> |
|
|
|
<image src="@/static/images/index/myk.png" class="card-image"></image> |
|
|
|
</view> |
|
|
|
<view class="card-text">{{ v.student_name }}</view> |
|
|
|
<view class="card-label">{{ v.is_status == 1 ? '试听' : '成交' }}</view> |
|
|
|
<view class="card-text">{{ v.customerResource.name }}</view> |
|
|
|
<!-- <view class="card-label">{{ v.is_status == 1 ? '试听' : '成交' }}</view>--> |
|
|
|
</view> |
|
|
|
<view class="card-con"> |
|
|
|
首联系人:{{ v.contact_name }} <span class="card-con-span">{{ v.decision_maker }}</span> |
|
|
|
首联系人:{{ v.customerResource.name }} <span class="card-con-span">{{ v.customerResource.decision_maker }}</span> |
|
|
|
</view> |
|
|
|
<view class="card-date"> |
|
|
|
<view class="card-con">{{ $util.formatToDateTime((v.follow && v.follow.follow_up_time || ''), 'm-d H:i') }} |
|
|
|
<view class="card-con">{{ $util.formatToDateTime((v.shared_at || ''), 'm-d H:i') }} |
|
|
|
跟进 |
|
|
|
</view> |
|
|
|
<view style="margin-left: 30rpx;"> |
|
|
|
@ -56,7 +56,7 @@ |
|
|
|
class="drop-image-x" |
|
|
|
></image> |
|
|
|
</view> |
|
|
|
<view class="title-x">意向:{{ v.follow && v.follow.initial_customer_intent || '' }}</view> |
|
|
|
<view class="title-x">意向:{{ v.customerResource && v.customerResource.initial_intent_name || '' }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -65,7 +65,7 @@ |
|
|
|
<image src="@/static/images/index/message.png" class="image" @click="openViewMyMessage(v)"></image> |
|
|
|
</view> |
|
|
|
<view style="width: 15%;"> |
|
|
|
<image v-if="v.student_phone" src="@/static/images/index/phone.png" class="image" @click="dialTel(v)"></image> |
|
|
|
<image v-if="v.customerResource.phone_number" src="@/static/images/index/phone.png" class="image" @click="dialTel(v)"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
@ -266,6 +266,8 @@ export default { |
|
|
|
|
|
|
|
this.userInfo = res.data |
|
|
|
|
|
|
|
this.filteredData_1.shared_by = this.userInfo.id//共享人ID始终是当前登录的员工 |
|
|
|
|
|
|
|
//判断用户是不是经理,是就展示"资源分配" |
|
|
|
if(this.userInfo.role_key_arr.includes('manager')){ |
|
|
|
this.values = [ |
|
|
|
@ -349,11 +351,13 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
this.filteredData_1.shared_by = this.userInfo.id//共享人ID始终是当前登录的员工 |
|
|
|
|
|
|
|
if(data.page == 1){ |
|
|
|
this.tableList_1 = [] |
|
|
|
} |
|
|
|
|
|
|
|
let res = await marketApi.myClient(data) |
|
|
|
let res = await apiRoute.xs_resourceSharingIndex(data) |
|
|
|
this.loading = false |
|
|
|
this.isReachedBottom = false; |
|
|
|
if (res.code != 1){ |
|
|
|
@ -366,12 +370,10 @@ export default { |
|
|
|
|
|
|
|
this.tableList_1 = this.tableList_1.concat(res.data.data); // 使用 concat 方法 将新数据追加到数组中 |
|
|
|
|
|
|
|
console.log('列表',this.tableList_1) |
|
|
|
console.log('列表1',this.tableList_1) |
|
|
|
this.filteredData_1.total = res.data.total |
|
|
|
this.filteredData_1.page++ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//获取列表-资源分配相关 |
|
|
|
@ -425,7 +427,7 @@ export default { |
|
|
|
|
|
|
|
this.tableList_2 = this.tableList_2.concat(res.data.data); // 使用 concat 方法 将新数据追加到数组中 |
|
|
|
|
|
|
|
console.log('列表',this.tableList_2) |
|
|
|
console.log('列表2',this.tableList_2) |
|
|
|
this.filteredData_2.total = res.data.total |
|
|
|
this.filteredData_2.page++ |
|
|
|
}, |
|
|
|
@ -459,7 +461,7 @@ export default { |
|
|
|
//拨打电话 |
|
|
|
async dialTel(item) { |
|
|
|
|
|
|
|
let tel = item.student_phone |
|
|
|
let tel = item.customerResource.phone_number |
|
|
|
|
|
|
|
if (!tel) { |
|
|
|
uni.showToast({ |
|
|
|
@ -470,16 +472,16 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
let param = { |
|
|
|
sales_id: item.id//线索id |
|
|
|
} |
|
|
|
let res = await marketApi.setCallUp(param)//添加通过记录 |
|
|
|
if (res.code != 1) { |
|
|
|
uni.showToast({ |
|
|
|
title: res.msg, |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
sales_id: item.customerResource.id//线索id |
|
|
|
} |
|
|
|
// let res = await marketApi.setCallUp(param)//添加通过记录 |
|
|
|
// if (res.code != 1) { |
|
|
|
// uni.showToast({ |
|
|
|
// title: res.msg, |
|
|
|
// icon: 'none' |
|
|
|
// }) |
|
|
|
// return |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
uni.makePhoneCall({ |
|
|
|
|