From 88e5e67a89913ce4f20a03cabfdfb202e36ff166 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 30 Nov 2023 20:21:45 +0800 Subject: [PATCH] =?UTF-8?q?crm:=20=E5=A2=9E=E5=8A=A0=E5=9F=BA=E4=BA=8E?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=9F=A5=E8=AF=A2=E5=95=86=E6=9C=BA=E5=88=86?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/business/index.ts | 17 ++- .../crm/business/components/BusinessList.vue | 107 ++++++++++++++++++ .../customer/detail/CustomerDetailsHeader.vue | 6 - src/views/crm/customer/detail/index.vue | 10 +- 4 files changed, 124 insertions(+), 16 deletions(-) create mode 100644 src/views/crm/business/components/BusinessList.vue diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index 89cd871f..8af2a697 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -21,32 +21,37 @@ export interface BusinessVO { followUpStatus: number } -// 查询商机列表 +// 查询 CRM 商机列表 export const getBusinessPage = async (params) => { return await request.get({ url: `/crm/business/page`, params }) } -// 查询商机详情 +// 查询 CRM 商机列表,基于指定客户 +export const getBusinessPageByCustomer = async (params) => { + return await request.get({ url: `/crm/business/page-by-customer`, params }) +} + +// 查询 CRM 商机详情 export const getBusiness = async (id: number) => { return await request.get({ url: `/crm/business/get?id=` + id }) } -// 新增商机 +// 新增 CRM 商机 export const createBusiness = async (data: BusinessVO) => { return await request.post({ url: `/crm/business/create`, data }) } -// 修改商机 +// 修改 CRM 商机 export const updateBusiness = async (data: BusinessVO) => { return await request.put({ url: `/crm/business/update`, data }) } -// 删除商机 +// 删除 CRM 商机 export const deleteBusiness = async (id: number) => { return await request.delete({ url: `/crm/business/delete?id=` + id }) } -// 导出商机 Excel +// 导出 CRM 商机 Excel export const exportBusiness = async (params) => { return await request.download({ url: `/crm/business/export-excel`, params }) } diff --git a/src/views/crm/business/components/BusinessList.vue b/src/views/crm/business/components/BusinessList.vue new file mode 100644 index 00000000..31411e84 --- /dev/null +++ b/src/views/crm/business/components/BusinessList.vue @@ -0,0 +1,107 @@ + + diff --git a/src/views/crm/customer/detail/CustomerDetailsHeader.vue b/src/views/crm/customer/detail/CustomerDetailsHeader.vue index 784fcc49..dd4f7f25 100644 --- a/src/views/crm/customer/detail/CustomerDetailsHeader.vue +++ b/src/views/crm/customer/detail/CustomerDetailsHeader.vue @@ -17,12 +17,6 @@ 更改成交状态 - - - 创建任务 - 创建商机 - 创建回款 - diff --git a/src/views/crm/customer/detail/index.vue b/src/views/crm/customer/detail/index.vue index 27308784..6de6f170 100644 --- a/src/views/crm/customer/detail/index.vue +++ b/src/views/crm/customer/detail/index.vue @@ -12,13 +12,14 @@ - 商机 + + + - TODO 待开发 + TODO待开发 TODO 待开发 - TODO 待开发 @@ -28,8 +29,9 @@ import * as CustomerApi from '@/api/crm/customer' import CustomerDetailsInfo from './CustomerDetailsInfo.vue' // 客户明细 - 详细信息 import CustomerDetailsHeader from './CustomerDetailsHeader.vue' // 客户明细 - 头部 import ContactList from '@/views/crm/contact/components/ContactList.vue' // 联系人列表 -import PermissionList from '@/views/crm/permission/components/PermissionList.vue' // 团队成员列表(权限) import ContractList from '@/views/crm/contract/components/ContractList.vue' // 合同列表 +import BusinessList from '@/views/crm/business/components/BusinessList.vue' // 商机列表 +import PermissionList from '@/views/crm/permission/components/PermissionList.vue' // 团队成员列表(权限) import { BizTypeEnum } from '@/api/crm/permission' defineOptions({ name: 'CrmCustomerDetail' })