From 13e925e29f63a17014c3a2740aa6ecd69aa518a5 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 3 Mar 2024 20:11:52 +0800 Subject: [PATCH] =?UTF-8?q?CRM=EF=BC=9A=E5=AE=8C=E5=96=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9D=83=E9=99=90=EF=BC=8C=E5=AE=9E=E7=8E=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9D=83=E9=99=90=E5=90=8C=E6=97=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E3=80=81=E5=90=8C=E6=97=B6=E8=BD=AC=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/business/index.ts | 2 +- src/api/crm/clue/index.ts | 2 +- src/api/crm/contact/index.ts | 2 +- src/api/crm/contract/index.ts | 2 +- src/api/crm/customer/index.ts | 7 +- src/api/crm/permission/index.ts | 8 ++ src/views/crm/business/detail/index.vue | 22 ++--- src/views/crm/clue/detail/index.vue | 6 +- .../crm/contact/components/ContactList.vue | 45 ++++++----- .../contact/components/ContactListModal.vue | 52 ++++++------ src/views/crm/contact/detail/index.vue | 16 ++-- src/views/crm/contract/detail/index.vue | 5 +- src/views/crm/customer/detail/index.vue | 4 +- .../permission/components/PermissionForm.vue | 17 ++-- .../permission/components/TransferForm.vue | 80 +++++++++++++------ 15 files changed, 159 insertions(+), 111 deletions(-) diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index b6661765..24204255 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import { TransferReqVO } from '@/api/crm/customer' +import { TransferReqVO } from '@/api/crm/permission' export interface BusinessVO { id: number diff --git a/src/api/crm/clue/index.ts b/src/api/crm/clue/index.ts index 170f244d..9736514d 100644 --- a/src/api/crm/clue/index.ts +++ b/src/api/crm/clue/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import { TransferReqVO } from '@/api/crm/customer' +import { TransferReqVO } from '@/api/crm/permission' export interface ClueVO { id: number // 编号 diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index 67036194..7c24dfa9 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import { TransferReqVO } from '@/api/crm/customer' +import { TransferReqVO } from '@/api/crm/permission' export interface ContactVO { id: number // 编号 diff --git a/src/api/crm/contract/index.ts b/src/api/crm/contract/index.ts index faee9495..7028b774 100644 --- a/src/api/crm/contract/index.ts +++ b/src/api/crm/contract/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import { TransferReqVO } from '@/api/crm/customer' +import { TransferReqVO } from '@/api/crm/permission' export interface ContractVO { id: number diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index c684e98d..d149d4e7 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -1,4 +1,5 @@ import request from '@/config/axios' +import { TransferReqVO } from '@/api/crm/permission' export interface CustomerVO { id: number // 编号 @@ -102,12 +103,6 @@ export const getCustomerSimpleList = async () => { // ======================= 业务操作 ======================= -export interface TransferReqVO { - id: number | undefined // 客户编号 - newOwnerUserId: number | undefined // 新负责人的用户编号 - oldOwnerPermissionLevel: number | undefined // 老负责人加入团队后的权限级别 -} - // 客户转移 export const transferCustomer = async (data: TransferReqVO) => { return await request.put({ url: '/crm/customer/transfer', data }) diff --git a/src/api/crm/permission/index.ts b/src/api/crm/permission/index.ts index 31f9e18d..e1f31747 100644 --- a/src/api/crm/permission/index.ts +++ b/src/api/crm/permission/index.ts @@ -6,6 +6,7 @@ export interface PermissionVO { bizType: number // Crm 类型 bizId: number // Crm 类型数据编号 level: number // 权限级别 + toBizTypes?: number[] // 同时添加至 deptName?: string // 部门名称 nickname?: string // 用户昵称 postNames?: string[] // 岗位名称数组 @@ -13,6 +14,13 @@ export interface PermissionVO { ids?: number[] } +export interface TransferReqVO { + bizId: number // 模块编号 + newOwnerUserId: number // 新负责人的用户编号 + oldOwnerPermissionLevel: number // 老负责人加入团队后的权限级别 + toBizTypes?: number[] // 转移客户时,需要额外有【联系人】【商机】【合同】的 checkbox 选择 +} + /** * CRM 业务类型枚举 * diff --git a/src/views/crm/business/detail/index.vue b/src/views/crm/business/detail/index.vue index 6b86a41e..0c280734 100644 --- a/src/views/crm/business/detail/index.vue +++ b/src/views/crm/business/detail/index.vue @@ -4,8 +4,8 @@ 编辑 @@ -53,13 +53,12 @@ - - - + + + diff --git a/src/views/crm/clue/detail/index.vue b/src/views/crm/clue/detail/index.vue index f9074c14..8f005e1c 100644 --- a/src/views/crm/clue/detail/index.vue +++ b/src/views/crm/clue/detail/index.vue @@ -18,7 +18,7 @@ > 转化为客户 - 已转化客户 + 已转化客户 @@ -45,7 +45,7 @@ - + diff --git a/src/views/crm/contract/detail/index.vue b/src/views/crm/contract/detail/index.vue index bd30489a..f3b038ed 100644 --- a/src/views/crm/contract/detail/index.vue +++ b/src/views/crm/contract/detail/index.vue @@ -48,7 +48,7 @@ - +