From fee444d191f94f0daf7c8cf986e41a98cdc66ba0 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 25 Feb 2024 12:33:01 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CRM=EF=BC=9A=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=9B=9E=E6=AC=BE=20plan=20=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/receivable/plan/index.ts | 7 ++ src/router/modules/remaining.ts | 11 ++ .../detail/ReceivablePlanDetailsHeader.vue | 44 ++++++++ .../plan/detail/ReceivablePlanDetailsInfo.vue | 83 ++++++++++++++ .../crm/receivable/plan/detail/index.vue | 103 ++++++++++++++++++ src/views/crm/receivable/plan/index.vue | 16 ++- 6 files changed, 261 insertions(+), 3 deletions(-) create mode 100644 src/views/crm/receivable/plan/detail/ReceivablePlanDetailsHeader.vue create mode 100644 src/views/crm/receivable/plan/detail/ReceivablePlanDetailsInfo.vue create mode 100644 src/views/crm/receivable/plan/detail/index.vue diff --git a/src/api/crm/receivable/plan/index.ts b/src/api/crm/receivable/plan/index.ts index 3136aede..d5a72871 100644 --- a/src/api/crm/receivable/plan/index.ts +++ b/src/api/crm/receivable/plan/index.ts @@ -11,9 +11,16 @@ export interface ReceivablePlanVO { remindDays: number remindTime: Date customerId: number + customerName?: string contractId: number + contractNo?: string ownerUserId: number + ownerUserName?: string remark: string + creator: string // 创建人 + creatorName?: string // 创建人名称 + createTime: Date // 创建时间 + updateTime: Date // 更新时间 receivable?: { price: number returnTime: Date diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 08d5db98..2bf47b4d 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -539,6 +539,17 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, component: () => import('@/views/crm/contract/detail/index.vue') }, + { + path: 'receivable-plan/detail/:id', + name: 'CrmReceivablePlanDetail', + meta: { + title: '回款计划详情', + noCache: true, + hidden: true, + activeMenu: '/crm/contract' + }, + component: () => import('@/views/crm/receivable/plan/detail/index.vue') + }, { path: 'contact/detail/:id', name: 'CrmContactDetail', diff --git a/src/views/crm/receivable/plan/detail/ReceivablePlanDetailsHeader.vue b/src/views/crm/receivable/plan/detail/ReceivablePlanDetailsHeader.vue new file mode 100644 index 00000000..b0e00443 --- /dev/null +++ b/src/views/crm/receivable/plan/detail/ReceivablePlanDetailsHeader.vue @@ -0,0 +1,44 @@ + + diff --git a/src/views/crm/receivable/plan/detail/ReceivablePlanDetailsInfo.vue b/src/views/crm/receivable/plan/detail/ReceivablePlanDetailsInfo.vue new file mode 100644 index 00000000..c25259b1 --- /dev/null +++ b/src/views/crm/receivable/plan/detail/ReceivablePlanDetailsInfo.vue @@ -0,0 +1,83 @@ + + diff --git a/src/views/crm/receivable/plan/detail/index.vue b/src/views/crm/receivable/plan/detail/index.vue new file mode 100644 index 00000000..cf021e07 --- /dev/null +++ b/src/views/crm/receivable/plan/detail/index.vue @@ -0,0 +1,103 @@ + + diff --git a/src/views/crm/receivable/plan/index.vue b/src/views/crm/receivable/plan/index.vue index 8ddf3a3b..414ac018 100644 --- a/src/views/crm/receivable/plan/index.vue +++ b/src/views/crm/receivable/plan/index.vue @@ -79,8 +79,13 @@ - - + + + { } } -/** 打开客户详情 */ +/** 打开详情 */ const { push } = useRouter() +const openDetail = (id: number) => { + push({ name: 'CrmReceivablePlanDetail', params: { id } }) +} + +/** 打开客户详情 */ const openCustomerDetail = (id: number) => { push({ name: 'CrmCustomerDetail', params: { id } }) }