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 @@
+
+
+
+
+ 基本信息
+
+
+
+ {{ customer.name }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ customer.mobile }}
+
+
+ {{ customer.telephone }}
+
+
+ {{ customer.email }}
+
+
+ {{ customer.qq }}
+
+
+ {{ customer.wechat }}
+
+
+ {{ customer.website }}
+
+
+ {{ customer.areaName }}
+
+
+ {{ customer.detailAddress }}
+
+
+ {{ customer.contactNextTime ? formatDate(customer.contactNextTime, 'YYYY-MM-DD') : '空' }}
+
+
+
+
+ {{ customer.description }}
+
+
+ {{ customer.remark }}
+
+
+
+
+
+ 系统信息
+
+
+
+ {{ customer.ownerUserName }}
+
+
+ {{ customer.creatorName }}
+
+
+ {{ customer.createTime ? formatDate(customer.createTime) : '空' }}
+
+
+ {{ customer.updateTime ? formatDate(customer.updateTime) : '空' }}
+
+
+ {{ customer.contactLastTime ? formatDate(customer.contactLastTime) : '空' }}
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 更改成交状态
+
+
+
+
+
+ 创建任务
+
+
+
+ 发送邮件
+
+
+
+ 创建联系人
+
+
+
+ 创建商机
+
+
+
+ 创建合同
+
+
+
+ 创建回款
+
+
+
+ 添加团队成员
+
+
+
+
+
+
+
+
+
+ {{ customer.dealStatus ? '已成交' : '未成交' }}
+
+
+ {{ customer.ownerUserName }}
+
+
+
+
+
+ {{ customer.mobile }}
+
+
+
+
+
+
+
+
+ 活动
+ 邮件
+ 工商信息
+ 客户关系
+
+
+ 联系人
+ 联系人
+
+
+ 团队成员
+ 团队成员
+
+ 商机
+
+ 合同
+ 合同
+
+
+ 回款
+ 回款
+
+ 回访
+ 发票
+
+
+
+
+
+
+
+
+
+
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 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
搜索
重置
@@ -48,7 +91,6 @@
-
@@ -70,8 +112,9 @@
-
-
+
+
+
-
-
+
+ 详情