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 @@