From b0c1e55c6ac08a4a5493bbf651beb26f168afab5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 1 Dec 2023 22:46:20 +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=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan}/index.ts | 5 + src/utils/dict.ts | 2 +- .../crm/contact/components/ContactList.vue | 1 + src/views/crm/customer/detail/index.vue | 2 + src/views/crm/receivable/ReceivableForm.vue | 2 +- src/views/crm/receivable/index.vue | 2 +- .../plan}/ReceivablePlanForm.vue | 2 +- .../plan/components/ReceivablePlanList.vue | 128 ++++++++++++++++++ .../plan}/index.vue | 105 +------------- 9 files changed, 143 insertions(+), 106 deletions(-) rename src/api/crm/{receivablePlan => receivable/plan}/index.ts (88%) rename src/views/crm/{receivablePlan => receivable/plan}/ReceivablePlanForm.vue (99%) create mode 100644 src/views/crm/receivable/plan/components/ReceivablePlanList.vue rename src/views/crm/{receivablePlan => receivable/plan}/index.vue (66%) diff --git a/src/api/crm/receivablePlan/index.ts b/src/api/crm/receivable/plan/index.ts similarity index 88% rename from src/api/crm/receivablePlan/index.ts rename to src/api/crm/receivable/plan/index.ts index f80f0572..3ddbd7db 100644 --- a/src/api/crm/receivablePlan/index.ts +++ b/src/api/crm/receivable/plan/index.ts @@ -23,6 +23,11 @@ export const getReceivablePlanPage = async (params) => { return await request.get({ url: `/crm/receivable-plan/page`, params }) } +// 查询回款计划列表 +export const getReceivablePlanPageByCustomer = async (params) => { + return await request.get({ url: `/crm/receivable-plan/page-by-customer`, params }) +} + // 查询回款计划详情 export const getReceivablePlan = async (id: number) => { return await request.get({ url: `/crm/receivable-plan/get?id=` + id }) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index f82a28b8..65d185b7 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -192,7 +192,7 @@ export enum DICT_TYPE { // ========== CRM - 客户管理模块 ========== CRM_AUDIT_STATUS = 'crm_audit_status', // CRM 审批状态 CRM_BIZ_TYPE = 'crm_biz_type', // CRM 业务类型 - CRM_RETURN_TYPE = 'crm_return_type', + CRM_RECEIVABLE_RETURN_TYPE = 'crm_receivable_return_type', // CRM 回款的还款方式 CRM_CUSTOMER_INDUSTRY = 'crm_customer_industry', CRM_CUSTOMER_LEVEL = 'crm_customer_level', CRM_CUSTOMER_SOURCE = 'crm_customer_source', diff --git a/src/views/crm/contact/components/ContactList.vue b/src/views/crm/contact/components/ContactList.vue index 8aa40960..b41c5456 100644 --- a/src/views/crm/contact/components/ContactList.vue +++ b/src/views/crm/contact/components/ContactList.vue @@ -25,6 +25,7 @@ + + TODO 待开发 @@ -34,6 +35,7 @@ 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 ReceivablePlanList from '@/views/crm/receivable/plan/components/ReceivablePlanList.vue' // 回款计划列表 import PermissionList from '@/views/crm/permission/components/PermissionList.vue' // 团队成员列表(权限) import { BizTypeEnum } from '@/api/crm/permission' diff --git a/src/views/crm/receivable/ReceivableForm.vue b/src/views/crm/receivable/ReceivableForm.vue index c338fe97..60206bf7 100644 --- a/src/views/crm/receivable/ReceivableForm.vue +++ b/src/views/crm/receivable/ReceivableForm.vue @@ -43,7 +43,7 @@ diff --git a/src/views/crm/receivablePlan/ReceivablePlanForm.vue b/src/views/crm/receivable/plan/ReceivablePlanForm.vue similarity index 99% rename from src/views/crm/receivablePlan/ReceivablePlanForm.vue rename to src/views/crm/receivable/plan/ReceivablePlanForm.vue index bbc0379c..29897b15 100644 --- a/src/views/crm/receivablePlan/ReceivablePlanForm.vue +++ b/src/views/crm/receivable/plan/ReceivablePlanForm.vue @@ -88,7 +88,7 @@ diff --git a/src/views/crm/receivablePlan/index.vue b/src/views/crm/receivable/plan/index.vue similarity index 66% rename from src/views/crm/receivablePlan/index.vue rename to src/views/crm/receivable/plan/index.vue index 2d0cf612..decd79bc 100644 --- a/src/views/crm/receivablePlan/index.vue +++ b/src/views/crm/receivable/plan/index.vue @@ -26,96 +26,6 @@ class="!w-240px" /> - - - - - - - - - - - - - - - - - - - 搜索 重置 @@ -224,10 +134,10 @@