From 3d35d4292850d368666d5290d8e658c620e932ed Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期四, 16 四月 2026 17:54:46 +0800
Subject: [PATCH] feat(customer): 新增客户交接功能并优化客户档案管理界面

---
 src/api/basicData/customerFile.js |   44 ++++++++++++++++++++++++++++++++++++++------
 1 files changed, 38 insertions(+), 6 deletions(-)

diff --git a/src/api/basicData/customerFile.js b/src/api/basicData/customerFile.js
index 8685664..489ccf5 100644
--- a/src/api/basicData/customerFile.js
+++ b/src/api/basicData/customerFile.js
@@ -9,6 +9,7 @@
         params: query
     })
 }
+
 // 鏌ヨ瀹㈡埛妗f璇︾粏
 export function getCustomer(id) {
     return request({
@@ -16,6 +17,7 @@
         method: 'get'
     })
 }
+
 // 鏂板瀹㈡埛妗f
 export function addCustomer(data) {
     return request({
@@ -24,6 +26,7 @@
         data: data
     })
 }
+
 // 淇敼瀹㈡埛妗f
 export function updateCustomer(data) {
     return request({
@@ -32,6 +35,7 @@
         data: data
     })
 }
+
 // 瀵煎嚭瀹㈡埛妗f
 export function exportCustomer(query) {
     return request({
@@ -41,6 +45,7 @@
         responseType: 'blob'
     })
 }
+
 // 鍒犻櫎瀹㈡埛妗f
 export function delCustomer(ids) {
     return request({
@@ -62,16 +67,43 @@
 
 // 淇敼瀹㈡埛璺熻繘
 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',
+        method: 'post',
+        data: data
+    })
+}
+
+// 鑾峰彇鍥炶鎻愰啋璇︽儏
+export function getReturnVisit(id) {
+    return request({
+        url: '/basic/customer-follow/return-visit/' + id,
+        method: 'get'
+    })
+}
+
+// 淇敼瀹㈡埛妗f
+export function transferCustomer(data) {
+    return request({
+        url: '/basic/customer/transferCustomer',
+        method: 'patch',
+        data: data
+    })
 }
\ No newline at end of file

--
Gitblit v1.9.3