From cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:03:32 +0800
Subject: [PATCH] feat(mdm): 物料列表隐藏辅单位与销售价列

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

diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts
index 038625f..874fbc3 100644
--- a/src/api/crm/customer/index.ts
+++ b/src/api/crm/customer/index.ts
@@ -18,7 +18,7 @@
     ownerUserDept?: string; // 璐熻矗浜虹殑閮ㄩ棬鍚嶇О
     ownerUserDeptName?: string; // 璐熻矗浜虹殑閮ㄩ棬鍚嶇О
     lockStatus?: boolean;
-    dealStatus?: boolean;
+    autoPoolEnabled?: boolean; // 鏄惁娴佸叆鍏捣锛屽叧闂椂鍙栨秷鍏捣鍙搴�
     mobile: string; // 鎵嬫満鍙�
     telephone: string; // 鐢佃瘽
     qq: string; // QQ
@@ -36,6 +36,8 @@
     createTime: Date; // 鍒涘缓鏃堕棿
     updateTime: Date; // 鏇存柊鏃堕棿
     poolDay?: number; // 璺濈杩涘叆鍏捣澶╂暟
+    contractCount?: number; // 宸茬璁㈠悎鍚屾暟閲忥紙瀹℃壒鐘舵�佷负瀹℃牳閫氳繃锛夛紝娌℃湁鍒欎负 0
+    contractTotalPrice?: null | number; // 宸茬璁㈠悎鍚岄噾棰濆悎璁★紙瀹℃牳閫氳繃锛夛紝娌℃湁鍒欎负 null
   }
 
   /** 瀹㈡埛瀵煎叆璇锋眰 */
@@ -43,6 +45,13 @@
     ownerUserId: number;
     file: File;
     updateSupport: boolean;
+  }
+
+  /** 瀹㈡埛瀵煎叆缁撴灉 */
+  export interface CustomerImportRespVO {
+    createCustomerNames?: string[]; // 鏂板鎴愬姛鐨勫鎴峰悕
+    updateCustomerNames?: string[]; // 鏇存柊鎴愬姛鐨勫鎴峰悕
+    failureCustomerNames?: Record<string, string>; // 瀵煎叆澶辫触鐨勫鎴峰悕鍙婂師鍥�
   }
 }
 
@@ -88,7 +97,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 +122,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汉 */
@@ -121,13 +135,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