From 5adf75d15b8143cb327b338f43c4bd27a0e84fcb Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 27 Jan 2024 15:15:07 +0800 Subject: [PATCH] =?UTF-8?q?CRM=EF=BC=9A=E7=BB=9F=E4=B8=80=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/contact/index.ts | 5 ----- src/api/crm/customer/index.ts | 5 ----- src/api/crm/operateLog/index.ts | 11 +++++++++++ src/api/crm/permission/index.ts | 7 +++++-- src/api/crm/product/index.ts | 5 ----- src/views/crm/contact/detail/index.vue | 6 ++++-- src/views/crm/customer/detail/index.vue | 6 +++++- src/views/crm/product/detail/index.vue | 12 ++++++++---- 8 files changed, 33 insertions(+), 24 deletions(-) create mode 100644 src/api/crm/operateLog/index.ts diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index 4144c931..2386b5fe 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -85,8 +85,3 @@ export const createContactBusinessList = async (data: ContactBusinessReqVO) => { export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => { return await request.delete({ url: `/crm/contact/delete-business-list`, data }) } - -// 查询联系人操作日志 -export const getOperateLogPage = async (params: any) => { - return await request.get({ url: '/crm/contact/operate-log-page', params }) -} diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 004f642d..f32d3bd3 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -73,11 +73,6 @@ export const getSimpleCustomerList = async () => { return await request.get({ url: `/crm/customer/list-all-simple` }) } -// 查询客户操作日志 -export const getOperateLogPage = async (id: number) => { - return await request.get({ url: '/crm/customer/operate-log-page?id=' + id }) -} - // ======================= 业务操作 ======================= export interface TransferReqVO { diff --git a/src/api/crm/operateLog/index.ts b/src/api/crm/operateLog/index.ts new file mode 100644 index 00000000..d0f25b6b --- /dev/null +++ b/src/api/crm/operateLog/index.ts @@ -0,0 +1,11 @@ +import request from '@/config/axios' + +export interface OperateLogVO extends PageParam { + bizType: number + bizId: number +} + +// 获得操作日志 +export const getOperateLogPage = async (params: OperateLogVO) => { + return await request.get({ url: `/crm/operate-log/page`, params }) +} diff --git a/src/api/crm/permission/index.ts b/src/api/crm/permission/index.ts index e616a404..5c829b6a 100644 --- a/src/api/crm/permission/index.ts +++ b/src/api/crm/permission/index.ts @@ -22,8 +22,11 @@ export enum BizTypeEnum { CRM_LEADS = 1, // 线索 CRM_CUSTOMER = 2, // 客户 CRM_CONTACT = 3, // 联系人 - CRM_BUSINESS = 5, // 商机 - CRM_CONTRACT = 6 // 合同 + CRM_BUSINESS = 4, // 商机 + CRM_CONTRACT = 5, // 合同 + CRM_PRODUCT = 6, // 产品 + CRM_RECEIVABLE = 7, // 回款 + CRM_RECEIVABLE_PLAN = 8 // 回款计划 } /** diff --git a/src/api/crm/product/index.ts b/src/api/crm/product/index.ts index 2d88cb09..c6d5dfdb 100644 --- a/src/api/crm/product/index.ts +++ b/src/api/crm/product/index.ts @@ -41,8 +41,3 @@ export const deleteProduct = async (id: number) => { export const exportProduct = async (params) => { return await request.download({ url: `/crm/product/export-excel`, params }) } - -// 查询产品操作日志 -export const getOperateLogPage = async (params: any) => { - return await request.get({ url: '/crm/product/operate-log-page', params }) -} diff --git a/src/views/crm/contact/detail/index.vue b/src/views/crm/contact/detail/index.vue index cb8eea16..4932292c 100644 --- a/src/views/crm/contact/detail/index.vue +++ b/src/views/crm/contact/detail/index.vue @@ -21,7 +21,7 @@ -