From dcfe1abb6703702a4e94facfa4b73e1af169278d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 24 Feb 2024 19:35:24 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CRM=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=95=86=E6=9C=BA=E5=85=B3=E8=81=94=E8=81=94=E7=B3=BB=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/contact/index.ts | 15 ++++ .../crm/contact/components/ContactList.vue | 69 ++++++++++++++++++- 2 files changed, 82 insertions(+), 2 deletions(-) diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index e16646cc..67036194 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -37,6 +37,11 @@ export interface ContactBusinessReqVO { businessIds: number[] } +export interface ContactBusiness2ReqVO { + businessId: number + contactIds: number[] +} + // 查询 CRM 联系人列表 export const getContactPage = async (params) => { return await request.get({ url: `/crm/contact/page`, params }) @@ -87,11 +92,21 @@ export const createContactBusinessList = async (data: ContactBusinessReqVO) => { return await request.post({ url: `/crm/contact/create-business-list`, data }) } +// 批量新增联系人商机关联 +export const createContactBusinessList2 = async (data: ContactBusiness2ReqVO) => { + return await request.post({ url: `/crm/contact/create-business-list2`, data }) +} + // 解除联系人商机关联 export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => { return await request.delete({ url: `/crm/contact/delete-business-list`, data }) } +// 解除联系人商机关联 +export const deleteContactBusinessList2 = async (data: ContactBusiness2ReqVO) => { + return await request.delete({ url: `/crm/contact/delete-business-list2`, data }) +} + // 联系人转移 export const transferContact = async (data: TransferReqVO) => { return await request.put({ url: '/crm/contact/transfer', data }) diff --git a/src/views/crm/contact/components/ContactList.vue b/src/views/crm/contact/components/ContactList.vue index 7de9a3cd..83af1e52 100644 --- a/src/views/crm/contact/components/ContactList.vue +++ b/src/views/crm/contact/components/ContactList.vue @@ -5,11 +5,32 @@ 创建联系人 + + 关联 + + + 解除关联 + - + +