From 01684aa6e855ecec8d6581787d9ba7b809e42d1a Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 22 Feb 2024 08:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CRM=EF=BC=9A=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=95=86=E6=9C=BA=E7=9A=84=E8=AF=A6=E6=83=85=E3=80=81=E8=B7=9F?= =?UTF-8?q?=E8=BF=9B=E8=AE=B0=E5=BD=95=E3=80=81=E6=93=8D=E4=BD=9C=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E3=80=81=E5=9B=A2=E9=98=9F=E6=88=90=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/business/index.ts | 31 +++-- src/router/modules/remaining.ts | 12 +- .../business/detail/BusinessDetailsHeader.vue | 37 ++++++ .../business/detail/BusinessDetailsInfo.vue | 61 +++++++++ src/views/crm/business/detail/index.vue | 121 ++++++++++++++++++ 5 files changed, 249 insertions(+), 13 deletions(-) create mode 100644 src/views/crm/business/detail/BusinessDetailsHeader.vue create mode 100644 src/views/crm/business/detail/BusinessDetailsInfo.vue create mode 100644 src/views/crm/business/detail/index.vue diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index 37304f5a..8dd06563 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -4,22 +4,29 @@ import { TransferReqVO } from '@/api/crm/customer' export interface BusinessVO { id: number name: string - statusTypeId: number - statusId: number - contactNextTime: Date customerId: number - dealTime: Date - price: number - discountPercent: number - productPrice: number - remark: string + customerName?: string + followUpStatus: boolean + contactLastTime: Date + contactNextTime: Date ownerUserId: number - roUserIds: string - rwUserIds: string + ownerUserName?: string // 负责人的用户名称 + ownerUserDept?: string // 负责人的部门名称 + statusTypeId: number + statusTypeName?: string + statusId: number + statusName?: string endStatus: number endRemark: string - contactLastTime: Date - followUpStatus: number + dealTime: Date + totalProductPrice: number + totalPrice: number + discountPercent: number + remark: string + creator: string // 创建人 + creatorName?: string // 创建人名称 + createTime: Date // 创建时间 + updateTime: Date // 更新时间 } // 查询 CRM 商机列表 diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 4f845d0d..08d5db98 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -104,7 +104,6 @@ const remainingRouter: AppRouteRecordRaw[] = [ } ] }, - { path: '/dict', component: Layout, @@ -518,6 +517,17 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, component: () => import('@/views/crm/customer/detail/index.vue') }, + { + path: 'business/detail/:id', + name: 'CrmBusinessDetail', + meta: { + title: '商机详情', + noCache: true, + hidden: true, + activeMenu: '/crm/business' + }, + component: () => import('@/views/crm/business/detail/index.vue') + }, { path: 'contract/detail/:id', name: 'CrmContractDetail', diff --git a/src/views/crm/business/detail/BusinessDetailsHeader.vue b/src/views/crm/business/detail/BusinessDetailsHeader.vue new file mode 100644 index 00000000..50d1efea --- /dev/null +++ b/src/views/crm/business/detail/BusinessDetailsHeader.vue @@ -0,0 +1,37 @@ + + diff --git a/src/views/crm/business/detail/BusinessDetailsInfo.vue b/src/views/crm/business/detail/BusinessDetailsInfo.vue new file mode 100644 index 00000000..a2c9ce18 --- /dev/null +++ b/src/views/crm/business/detail/BusinessDetailsInfo.vue @@ -0,0 +1,61 @@ + + diff --git a/src/views/crm/business/detail/index.vue b/src/views/crm/business/detail/index.vue new file mode 100644 index 00000000..a0aa89ee --- /dev/null +++ b/src/views/crm/business/detail/index.vue @@ -0,0 +1,121 @@ + +