From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目

---
 src/api/crm/statistics/funnel.ts |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 58 insertions(+), 0 deletions(-)

diff --git a/src/api/crm/statistics/funnel.ts b/src/api/crm/statistics/funnel.ts
new file mode 100644
index 0000000..574a5f4
--- /dev/null
+++ b/src/api/crm/statistics/funnel.ts
@@ -0,0 +1,58 @@
+import request from '@/config/axios'
+
+export interface CrmStatisticFunnelRespVO {
+  customerCount: number // 瀹㈡埛鏁�
+  businessCount: number // 鍟嗘満鏁�
+  businessWinCount: number // 璧㈠崟鏁�
+}
+
+export interface CrmStatisticsBusinessSummaryByDateRespVO {
+  time: string // 鏃堕棿
+  businessCreateCount: number // 鍟嗘満鏁�
+  totalPrice: number | string // 鍟嗘満閲戦
+}
+
+export interface CrmStatisticsBusinessInversionRateSummaryByDateRespVO {
+  time: string // 鏃堕棿
+  businessCount: number // 鍟嗘満鏁伴噺
+  businessWinCount: number // 璧㈠崟鍟嗘満鏁�
+}
+
+// 瀹㈡埛鍒嗘瀽 API
+export const StatisticFunnelApi = {
+  // 1. 鑾峰彇閿�鍞紡鏂楃粺璁℃暟鎹�
+  getFunnelSummary: (params: any) => {
+    return request.get({
+      url: '/crm/statistics-funnel/get-funnel-summary',
+      params
+    })
+  },
+  // 2. 鑾峰彇鍟嗘満缁撴潫鐘舵�佺粺璁�
+  getBusinessSummaryByEndStatus: (params: any) => {
+    return request.get({
+      url: '/crm/statistics-funnel/get-business-summary-by-end-status',
+      params
+    })
+  },
+  // 3. 鑾峰彇鏂板鍟嗘満鍒嗘瀽(鎸夋棩鏈�)
+  getBusinessSummaryByDate: (params: any) => {
+    return request.get({
+      url: '/crm/statistics-funnel/get-business-summary-by-date',
+      params
+    })
+  },
+  // 4. 鑾峰彇鍟嗘満杞寲鐜囧垎鏋�(鎸夋棩鏈�)
+  getBusinessInversionRateSummaryByDate: (params: any) => {
+    return request.get({
+      url: '/crm/statistics-funnel/get-business-inversion-rate-summary-by-date',
+      params
+    })
+  },
+  // 5. 鑾峰彇鍟嗘満鍒楄〃(鎸夋棩鏈�)
+  getBusinessPageByDate: (params: any) => {
+    return request.get({
+      url: '/crm/statistics-funnel/get-business-page-by-date',
+      params
+    })
+  }
+}

--
Gitblit v1.8.0