From af27786d8637510c8301ca7fa0a00d26f656336d Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Tue, 15 Apr 2025 18:34:55 +0800
Subject: [PATCH] =?UTF-8?q?fix(market):=20=E4=BF=AE=E5=A4=8D=E7=BA=BF?=
=?UTF-8?q?=E7=B4=A2=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E7=9A=84=E8=B7=9F?=
=?UTF-8?q?=E8=BF=9B=E6=97=B6=E9=97=B4=E5=92=8C=E4=B8=8A=E8=AF=BE=E6=97=B6?=
=?UTF-8?q?=E9=97=B4=E9=80=89=E6=8B=A9=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 将日期选择器类型从 3 改为 5,以选择具体时间
-修复跟进时间、上课时间和提醒时间的显示和选择逻辑
-优化下拉选择器的选项设置和逻辑处理
- 添加对未选择跟进类型的提示
- 优化市场人员和销售人员的选择逻辑
---
pages/market/clue/writing_followUp.vue | 120 ++++++++++++++++---------
1 file changed, 76 insertions(+), 44 deletions(-)
diff --git a/pages/market/clue/writing_followUp.vue b/pages/market/clue/writing_followUp.vue
index f97cd2b..faf9975 100644
--- a/pages/market/clue/writing_followUp.vue
+++ b/pages/market/clue/writing_followUp.vue
@@ -52,7 +52,7 @@
点击选择
- {{ str_follow_up_time }}
+ {{ formData.follow_up_time }}
@@ -126,7 +126,7 @@
点击选择
- {{ str_schooltime }}
+ {{ formData.schooltime }}
@@ -306,7 +306,7 @@
点击选择
- {{ str_reminder_time }}
+ {{ formData.reminder_time }}
@@ -338,7 +338,7 @@
-
+
import commonApi from '@/api/common.js';
import marketApi from '@/api/market.js';
+import memberApi from '@/api/member.js';
const rules = [{
name: "mobile",
@@ -773,31 +774,29 @@ export default {
switch (type) {
//选择线索
case 'sales_id':
- this.options = this.options_source_channel
+ this.options = this.options_sales_id
this.show = true
this.linkage = true
break;
- //跟进人员
+ //基础表单->跟进人员
case 'staff_id':
- this.options = this.options_customer_source
+ this.options = this.options_staff_id
this.show = true
this.linkage = true
break;
//跟进时间
case 'follow_up_time':
- this.options = this.options_add_staff_id
- this.show = true
- this.linkage = true
+ this.show_date = true
break;
//购买力
case 'purchasing_power':
- this.options = this.options_entry_type
+ this.options = this.options_purchasing_power
this.show = true
this.linkage = true
break;
//认知理念
case 'cognitive_concept':
- this.options = this.options_staff_id
+ this.options = this.options_cognitive_concept
this.show = true
this.linkage = true
break;
@@ -807,23 +806,50 @@ export default {
break;
//情感粘度
case 'emotional_intensity':
- this.show_date = true
+ this.options = this.options_emotional_intensity
+ this.show = true
+ this.linkage = true
break;
//意向分类
case 'initial_customer_intent':
- this.show_date = true
+ this.options = this.options_initial_customer_intent
+ this.show = true
+ this.linkage = true
break;
//意向度
case 'initial_relationship_intent':
- this.show_date = true
+ this.options = this.options_initial_relationship_intent
+ this.show = true
+ this.linkage = true
break;
//跟进类型
case 'entry_type':
- this.show_date = true
+ this.options = this.options_entry_type
+ this.show = true
+ this.linkage = true
+ //清空跟进任务->跟进人员
+ this.formData.follow_staff_id = ''
break;
- //跟进人员
+ //跟进任务->跟进人员
case 'follow_staff_id':
- this.show_date = true
+ if(!this.formData.entry_type){
+ uni.showToast({
+ title: '请先选择跟进类型',
+ icon: 'none'
+ })
+ return
+ }
+
+ if(this.formData.entry_type == 1){
+ //市场人员列表
+ this.options = this.options_follow_staff_id_sc
+ }else{
+ //销售人员列表
+ this.options = this.options_follow_staff_id_xs
+ }
+
+ this.show = true
+ this.linkage = true
break;
//跟进任务-跟进时间(跟进任务)
case 'reminder_time':
@@ -837,25 +863,15 @@ export default {
this.show = false
let type = this.options_type
switch (type) {
- //来源渠道
- case 'source_channel':
- this.str_source_channel = e.text//选中的text值
- this.formData.source_channel = e.value//选中value值
- break;
//选择线索
case 'sales_id':
- this.str_source_channel = e.text//选中的text值
- this.formData.source_channel = e.value//选中value值
+ this.str_sales_id = e.text//选中的text值
+ this.formData.sales_id = e.value//选中value值
break;
//跟进人员
case 'staff_id':
- this.str_source_channel = e.text//选中的text值
- this.formData.source_channel = e.value//选中value值
- break;
- //跟进时间
- case 'follow_up_time':
- this.str_source_channel = e.text//选中的text值
- this.formData.source_channel = e.value//选中value值
+ this.str_staff_id = e.text//选中的text值
+ this.formData.staff_id = e.value//选中value值
break;
//购买力
case 'purchasing_power':
@@ -864,11 +880,6 @@ export default {
break;
//认知理念
case 'cognitive_concept':
- this.str_source_channel = e.text//选中的text值
- this.formData.source_channel = e.value//选中value值
- break;
- //可选上课时间
- case 'schooltime':
this.str_source_channel = e.text//选中的text值
this.formData.source_channel = e.value//选中value值
break;
@@ -896,19 +907,40 @@ export default {
this.str_source_channel = e.text//选中的text值
this.formData.source_channel = e.value//选中value值
break;
- //跟进任务-跟进时间(跟进任务)
- case 'reminder_time':
- this.str_source_channel = e.text//选中的text值
- this.formData.source_channel = e.value//选中value值
- break;
}
},
+ //关闭选择框
+ cancel() {
+ this.show = false
+ },
+
//监听-时间选择器
change_date(e) {
- //跟进时间
+
this.show_date = false
- this.formData.follow_up_time = e.result ?? ''
+ //跟进时间
+ let type = this.options_type
+ console.log('时间选择器',type,e)
+ let val = (e.result ?? '')
+ if(val){
+ val = val + ':00'
+ }
+
+ switch (type) {
+ //跟进时间
+ case 'follow_up_time':
+ this.formData.follow_up_time = val
+ break;
+ //可选上课时间
+ case 'schooltime':
+ this.formData.schooltime = val
+ break;
+ //跟进任务->跟进时间
+ case 'reminder_time':
+ this.formData.reminder_time = val
+ break;
+ }
},
//关闭时间选择器
cancel_date() {