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 | 64 ++++++++++++++++++++++++++++++-
1 files changed, 61 insertions(+), 3 deletions(-)
diff --git a/src/api/basicData/customerFile.js b/src/api/basicData/customerFile.js
index 4386a80..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,11 +45,65 @@
responseType: 'blob'
})
}
+
// 鍒犻櫎瀹㈡埛妗f
-export function delCustomer(id) {
+export function delCustomer(ids) {
return request({
- url: '/basic/customer/' + id,
- method: 'delete'
+ url: '/basic/customer/delCustomer',
+ method: 'delete',
+ data: ids
})
}
+
+// 鏂板瀹㈡埛璺熻繘
+export function addCustomerFollow(data) {
+ return request({
+ url: '/basic/customer-follow/add',
+ method: 'post',
+ data: data
+ })
+}
+
+// 淇敼瀹㈡埛璺熻繘
+export function updateCustomerFollow(data) {
+ return request({
+ url: '/basic/customer-follow/edit',
+ method: 'put',
+ data: data,
+ })
+}
+
+// 鍒犻櫎瀹㈡埛璺熻繘
+export function delCustomerFollow(id) {
+ return request({
+ 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