3
3
<ContentWrap >
4
4
<!-- 搜索工作栏 -->
5
5
<el-form
6
- class =" -mb-15px"
7
- :model =" queryParams"
8
6
ref =" queryFormRef"
9
7
:inline =" true"
8
+ :model =" queryParams"
9
+ class =" -mb-15px"
10
10
label-width =" 68px"
11
11
>
12
12
<el-form-item label =" 时间范围" prop =" orderDate" >
13
13
<el-date-picker
14
14
v-model =" queryParams.times"
15
+ :default-time =" [new Date('1 00:00:00'), new Date('1 23:59:59')]"
15
16
:shortcuts =" defaultShortcuts"
16
17
class =" !w-240px"
17
18
end-placeholder =" 结束日期"
18
19
start-placeholder =" 开始日期"
19
20
type =" daterange"
20
21
value-format =" YYYY-MM-DD HH:mm:ss"
21
- :default-time =" [new Date('1 00:00:00'), new Date('1 23:59:59')]"
22
22
/>
23
23
</el-form-item >
24
24
<el-form-item label =" 时间间隔" prop =" interval" >
34
34
<el-form-item label =" 归属部门" prop =" deptId" >
35
35
<el-tree-select
36
36
v-model =" queryParams.deptId"
37
- class =" !w-240px"
38
37
:data =" deptList"
39
38
:props =" defaultProps"
40
39
check-strictly
40
+ class =" !w-240px"
41
41
node-key =" id"
42
42
placeholder =" 请选择归属部门"
43
43
@change =" queryParams.userId = undefined"
44
44
/>
45
45
</el-form-item >
46
46
<el-form-item label =" 员工" prop =" userId" >
47
- <el-select v-model =" queryParams.userId" class =" !w-240px" placeholder =" 员工" clearable >
47
+ <el-select v-model =" queryParams.userId" class =" !w-240px" clearable placeholder =" 员工" >
48
48
<el-option
49
49
v-for =" (user, index) in userListByDeptId"
50
+ :key =" index"
50
51
:label =" user.nickname"
51
52
:value =" user.id"
52
- :key =" index"
53
53
/>
54
54
</el-select >
55
55
</el-form-item >
56
56
<el-form-item >
57
- <el-button @click =" handleQuery" > <Icon icon =" ep:search" class =" mr-5px" /> 搜索 </el-button >
58
- <el-button @click =" resetQuery" > <Icon icon =" ep:refresh" class =" mr-5px" /> 重置 </el-button >
57
+ <el-button @click =" handleQuery" >
58
+ <Icon class =" mr-5px" icon =" ep:search" />
59
+ 搜索
60
+ </el-button >
61
+ <el-button @click =" resetQuery" >
62
+ <Icon class =" mr-5px" icon =" ep:refresh" />
63
+ 重置
64
+ </el-button >
59
65
</el-form-item >
60
66
</el-form >
61
67
</ContentWrap >
64
70
<el-col >
65
71
<el-tabs v-model =" activeTab" >
66
72
<!-- 客户总量分析 -->
67
- <el-tab-pane label =" 客户总量分析" name =" customerSummary" lazy >
68
- <CustomerSummary :query-params =" queryParams" ref = " customerSummaryRef " />
73
+ <el-tab-pane label =" 客户总量分析" lazy name =" customerSummary" >
74
+ <CustomerSummary ref = " customerSummaryRef " :query-params =" queryParams" />
69
75
</el-tab-pane >
70
76
<!-- 客户跟进次数分析 -->
71
- <el-tab-pane label =" 客户跟进次数分析" name =" followUpSummary" lazy >
72
- <CustomerFollowUpSummary :query-params =" queryParams" ref = " followUpSummaryRef " />
77
+ <el-tab-pane label =" 客户跟进次数分析" lazy name =" followUpSummary" >
78
+ <CustomerFollowUpSummary ref = " followUpSummaryRef " :query-params =" queryParams" />
73
79
</el-tab-pane >
74
80
<!-- 客户跟进方式分析 -->
75
- <el-tab-pane label =" 客户跟进方式分析" name =" followUpType" lazy >
76
- <CustomerFollowUpType :query-params =" queryParams" ref = " followUpTypeRef " />
81
+ <el-tab-pane label =" 客户跟进方式分析" lazy name =" followUpType" >
82
+ <CustomerFollowUpType ref = " followUpTypeRef " :query-params =" queryParams" />
77
83
</el-tab-pane >
78
84
<!-- 客户转化率分析 -->
79
- <el-tab-pane label =" 客户转化率分析" name =" conversionStat" lazy >
80
- <CustomerConversionStat :query-params =" queryParams" ref = " conversionStatRef " />
85
+ <el-tab-pane label =" 客户转化率分析" lazy name =" conversionStat" >
86
+ <CustomerConversionStat ref = " conversionStatRef " :query-params =" queryParams" />
81
87
</el-tab-pane >
82
88
<!-- 成交周期分析 -->
83
89
<el-tab-pane label =" 成交周期分析" lazy name =" dealCycle" >
84
90
<CustomerDealCycle ref =" dealCycleRef" :query-params =" queryParams" />
85
91
</el-tab-pane >
86
- <!-- 城市分布分析 -->
87
- <el-tab-pane label =" 城市分布分析" lazy name =" addressRef" >
88
- <CustomerAddress ref =" addressRef" :query-params =" queryParams" />
89
- </el-tab-pane >
90
- <!-- 客户级别分析 -->
91
- <el-tab-pane label =" 客户级别分析" lazy name =" levelRef" >
92
- <CustomerLevel ref =" levelRef" :query-params =" queryParams" />
93
- </el-tab-pane >
94
- <!-- 客户来源分析 -->
95
- <el-tab-pane label =" 客户来源分析" lazy name =" sourceRef" >
96
- <CustomerSource ref =" sourceRef" :query-params =" queryParams" />
97
- </el-tab-pane >
98
- <!-- 客户行业分析 -->
99
- <el-tab-pane label =" 客户行业分析" lazy name =" industryRef" >
100
- <CustomerIndustry ref =" industryRef" :query-params =" queryParams" />
101
- </el-tab-pane >
102
92
</el-tabs >
103
93
</el-col >
104
94
</template >
@@ -115,10 +105,6 @@ import CustomerFollowUpType from './components/CustomerFollowUpType.vue'
115
105
import CustomerConversionStat from ' ./components/CustomerConversionStat.vue'
116
106
import CustomerDealCycle from ' ./components/CustomerDealCycle.vue'
117
107
import { DICT_TYPE , getIntDictOptions } from ' @/utils/dict'
118
- import CustomerAddress from ' ./components/CustomerAddress.vue'
119
- import CustomerIndustry from ' ./components/CustomerIndustry.vue'
120
- import CustomerSource from ' ./components/CustomerSource.vue'
121
- import CustomerLevel from ' ./components/CustomerLevel.vue'
122
108
123
109
defineOptions ({ name: ' CrmStatisticsCustomer' })
124
110
@@ -152,13 +138,6 @@ const conversionStatRef = ref() // 4. 客户转化率分析
152
138
// 5. TODO 公海客户分析
153
139
// 缺 crm_owner_record 表 TODO @dhb52:可以先做界面 + 接口,接口数据直接写死返回,相当于 mock 出来
154
140
const dealCycleRef = ref () // 6. 成交周期分析
155
- const addressRef = ref ()
156
- // 客户级别
157
- const levelRef = ref ()
158
- // 客户来源
159
- const sourceRef = ref ()
160
- // 客户行业
161
- const industryRef = ref ()
162
141
163
142
/** 搜索按钮操作 */
164
143
const handleQuery = () => {
@@ -178,19 +157,6 @@ const handleQuery = () => {
178
157
case ' dealCycle' : // 成交周期分析
179
158
dealCycleRef .value ?.loadData ?.()
180
159
break
181
- // TODO @puhui999:这 4 个拆出去哈;独立一个【客户画像】菜单
182
- case ' addressRef' :
183
- addressRef .value ?.loadData ?.()
184
- break
185
- case ' levelRef' :
186
- levelRef .value ?.loadData ?.()
187
- break
188
- case ' sourceRef' :
189
- sourceRef .value ?.loadData ?.()
190
- break
191
- case ' industryRef' :
192
- industryRef .value ?.loadData ?.()
193
- break
194
160
}
195
161
}
196
162
0 commit comments