From fb1276b796c5212c18141fe2c732fb07d71fa31e Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 28 四月 2026 18:00:41 +0800
Subject: [PATCH] 重构客户档案

---
 src/api/basicData/customerFile.js |   98 ++++++++++++++++++++++++++++--------------------
 1 files changed, 57 insertions(+), 41 deletions(-)

diff --git a/src/api/basicData/customerFile.js b/src/api/basicData/customerFile.js
index 6a5f049..d7ed46d 100644
--- a/src/api/basicData/customerFile.js
+++ b/src/api/basicData/customerFile.js
@@ -1,57 +1,75 @@
-// 瀹㈡埛妗f椤甸潰鎺ュ彛
 import request from '@/utils/request'
 
-// 鍒嗛〉鏌ヨ
-export function listCustomer(query) {
+// 瀹㈡埛妗f绉佹捣鏌ヨ
+export function listCustomerPrivatePool(query) {
     return request({
-        url: '/basic/customer/list',
+        url: '/customerPrivatePool/listPage',
         method: 'get',
         params: query
     })
 }
-// 鏌ヨ瀹㈡埛妗f璇︾粏
-export function getCustomer(id) {
+
+export function addCustomerPrivatePool(data) {
     return request({
-        url: '/basic/customer/' + id,
-        method: 'get'
-    })
-}
-// 鏂板瀹㈡埛妗f
-export function addCustomer(data) {
-    return request({
-        url: '/basic/customer/addCustomer',
+        url: '/customerPrivatePool/add',
         method: 'post',
         data: data
     })
 }
-// 淇敼瀹㈡埛妗f
-export function updateCustomer(data) {
+
+export function addCustomerPrivate(data) {
     return request({
-        url: '/basic/customer/updateCustomer',
+        url: '/customerPrivate/add',
         method: 'post',
         data: data
     })
 }
-// 瀵煎嚭瀹㈡埛妗f
-export function exportCustomer(query) {
+
+export function delCustomerPrivate(ids) {
     return request({
-        url: '/basic/customer/export',
-        method: 'get',
-        params: query,
-        responseType: 'blob'
-    })
-}
-// 鍒犻櫎瀹㈡埛妗f
-export function delCustomer(ids) {
-    return request({
-        url: '/basic/customer/delCustomer',
+        url: '/customerPrivate/delete',
         method: 'delete',
         data: ids
     })
 }
 
+export function delCustomerPrivatePool(id) {
+    return request({
+        url: '/customerPrivatePool/delete/' + id,
+        method: 'delete',
+    })
+}
 
-// 鏂板瀹㈡埛璺熻繘
+export function shareCustomer(data) {
+    return request({
+        url: '/customerPrivatePool/together',
+        method: 'post',
+        data: data
+    })
+}
+
+export function getCustomerPrivatePoolById(id) {
+    return request({
+        url: '/customerPrivatePool/getbyId/' + id,
+        method: 'get'
+    })
+}
+
+export function getCustomerPrivatePoolInfo(id) {
+    return request({
+        url: '/customerPrivatePool/info/' + id,
+        method: 'get'
+    })
+}
+
+export function updateCustomerPrivatePool(data) {
+    return request({
+        url: '/customerPrivatePool/update',
+        method: 'put',
+        data: data
+    })
+}
+
 export function addCustomerFollow(data) {
     return request({
         url: '/basic/customer-follow/add',
@@ -60,23 +78,21 @@
     })
 }
 
-// 淇敼瀹㈡埛璺熻繘
 export function updateCustomerFollow(data) {
-  return request({
-    url: '/basic/customer-follow/edit',
-    method: 'put',
-    data: data,
-  })
+    return request({
+        url: '/basic/customer-follow/edit',
+        method: 'put',
+        data: data,
+    })
 }
-// 鍒犻櫎瀹㈡埛璺熻繘
+
 export function delCustomerFollow(id) {
     return request({
-        url: '/basic/customer-follow/'+id,
+        url: '/basic/customer-follow/' + id,
         method: 'delete',
     })
 }
 
-// 鍥炶鎻愰啋-鏂板/鏇存柊
 export function addReturnVisit(data) {
     return request({
         url: '/basic/customer-follow/return-visit',
@@ -84,10 +100,10 @@
         data: data
     })
 }
-// 鑾峰彇鍥炶鎻愰啋璇︽儏
+
 export function getReturnVisit(id) {
     return request({
         url: '/basic/customer-follow/return-visit/' + id,
         method: 'get'
     })
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3