From 48e9b7d100ddd91a13e79e09bb5d992a62ffd026 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 13 十月 2026 14:34:16 +0800
Subject: [PATCH] fix(crm): 统一日期格式化并添加客户公海配置选项

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

diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts
index 038625f..38d6e04 100644
--- a/src/api/crm/customer/index.ts
+++ b/src/api/crm/customer/index.ts
@@ -19,6 +19,7 @@
     ownerUserDeptName?: string; // 璐熻矗浜虹殑閮ㄩ棬鍚嶇О
     lockStatus?: boolean;
     dealStatus?: boolean;
+    autoPoolEnabled?: boolean; // 鏄惁娴佸叆鍏捣锛屽叧闂椂鍙栨秷鍏捣鍙搴�
     mobile: string; // 鎵嬫満鍙�
     telephone: string; // 鐢佃瘽
     qq: string; // QQ
@@ -43,6 +44,13 @@
     ownerUserId: number;
     file: File;
     updateSupport: boolean;
+  }
+
+  /** 瀹㈡埛瀵煎叆缁撴灉 */
+  export interface CustomerImportRespVO {
+    createCustomerNames?: string[]; // 鏂板鎴愬姛鐨勫鎴峰悕
+    updateCustomerNames?: string[]; // 鏇存柊鎴愬姛鐨勫鎴峰悕
+    failureCustomerNames?: Record<string, string>; // 瀵煎叆澶辫触鐨勫鎴峰悕鍙婂師鍥�
   }
 }
 
@@ -88,7 +96,10 @@
 
 /** 瀵煎叆瀹㈡埛 */
 export function importCustomer(data: CrmCustomerApi.CustomerImportReqVO) {
-  return requestClient.upload('/crm/customer/import', data);
+  return requestClient.upload<CrmCustomerApi.CustomerImportRespVO>(
+    '/crm/customer/import',
+    data,
+  );
 }
 
 /** 鑾峰彇瀹㈡埛绮剧畝淇℃伅鍒楄〃 */
@@ -110,7 +121,9 @@
 
 /** 棰嗗彇鍏捣瀹㈡埛 */
 export function receiveCustomer(ids: number[]) {
-  return requestClient.put('/crm/customer/receive', { ids: ids.join(',') });
+  return requestClient.put('/crm/customer/receive', null, {
+    params: { ids: ids.join(',') },
+  });
 }
 
 /** 鍒嗛厤鍏捣缁欏搴旇礋璐d汉 */

--
Gitblit v1.9.3