From 23f483ac452c6f140b399351918caaffb54c7129 Mon Sep 17 00:00:00 2001 From: Wanwan <913752709@qq.com> Date: Sat, 4 Nov 2023 03:21:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=A2=E6=88=B7=E8=AF=A6=E6=83=85=20?= =?UTF-8?q?+=20review=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/customer/index.ts | 24 +- src/router/modules/remaining.ts | 18 ++ src/views/crm/clue/ClueForm.vue | 5 +- src/views/crm/clue/index.vue | 2 +- src/views/crm/customer/CustomerForm.vue | 233 +++++++++++------- .../crm/customer/detail/CustomerBasicInfo.vue | 18 ++ .../crm/customer/detail/CustomerDetails.vue | 91 +++++++ src/views/crm/customer/detail/index.vue | 154 ++++++++++++ src/views/crm/customer/index.vue | 70 +++++- 9 files changed, 508 insertions(+), 107 deletions(-) create mode 100644 src/views/crm/customer/detail/CustomerBasicInfo.vue create mode 100644 src/views/crm/customer/detail/CustomerDetails.vue create mode 100644 src/views/crm/customer/detail/index.vue diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 0cbba590..59260cbc 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -1,13 +1,14 @@ import request from '@/config/axios' export interface CustomerVO { - id: number + id?: number name: string industryId: number level: number source: number - followUpStatus: boolean - lockStatus: boolean + followUpStatus?: boolean + lockStatus?: boolean + dealStatus?: boolean mobile: string telephone: string website: string @@ -16,13 +17,20 @@ export interface CustomerVO { email: string description: string remark: string - ownerUserId: number - roUserIds: string - rwUserIds: string - areaId: number + ownerUserId?: number + ownerUserName?: string + ownerUserDept?: string + roUserIds?: string + rwUserIds?: string + areaId?: number + areaName?: string detailAddress: string - contactLastTime: Date + contactLastTime?: Date contactNextTime: Date + createTime?: Date + updateTime?: Date + creator?: string + creatorName?: string } // 查询客户列表 diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 70dc5b2f..58eb1733 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -487,6 +487,24 @@ const remainingRouter: AppRouteRecordRaw[] = [ component: () => import('@/views/mall/promotion/diy/page/decorate.vue') } ] + }, + { + path: '/crm', + component: Layout, + name: 'CrmCenter', + meta: { hidden: true }, + children: [ + { + path: 'customer/detail/:id', + name: 'CrmCustomerDetail', + meta: { + title: '客户详情', + noCache: true, + hidden: true + }, + component: () => import('@/views/crm/customer/detail/index.vue') + } + ] } ] diff --git a/src/views/crm/clue/ClueForm.vue b/src/views/crm/clue/ClueForm.vue index 877b26d9..4321f952 100644 --- a/src/views/crm/clue/ClueForm.vue +++ b/src/views/crm/clue/ClueForm.vue @@ -10,7 +10,7 @@ - + @@ -31,7 +31,7 @@ - + @@ -46,7 +46,6 @@ + diff --git a/src/views/crm/customer/detail/CustomerDetails.vue b/src/views/crm/customer/detail/CustomerDetails.vue new file mode 100644 index 00000000..f6215224 --- /dev/null +++ b/src/views/crm/customer/detail/CustomerDetails.vue @@ -0,0 +1,91 @@ + + + diff --git a/src/views/crm/customer/detail/index.vue b/src/views/crm/customer/detail/index.vue new file mode 100644 index 00000000..e5c8ef43 --- /dev/null +++ b/src/views/crm/customer/detail/index.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/src/views/crm/customer/index.vue b/src/views/crm/customer/index.vue index ace56dac..073bf8cb 100644 --- a/src/views/crm/customer/index.vue +++ b/src/views/crm/customer/index.vue @@ -1,7 +1,6 @@