Browse Source

feat(api): 添加销售端查询客户资源全部列表接口

- 新增 xs_getAllCustomerResources 方法,用于获取所有客户资源列表
- 更新 add_clues 页面,使用新接口获取客户数据
- 调整客户列表显示逻辑,增加决策者和联系电话字段
- 优化客户意向显示,根据 initial_intent 字段展示不同图标
master
liutong 10 months ago
parent
commit
74a41537d2
  1. 7
      api/apiRoute.js
  2. 40
      pages/market/clue/add_clues.vue

7
api/apiRoute.js

@ -211,6 +211,13 @@ export default {
return res;
})
},
//销售端-查询客户资源全部列表
xs_getAllCustomerResources(data = {}) {
let url = '/customerResources/getAll'
return http.get(url, data).then(res => {
return res;
})
},
//销售端-客户资源-获取修改日志列表
xs_customerResourcesGetEditLogList(data = {}) {
let url = '/customerResources/getEditLogList'

40
pages/market/clue/add_clues.vue

@ -14,12 +14,12 @@
<!-- 添加客户-->
<view style="margin-top: 20rpx;" v-if="optionTableId == 0">
<!-- <view class="search_box">-->
<!-- <view class="input_box">-->
<!-- <input type="text" v-model="student_name" placeholder="请输入客户名称">-->
<!-- </view>-->
<!-- <view class="btn" @click="clientList()">查重</view>-->
<!-- </view>-->
<view class="search_box">
<view class="input_box">
<input type="text" v-model="student_name" placeholder="请输入客户名称">
</view>
<view class="btn" @click="clientList()">查重</view>
</view>
<view class="form-style">
<fui-form ref="form" top="0" :model="formData" :show="false">
@ -454,28 +454,34 @@
<image
class="img"
src="@/static/images/index/myk.png"></image>
<view class="name">{{v.student_name}}</view>
<view class="tag">{{ v.is_status == 1 ? '试听' : '成交' }}</view>
<view class="name">{{v.name}}</view>
<!-- <view class="tag">{{ v.is_status == 1 ? '试听' : '成交' }}</view>-->
</view>
<view class="box_2">
<view class="left">
<view class="name">首选联系人{{v.contact_name}}</view>
<view class="name">首选联系人{{v.decision_maker}}</view>
<!-- <view class="call">妈妈</view>-->
</view>
</view>
<view class="box_2">
<view class="left">
<view class="name">联系电话{{v.phone_number || ''}}</view>
</view>
</view>
<view class="box_3">
<view class="left">
{{ $util.formatToDateTime((v.follow && v.follow.follow_up_time || ''), 'm-d H:i') }} 跟进
{{ $util.formatToDateTime((v.updated_at || ''), 'm-d H:i') }} 跟进
</view>
<view class="right">
<image
v-if="['A+','A','A-'].includes(v.follow && v.follow.initial_customer_intent || '')"
v-if="v.initial_intent = 'high'"
src="@/static/images/index/intention3.png"
class="img"
></image>
<image
v-else-if="['B+','B','B-'].includes(v.follow && v.follow.initial_customer_intent || '')"
v-else-if="v.initial_intent == 'medium'"
src="@/static/images/index/intention2.png"
class="img"
></image>
@ -485,13 +491,13 @@
class="img"
></image>
<view>意向{{ v.follow && v.follow.initial_customer_intent || '' }}</view>
<view>意向{{ v.initial_intent_name || '' }}</view>
</view>
</view>
</view>
<view class="right_box">
<image class="img" src="@/static/images/index/message.png" @click="openViewMyMessage(v)"></image>
<image class="img" src="@/static/images/index/phone.png" @click="dialTel(v)"></image>
<image v-if="v.member_id" class="img" src="@/static/images/index/message.png" @click="openViewMyMessage(v)"></image>
<image v-if="v.phone_number" class="img" src="@/static/images/index/phone.png" @click="dialTel(v)"></image>
</view>
</view>
</view>
@ -907,9 +913,9 @@ export default {
this.clientUserList = []
let param = {
student_name:this.student_name
name:this.student_name
}
let res = await marketApi.clientList(param)
let res = await apiRoute.xs_getAllCustomerResources(param)
if(res.code != 1){
uni.showToast({
title: res.msg,

Loading…
Cancel
Save