From b35039bcd6b21e26bc01d2ad8de328456b272d16 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 26 十月 2026 10:56:41 +0800
Subject: [PATCH] Merge branch 'dev_海西州_北京同仁堂' into dev_海西州_惠牧

---
 src/api/crm/customer/index.ts |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts
index 38d6e04..2259fae 100644
--- a/src/api/crm/customer/index.ts
+++ b/src/api/crm/customer/index.ts
@@ -18,7 +18,6 @@
     ownerUserDept?: string; // 璐熻矗浜虹殑閮ㄩ棬鍚嶇О
     ownerUserDeptName?: string; // 璐熻矗浜虹殑閮ㄩ棬鍚嶇О
     lockStatus?: boolean;
-    dealStatus?: boolean;
     autoPoolEnabled?: boolean; // 鏄惁娴佸叆鍏捣锛屽叧闂椂鍙栨秷鍏捣鍙搴�
     mobile: string; // 鎵嬫満鍙�
     telephone: string; // 鐢佃瘽
@@ -37,6 +36,8 @@
     createTime: Date; // 鍒涘缓鏃堕棿
     updateTime: Date; // 鏇存柊鏃堕棿
     poolDay?: number; // 璺濈杩涘叆鍏捣澶╂暟
+    contractCount?: number; // 宸茬璁㈠悎鍚屾暟閲忥紙瀹℃壒鐘舵�佷负瀹℃牳閫氳繃锛夛紝娌℃湁鍒欎负 0
+    contractTotalPrice?: null | number; // 宸茬璁㈠悎鍚岄噾棰濆悎璁★紙瀹℃牳閫氳繃锛夛紝娌℃湁鍒欎负 null
   }
 
   /** 瀹㈡埛瀵煎叆璇锋眰 */
@@ -59,6 +60,21 @@
   return requestClient.get<PageResult<CrmCustomerApi.Customer>>(
     '/crm/customer/page',
     { params },
+  );
+}
+
+/** 鏌ヨ涓氬姟妯″潡瀹㈡埛鍒楄〃锛堜笉鍙� CRM 璐熻矗浜烘潈闄愯繃婊わ級 */
+export function getBusinessCustomerPage(params: PageParam) {
+  return requestClient.get<PageResult<CrmCustomerApi.Customer>>(
+    '/crm/customer/business-page',
+    { params },
+  );
+}
+
+/** 鏌ヨ涓氬姟妯″潡鍏宠仈瀹㈡埛璇︽儏锛堜笉鍙� CRM 璐熻矗浜烘潈闄愯繃婊わ級 */
+export function getBusinessCustomer(id: number) {
+  return requestClient.get<CrmCustomerApi.Customer>(
+    `/crm/customer/business-get?id=${id}`,
   );
 }
 
@@ -134,13 +150,6 @@
 /** 瀹㈡埛鏀惧叆鍏捣 */
 export function putCustomerPool(id: number) {
   return requestClient.put(`/crm/customer/put-pool?id=${id}`);
-}
-
-/** 鏇存柊瀹㈡埛鐨勬垚浜ょ姸鎬� */
-export function updateCustomerDealStatus(id: number, dealStatus: boolean) {
-  return requestClient.put(
-    `/crm/customer/update-deal-status?id=${id}&dealStatus=${dealStatus}`,
-  );
 }
 
 /** 杩涘叆鍏捣瀹㈡埛鎻愰啋鐨勫鎴峰垪琛� */

--
Gitblit v1.9.3