index.vue
15.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
<template>
<div class="square-main">
<div class="square-title">
<span>企微魔方</span>
<el-popover placement="top" width="400" trigger="hover" content="通过导入的客户基础信息,过滤出系统策略所匹配的目标营销人群,从而引导门店分门别类的配置营销方案,并监控实施效果。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
<div class="square-num-box">
<div class="square-num-item">
<div class="square-num-title">客户总数</div>
<div class="square-num-count">
<span class="detail-content">
{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
<div class="square-num-item">
<div class="square-num-title">企微客户数</div>
<div class="square-num-count">
<span class="detail-content">
{{ countAll.qyCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
<div class="square-num-item">
<div class="square-num-title">魔方导入客户数</div>
<div class="square-num-count">
<span class="detail-content">
{{ countAll.magicCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="square-title">客户分群营销</div>
<div class="coustom-box">
<div class="coustom-box-item">
<div class="coustom-box-title">待添加企微客户</div>
<div class="coustom-echart">
<echart-circle bgColor="#6395FA" coustomId="coustomId_1" :lineData="[countAll.unQyCount, countAll.totalCount - countAll.unQyCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unQyCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="coustom-box-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div>
<GLButton class="coustom-box-config" @click="jumpDrainage" fn="客户引流企微" mode="div">营销配置</GLButton>
</div>
<div class="coustom-box-item">
<div class="coustom-box-title">信息待完善客户</div>
<div class="coustom-echart">
<echart-circle bgColor="#5AD8A6" coustomId="coustomId_2" :lineData="[countAll.unInfoCount, countAll.totalCount - countAll.unInfoCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unInfoCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="coustom-box-content">当前客户池中,有企微客户尚未维护手机号码。建议批量通知对应的销售顾问维护此类客户信息。</div>
<GLButton class="coustom-box-config" @click="jumpFriend" fn="客户资料跟进" mode="div">营销配置</GLButton>
</div>
<div class="coustom-box-item">
<div class="coustom-box-title">待续保客户</div>
<div class="coustom-echart">
<echart-circle bgColor="#5D7092" coustomId="coustomId_3" :lineData="[countAll.unRenewCount, countAll.totalCount - countAll.unRenewCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unRenewCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="coustom-box-content">提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。</div>
<div class="coustom-box-config">敬请期待</div>
</div>
<div class="coustom-box-item">
<div class="coustom-box-title">待首保客户</div>
<div class="coustom-echart">
<echart-circle bgColor="#5B8FF9" coustomId="coustomId_4" :lineData="[countAll.unRegularCount, countAll.totalCount - countAll.unRegularCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unRegularCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="coustom-box-content">智能提醒用户回店首保,提高用户返店率。</div>
<div class="coustom-box-config">敬请期待</div>
</div>
</div>
<div class="square-tabel scrm-box-f">
<div class="square-tabel-form">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="120px">
<GLButton size="small" type="primary" @click="handleImport" fn="魔方导入">
<i class="el-icon-plus"></i>
导入魔方
</GLButton>
<el-form-item size="small" label="导入时间">
<el-date-picker :picker-options="pickerOptions" v-model="createTime" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始时间" end-placeholder="结束时间"></el-date-picker>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="importNumber" slot-scope="scope">
<div class="number-form">
<span>{{ scope.scope.entmicroNumber }}</span>
|
<span>{{ scope.scope.importNumber }}</span>
</div>
</div>
<div slot="newCostomerNumber" slot-scope="scope">
<div class="number-form">
<span>{{ scope.scope.newCustomerNumber }}</span>
|
<span>{{ scope.scope.importNumber }}</span>
</div>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLButton type="text" @click="handleDetail(scope.scope)" fn="魔方导入结果">详情</GLButton>
</div>
</GLTable>
</div>
</div>
<div class="dialog-wrap-box" v-show="dialogVisible">
<div class="dialog-wrap-panel">
<div class="dialog-wrap-items">
<div class="dialog-wrap-item">
<div class="dialog-item-title">客户智能分群</div>
<div class="dialog-item-image">
<img src="@/assets/img/square/coutom1.png" />
</div>
<div class="dialog-item-content">通过企微客户及导入的客户基础数据,识别针对未匹配到企微的客户系统提供全套智能引流方案。</div>
</div>
<div class="dialog-wrap-item">
<div class="dialog-item-title">自动匹配营销策略</div>
<div class="dialog-item-image">
<img src="@/assets/img/square/coutom3.png" />
</div>
<div class="dialog-item-content">系统识别客户所处的营销场景,如待定保、待续保,配合智能外呼及智能短信推送营销活动,降低跟进客户的成本。</div>
</div>
<div class="dialog-wrap-item">
<div class="dialog-item-title">支持多种数据对接模式</div>
<div class="dialog-item-image">
<img src="@/assets/img/square/coutom2.png" />
</div>
<div class="dialog-item-content">支持按需手动导入客户数据以供分析;支持API对接同步客户数据,大幅降低客户数据维护难度,提高运营时效性。</div>
</div>
<div class="footer-btn" @click="dialogVisible = false">我知道啦</div>
</div>
</div>
</div>
</div>
</template>
<script>
import echartCircle from './components/echartCircle'
export default {
name: 'square',
components: {
echartCircle
},
data() {
return {
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
createTime: '',
countAll: {},
dialogVisible: false,
tableSearchForm: {},
getListApi: this.$apis.square.importsRecord,
tableParams: {
listName: 'data',
tableOption: false,
otherOptions: {
label: '启用开关'
},
tableColumns: [
{
label: '导入时间',
prop: 'createdTime'
},
{
label: '企微客户数 | 导入客户数',
prop: 'importNumber',
minWidth: '100px',
addHtml: 'importNumber'
},
{
label: '新增客户数 | 导入客户数',
prop: 'newCostomerNumber',
addHtml: 'newCostomerNumber'
},
{
label: '导入人员',
prop: 'importStaffName'
},
{
label: '操作',
prop: 'optionBtns',
width: '100px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {
allMerchantList: [],
roleList: [],
staffStatusList: []
}
}
},
watch: {
createTime(value) {
if (value) {
this.tableSearchForm.startTime = value[0] + ' 00:00:00'
this.tableSearchForm.endTime = value[1] + ' 23:59:59'
} else {
delete this.tableSearchForm.startTime
delete this.tableSearchForm.endTime
}
}
},
methods: {
importsCount() {
this.$apis.square.importsCount({}).then(res => {
console.log(res)
this.countAll = res
})
},
handleReset() {
this.tableSearchForm = {}
this.createTime = null
this.handleSearch()
},
handleSearch() {
this.$refs.employeeRef.refreshTable()
},
jumpDrainage() {
this.$router.push('/square/drainage')
},
jumpFriend() {
this.$router.push('/friends/index/2')
},
handleDetail(scope) {
this.$router.push('/square/importResult/' + scope.id)
},
handleImport() {
this.$router.push('/square/import')
},
jumpDetail() {
// this.$router.push('/square/customDetail')
},
findLogin() {
this.$apis.square.findLoginCount({ loginType: 1005 }).then(res => {
if (res) {
this.dialogVisible = true
}
})
}
},
mounted() {
this.importsCount()
this.findLogin()
}
}
</script>
<style lang="scss" scoped>
.detail-content {
position: relative;
}
.detail-btn {
display: inline-block;
position: absolute;
cursor: pointer;
opacity: 0;
width: 100%;
height: 100%;
left: 0px;
top: 0px;
}
.detail-btn::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: brown;
}
.number-form {
span {
display: inline-block;
min-width: 80px;
text-align: left;
&:first-child {
text-align: right;
}
}
}
.dialog-wrap-box {
z-index: 2001;
position: fixed;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
background: rgba(0, 0, 0, 0.5);
.dialog-wrap-panel {
background: #ffffff;
position: absolute;
top: 50%;
left: 10%;
transform: translateY(-50%);
height: 360px;
width: 80%;
.dialog-wrap-items {
position: relative;
display: flex;
width: 100%;
height: 360px;
.footer-btn {
cursor: pointer;
position: absolute;
bottom: -50px;
left: 50%;
text-align: center;
width: 120px;
margin-left: -60px;
height: 34px;
line-height: 34px;
background: #5850ff;
border-radius: 4px;
font-size: 14px;
color: #ffffff;
}
}
.dialog-wrap-item {
padding: 30px;
width: 33.33%;
text-align: center;
border-right: 1px solid #eeeeee;
.dialog-item-title {
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 22px;
}
img {
width: 200px;
height: auto;
margin: 20px;
}
.dialog-item-content {
font-size: 14px;
width: 240px;
margin: 0 auto;
font-weight: 400;
color: #333333;
line-height: 20px;
}
}
}
}
.square-title {
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
img {
width: 14px;
height: 14px;
margin-top: 3px;
margin-left: 18px;
}
}
.square-num-box {
height: 102px;
margin: 20px 0px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex;
.square-num-item {
width: 33.33%;
padding-left: 20px;
.square-num-title {
margin-top: 20px;
font-size: 14px;
font-weight: 400;
color: rgba(0, 0, 0, 0.65);
line-height: 22px;
}
.square-num-count {
font-size: 30px;
font-weight: 600;
color: rgba(0, 0, 0, 0.85);
line-height: 38px;
}
}
}
.coustom-box {
margin-top: 20px;
display: flex;
&-item {
box-sizing: border-box;
width: 25%;
margin-right: 20px;
padding: 20px;
height: 334px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
text-align: center;
&:last-child {
margin-right: 0px;
}
.coustom-box-title {
font-size: 20px;
font-weight: 500;
color: #424242;
line-height: 28px;
letter-spacing: 1px;
margin: 10px;
}
.coustom-echart {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
.coustom-echart-desc {
margin-left: 10px;
font-size: 14px;
font-weight: 400;
color: rgba(0, 0, 0, 0.65);
line-height: 22px;
.coustom-echart-num {
font-size: 20px;
}
}
}
.coustom-box-content {
font-size: 14px;
font-weight: 500;
color: #a3a3a3;
line-height: 20px;
text-align: left;
height: 110px;
}
.coustom-box-config {
cursor: pointer;
margin: 10px auto;
display: inline-block;
border-radius: 4px;
border: 1px solid #5850ff;
padding: 7px 28px;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 14px;
}
}
}
.square-tabel {
padding: 20px;
margin-top: 20px;
}
</style>