From 441b91381f8ec1551d37680727b70b5aba4884bb Mon Sep 17 00:00:00 2001 From: dhb52 Date: Tue, 27 Feb 2024 23:45:13 +0800 Subject: [PATCH 01/11] =?UTF-8?q?feat:=20CRM/=E6=95=B0=E6=8D=AE=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1/=E5=AE=A2=E6=88=B7=E6=80=BB=E9=87=8F=E5=88=86?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/statistics/customer.ts | 24 ++++ .../components/TotalCustomerCount.vue | 113 ++++++++++++++++ src/views/crm/statistics/customer/index.vue | 125 ++++++++++++++++++ 3 files changed, 262 insertions(+) create mode 100644 src/api/crm/statistics/customer.ts create mode 100644 src/views/crm/statistics/customer/components/TotalCustomerCount.vue create mode 100644 src/views/crm/statistics/customer/index.vue diff --git a/src/api/crm/statistics/customer.ts b/src/api/crm/statistics/customer.ts new file mode 100644 index 00000000..37c93b47 --- /dev/null +++ b/src/api/crm/statistics/customer.ts @@ -0,0 +1,24 @@ +import request from '@/config/axios' + +export interface StatisticsCustomerRespVO { + count: number + category: string +} + +// 客户总量分析 API +export const StatisticsCustomerApi = { + // 客户总量(新建) + getTotalCustomerCount: (params: any) => { + return request.get({ + url: '/crm/statistics-customer/get-total-customer-count', + params + }) + }, + // 客户总量(成交) + getDealTotalCustomerCount: (params: any) => { + return request.get({ + url: '/crm/statistics-customer/get-deal-total-customer-count', + params + }) + }, +} diff --git a/src/views/crm/statistics/customer/components/TotalCustomerCount.vue b/src/views/crm/statistics/customer/components/TotalCustomerCount.vue new file mode 100644 index 00000000..c1c5dfcd --- /dev/null +++ b/src/views/crm/statistics/customer/components/TotalCustomerCount.vue @@ -0,0 +1,113 @@ + + + diff --git a/src/views/crm/statistics/customer/index.vue b/src/views/crm/statistics/customer/index.vue new file mode 100644 index 00000000..ea2edef4 --- /dev/null +++ b/src/views/crm/statistics/customer/index.vue @@ -0,0 +1,125 @@ + + + From c9d5ec26a277dcdab9612fdd2df3b65f332bba60 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 28 Feb 2024 09:35:12 +0800 Subject: [PATCH 02/11] =?UTF-8?q?fix:=20=E4=B8=BB=E5=AD=90=E8=A1=A8=20demo?= =?UTF-8?q?03=20List=20props?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../erp/components/Demo03CourseList.vue | 46 ++++----- .../demo03/erp/components/Demo03GradeList.vue | 46 ++++----- src/views/infra/demo/demo03/erp/index.vue | 94 ++++++++++--------- 3 files changed, 101 insertions(+), 85 deletions(-) diff --git a/src/views/infra/demo/demo03/erp/components/Demo03CourseList.vue b/src/views/infra/demo/demo03/erp/components/Demo03CourseList.vue index 9d5e2705..3dce77e9 100644 --- a/src/views/infra/demo/demo03/erp/components/Demo03CourseList.vue +++ b/src/views/infra/demo/demo03/erp/components/Demo03CourseList.vue @@ -2,39 +2,40 @@ - 新增 + + 新增 - - - - + + + + - + - diff --git a/src/views/crm/statistics/customer/components/CustomerCycle.vue b/src/views/crm/statistics/customer/components/CustomerCycle.vue new file mode 100644 index 00000000..d28f345d --- /dev/null +++ b/src/views/crm/statistics/customer/components/CustomerCycle.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/views/crm/statistics/customer/components/FollowupCount.vue b/src/views/crm/statistics/customer/components/FollowupCount.vue new file mode 100644 index 00000000..e0ae1274 --- /dev/null +++ b/src/views/crm/statistics/customer/components/FollowupCount.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/views/crm/statistics/customer/components/FollowupType.vue b/src/views/crm/statistics/customer/components/FollowupType.vue new file mode 100644 index 00000000..2debcb1c --- /dev/null +++ b/src/views/crm/statistics/customer/components/FollowupType.vue @@ -0,0 +1,98 @@ + + + diff --git a/src/views/crm/statistics/customer/components/TotalCustomerCount.vue b/src/views/crm/statistics/customer/components/TotalCustomerCount.vue index c1c5dfcd..84c50d04 100644 --- a/src/views/crm/statistics/customer/components/TotalCustomerCount.vue +++ b/src/views/crm/statistics/customer/components/TotalCustomerCount.vue @@ -1,6 +1,6 @@ diff --git a/src/views/crm/contract/detail/index.vue b/src/views/crm/contract/detail/index.vue index bd30489a..f3b038ed 100644 --- a/src/views/crm/contract/detail/index.vue +++ b/src/views/crm/contract/detail/index.vue @@ -48,7 +48,7 @@ - + diff --git a/src/views/crm/statistics/customer/components/CustomerConversionStat.vue b/src/views/crm/statistics/customer/components/CustomerConversionStat.vue new file mode 100644 index 00000000..fbef26b8 --- /dev/null +++ b/src/views/crm/statistics/customer/components/CustomerConversionStat.vue @@ -0,0 +1,130 @@ + + + diff --git a/src/views/crm/statistics/customer/components/CustomerCycle.vue b/src/views/crm/statistics/customer/components/CustomerDealCycle.vue similarity index 60% rename from src/views/crm/statistics/customer/components/CustomerCycle.vue rename to src/views/crm/statistics/customer/components/CustomerDealCycle.vue index d28f345d..9243e6a3 100644 --- a/src/views/crm/statistics/customer/components/CustomerCycle.vue +++ b/src/views/crm/statistics/customer/components/CustomerDealCycle.vue @@ -11,21 +11,30 @@ - - - + + + diff --git a/src/views/crm/statistics/customer/components/TotalCustomerCount.vue b/src/views/crm/statistics/customer/components/TotalCustomerCount.vue deleted file mode 100644 index 84c50d04..00000000 --- a/src/views/crm/statistics/customer/components/TotalCustomerCount.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - diff --git a/src/views/crm/statistics/customer/index.vue b/src/views/crm/statistics/customer/index.vue index 89e2d009..8096814f 100644 --- a/src/views/crm/statistics/customer/index.vue +++ b/src/views/crm/statistics/customer/index.vue @@ -49,44 +49,44 @@ - + - - + + - - + + - + - - + + - - + + +