From bdc80ea55b676dee414927f7faa6a0ca38471d66 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 1 Dec 2023 19:37:51 +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=9B=9E=E6=AC=BE=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/receivable/index.ts | 23 +-- src/views/crm/customer/detail/index.vue | 5 +- .../receivable/components/ReceivableList.vue | 125 ++++++++++++++ src/views/crm/receivable/index.vue | 155 +----------------- 4 files changed, 144 insertions(+), 164 deletions(-) create mode 100644 src/views/crm/receivable/components/ReceivableList.vue diff --git a/src/api/crm/receivable/index.ts b/src/api/crm/receivable/index.ts index 0828bf4b..a9812a76 100644 --- a/src/api/crm/receivable/index.ts +++ b/src/api/crm/receivable/index.ts @@ -6,46 +6,47 @@ export interface ReceivableVO { planId: number customerId: number contractId: number - checkStatus: number + auditStatus: number processInstanceId: number returnTime: Date returnType: string price: number ownerUserId: number - batchId: number sort: number - dataScope: number - dataScopeDeptIds: string - status: number remark: string } -// 查询回款管理列表 +// 查询回款列表 export const getReceivablePage = async (params) => { return await request.get({ url: `/crm/receivable/page`, params }) } -// 查询回款管理详情 +// 查询回款列表 +export const getReceivablePageByCustomer = async (params) => { + return await request.get({ url: `/crm/receivable/page-by-customer`, params }) +} + +// 查询回款详情 export const getReceivable = async (id: number) => { return await request.get({ url: `/crm/receivable/get?id=` + id }) } -// 新增回款管理 +// 新增回款 export const createReceivable = async (data: ReceivableVO) => { return await request.post({ url: `/crm/receivable/create`, data }) } -// 修改回款管理 +// 修改回款 export const updateReceivable = async (data: ReceivableVO) => { return await request.put({ url: `/crm/receivable/update`, data }) } -// 删除回款管理 +// 删除回款 export const deleteReceivable = async (id: number) => { return await request.delete({ url: `/crm/receivable/delete?id=` + id }) } -// 导出回款管理 Excel +// 导出回款 Excel export const exportReceivable = async (params) => { return await request.download({ url: `/crm/receivable/export-excel`, params }) } diff --git a/src/views/crm/customer/detail/index.vue b/src/views/crm/customer/detail/index.vue index 6de6f170..10c168c4 100644 --- a/src/views/crm/customer/detail/index.vue +++ b/src/views/crm/customer/detail/index.vue @@ -18,7 +18,9 @@ - TODO待开发 + + + TODO 待开发 @@ -31,6 +33,7 @@ import CustomerDetailsHeader from './CustomerDetailsHeader.vue' // 客户明细 import ContactList from '@/views/crm/contact/components/ContactList.vue' // 联系人列表 import ContractList from '@/views/crm/contract/components/ContractList.vue' // 合同列表 import BusinessList from '@/views/crm/business/components/BusinessList.vue' // 商机列表 +import ReceivableList from '@/views/crm/receivable/components/ReceivableList.vue' // 回款列表 import PermissionList from '@/views/crm/permission/components/PermissionList.vue' // 团队成员列表(权限) import { BizTypeEnum } from '@/api/crm/permission' diff --git a/src/views/crm/receivable/components/ReceivableList.vue b/src/views/crm/receivable/components/ReceivableList.vue new file mode 100644 index 00000000..5f7881f2 --- /dev/null +++ b/src/views/crm/receivable/components/ReceivableList.vue @@ -0,0 +1,125 @@ + + diff --git a/src/views/crm/receivable/index.vue b/src/views/crm/receivable/index.vue index 58d7423b..3d91049a 100644 --- a/src/views/crm/receivable/index.vue +++ b/src/views/crm/receivable/index.vue @@ -17,15 +17,6 @@ class="!w-240px" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 搜索 重置 @@ -266,7 +132,7 @@