From ec1290f770d320e70c1e3a2ef75bee9a2d324631 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Fri, 30 May 2025 19:57:16 +0800
Subject: [PATCH] =?UTF-8?q?refactor(market):=20=E9=87=8D=E6=9E=84=E5=B8=82?=
=?UTF-8?q?=E5=9C=BA=E4=BA=BA=E5=91=98=E5=92=8C=E9=94=80=E5=94=AE=E4=BA=BA?=
=?UTF-8?q?=E5=91=98=E7=9A=84=E9=A6=96=E9=A1=B5=E5=B1=95=E7=A4=BA=E9=80=BB?=
=?UTF-8?q?=E8=BE=91-=20=E4=B8=BA=E5=B8=82=E5=9C=BA=E4=BA=BA=E5=91=98?=
=?UTF-8?q?=E5=92=8C=E9=94=80=E5=94=AE=E4=BA=BA=E5=91=98=E5=88=86=E5=88=AB?=
=?UTF-8?q?=E8=AE=BE=E8=AE=A1=E4=B8=8D=E5=90=8C=E7=9A=84=E5=B1=95=E7=A4=BA?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=20-=20=E6=B7=BB=E5=8A=A0=E6=96=B0=E7=9A=84?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E6=8E=A5=E5=8F=A3=E5=92=8C?=
=?UTF-8?q?=E5=B1=95=E7=A4=BA=E7=BB=84=E4=BB=B6=20-=20=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E5=92=8C=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?=EF=BC=8C=E6=8F=90=E9=AB=98=E5=8F=AF=E8=AF=BB=E6=80=A7=E5=92=8C?=
=?UTF-8?q?=E6=98=93=E7=94=A8=E6=80=A7=20-=20=E5=A2=9E=E5=8A=A0=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BA=8E=E4=B8=AA=E6=80=A7=E5=8C=96=E5=B1=95?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/apiRoute.js | 10 ++
pages/market/index/index.vue | 309 +++++++++++++++++++++++++++--------
2 files changed, 254 insertions(+), 65 deletions(-)
diff --git a/api/apiRoute.js b/api/apiRoute.js
index 94806c7..0e4da2e 100644
--- a/api/apiRoute.js
+++ b/api/apiRoute.js
@@ -321,6 +321,16 @@ export default {
})
},
+ //员工端统计(销售)-获取销售首页数据统计
+ xs_statisticsMarketHome(data = {}) {
+ let url = '/statistics/marketHome'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
+
+
+
diff --git a/pages/market/index/index.vue b/pages/market/index/index.vue
index 96a5f0e..feae96e 100644
--- a/pages/market/index/index.vue
+++ b/pages/market/index/index.vue
@@ -7,7 +7,9 @@
-
+
+
+
@@ -22,65 +24,68 @@
- 目标
+ 拉新总数
- {{infoData.goal}}元
+ {{infoData.month.new_total}}人
+
- 预测
+ 已分配
- {{infoData.yc_yj}}元
+ {{infoData.month.new_total}}人
+
- 成交
+ 昨日拉新
+
+ {{infoData.month.yesterday_new}}人
+
+
+
+
+
+
+
+ 今日拉新
- {{infoData.cj_yj}}元
+ {{infoData.month.today_new}}人
-
-
-
-
-
-
-
-
-
-
+
- {{infoData.date}}
+ {{infoData.date_range}}
-
+
-
- {{ infoData.goal_percent }}%
+
+ {{ infoData.month.yesterday_new_rate }}%
- 目标
+ 昨日
-
+
-
- {{ infoData.yc_yj_percent }}%
+
+ {{ infoData.month.assigned_sales_rate }}%
- 预测
+ 分配
-
+
-
- {{ infoData.cj_yj_percent }}%
+
+ {{ infoData.month.today_new_rate }}%
- 成交
+ 今日
@@ -88,13 +93,15 @@
+
+
- 本月业绩
+ 上月业绩
@@ -105,73 +112,224 @@
- 待联系
+ 拉新总数
- 50个
+ {{infoData.last_month.new_total}}人
+
- 待领取
+ 已分配
- {{infoData.dlq}}个
+ {{infoData.last_month.assigned_sales}}人
+
- 待释放
+ 昨日拉新
- {{infoData.dsf}}个
+ {{infoData.last_month.yesterday_new}}人
-
-
-
-
-
-
-
-
-
- 待协作
+ 今日拉新
- {{infoData.dxz}}个
+ {{infoData.last_month.today_new}}人
-
-
-
-
-
-
-
-
- 消息
-
- {{infoData.xx}}个
-
-
+
+
+
+
+
+
+
+
+ 本月业绩
+
+
+
+
+
+
+
+
+ 已分配
+
+ {{infoData.month.assigned_clients}}人
+
+
+
+
+
+
+
+ 已沟通
+
+ {{infoData.month.contacted_clients}}人
+
+
+
+
+
+
+
+ 未成交
+
+ {{infoData.month.unconverted_clients}}人
+
+
+
+
+
+
+
+ 待续费
+
+ {{infoData.month.renewal_clients}}人
+
+
+
+
+
+
+
+ 已关单
+
+ {{infoData.month.closed_clients}}人
+
+
+
+
+
+
+
+
+ {{infoData.date}}
+
+
+
+
+
+ {{ infoData.goal_percent }}%
+
+ 目标
+
+
+
+
+
+ {{ infoData.yc_yj_percent }}%
+
+ 预测
+
+
+
+
+
+ {{ infoData.cj_yj_percent }}%
+
+ 成交
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上月业绩
+
+
+
+
+
+
+
+
+
+
+ 已分配
+
+ {{infoData.last_month.assigned_clients}}人
+
+
+
+
+
+
+ 已沟通
+
+ {{infoData.last_month.contacted_clients}}人
+
+
+
+
+
+
+
+
+
+ 未成交
+
+ {{infoData.last_month.unconverted_clients}}个
+
+
+
+
+
+
+ 待续费
+
+ {{infoData.last_month.renewal_clients}}人
+
+
+
+
+
+
+
+
+
+
+ 已关单
+
+ {{infoData.last_month.closed_clients}}人
+
+
+
+
+
+