From 74a41537d2767998e248325ae1c94907604d8ea8 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Fri, 30 May 2025 17:16:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E6=B7=BB=E5=8A=A0=E9=94=80?= =?UTF-8?q?=E5=94=AE=E7=AB=AF=E6=9F=A5=E8=AF=A2=E5=AE=A2=E6=88=B7=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=85=A8=E9=83=A8=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 xs_getAllCustomerResources 方法,用于获取所有客户资源列表 - 更新 add_clues 页面,使用新接口获取客户数据 - 调整客户列表显示逻辑,增加决策者和联系电话字段 - 优化客户意向显示,根据 initial_intent 字段展示不同图标 --- api/apiRoute.js | 7 ++++++ pages/market/clue/add_clues.vue | 40 +++++++++++++++++++-------------- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/api/apiRoute.js b/api/apiRoute.js index db7a892..97689a4 100644 --- a/api/apiRoute.js +++ b/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' diff --git a/pages/market/clue/add_clues.vue b/pages/market/clue/add_clues.vue index fd32e7e..84106e4 100644 --- a/pages/market/clue/add_clues.vue +++ b/pages/market/clue/add_clues.vue @@ -14,12 +14,12 @@ - - - - - - + + + + + 查重 + @@ -454,28 +454,34 @@ - {{v.student_name}} - {{ v.is_status == 1 ? '试听' : '成交' }} + {{v.name}} + - 首选联系人:{{v.contact_name}} + 首选联系人:{{v.decision_maker}} + + + 联系电话:{{v.phone_number || ''}} + + + - {{ $util.formatToDateTime((v.follow && v.follow.follow_up_time || ''), 'm-d H:i') }} 跟进 + {{ $util.formatToDateTime((v.updated_at || ''), 'm-d H:i') }} 跟进 @@ -485,13 +491,13 @@ class="img" > - 意向:{{ v.follow && v.follow.initial_customer_intent || '' }} + 意向:{{ v.initial_intent_name || '' }} - - + + @@ -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,