Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dace0fad
authored
May 24, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.3.0' of
http://192.168.3.233:8090/saas/scrm-micro-custom
into xuyl_dev_v2.4.0
2 parents
c2484c0b
ff9255e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
302 additions
and
266 deletions
src/common/constants.js
src/components/echarts/pieEchart.vue
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/index.vue
src/views/clientManage/index.vue
src/common/constants.js
View file @
dace0fa
export
const
Constants
=
{
export
const
Constants
=
{
CLIENT_STATUS
:
{
CLIENT_STATUS
:
{
'0'
:
'正常, green-text'
,
'0'
:
'正常, green-text'
,
'1'
:
'删除好友, red-text'
'1'
:
'删除好友, red-text'
},
},
//性别选项
//性别选项
GENDER_OPTION
:
[
GENDER_OPTION
:
[{
{
label
:
'全部'
,
label
:
'全部'
,
value
:
null
value
:
null
},
},
{
{
label
:
'男'
,
label
:
'男'
,
value
:
1
value
:
1
},
},
{
{
label
:
'女'
,
label
:
'女'
,
value
:
2
value
:
2
},
},
{
{
label
:
'未知'
,
label
:
'未知'
,
value
:
0
value
:
0
}
}
],
],
SOURCE_OPTION
:
[{
SOURCE_OPTION
:
[
label
:
'全部'
,
{
value
:
0
label
:
'全部'
,
},
value
:
0
{
},
label
:
'直接导入'
,
{
value
:
1
label
:
'直接导入'
,
},
value
:
1
{
},
label
:
'扫描二维码'
,
{
value
:
'first'
label
:
'扫描二维码'
,
},
value
:
'first'
{
},
label
:
'搜索手机号'
,
{
value
:
2
label
:
'搜索手机号'
,
},
value
:
2
{
},
label
:
'名片分享'
,
{
value
:
3
label
:
'名片分享'
,
},
value
:
3
{
},
label
:
'群聊'
,
{
value
:
4
label
:
'群聊'
,
},
value
:
4
{
},
label
:
'手机通讯录'
,
{
value
:
5
label
:
'手机通讯录'
,
},
value
:
5
{
},
label
:
'微信联系人'
,
{
value
:
6
label
:
'微信联系人'
,
},
value
:
6
{
},
label
:
'来自微信的添加好友申请'
,
{
value
:
7
label
:
'来自微信的添加好友申请'
,
},
value
:
7
{
},
label
:
'第三方应用的客户人员'
,
{
value
:
8
label
:
'第三方应用的客户人员'
,
},
value
:
8
{
},
label
:
'搜索邮箱'
,
{
value
:
9
label
:
'搜索邮箱'
,
},
value
:
9
{
},
label
:
'内部成员共享'
,
{
value
:
10
label
:
'内部成员共享'
,
},
value
:
10
{
},
label
:
'管理员/负责人分配'
,
{
value
:
11
label
:
'管理员/负责人分配'
,
},
value
:
11
{
},
label
:
'未知来源'
,
{
value
:
12
label
:
'未知来源'
,
}
value
:
12
],
}
//标签类型
],
LABEL_OPTION
:
[{
//标签类型
label
:
'企业标签'
,
LABEL_OPTION
:
[
value
:
'企业标签'
{
},
label
:
'企业标签'
,
{
value
:
'企业标签'
label
:
'自店标签'
,
},
value
:
'自店标签'
{
},
label
:
'自店标签'
,
{
value
:
'自店标签'
label
:
'系统标签'
,
},
value
:
'系统标签'
{
}
label
:
'系统标签'
,
],
value
:
'系统标签'
}
],
// 文件大小提示语
FILESIZEMSG
:
'单个文件大小不能超过10M'
,
// 文件格式提示
// 文件大小提示语
FILETYPEMSG
:
'文件格式只支持jpg/jpeg/gif/png
'
,
FILESIZEMSG
:
'单个文件大小不能超过10M
'
,
// 文件上传个数限制
// 文件格式提示
FILEUPLOADLIMIT
:
'最多只能上传5张图片
'
,
FILETYPEMSG
:
'文件格式只支持jpg/jpeg/gif/png
'
,
// 删除文件失败
// 文件上传个数限制
FILEUPLOADLIMIT
:
'最多只能上传5张图片'
,
// 新增成功
// 删除文件失败
ADDSUCCESSMSG
:
'新增成功'
,
// 编辑
成功
// 新增
成功
EDITSUCCESSMSG
:
'编辑
成功'
,
ADDSUCCESSMSG
:
'新增
成功'
,
// 删除
成功
// 编辑
成功
DELETESUCCESSMSG
:
'删除
成功'
,
EDITSUCCESSMSG
:
'编辑
成功'
,
// 操作
成功
// 删除
成功
OPERATESUCCESSMSG
:
'操作
成功'
,
DELETESUCCESSMSG
:
'删除
成功'
,
// 操作失败
// 操作成功
OPERATEFAILMSG
:
'操作失败
'
,
OPERATESUCCESSMSG
:
'操作成功
'
,
// 错误提示
// 操作失败
ERRORMSG
:
'出错了,请联系管理员
'
,
OPERATEFAILMSG
:
'操作失败
'
,
// 请选择门店
// 错误提示
CHOSSESTOREMSG
:
'请选择门店
'
,
ERRORMSG
:
'出错了,请联系管理员
'
,
// 缺少参数
// 请选择门店
LACKPARAMSMSG
:
'缺少参数
'
,
CHOSSESTOREMSG
:
'请选择门店
'
,
// 付费方式 0用户续费,1后台续费
// 缺少参数
PAYWAYSTATUS
:
{
LACKPARAMSMSG
:
'缺少参数'
,
'0'
:
'用户续费'
,
'1'
:
'后台续费'
,
null
:
'--'
},
// 续费时长
// 付费方式 0用户续费,1后台续费
PERIODSTATUS
:
{
PAYWAYSTATUS
:
{
'0'
:
'六个月'
,
'0'
:
'用户续费'
,
'1'
:
'一年'
,
'1'
:
'后台续费'
,
'2'
:
'两年'
,
null
:
'--'
'3'
:
'三年'
,
null
:
'--'
},
// 设备状态
DEVICESTATUS
:
{
0
:
'未激活'
,
1
:
'已激活'
,
2
:
'已过期'
},
DESCRIBEDATA
:
[
{
name
:
'潜在意向客户'
,
info
:
'无购车且无其他交易行为的所有客户'
},
{
name
:
'潜在意向客户已加微'
,
info
:
'在潜在意向客户中,已加企微的客户'
},
{
name
:
'潜在意向客户未加微'
,
info
:
'在潜在意向客户中,未加企微的客户'
},
{
name
:
'基盘客户'
,
info
:
'有购车或其他交易行为的所有客户'
},
},
{
name
:
'基盘客户已加微'
,
// 续费时长
info
:
'在基盘客户中,已加企微的客户'
PERIODSTATUS
:
{
},
'0'
:
'六个月'
,
{
'1'
:
'一年'
,
name
:
'基盘客户未加微'
,
'2'
:
'两年'
,
info
:
'在基盘客户中,未加企微的客户'
'3'
:
'三年'
,
},
null
:
'--'
{
name
:
'新车客户'
,
info
:
'购车时间3个月的客户'
},
{
name
:
'车险待续保客户'
,
info
:
'近一个月内车险即将到期的客户'
},
{
name
:
'新车待首保客户'
,
info
:
'购车时间5~7个月内,且无保养记录的客户'
},
{
name
:
'沉默客户'
,
info
:
'超过180天未到店的客户'
},
},
{
name
:
'已加企微,待匹配客户'
,
// 设备状态
info
:
'已加企微,且未匹配到潜在意向和基盘客户的客户'
DEVICESTATUS
:
{
}
0
:
'未激活'
,
]
1
:
'已激活'
,
}
2
:
'已过期'
},
DESCRIBEDATA
:
[{
name
:
'潜在意向客户'
,
info
:
'无购车且无其他交易行为的所有客户'
,
id
:
1
},
{
name
:
'潜在意向已加企微客户'
,
info
:
'在潜在意向客户中,已加企微的客户'
,
id
:
2
},
{
name
:
'潜在意向未加企微客户'
,
info
:
'在潜在意向客户中,未加企微的客户'
,
id
:
3
},
{
name
:
'基盘客户'
,
info
:
'有购车或其他交易行为的所有客户'
,
id
:
4
},
{
name
:
'基盘已加企微客户'
,
info
:
'在基盘客户中,已加企微的客户'
,
id
:
5
},
{
name
:
'基盘未加企微客户'
,
info
:
'在基盘客户中,未加企微的客户'
,
id
:
6
},
{
name
:
'新车客户'
,
info
:
'购车时间3个月的客户'
,
id
:
7
},
{
name
:
'车险待续保客户'
,
info
:
'近一个月内车险即将到期的客户'
,
id
:
8
},
{
name
:
'新车待首保客户'
,
info
:
'购车时间5~7个月内,且无保养记录的客户'
,
id
:
9
},
{
name
:
'沉默客户'
,
info
:
'超过180天未到店的客户'
,
id
:
10
},
{
name
:
'已加企微,待匹配客户'
,
info
:
'已加企微,且未匹配到潜在意向或基盘客户的客户'
,
id
:
11
},
{
name
:
'已加企微,待匹配客户(已绑定手机号)'
,
info
:
'已加企微,且未匹配到潜在意向或基盘客户的客户(已绑定手机号)'
,
id
:
20
},
{
name
:
'未加企微,未匹配客户'
,
info
:
'未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户'
,
id
:
21
}
]
}
\ No newline at end of file
\ No newline at end of file
src/components/echarts/pieEchart.vue
View file @
dace0fa
...
@@ -104,8 +104,15 @@ export default {
...
@@ -104,8 +104,15 @@ export default {
// show: true,
// show: true,
// color: '#fff'
// color: '#fff'
// formatter: "{b}:\n{c}人({d}%)",
// formatter: "{b}:\n{c}人({d}%)",
formatter
:
'{b}\n{d}%'
,
// fontWeight: "bold",
// fontWeight: "bold",
color
:
'#666666'
color
:
'#666666'
,
textStyle
:
{
fontWeight
:
'normal'
,
fontSize
:
14
,
lineHeight
:
21
}
// color: ["#1296db", "#d42378"],
// color: ["#1296db", "#d42378"],
},
},
labelLine
:
{
show
:
true
}
labelLine
:
{
show
:
true
}
...
...
src/views/clientDataOverview/group.vue
View file @
dace0fa
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<div
class=
"scrm-sub-client-container"
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<template
v-if=
"crowdType == ''"
>
<template
v-if=
"crowdType == ''"
>
<div
class=
"head-container-title color-3 font-20"
>
{{
$Constants
.
DESCRIBEDATA
[
id
-
1
]
?
$Constants
.
DESCRIBEDATA
[
id
-
1
]
.
name
:
''
}}
</div>
<div
class=
"head-container-title color-3 font-20"
>
{{
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
.
name
:
''
}}
</div>
<div
class=
"head-container-content color-6 font-14"
>
{{
$Constants
.
DESCRIBEDATA
[
id
-
1
]
?
$Constants
.
DESCRIBEDATA
[
id
-
1
]
.
info
:
''
}}
</div>
<div
class=
"head-container-content color-6 font-14"
>
{{
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
.
info
:
''
}}
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<div
class=
"head-container-title color-3 font-20"
>
{{
crowdForm
.
crowdName
}}
</div>
<div
class=
"head-container-title color-3 font-20"
>
{{
crowdForm
.
crowdName
}}
</div>
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
<
script
>
<
script
>
import
{
getCustomerList
,
getcrowdManageList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
{
getCustomerList
,
getcrowdManageList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
{
getStaffList
}
from
'@/api/modules/clientManage'
import
{
getStaffList
}
from
'@/api/modules/clientManage'
// import Constants from '@common/constants.js'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
export
default
{
export
default
{
name
:
'group'
,
name
:
'group'
,
...
@@ -91,11 +92,11 @@ export default {
...
@@ -91,11 +92,11 @@ export default {
name
:
'nickName'
,
name
:
'nickName'
,
label
:
'企微名称'
label
:
'企微名称'
},
},
{
//
{
type
:
'input'
,
//
type: 'input',
name
:
'customerName'
,
//
name: 'customerName',
label
:
'客户名称'
//
label: '客户名称'
},
//
},
{
{
type
:
'select'
,
type
:
'select'
,
name
:
'isJoin'
,
name
:
'isJoin'
,
...
@@ -198,27 +199,30 @@ export default {
...
@@ -198,27 +199,30 @@ export default {
let
{
id
}
=
this
let
{
id
}
=
this
this
.
init
(
id
)
this
.
init
(
id
)
// 针对广汇替换字段
// 针对广汇替换字段
// if (this.id == 1 && location.host == 'scrm.cgacar.com') {
if
(
this
.
id
==
1
&&
location
.
host
==
'scrm.cgacar.com'
)
{
// this.tableParams.tableColumns.splice(
this
.
tableParams
.
tableColumns
.
splice
(
// 3,
3
,
// 3,
3
,
// {
{
// type: 'input',
label
:
'线索时间'
,
// name: '',
prop
:
'customerName'
,
// label: '线索时间'
width
:
170
,
// },
line
:
1
// {
},
// type: 'input',
{
// name: '',
label
:
'意向车型'
,
// label: '意向车型'
prop
:
'customerName'
,
// },
width
:
150
,
// {
line
:
1
// type: 'input',
},
// name: '',
{
// label: '线索来源'
label
:
'线索来源'
,
// }
prop
:
'customerName'
,
// )
minWidth
:
150
,
// }
line
:
1
}
)
}
},
},
mounted
()
{
mounted
()
{
this
.
getStaffList
()
this
.
getStaffList
()
...
...
src/views/clientDataOverview/index.vue
View file @
dace0fa
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<div
class=
"leftPieEcharts"
>
<div
class=
"leftPieEcharts"
>
<div
class=
"leftIntro"
>
<div
class=
"leftIntro"
>
<span
class=
"title"
>
客户总数
</span>
<span
class=
"title"
>
客户总数
</span>
<el-popover
placement=
"top"
width=
"400"
trigger=
"hover"
content=
"门店的所有客户数,包括企微客户
,
导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重"
>
<el-popover
placement=
"top"
width=
"400"
trigger=
"hover"
content=
"门店的所有客户数,包括企微客户
、
导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重"
>
<span
class=
"dataOverPopover"
>
门店的所有客户数,包括企微客户,导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重
</span>
<span
class=
"dataOverPopover"
>
门店的所有客户数,包括企微客户,导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重
</span>
<img
class=
"questionImg"
v-if=
"accountLevel == 4"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
<img
class=
"questionImg"
v-if=
"accountLevel == 4"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
</el-popover>
</el-popover>
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<!-- 引入echart组件 -->
<!-- 引入echart组件 -->
<pie-echart
width=
"100%"
height=
"300px"
:topDataObj=
"topDataObj"
></pie-echart>
<pie-echart
width=
"100%"
height=
"300px"
:topDataObj=
"topDataObj"
></pie-echart>
<
pie-echart-copy
class=
"pieCopy"
width=
"100%"
height=
"300px"
:topDataObj=
"topDataObj"
></pie-echart-copy
>
<
!--
<pie-echart-copy
class=
"pieCopy"
width=
"100%"
height=
"300px"
:topDataObj=
"topDataObj"
></pie-echart-copy>
--
>
<div
class=
"personsMap"
v-if=
"topDataObj.entmicroAddCustomerCount > 0"
>
<div
class=
"personsMap"
v-if=
"topDataObj.entmicroAddCustomerCount > 0"
>
<!--
<pictorial-bar
width=
"100%"
height=
"500px"
:entmicroAddCustomerCount=
"topDataObj.entmicroAddCustomerCount"
:entmicroNotAddCustomerCount=
"topDataObj.entmicroNotAddCustomerCount"
></pictorial-bar>
-->
<!--
<pictorial-bar
width=
"100%"
height=
"500px"
:entmicroAddCustomerCount=
"topDataObj.entmicroAddCustomerCount"
:entmicroNotAddCustomerCount=
"topDataObj.entmicroNotAddCustomerCount"
></pictorial-bar>
-->
</div>
</div>
...
@@ -367,7 +367,7 @@ import { rwdImageMaps } from './jquery.rwdImageMaps.js'
...
@@ -367,7 +367,7 @@ import { rwdImageMaps } from './jquery.rwdImageMaps.js'
import
{
getDataOverview
,
getDataOverviewBarMap
}
from
'@/api/modules/clientDataOverview'
import
{
getDataOverview
,
getDataOverviewBarMap
}
from
'@/api/modules/clientDataOverview'
import
{
getLoginCount
}
from
'@/api/modules/loginCount'
import
{
getLoginCount
}
from
'@/api/modules/loginCount'
import
pieEchart
from
'@/components/echarts/pieEchart'
import
pieEchart
from
'@/components/echarts/pieEchart'
import
pieEchartCopy
from
'@/components/echarts/pieEchartCopy'
//
import pieEchartCopy from '@/components/echarts/pieEchartCopy'
import
multipleEchart
from
'@/components/echarts/multipleEchart'
import
multipleEchart
from
'@/components/echarts/multipleEchart'
import
noData
from
'@/components/noData/noData'
import
noData
from
'@/components/noData/noData'
export
default
{
export
default
{
...
@@ -377,7 +377,7 @@ export default {
...
@@ -377,7 +377,7 @@ export default {
multipleEchart
,
multipleEchart
,
// pictorialBar,
// pictorialBar,
noData
,
noData
,
pieEchartCopy
//
pieEchartCopy
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/views/clientManage/index.vue
View file @
dace0fa
...
@@ -223,32 +223,29 @@ export default {
...
@@ -223,32 +223,29 @@ export default {
placeholder
:
'请选择性别'
,
placeholder
:
'请选择性别'
,
optionList
:
this
.
$Constants
.
GENDER_OPTION
optionList
:
this
.
$Constants
.
GENDER_OPTION
},
},
// {
{
// type: 'datePicker',
type
:
'datePicker'
,
// // prop: 'daterange',
name
:
'purchaseCar'
,
// name: '',
label
:
'购车时间'
,
// label: '购车时间',
valueFormat
:
'yyyy-MM-dd'
,
// valueFormat: 'yyyy-MM-dd',
pickerOptions
:
{
// pickerOptions: {
disabledDate
(
time
)
{
// disabledDate(time) {
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
// return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
// }
}
// }
},
// },
{
// {
type
:
'input'
,
// type: 'input',
inputType
:
'text'
,
// inputType: 'text',
name
:
'carVin'
,
// // prop: 'nickName',
label
:
'车架号'
// name: '',
},
// label: '车架号'
{
// },
type
:
'input'
,
// {
inputType
:
'text'
,
// type: 'input',
name
:
'carNumber'
,
// inputType: 'text',
label
:
'车牌号'
// // prop: 'nickName',
}
// name: '',
// label: '车牌号'
// }
],
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
...
@@ -309,7 +306,7 @@ export default {
...
@@ -309,7 +306,7 @@ export default {
label
:
'所属渠道'
,
label
:
'所属渠道'
,
prop
:
'sourceChannel'
,
prop
:
'sourceChannel'
,
width
:
140
,
width
:
140
,
line
:
1
line
:
1
},
},
{
{
label
:
'添加来源'
,
label
:
'添加来源'
,
...
@@ -321,26 +318,30 @@ export default {
...
@@ -321,26 +318,30 @@ export default {
prop
:
'addTime'
,
prop
:
'addTime'
,
width
:
170
width
:
170
},
},
// {
{
// label: '车系',
label
:
'车系'
,
// prop: '',
prop
:
'audi'
,
// width: 110
width
:
110
,
// },
line
:
1
// {
},
// label: '车架号',
{
// prop: '',
label
:
'车架号'
,
// width: 110
prop
:
'carVin'
,
// },
width
:
110
,
// {
line
:
1
// label: '车牌号',
},
// prop: '',
{
// width: 170
label
:
'车牌号'
,
// },
prop
:
'carNumber'
,
// {
width
:
170
,
// label: '购车时间',
line
:
1
// prop: '',
},
// width: 170
{
// },
label
:
'购车时间'
,
prop
:
'buyDate'
,
width
:
170
,
line
:
1
},
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
'optionBtns'
,
prop
:
'optionBtns'
,
...
@@ -414,7 +415,14 @@ export default {
...
@@ -414,7 +415,14 @@ export default {
}
else
{
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
}
if
(
params
.
purchaseCar
)
{
params
.
beginCarBuyDate
=
this
.
searchForm
.
purchaseCar
[
0
]
params
.
endCarBuyDate
=
this
.
searchForm
.
purchaseCar
[
1
]
}
else
{
if
(
params
.
beginCarBuyDate
)
delete
params
.
beginCarBuyDate
&&
delete
params
.
endCarBuyDate
}
delete
params
.
daterange
delete
params
.
daterange
delete
params
.
purchaseCar
return
params
return
params
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment