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 @@
创建联系人
+
+ 关联
+
+
+ 解除关联
+
-
+
+
@@ -37,12 +58,19 @@
+
+