From 26780c3525405b9e9109854edea2cee6f75c3d93 Mon Sep 17 00:00:00 2001 From: liuhongfeng <291117974@qq.com> Date: Fri, 20 Oct 2023 23:48:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E5=9B=9E?= =?UTF-8?q?=E6=AC=BE=E8=AE=A1=E5=88=92=20=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/receivablePlan/index.ts | 49 +++ .../crm/receivablePlan/ReceivablePlanForm.vue | 181 ++++++++++ src/views/crm/receivablePlan/index.vue | 326 ++++++++++++++++++ 3 files changed, 556 insertions(+) create mode 100644 src/api/crm/receivablePlan/index.ts create mode 100644 src/views/crm/receivablePlan/ReceivablePlanForm.vue create mode 100644 src/views/crm/receivablePlan/index.vue diff --git a/src/api/crm/receivablePlan/index.ts b/src/api/crm/receivablePlan/index.ts new file mode 100644 index 00000000..178b21b5 --- /dev/null +++ b/src/api/crm/receivablePlan/index.ts @@ -0,0 +1,49 @@ +import request from '@/config/axios' + +export interface ReceivablePlanVO { + id: number + indexNo: number + receivableId: number + status: number + checkStatus: string + processInstanceId: number + price: number + returnTime: Date + remindDays: number + remindTime: Date + customerId: number + contractId: number + ownerUserId: number + sort: number + remark: string +} + +// 查询回款计划列表 +export const getReceivablePlanPage = async (params) => { + return await request.get({ url: `/crm/receivable-plan/page`, params }) +} + +// 查询回款计划详情 +export const getReceivablePlan = async (id: number) => { + return await request.get({ url: `/crm/receivable-plan/get?id=` + id }) +} + +// 新增回款计划 +export const createReceivablePlan = async (data: ReceivablePlanVO) => { + return await request.post({ url: `/crm/receivable-plan/create`, data }) +} + +// 修改回款计划 +export const updateReceivablePlan = async (data: ReceivablePlanVO) => { + return await request.put({ url: `/crm/receivable-plan/update`, data }) +} + +// 删除回款计划 +export const deleteReceivablePlan = async (id: number) => { + return await request.delete({ url: `/crm/receivable-plan/delete?id=` + id }) +} + +// 导出回款计划 Excel +export const exportReceivablePlan = async (params) => { + return await request.download({ url: `/crm/receivable-plan/export-excel`, params }) +} diff --git a/src/views/crm/receivablePlan/ReceivablePlanForm.vue b/src/views/crm/receivablePlan/ReceivablePlanForm.vue new file mode 100644 index 00000000..22022ea0 --- /dev/null +++ b/src/views/crm/receivablePlan/ReceivablePlanForm.vue @@ -0,0 +1,181 @@ + + diff --git a/src/views/crm/receivablePlan/index.vue b/src/views/crm/receivablePlan/index.vue new file mode 100644 index 00000000..46857dcd --- /dev/null +++ b/src/views/crm/receivablePlan/index.vue @@ -0,0 +1,326 @@ + + +