From 790b648930c460ecb7de2c46055e86c6bd1086db Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Thu, 12 Jun 2025 19:00:45 +0800
Subject: [PATCH] =?UTF-8?q?feat(market):=20=E6=B7=BB=E5=8A=A0=E5=86=B3?=
=?UTF-8?q?=E7=AD=96=E4=BA=BA=E5=AD=97=E6=AE=B5=E5=B9=B6=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=8A=B6=E6=80=81=E9=BB=98=E8=AE=A4=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在 add_clues 和 edit_clues 页面中添加决策人字段
- 将客户状态的默认值设置为 "pending"
- 优化决策人字段的展示和选择逻辑- 更新相关数据结构和方法以支持决策人功能
---
pages/market/clue/add_clues.vue | 30 +++++++++++++++++++-----------
pages/market/clue/edit_clues.vue | 27 ++++++++++++++++++---------
2 files changed, 37 insertions(+), 20 deletions(-)
diff --git a/pages/market/clue/add_clues.vue b/pages/market/clue/add_clues.vue
index e4de210..ccb0fae 100644
--- a/pages/market/clue/add_clues.vue
+++ b/pages/market/clue/add_clues.vue
@@ -226,15 +226,12 @@
labelColor='#fff'
:bottomBorder='false'>
-
+
+ {{ (formData.decision_maker) ? picker_config.decision_maker.text : '点击选择' }}
+
@@ -258,6 +255,7 @@
-
+
+ {{ (formData.decision_maker) ? picker_config.decision_maker.text : '点击选择' }}
+
@@ -719,6 +716,11 @@ export default {
status:{
text:'',
options:[],
+ },
+ //决策人
+ decision_maker:{
+ text:'',
+ options:[],
}
},//选择器选项配置
@@ -769,6 +771,7 @@ export default {
await this.getDict('initial_intent')//获取字典-客户初步意向度
await this.getDict('cognitive_idea')//获取字典-认知理念
await this.getDict('status')//获取字典-客户状态
+ await this.getDict('decision_maker')//获取字典-决策人
// this.getStaffList()//获取人员列表
// this.getAreaTree()//获取地区树形结构
@@ -833,6 +836,8 @@ export default {
this.picker_config.initial_intent.text = customerResource.initial_intent_name || '点击选择'//客户初步意向度
this.picker_config.status.text = customerResource.status_name || '点击选择'//客户状态
+ this.picker_config.decision_maker.text = customerResource.decision_maker || '点击选择'//决策人
+
//六要素相关
this.picker_config.purchasing_power.text = sixSpeed.purchase_power_name || '点击选择'//购买力
this.picker_config.cognitive_idea.text = sixSpeed.concept_awareness_name || '点击选择'//认知理念
@@ -947,6 +952,10 @@ export default {
case 'cognitive_idea':
key = 'cognitive_concept'
break;
+ //决策人
+ case 'decision_maker':
+ key = 'decision_maker'
+ break;
//客户初步意向度
case 'initial_intent':
key = 'preliminarycustomerintention'