From 7de0e93d5ab304b1026583df5d66522860bd791d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 29 Nov 2023 21:42:10 +0800 Subject: [PATCH] =?UTF-8?q?crm=EF=BC=9A=E8=81=94=E7=B3=BB=E4=BA=BA?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20ContactList=20=E7=BB=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E7=BB=99=E5=85=B6=E5=AE=83=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=86=85=E5=B5=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/contact/index.ts | 19 ++- src/api/crm/permission/index.ts | 8 + .../crm/components/CrmPermissionList.vue | 1 + src/views/crm/components/index.ts | 1 + .../crm/contact/components/ContactList.vue | 146 ++++++++++++++++++ .../customer/detail/CustomerDetailsHeader.vue | 5 +- src/views/crm/customer/detail/index.vue | 47 ++---- 7 files changed, 181 insertions(+), 46 deletions(-) create mode 100644 src/views/crm/contact/components/ContactList.vue diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index de4710e8..cba935d1 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -26,32 +26,37 @@ export interface ContactVO { ownerUserName: string } -// 查询crm联系人列表 +// 查询 CRM 联系人列表 export const getContactPage = async (params) => { return await request.get({ url: `/crm/contact/page`, params }) } -// 查询crm联系人详情 +// 查询 CRM 联系人列表,基于指定客户 +export const getContactPageByCustomer = async (params: any) => { + return await request.get({ url: `/crm/contact/page-by-customer`, params }) +} + +// 查询 CRM 联系人详情 export const getContact = async (id: number) => { return await request.get({ url: `/crm/contact/get?id=` + id }) } -// 新增crm联系人 +// 新增 CRM 联系人 export const createContact = async (data: ContactVO) => { return await request.post({ url: `/crm/contact/create`, data }) } -// 修改crm联系人 +// 修改 CRM 联系人 export const updateContact = async (data: ContactVO) => { return await request.put({ url: `/crm/contact/update`, data }) } -// 删除crm联系人 +// 删除 CRM 联系人 export const deleteContact = async (id: number) => { return await request.delete({ url: `/crm/contact/delete?id=` + id }) } -// 导出crm联系人 Excel +// 导出 CRM 联系人 Excel export const exportContact = async (params) => { return await request.download({ url: `/crm/contact/export-excel`, params }) } @@ -59,3 +64,5 @@ export const exportContact = async (params) => { export const simpleAllList = async () => { return await request.get({ url: `/crm/contact/simple-all-list` }) } + +// diff --git a/src/api/crm/permission/index.ts b/src/api/crm/permission/index.ts index 79f69451..dadf47a8 100644 --- a/src/api/crm/permission/index.ts +++ b/src/api/crm/permission/index.ts @@ -12,6 +12,14 @@ export interface PermissionVO { createTime?: Date } +export enum BizTypeEnum { + CRM_LEADS = 1, // 线索 + CRM_CUSTOMER = 2, // 客户 + CRM_CONTACTS = 3, // 联系人 + CRM_BUSINESS = 5, // 商机 + CRM_CONTRACT = 6 // 合同 +} + // 查询团队成员列表 export const getPermissionList = async (params) => { return await request.get({ url: `/crm/permission/list`, params }) diff --git a/src/views/crm/components/CrmPermissionList.vue b/src/views/crm/components/CrmPermissionList.vue index 8f0cba72..a171ad72 100644 --- a/src/views/crm/components/CrmPermissionList.vue +++ b/src/views/crm/components/CrmPermissionList.vue @@ -15,6 +15,7 @@ 退出团队 + + + + + + 创建联系人 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/crm/customer/detail/CustomerDetailsHeader.vue b/src/views/crm/customer/detail/CustomerDetailsHeader.vue index 6e14c829..bb9f8d03 100644 --- a/src/views/crm/customer/detail/CustomerDetailsHeader.vue +++ b/src/views/crm/customer/detail/CustomerDetailsHeader.vue @@ -13,6 +13,7 @@ 更改成交状态 + @@ -22,10 +23,6 @@ 发送邮件 - - - 创建联系人 - 创建商机 diff --git a/src/views/crm/customer/detail/index.vue b/src/views/crm/customer/detail/index.vue index e6c9e9a9..13d33972 100644 --- a/src/views/crm/customer/detail/index.vue +++ b/src/views/crm/customer/detail/index.vue @@ -5,55 +5,30 @@ - 活动 - 邮件 - 工商信息 - 客户关系 - + TODO 待开发 - - 联系人 + - - + 商机 - - - 合同 - - - - 回款 - - 回访 - 发票 + TODO 待开发 + TODO 待开发 + TODO 待开发 + TODO 待开发