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 待开发