From 9e054928a2c502864296aea7c1fa079682b1cb9b Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Sun, 18 May 2025 21:52:39 +0800
Subject: [PATCH] =?UTF-8?q?refactor(market):=20=E9=87=8D=E6=9E=84=E5=B8=82?=
=?UTF-8?q?=E5=9C=BA=E7=BA=BF=E7=B4=A2=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 将原有单页表单拆分为两步:添加客户和六要素信息- 新增字典数据获取接口和方法
- 优化下拉选择器逻辑,支持动态加载选项
- 重新组织表单验证逻辑,按步骤进行验证
- 更新提交接口和成功后的处理流程
- 调整页面样式和布局,提高用户体验
---
api/apiRoute.js | 15 +
pages/market/clue/add_clues.vue | 749 +++++++++++++++++++-------------
pages/market/clue/index.vue | 2 +-
3 files changed, 453 insertions(+), 313 deletions(-)
diff --git a/api/apiRoute.js b/api/apiRoute.js
index 409374b..0ed38d9 100644
--- a/api/apiRoute.js
+++ b/api/apiRoute.js
@@ -38,6 +38,13 @@ export default {
return res;
})
},
+ //获取字典数据
+ common_Dictionary(data = {}) {
+ let url = '/common/getDictionary'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
@@ -118,12 +125,20 @@ export default {
//↓↓↓↓↓↓↓↓↓↓↓↓-----销售接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓
+ //修改销售端个人资料
editPersonnel(data = {}) {
let url = '/personnel/info'
return http.get(url, data).then(res => {
return res;
})
},
+ //销售端
+ xs_addCustomerResources(data = {}) {
+ let url = '/customerResources/add'
+ return http.post(url, data).then(res => {
+ return res;
+ })
+ },
diff --git a/pages/market/clue/add_clues.vue b/pages/market/clue/add_clues.vue
index 76541c0..7eeb4e4 100644
--- a/pages/market/clue/add_clues.vue
+++ b/pages/market/clue/add_clues.vue
@@ -14,12 +14,12 @@
-
-
-
-
- 查重
-
+
+
+
+
+
+
@@ -66,6 +66,7 @@
+
+
+
+
+
+
-
-
-
-
- {{ (formData.purchasing_power) ? picker_config.purchasing_power.text : '点击选择' }}
-
-
-
-
-
-
-
- {{ (formData.cognitive_idea) ? picker_config.cognitive_idea.text : '点击选择' }}
-
-
-
-
-
-
-
- {{ (formData.optional_class_time) ? formData.optional_class_time : '点击选择' }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (formData.campus) ? picker_config.campus.text : '点击选择' }}
-
-
-
- 下一步
+ 下一步
- 六要素
+
+
+
+ 六要素信息
+
+
+
+
+
+ {{ (formData.purchasing_power) ? picker_config.purchasing_power.text : '点击选择' }}
+
+
+
+
+
+
+
+ {{ (formData.cognitive_idea) ? picker_config.cognitive_idea.text : '点击选择' }}
+
+
+
+
+
+
+
+ {{ (formData.optional_class_time) ? formData.optional_class_time : '点击选择' }}
+
+
+
+
+
+
+
+ {{ (formData.promised_visit_time) ? formData.promised_visit_time : '点击选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
@@ -451,6 +505,7 @@
diff --git a/pages/market/clue/index.vue b/pages/market/clue/index.vue
index fca4c4e..3c97d58 100644
--- a/pages/market/clue/index.vue
+++ b/pages/market/clue/index.vue
@@ -182,7 +182,7 @@ export default {
},
onLoad(options) {},
onShow(){
- this.init()//初始化
+ // this.init()//初始化
},
//下拉刷新
async onPullDownRefresh() {