From 0e9eabd1a509da4c11b0e76baf1951061319c4be Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Tue, 15 Apr 2025 16:57:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(market):=20=E9=87=8D=E6=9E=84=E7=BA=BF?= =?UTF-8?q?=E7=B4=A2=E8=B7=9F=E8=BF=9B=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加新的数据属性和方法,用于处理字典数据和选择器功能 - 优化页面初始化逻辑,增加字典数据获取方法 - 删除冗余注释代码,提高代码可读性 --- pages/market/clue/writing_followUp.vue | 110 +++++++++++++++++-------- 1 file changed, 74 insertions(+), 36 deletions(-) diff --git a/pages/market/clue/writing_followUp.vue b/pages/market/clue/writing_followUp.vue index 98d2081..66d005e 100644 --- a/pages/market/clue/writing_followUp.vue +++ b/pages/market/clue/writing_followUp.vue @@ -176,6 +176,7 @@ export default { follow_up_content:'',//备注 //##### 跟进任务 ##### is_warn:'1',//是否转角跟进任务(是否提醒 1提醒 2不提醒) + is_warn_btn:true,//是否转角跟进任务(是否提醒 true=提醒 false=不提醒),只做前端按钮展示使用 //跟进类型 follow_staff_id:'',//跟进人员 reminder_time:'',//跟进时间 @@ -186,47 +187,71 @@ export default { options_type: undefined,//选择器标识 show: false,//是否显示下拉选择器 linkage: true,//是否联动选择 - options: [],//下拉选择器可选值列表 + options: [ + // { + // 'value': 1, + // 'text': '类型1' + // } + ],//下拉选择器可选值列表 //时间选择器相关 show_date: false,//是否显示时间选择器|true=是,false=否 //选择线索-相关 - //字典- - //文本展示- - - //-相关 - //字典- - //文本展示- - - //-相关 - //字典- - //文本展示- - - //-相关 - //字典- - //文本展示- - - //-相关 - //字典- - //文本展示- - - //-相关 - //字典- - //文本展示- - - //-相关 - //字典- - //文本展示- - - //-相关 - //字典- - //文本展示- - - - - - + //字典-选择线索 + options_sales_id:[], + //文本展示-选择线索 + str_sales_id:'', + + //跟进类型-相关 + //字典-跟进类型 + options_entry_type:[], + //文本展示-跟进类型 + str_entry_type:'', + + //跟进人员-相关 + //字典-跟进人员 + options_staff_id:[], + //文本展示-跟进人员 + str_staff_id:'', + + //购买力-相关 + //字典-购买力 + options_purchasing_power:[], + //文本展示-购买力 + str_purchasing_power:'', + + //认知理念-相关 + //字典-认知理念 + options_cognitive_concept:[], + //文本展示-认知理念 + str_cognitive_concept:'', + + //情感粘度-相关 + //字典-情感粘度 + options_emotional_intensity:[], + //文本展示-情感粘度 + str_emotional_intensity:'', + + //意向分类-相关 + //字典-意向分类 + options_initial_customer_intent:[], + //文本展示-意向分类 + str_initial_customer_intent:'', + + //意向度-相关 + //字典-意向度 + options_initial_relationship_intent:[], + //文本展示-意向度 + str_initial_relationship_intent:'', + + //跟进任务-跟进人员-相关 + //字典-跟进任务-跟进人员(市场) + options_follow_staff_id_sc:[], + //字典-跟进任务-跟进人员(销售) + options_follow_staff_id_xs:[], + //文本展示-跟进任务-跟进人员 + str_follow_staff_id:'', } }, onLoad(options) { @@ -240,6 +265,19 @@ export default { async init() { this.getDicFollow_up_type()//获取字典-跟进类型 }, + + //获取字典-选择线索 + //获取字典-跟进类型 + //获取字典-跟进人员(全部) + //获取字典-跟进任务-跟进人员(市场) + //获取字典-跟进任务-跟进人员(销售) + //获取字典-购买力 + //获取字典-认知理念 + //获取字典-情感粘度 + //获取字典-意向分类 + //获取字典-意向度 + + //获取字典-跟进类型 async getDicFollow_up_type() { let key = 'follow_up_type'