From ac2c893f239a0299a5c94360f3e77a94f5404a7f Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Mon, 14 Apr 2025 18:16:18 +0800
Subject: [PATCH] =?UTF-8?q?refactor(market):=20=E9=87=8D=E6=9E=84=E7=BA=BF?=
=?UTF-8?q?=E7=B4=A2=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 调整了表单字段的顺序和布局
- 从"基础信息"中移除了部分字段,增加了"跟进任务"部分
- 修改了部分字段的标签名称,如"学员手机号"改为"电话","归属人员"改为"顾问"- 添加了"是否创建跟进任务"的开关选项
- 优化了表单验证规则和错误提示信息
---
pages/market/clue/add_clues.vue | 236 ++++++++++++++------------------
1 file changed, 100 insertions(+), 136 deletions(-)
diff --git a/pages/market/clue/add_clues.vue b/pages/market/clue/add_clues.vue
index 71ecde9..0f5cb72 100644
--- a/pages/market/clue/add_clues.vue
+++ b/pages/market/clue/add_clues.vue
@@ -12,76 +12,6 @@
基础信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 男
-
-
-
-
-
- 女
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -96,7 +26,6 @@
-
@@ -111,7 +40,7 @@
-
@@ -126,82 +55,97 @@
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
- 附加信息
+
+
+ 跟进任务
-
-
+
+
+
+
+
-
-
-
-
+
-
-
-
-
-
-
+
+
+
+
@@ -237,7 +181,7 @@ const rules = [
{
name: "student_phone",
rule: ["required", "isMobile"],
- msg: ["请输入学员手机号", "请输入正确的手机号"]
+ msg: ["请输入电话", "请输入正确的手机号"]
},
{
name: "age",
@@ -267,7 +211,7 @@ const rules = [
{
name: "add_staff_id",
rule: ["required"],
- msg: ["请选择归属人员"]
+ msg: ["请选择顾问"]
},
{
name: "contact_name",
@@ -302,13 +246,13 @@ export default {
formData: {
sex:'1',//性别|0=保密,1=男,2=女
student_name: '',//学员姓名*
- student_phone: '',//学员手机号*
+ student_phone: '',//电话*
age: '',//年龄*
school_name: '',//学校
grade: '',//年级
class_name: '',//班级
customer_source: '',//客户来源*
- add_staff_id: '',//归属人员id*
+ add_staff_id: '',//顾问id*
contact_name: '',//联系人*
province_id: '',//所在地区-省
city_id: '',//所在地区-市
@@ -326,6 +270,8 @@ export default {
reminder_method:'',//1=短信,2=邮箱,3=微信模板消息
},
+ is_follow:true,//是否创建跟进任务
+
show_date: false,
@@ -422,7 +368,7 @@ export default {
'text': '渠道2'
}
],//客户来源可选值
- //归属人员(add_staff_id,添加这条数据的工作人员id)
+ //顾问(add_staff_id,添加这条数据的工作人员id)
result_add_staff_id: '',//选中项的中文名称
options_add_staff_id: [
// {
@@ -571,7 +517,7 @@ export default {
}
if(!data.student_phone){
uni.showToast({
- title: '学员手机号必填',
+ title: '电话必填',
icon: 'none'
})
return false
@@ -592,7 +538,7 @@ export default {
}
if(!data.staff_id){
uni.showToast({
- title: '归属人员必填',
+ title: '顾问必填',
icon: 'none'
})
return false
@@ -718,7 +664,7 @@ export default {
this.result_customer_source = e.result
this.formData.customer_source = e.value
} else if (this.options_type == 2) {
- //归属人员(添加这条数据的工作人员id)
+ //顾问(添加这条数据的工作人员id)
this.result_add_staff_id = e.result
this.formData.add_staff_id = e.value
} else if (this.options_type == 3) {
@@ -782,6 +728,24 @@ export default {
changeSex(e){
this.formData.sex = e.detail.value
},
+
+ //监听-是否创建跟进任务
+ changeIsFollow(e) {
+ console.log(111, e.detail.value)
+ this.is_follow = e.detail.value
+ //是否创建跟进任务 1跟进
+ if (this.is_follow) {
+ this.formData.is_follow = '1'
+ } else {
+ //2不跟进
+ this.formData.is_follow = '2'
+
+ // this.formData. = ''//跟进类型
+ // this.formData.staff_id = ''//跟进人员
+ // this.formData.follow_up_time = ''//跟进时间
+ // this.formData. = ''//备注
+ }
+ },
}
}