From ba49b2851cd5d31fd13066e25a5b6be5526ec05b Mon Sep 17 00:00:00 2001 From: zyna Date: Sun, 3 Dec 2023 19:56:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E5=95=86=E6=9C=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/contactbusinesslink/index.ts | 47 ++++++ .../crm/contact/detail/ContactBasicInfo.vue | 24 --- .../contact/detail/ContactDetailsHeader.vue | 57 +++++++ ...tactDetails.vue => ContactDetailsInfo.vue} | 0 src/views/crm/contact/detail/index.vue | 103 ++----------- .../components/BusinessLinkContactList.vue | 144 ++++++++++++++++++ .../components/BusinessListByContact.vue | 140 +++++++++++++++++ src/views/crm/contactBusinessLink/index.vue | 0 8 files changed, 403 insertions(+), 112 deletions(-) create mode 100644 src/api/crm/contactbusinesslink/index.ts delete mode 100644 src/views/crm/contact/detail/ContactBasicInfo.vue create mode 100644 src/views/crm/contact/detail/ContactDetailsHeader.vue rename src/views/crm/contact/detail/{ContactDetails.vue => ContactDetailsInfo.vue} (100%) create mode 100644 src/views/crm/contactBusinessLink/components/BusinessLinkContactList.vue create mode 100644 src/views/crm/contactBusinessLink/components/BusinessListByContact.vue create mode 100644 src/views/crm/contactBusinessLink/index.vue diff --git a/src/api/crm/contactbusinesslink/index.ts b/src/api/crm/contactbusinesslink/index.ts new file mode 100644 index 00000000..5f81d5b6 --- /dev/null +++ b/src/api/crm/contactbusinesslink/index.ts @@ -0,0 +1,47 @@ +import { getBusiness } from './../business/index'; +import request from '@/config/axios' + +export interface ContactBusinessLinkVO { + id: number + contactId: number + businessId: number +} + +// 查询联系人商机关联分页 +export const getContactBusinessLinkPage = async (params) => { + return await request.get({ url: `/crm/contact-business-link/page`, params }) +} + +// 查询联系人商机关联详情 +export const getContactBusinessLink = async (id: number) => { + return await request.get({ url: `/crm/contact-business-link/get?id=` + id }) +} + +// 新增联系人商机关联 +export const createContactBusinessLink = async (data: ContactBusinessLinkVO) => { + return await request.post({ url: `/crm/contact-business-link/create`, data }) +} + +// 修改联系人商机关联 +export const updateContactBusinessLink = async (data: ContactBusinessLinkVO) => { + return await request.put({ url: `/crm/contact-business-link/update`, data }) +} + +// 删除联系人商机关联 +export const deleteContactBusinessLink = async (data: ContactBusinessLinkVO) => { + return await request.delete({ url: `/crm/contact-business-link/delete-batch` , data }) +} + +// 导出联系人商机关联 Excel +export const exportContactBusinessLink = async (params) => { + return await request.download({ url: `/crm/contact-business-link/export-excel`, params }) +} + +//批量新增联系人商机关联 +export const createContactBusinessLinkBatch = async (data: ContactBusinessLinkVO[]) => { + return await request.post({ url: `/crm/contact-business-link/create-batch`, data }) +} +// 查询联系人关联商机列表 +export const getBusinessByContactPage = async (params) => { + return await request.get({ url: `/crm/contact-business-link/page-by-contact` , params }) +} \ No newline at end of file diff --git a/src/views/crm/contact/detail/ContactBasicInfo.vue b/src/views/crm/contact/detail/ContactBasicInfo.vue deleted file mode 100644 index e61c747b..00000000 --- a/src/views/crm/contact/detail/ContactBasicInfo.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/src/views/crm/contact/detail/ContactDetailsHeader.vue b/src/views/crm/contact/detail/ContactDetailsHeader.vue new file mode 100644 index 00000000..24799c9e --- /dev/null +++ b/src/views/crm/contact/detail/ContactDetailsHeader.vue @@ -0,0 +1,57 @@ + + + diff --git a/src/views/crm/contact/detail/ContactDetails.vue b/src/views/crm/contact/detail/ContactDetailsInfo.vue similarity index 100% rename from src/views/crm/contact/detail/ContactDetails.vue rename to src/views/crm/contact/detail/ContactDetailsInfo.vue diff --git a/src/views/crm/contact/detail/index.vue b/src/views/crm/contact/detail/index.vue index 6a6e71bf..dff71bef 100644 --- a/src/views/crm/contact/detail/index.vue +++ b/src/views/crm/contact/detail/index.vue @@ -1,99 +1,32 @@ diff --git a/src/views/crm/contactBusinessLink/components/BusinessListByContact.vue b/src/views/crm/contactBusinessLink/components/BusinessListByContact.vue new file mode 100644 index 00000000..0b587252 --- /dev/null +++ b/src/views/crm/contactBusinessLink/components/BusinessListByContact.vue @@ -0,0 +1,140 @@ + + diff --git a/src/views/crm/contactBusinessLink/index.vue b/src/views/crm/contactBusinessLink/index.vue new file mode 100644 index 00000000..e69de29b