From 9cbb3aa84a6adee46bde55208d2ee42f3babdc90 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 14 Jan 2024 21:48:20 +0800 Subject: [PATCH] =?UTF-8?q?crm-=E5=AE=A2=E6=88=B7=EF=BC=9A=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E8=BD=AC=E7=A7=BB=E5=92=8C=E6=8C=89=E9=92=AE=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/customer/index.ts | 11 ++ src/views/crm/customer/detail/index.vue | 53 ++++-- .../permission/components/PermissionList.vue | 172 +++++++++++------- .../permission/components/TransferForm.vue | 121 ++++++++++++ 4 files changed, 284 insertions(+), 73 deletions(-) create mode 100644 src/views/crm/permission/components/TransferForm.vue 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 @@