From 41e5cf667e0e10278e364e619757cffdfcc70c33 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 25 Feb 2024 00:35:50 +0800 Subject: [PATCH] =?UTF-8?q?CRM=EF=BC=9A=E5=AE=8C=E5=96=84=E5=9B=9E?= =?UTF-8?q?=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/receivable/index.ts | 6 +- src/api/crm/receivable/plan/index.ts | 7 + src/views/crm/receivable/ReceivableForm.vue | 301 ++++++++++++-------- src/views/crm/receivable/index.vue | 169 ++++++----- src/views/crm/receivable/plan/index.vue | 4 +- 5 files changed, 293 insertions(+), 194 deletions(-) diff --git a/src/api/crm/receivable/index.ts b/src/api/crm/receivable/index.ts index a9812a76..7d2d3a2d 100644 --- a/src/api/crm/receivable/index.ts +++ b/src/api/crm/receivable/index.ts @@ -12,7 +12,6 @@ export interface ReceivableVO { returnType: string price: number ownerUserId: number - sort: number remark: string } @@ -50,3 +49,8 @@ export const deleteReceivable = async (id: number) => { export const exportReceivable = async (params) => { return await request.download({ url: `/crm/receivable/export-excel`, params }) } + +// 提交审核 +export const submitReceivable = async (id: number) => { + return await request.put({ url: `/crm/receivable/submit?id=${id}` }) +} diff --git a/src/api/crm/receivable/plan/index.ts b/src/api/crm/receivable/plan/index.ts index 98fadb0d..be5a4535 100644 --- a/src/api/crm/receivable/plan/index.ts +++ b/src/api/crm/receivable/plan/index.ts @@ -31,6 +31,13 @@ export const getReceivablePlan = async (id: number) => { return await request.get({ url: `/crm/receivable-plan/get?id=` + id }) } +// 查询回款计划下拉数据 +export const getReceivablePlanListByContractId = async (customerId: number, contractId: number) => { + return await request.get({ + url: `/crm/receivable-plan/list-all-simple-by-customer?customerId=${customerId}&contractId=${contractId}` + }) +} + // 新增回款计划 export const createReceivablePlan = async (data: ReceivablePlanVO) => { return await request.post({ url: `/crm/receivable-plan/create`, data }) diff --git a/src/views/crm/receivable/ReceivableForm.vue b/src/views/crm/receivable/ReceivableForm.vue index 60206bf7..a7f975b3 100644 --- a/src/views/crm/receivable/ReceivableForm.vue +++ b/src/views/crm/receivable/ReceivableForm.vue @@ -1,98 +1,134 @@ - diff --git a/src/views/crm/receivable/index.vue b/src/views/crm/receivable/index.vue index c5478c2f..17a1eb33 100644 --- a/src/views/crm/receivable/index.vue +++ b/src/views/crm/receivable/index.vue @@ -2,49 +2,63 @@ - + placeholder="请选择客户" + @keyup.enter="handleQuery" + > + + - 搜索 - 重置 - - 新增 + + + 搜索 + + + + 重置 - 导出 + + 新增 + + + + 导出 @@ -52,66 +66,63 @@ - - - - - - - - - - + + + + - + - - - - - + + + + - - - + - diff --git a/src/views/crm/receivable/plan/index.vue b/src/views/crm/receivable/plan/index.vue index 16b54aee..9cf21647 100644 --- a/src/views/crm/receivable/plan/index.vue +++ b/src/views/crm/receivable/plan/index.vue @@ -8,7 +8,7 @@ class="-mb-15px" label-width="68px" > - + - +