diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts
index 0484bc43..4542c86a 100644
--- a/src/api/crm/customer/index.ts
+++ b/src/api/crm/customer/index.ts
@@ -75,6 +75,17 @@ export const getOperateLogPage = async (id: number) => {
// ======================= 业务操作 =======================
+export interface TransferReqVO {
+ id: number | undefined // 客户编号
+ newOwnerUserId: number | undefined // 新负责人的用户编号
+ oldOwnerPermissionLevel: number | undefined // 老负责人加入团队后的权限级别
+}
+
+// 客户转移
+export const transfer = async (data: TransferReqVO) => {
+ return await request.put({ url: '/crm/customer/transfer', data })
+}
+
// 锁定/解锁客户
export const lockCustomer = async (id: number, lockStatus: boolean) => {
return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } })
diff --git a/src/views/crm/customer/detail/index.vue b/src/views/crm/customer/detail/index.vue
index 995990cb..425ba3ce 100644
--- a/src/views/crm/customer/detail/index.vue
+++ b/src/views/crm/customer/detail/index.vue
@@ -1,19 +1,38 @@
-
-
+
编辑
-
- 转移
-
- 更改成交状态
- 解锁
- 锁定
+
+ 转移
+
+ 更改成交状态
+
+ 解锁
+
+
+ 锁定
+
领取客户
- 客户放入公海
+
+ 客户放入公海
+
@@ -30,7 +49,12 @@
-
+
@@ -48,6 +72,7 @@
+