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' })