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 ed4ec52d
authored
Jun 07, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v2.4.0' into 'v2.4.0'
更新2.4.0代码 See merge request
!102
2 parents
c50ba577
903c620d
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
408 additions
and
319 deletions
src/api/modules/clientDataOverview.js
src/api/modules/crowdManage.js
src/common/constants.js
src/views/clientDataOverview/GroupOperating/components/marketingPlan.vue
src/views/clientDataOverview/components/marketingPlan.vue
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/grouping.vue
src/views/clientDataOverview/index copy.vue
src/views/clientDataOverview/index.vue
src/views/clientDataOverview/marketingPeople.vue
src/views/clientManage/index.vue
src/views/guestGroup/components/selectFollow.vue
src/api/modules/clientDataOverview.js
View file @
ed4ec52
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
* @returns
* @returns
*/
*/
import
{
import
{
http3
http3
,
http
}
from
'@/main'
}
from
'@/main'
// const url = 'http://192.168.3.193:8395/rop-scrm-entmicro/router'
// const url = 'http://192.168.3.193:8395/rop-scrm-entmicro/router'
...
@@ -103,3 +104,39 @@ export function searchCrowdIdByCrowdname(params) {
...
@@ -103,3 +104,39 @@ export function searchCrowdIdByCrowdname(params) {
sign
:
true
sign
:
true
})
})
}
}
// 删除sop事件
const
deleteSopEventApi
=
params
=>
{
params
.
method
=
'scrm.api.sop.sopInfo.delete'
return
http
({
url
:
'rop-scrm-sop/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 结束sop事件
const
endSopEventApi
=
params
=>
{
params
.
method
=
'scrm.api.sop.sopInfo.updateEndStatus'
return
http
({
url
:
'rop-scrm-sop/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
const
getSopInfoListApi
=
params
=>
{
params
.
method
=
'scrm.api.sop.sopInfo.listWithPage'
return
http
({
url
:
'/rop-scrm-sop/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
deleteSopEventApi
,
endSopEventApi
,
getSopInfoListApi
}
\ No newline at end of file
\ No newline at end of file
src/api/modules/crowdManage.js
View file @
ed4ec52
...
@@ -7,9 +7,7 @@
...
@@ -7,9 +7,7 @@
* @returns
* @returns
*/
*/
import
{
http
,
http3
}
from
'@/main'
import
{
http
,
http3
}
from
'@/main'
// http 对应的域名http://ismv.branch.glsx.com.cn
// http 对应的域名http://ismv.branch.glsx.com.cn
// 查询推荐人群和自定义人群列表
// 查询推荐人群和自定义人群列表
const
getCrowdList
=
params
=>
{
const
getCrowdList
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
...
@@ -22,7 +20,6 @@ const getCrowdList = params => {
...
@@ -22,7 +20,6 @@ const getCrowdList = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
//通过人群Id查询人群详情
//通过人群Id查询人群详情
const
getCrowdDetails
=
params
=>
{
const
getCrowdDetails
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdDetailsById'
params
.
method
=
'scrm.api.datahub.user.queryCrowdDetailsById'
...
@@ -45,7 +42,6 @@ const addCrowd = params => {
...
@@ -45,7 +42,6 @@ const addCrowd = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
//根据标签组合查询人群客户数
//根据标签组合查询人群客户数
const
getCrowdCount
=
params
=>
{
const
getCrowdCount
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdCountByTagCombine'
params
.
method
=
'scrm.api.datahub.user.queryCrowdCountByTagCombine'
...
@@ -68,7 +64,6 @@ const getSearchBox = params => {
...
@@ -68,7 +64,6 @@ const getSearchBox = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
//标签组树查询
//标签组树查询
const
getLabelTreeList
=
params
=>
{
const
getLabelTreeList
=
params
=>
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelGroupTree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelGroupTree'
...
@@ -80,12 +75,71 @@ const getLabelTreeList = params => {
...
@@ -80,12 +75,71 @@ const getLabelTreeList = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
//查询分群列表树
const
queryCrowdGroupTree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.queryCrowdGroupTree'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//创建分群
const
addCrowdGroup
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.addCrowdGroup'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//编辑分群
const
editCrowdGroup
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.editCrowdGroup'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//删除分群
const
deleteCrowdGroup
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.deleteCrowdGroup'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//删除分群
const
queryCrowdGroupDetailsByCrowdGroupId
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.queryCrowdGroupDetailsByCrowdGroupId'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
export
default
{
getCrowdList
,
getCrowdList
,
getCrowdDetails
,
getCrowdDetails
,
addCrowd
,
addCrowd
,
getCrowdCount
,
getCrowdCount
,
getSearchBox
,
getSearchBox
,
getLabelTreeList
getLabelTreeList
,
queryCrowdGroupTree
,
addCrowdGroup
,
editCrowdGroup
,
deleteCrowdGroup
,
queryCrowdGroupDetailsByCrowdGroupId
}
}
src/common/constants.js
View file @
ed4ec52
...
@@ -153,67 +153,67 @@ export const Constants = {
...
@@ -153,67 +153,67 @@ export const Constants = {
DESCRIBEDATA
:
[{
DESCRIBEDATA
:
[{
name
:
'潜在意向客户'
,
name
:
'潜在意向客户'
,
info
:
'无购车且无其他交易行为的所有客户'
,
info
:
'无购车且无其他交易行为的所有客户'
,
id
:
1
id
:
4
},
},
{
{
name
:
'潜在意向已加企微客户'
,
name
:
'潜在意向已加企微客户'
,
info
:
'在潜在意向客户中,已加企微的客户'
,
info
:
'在潜在意向客户中,已加企微的客户'
,
id
:
2
id
:
5
},
},
{
{
name
:
'潜在意向未加企微客户'
,
name
:
'潜在意向未加企微客户'
,
info
:
'在潜在意向客户中,未加企微的客户'
,
info
:
'在潜在意向客户中,未加企微的客户'
,
id
:
3
id
:
6
},
},
{
{
name
:
'基盘客户'
,
name
:
'基盘客户'
,
info
:
'有购车或其他交易行为的所有客户'
,
info
:
'有购车或其他交易行为的所有客户'
,
id
:
4
id
:
1
},
},
{
{
name
:
'基盘已加企微客户'
,
name
:
'基盘已加企微客户'
,
info
:
'在基盘客户中,已加企微的客户'
,
info
:
'在基盘客户中,已加企微的客户'
,
id
:
5
id
:
2
},
},
{
{
name
:
'基盘未加企微客户'
,
name
:
'基盘未加企微客户'
,
info
:
'在基盘客户中,未加企微的客户'
,
info
:
'在基盘客户中,未加企微的客户'
,
id
:
6
id
:
3
},
{
name
:
'新车客户'
,
info
:
'购车时间3个月的客户'
,
id
:
7
},
{
name
:
'车险待续保客户'
,
info
:
'近一个月内车险即将到期的客户'
,
id
:
8
},
{
name
:
'新车待首保客户'
,
info
:
'购车时间5~7个月内,且无保养记录的客户'
,
id
:
9
},
{
name
:
'沉默客户'
,
info
:
'超过180天未到店的客户'
,
id
:
10
},
},
// {
// name: '新车客户',
// info: '购车时间3个月的客户',
// id: 7
// },
// {
// name: '车险待续保客户',
// info: '近一个月内车险即将到期的客户',
// id: 8
// },
// {
// name: '新车待首保客户',
// info: '购车时间5~7个月内,且无保养记录的客户',
// id: 9
// },
// {
// name: '沉默客户',
// info: '超过180天未到店的客户',
// id: 10
// },
{
{
name
:
'已加企微,待匹配客户'
,
name
:
'已加企微,待匹配客户'
,
info
:
'已加企微,且未匹配到潜在意向或基盘客户的客户'
,
info
:
'已加企微,且未匹配到潜在意向或基盘客户的客户'
,
id
:
11
id
:
7
},
},
{
{
name
:
'已加企微,待匹配客户(已绑定手机号)'
,
name
:
'已加企微,待匹配客户(已绑定手机号)'
,
info
:
'已加企微,且未匹配到潜在意向或基盘客户的客户(已绑定手机号)'
,
info
:
'已加企微,且未匹配到潜在意向或基盘客户的客户(已绑定手机号)'
,
id
:
20
id
:
8
},
},
{
{
name
:
'未加企微,未匹配客户'
,
name
:
'未加企微,未匹配客户'
,
info
:
'未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户'
,
info
:
'未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户'
,
id
:
21
id
:
9
}
}
]
]
}
}
\ No newline at end of file
\ No newline at end of file
src/views/clientDataOverview/GroupOperating/components/marketingPlan.vue
deleted
100644 → 0
View file @
c50ba57
<
template
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"pageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"searchFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLTable
v-loading=
"loading"
:hasNum=
"true"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"marketingPlan"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
>
<template
slot=
"options"
slot-scope=
"scope"
>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goSOPAnalysis(scope.scope.id)"
>
SOP分析
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goSOPEdit(scope.scope.id)"
>
编辑
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm('delete')"
>
删除
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm(scope.scope)"
>
结束
</el-button>
</
template
>
</GLTable>
</div>
</div>
</template>
<
script
>
import
{
getTableList
}
from
'@/api/modules/clientManage'
import
util
from
'@/utils/util'
export
default
{
data
()
{
return
{
searchForm
:
{},
searchFormList
:
[
{
type
:
'input'
,
inputType
:
'text'
,
// name: 'keyword',
label
:
'人群名称'
},
{
type
:
'select'
,
// name: 'type',
label
:
'营销状态'
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionList
:
[
{
label
:
'全部'
,
value
:
''
}
],
placeholder
:
'请选择'
}
],
getListApi
:
getTableList
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableParams
:
{
listName
:
'data'
,
tableColumns
:
[
{
label
:
'人群名称'
,
prop
:
'orderNo'
},
{
label
:
'SOP名称'
,
prop
:
'name'
},
{
label
:
'营销时间'
,
prop
:
'phone'
},
{
label
:
'完成度'
,
prop
:
'dsdasd'
},
{
label
:
'营销状态'
,
prop
:
'dsdasds'
},
{
label
:
'操作'
,
prop
:
'options'
,
addHtml
:
'options'
}
]
}
}
},
mounted
()
{
//没数据的时候要算高度
setTimeout
(()
=>
{
if
(
!
this
.
$refs
.
marketingPlan
.
data
.
length
)
{
this
.
loading
=
true
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
this
.
loading
=
false
}
},
200
)
},
methods
:
{
// 跳转SOP分析
goSOPAnalysis
(){
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
'/custom/clientDataOverview/marketingPeople?selectTab=2'
)}
&id=183`
)
},
// 跳转SOP编辑页面
goSOPEdit
(
id
)
{
this
.
$history
.
push
(
`/marketing/sop/editSop?$title=
${
encodeURI
(
'编辑SOP'
)}
&fromPage=
${
encodeURI
(
'/custom/clientDataOverview/marketingPeople?selectTab=2'
)}
&addOrEdit=edit&id=183`
)
},
// 确认删除或结束
confirm
(
type
)
{
this
.
$confirm
(
`是否确认
${
type
==
'delete'
?
'删除'
:
'结束'
}
?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
})
})
.
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消操作'
})
})
},
setTableFinishFun
()
{
this
.
$refs
.
marketingPlan
.
data
.
length
?
(
this
.
$refs
.
marketingPlan
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
},
setTableHeightEvent
()
{
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
},
// 搜索表格
searchTable
()
{
console
.
log
(
this
.
searchForm
)
this
.
$refs
.
marketingPlan
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
status
:
''
,
type
:
''
}
this
.
$refs
.
marketingPlan
.
refreshTable
()
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.pageContent
{
padding
:
20px
20px
30px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
background-color
:
#fff
;
}
</
style
>
src/views/clientDataOverview/components/marketingPlan.vue
View file @
ed4ec52
...
@@ -6,8 +6,12 @@
...
@@ -6,8 +6,12 @@
<template
slot=
"options"
slot-scope=
"scope"
>
<template
slot=
"options"
slot-scope=
"scope"
>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goSOPAnalysis(scope.scope.id)"
>
SOP分析
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goSOPAnalysis(scope.scope.id)"
>
SOP分析
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goSOPEdit(scope.scope.id)"
>
编辑
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goSOPEdit(scope.scope.id)"
>
编辑
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm('delete')"
>
删除
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm(scope.scope)"
>
结束
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"handleEnd(scope.scope)"
>
结束
</el-button>
<!--
<el-button
v-if=
"scope.scope.sopStatus != 1"
type=
"text"
@
click=
"handleJump('sopAnalysisList', scope.scope)"
>
SOP分析
</el-button>
<el-button
v-if=
"scope.scope.sopStatus == 2"
type=
"text"
@
click=
"handleEnd(scope.scope)"
>
结束
</el-button>
<el-button
v-if=
"scope.scope.sopStatus != 3"
type=
"text"
@
click=
"handleEdit('edit', scope.scope)"
>
编辑
</el-button>
<el-button
v-if=
"scope.scope.sopStatus == 1"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
</
template
>
</
template
>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -16,7 +20,6 @@
...
@@ -16,7 +20,6 @@
<
script
>
<
script
>
import
{
getTableList
}
from
'@/api/modules/clientManage'
import
{
getTableList
}
from
'@/api/modules/clientManage'
import
util
from
'@/utils/util'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -43,7 +46,7 @@ export default {
...
@@ -43,7 +46,7 @@ export default {
placeholder
:
'请选择'
placeholder
:
'请选择'
}
}
],
],
getListApi
:
getTableList
,
getListApi
:
this
.
$apis
.
clientDataOverview
.
getSopInfoListApi
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableParams
:
{
tableParams
:
{
listName
:
'data'
,
listName
:
'data'
,
...
@@ -88,22 +91,71 @@ export default {
...
@@ -88,22 +91,71 @@ export default {
},
200
)
},
200
)
},
},
methods
:
{
methods
:
{
// 结束
handleEnd
(
row
)
{
this
.
secondConfirm
(
'结束'
,
'结束SOP后,将不再进行营销任务自动推送,且不可恢复。是否确定结束?'
,
'clientDataOverview'
,
'endSopEventApi'
,
{
sopId
:
row
.
id
})
},
handleDelete
(
row
)
{
this
.
secondConfirm
(
'删除'
,
'SOP删除后,不可恢复。是否确定删除?'
,
'clientDataOverview'
,
'deleteSopEventApi'
,
{
sopId
:
row
.
id
})
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
fn
&&
fn
()
this
.
searchTable
()
}
})
}
}
})
},
// 跳转SOP分析
// 跳转SOP分析
goSOPAnalysis
(
)
{
goSOPAnalysis
(
id
)
{
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
'/custom/clientDataOverview/marketingPeople?selectTab=2'
)}
&id=183
`
)
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
'/custom/clientDataOverview/marketingPeople?selectTab=second'
)}
&id=
${
id
}
`
)
},
},
// 跳转SOP编辑页面
// 跳转SOP编辑页面
goSOPEdit
(
id
)
{
// goSOPEdit(id) {
// this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('编辑SOP')}&fromPage=${encodeURI('/custom/clientDataOverview/marketingPeople?selectTab=2')}&addOrEdit=edit&id=183`)
// var params = {
// addOrEdit: 'edit',
// fromPage: '/custom/clientDataOverview/marketingPeople?selectTab=second',
// $title: encodeURI('编辑SOP')
// }
// // addOrEdit != 'add' && (params.id = row.id)
// this.$router.push({
// path: '/sop/editSop',
// query: params
// })
// },
// 跳转到营销SOP
goSOPEdit
()
{
let
marketQuery
var
params
=
{
var
params
=
{
addOrEdit
:
'edit'
,
addOrEdit
:
'edit'
,
fromPage
:
'/custom/clientDataOverview/marketingPeople?selectTab=2'
,
fromPage
:
`/custom/clientDataOverview/marketingPeople?crowdId=
${
this
.
crowdGroupId
}
&selectTab=2`
,
$title
:
encodeURI
(
'编辑SOP'
)
$title
:
encodeURI
(
'编辑SOP'
),
info
:
{
// 人群
customerOptType
:
2
,
crowdList
:
[]
}
}
}
// addOrEdit != 'add' && (params.id = row.id)
params
.
info
.
crowdList
.
push
(
marketQuery
)
this
.
$router
.
push
({
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
path
:
'/sop/editSop'
,
console
.
log
(
params
)
query
:
params
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
})
})
},
},
// 确认删除或结束
// 确认删除或结束
...
...
src/views/clientDataOverview/group.vue
View file @
ed4ec52
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
</div>
</div>
<div>
<div>
<el-button
size=
"small"
@
click=
"handleExport"
class=
"export"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"handleExport"
class=
"export"
>
导出
</el-button>
<el-button
plain
size=
"small"
@
click=
"createMarketSOP()"
>
<el-button
plain
size=
"small"
@
click=
"createMarketSOP()"
>
营销SOP
营销SOP
</el-button>
</el-button>
...
@@ -58,7 +57,6 @@
...
@@ -58,7 +57,6 @@
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getCustomerList
,
getcrowdManageList
,
customerClusterListExport
,
searchCrowdIdByCrowdname
}
from
'@/api/modules/clientDataOverview'
import
{
getCustomerList
,
getcrowdManageList
,
customerClusterListExport
,
searchCrowdIdByCrowdname
}
from
'@/api/modules/clientDataOverview'
import
{
getStaffList
}
from
'@/api/modules/clientManage'
import
{
getStaffList
}
from
'@/api/modules/clientManage'
...
@@ -246,18 +244,18 @@ export default {
...
@@ -246,18 +244,18 @@ export default {
},
},
methods
:
{
methods
:
{
// 跳转到营销SOP
// 跳转到营销SOP
createMarketSOP
()
{
async
createMarketSOP
()
{
let
marketQuery
let
marketQuery
if
(
this
.
crowdType
==
1
||
this
.
crowdType
==
2
)
{
if
(
this
.
crowdType
==
1
||
this
.
crowdType
==
2
)
{
marketQuery
=
JSON
.
parse
(
this
.
$route
.
query
.
crowdInfo
)
marketQuery
=
JSON
.
parse
(
this
.
$route
.
query
.
crowdInfo
)
}
}
if
(
this
.
crowdType
==
3
)
{
if
(
this
.
crowdType
==
3
)
{
let
params
=
{
let
params
=
{
'req.crowdName
'
:
'潜在意向客户'
,
'req.crowdName
'
:
this
.
groupCorwdTitle
,
'req.merchantId'
:
44209846
'req.merchantId'
:
this
.
merchantId
}
}
searchCrowdIdByCrowdname
(
params
).
then
(
res
=>
{
await
searchCrowdIdByCrowdname
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
corwdId
=
res
})
})
marketQuery
=
{
marketQuery
=
{
crowdDesc
:
this
.
groupCorwdDesc
,
crowdDesc
:
this
.
groupCorwdDesc
,
...
@@ -268,7 +266,7 @@ export default {
...
@@ -268,7 +266,7 @@ export default {
}
}
var
params
=
{
var
params
=
{
addOrEdit
:
'add'
,
addOrEdit
:
'add'
,
fromPage
:
`/custom/clientDataOverview/group/
${
this
.
id
}
`
,
fromPage
:
`/custom/clientDataOverview/group/
${
this
.
id
}
/
${
this
.
crowdType
}
`
,
$title
:
encodeURI
(
'新建SOP'
),
$title
:
encodeURI
(
'新建SOP'
),
info
:
{
info
:
{
// 人群
// 人群
...
@@ -279,6 +277,9 @@ export default {
...
@@ -279,6 +277,9 @@ export default {
params
.
info
.
crowdList
.
push
(
marketQuery
)
params
.
info
.
crowdList
.
push
(
marketQuery
)
console
.
log
(
params
)
console
.
log
(
params
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
})
},
},
//获取跟进员工
//获取跟进员工
getStaffList
()
{
getStaffList
()
{
...
@@ -296,7 +297,6 @@ export default {
...
@@ -296,7 +297,6 @@ export default {
}
}
})
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
tagsPartFormList
[
id
].
optionList
=
staff
this
.
tagsPartFormList
[
id
].
optionList
=
staff
})
})
...
@@ -374,7 +374,6 @@ export default {
...
@@ -374,7 +374,6 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/styles/variables.scss'
;
@import
'@/styles/variables.scss'
;
.expandImg
{
.expandImg
{
...
...
src/views/clientDataOverview/grouping.vue
View file @
ed4ec52
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</div>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<auth-button
:data=
"scope.scope"
></auth-button>
-->
<!--
<auth-button
:data=
"scope.scope"
></auth-button>
-->
<el-button
type=
"text"
@
click=
"goDetail(scope.scope.id
, scope.scope.custGroupName
)"
class=
"blue-text"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
查看客户
查看客户
</el-button>
</el-button>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
class=
"blue-text"
>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
class=
"blue-text"
>
...
@@ -246,14 +246,8 @@ export default {
...
@@ -246,14 +246,8 @@ export default {
this
.
isReload
=
true
this
.
isReload
=
true
})
})
},
},
goDetail
(
id
,
name
)
{
goDetail
(
id
)
{
this
.
$router
.
push
({
this
.
$router
.
push
(
`/clientDataOverview/marketingPeople?crowdId=
${
id
}
`
)
path
:
'/clientGroupManage/clientGroupDetail'
,
query
:
{
id
:
id
,
groupName
:
name
}
})
}
}
}
}
}
}
...
...
src/views/clientDataOverview/index copy.vue
View file @
ed4ec52
...
@@ -222,7 +222,6 @@ export default {
...
@@ -222,7 +222,6 @@ export default {
height
:
17px
;
height
:
17px
;
align-items
:
center
;
align-items
:
center
;
font-size
:
12px
;
font-size
:
12px
;
font-family
:
Helvetica
;
color
:
#8c8c8c
;
color
:
#8c8c8c
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
src/views/clientDataOverview/index.vue
View file @
ed4ec52
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</div>
</div>
<!-- 引入echart组件 -->
<!-- 引入echart组件 -->
<pie-echart
width=
"100%"
height=
"
30
0px"
:topDataObj=
"topDataObj"
></pie-echart>
<pie-echart
width=
"100%"
height=
"
27
0px"
: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>
-->
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<div
class=
"itembox"
>
<div
class=
"itembox"
>
<div
style=
"display: flex; overflow: hidden"
>
<div
style=
"display: flex; overflow: hidden"
>
<div
class=
"buy"
>
<div
class=
"buy"
>
<div
class=
"buy-total item"
@
click=
"goto(
4
)"
fn=
"人群客户列表"
mode=
"div"
>
<div
class=
"buy-total item"
@
click=
"goto(
1
)"
fn=
"人群客户列表"
mode=
"div"
>
<div
class=
"buyTitle"
>
<div
class=
"buyTitle"
>
<span
class=
"client"
>
基盘客户
</span>
<span
class=
"client"
>
基盘客户
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"有购车或其他交易行为的所有客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"有购车或其他交易行为的所有客户"
>
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<el-divider></el-divider>
<el-divider></el-divider>
<no-data
:type=
"'hasText'"
v-if=
"isEmptyObj"
></no-data>
<no-data
:type=
"'hasText'"
v-if=
"isEmptyObj"
></no-data>
<div
class=
"firmClient"
>
<div
class=
"firmClient"
>
<div
@
click=
"goto(
5
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
@
click=
"goto(
2
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
class=
"clientCompleted"
>
<div
class=
"clientCompleted"
>
<span>
已加企微
</span>
<span>
已加企微
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在基盘客户中,已加企微的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在基盘客户中,已加企微的客户"
>
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
<span
class=
"numPro"
>
占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%
</span>
<span
class=
"numPro"
>
占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%
</span>
</p>
</p>
</div>
</div>
<div
@
click=
"goto(
6
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
@
click=
"goto(
3
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
class=
"clientCompleted"
>
<div
class=
"clientCompleted"
>
<span>
未加企微
</span>
<span>
未加企微
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在基盘客户中,未加企微的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在基盘客户中,未加企微的客户"
>
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<!-- <el-divider direction="vertical"></el-divider> -->
<!-- <el-divider direction="vertical"></el-divider> -->
</div>
</div>
<div
class=
"buy"
>
<div
class=
"buy"
>
<div
class=
"buy-total item"
@
click=
"goto(
1
)"
fn=
"人群客户列表"
mode=
"div"
>
<div
class=
"buy-total item"
@
click=
"goto(
4
)"
fn=
"人群客户列表"
mode=
"div"
>
<div
class=
"buyTitle"
>
<div
class=
"buyTitle"
>
<span
class=
"client"
>
潜在意向客户
</span>
<span
class=
"client"
>
潜在意向客户
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"无购车且无其他交易行为的所有客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"无购车且无其他交易行为的所有客户"
>
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
<no-data
:type=
"'hasText'"
v-if=
"isEmptyObj"
></no-data>
<no-data
:type=
"'hasText'"
v-if=
"isEmptyObj"
></no-data>
<div
class=
"firmClient"
>
<div
class=
"firmClient"
>
<div
@
click=
"goto(
2
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
@
click=
"goto(
5
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
class=
"clientCompleted"
>
<div
class=
"clientCompleted"
>
<span>
已加企微
</span>
<span>
已加企微
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在潜在意向客户中,已加企微的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在潜在意向客户中,已加企微的客户"
>
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
<span
class=
"numPro"
>
占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%
</span>
<span
class=
"numPro"
>
占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%
</span>
</p>
</p>
</div>
</div>
<div
@
click=
"goto(
3
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
@
click=
"goto(
6
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
class=
"clientCompleted"
>
<div
class=
"clientCompleted"
>
<span>
未加企微
</span>
<span>
未加企微
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在潜在意向客户中,未加企微的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在潜在意向客户中,未加企微的客户"
>
...
@@ -173,10 +173,10 @@
...
@@ -173,10 +173,10 @@
</div>
</div>
<div
class=
"intendedTop"
>
<div
class=
"intendedTop"
>
<!-- 已加企微,待匹配客户 -->
<!-- 已加企微,待匹配客户 -->
<div
class=
"intended"
@
click=
"goto(
11
)"
>
<div
class=
"intended"
@
click=
"goto(
7
)"
>
<p
class=
"intend-name"
>
<p
class=
"intend-name"
>
<span
class=
"nameHover"
>
已加企微,待匹配客户
</span>
<span
class=
"nameHover"
>
已加企微,待匹配客户
</span>
<span
class=
"intend-phone"
@
click
.
stop=
"goto(
20
)"
>
(已绑定手机号{{ (topDataObj.notMatchCustomerAddPhoneCount || 0) | overThousandFilter }}人)
</span>
<span
class=
"intend-phone"
@
click
.
stop=
"goto(
8
)"
>
(已绑定手机号{{ (topDataObj.notMatchCustomerAddPhoneCount || 0) | overThousandFilter }}人)
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"已加企微,且未匹配到潜在意向或基盘客户的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"已加企微,且未匹配到潜在意向或基盘客户的客户"
>
<span
class=
"dataOverPopover"
>
已加企微,且未匹配到潜在意向或基盘客户的客户
</span>
<span
class=
"dataOverPopover"
>
已加企微,且未匹配到潜在意向或基盘客户的客户
</span>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
</div>
</div>
</div>
</div>
<!-- 未加企微,未匹配客户 -->
<!-- 未加企微,未匹配客户 -->
<div
class=
"intended"
@
click=
"goto(
21
)"
>
<div
class=
"intended"
@
click=
"goto(
9
)"
>
<p
class=
"intend-name"
>
<p
class=
"intend-name"
>
<span>
未加企微,未匹配客户
</span>
<span>
未加企微,未匹配客户
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户"
>
...
...
src/views/clientDataOverview/marketingPeople.vue
View file @
ed4ec52
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<el-divider></el-divider>
<el-divider></el-divider>
<!-- 营销人群展示 -->
<!-- 营销人群展示 -->
<div
class=
"bigMarketItem"
v-if=
"closeFlag"
>
<div
class=
"bigMarketItem"
v-if=
"closeFlag"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[
{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[
{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx
, item.crowdName, item.crowdId
)">
<template
v-if=
"idx
< displayNum
"
>
<template
v-if=
"idx
< displayNum
"
>
<p
class=
"peopleName"
>
{{
item
.
crowdName
}}
</p>
<p
class=
"peopleName"
>
{{
item
.
crowdName
}}
</p>
<div
class=
"itemBox"
>
<div
class=
"itemBox"
>
...
@@ -37,10 +37,11 @@
...
@@ -37,10 +37,11 @@
</
template
>
</
template
>
</div>
</div>
</div>
</div>
<!-- 轮播展示 -->
<div
v-show=
"!closeFlag"
>
<div
v-show=
"!closeFlag"
>
<div
class=
"swiper-container"
id=
"swiper"
>
<div
class=
"swiper-container"
id=
"swiper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx, item.
title
)"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx, item.
crowdName, item.crowdId
)"
>
<div
class=
"marketItem-border"
>
<div
class=
"marketItem-border"
>
<p
class=
"peopleName"
>
{{ item.crowdName }}
</p>
<p
class=
"peopleName"
>
{{ item.crowdName }}
</p>
<div
class=
"itemBox"
>
<div
class=
"itemBox"
>
...
@@ -67,10 +68,33 @@
...
@@ -67,10 +68,33 @@
</div>
</div>
<div>
<div>
<el-button
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
class=
"marketSOP"
size=
"small"
@
click=
"market
Button
()"
>
营销SOP
</el-button>
<el-button
class=
"marketSOP"
size=
"small"
@
click=
"market
SOP
()"
>
营销SOP
</el-button>
</div>
</div>
</div>
</div>
<GLTable
v-loading=
"loading"
:hasNum=
"true"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"marketPeople"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
></GLTable>
<GLTable
v-loading=
"loading"
:hasNum=
"true"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
:beforeSearchFn=
"beforeSearchFn"
ref=
"marketPeople"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-if=
"idx == 0"
>
<span>
{{ list.nickName }}
</span>
<span
class=
"smallFontSize"
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@{{ list.corpName }}
</span>
</div>
<span
v-if=
"idx == 1"
>
<el-popover
placement=
"right-start"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
style=
"padding-bottom: 3px !important"
v-for=
"(i, index) in scope.scope.nickNameList"
:key=
"index"
>
<span>
{{ i.nickName }}
</span>
<span
style=
"height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400; margin-left: 2px"
:class=
"[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']"
>
@{{ i.corpName }}
</span>
</div>
<img
class=
"imgEll"
src=
"@/assets/tagsManage/ellipsis.png"
alt=
""
slot=
"reference"
/>
</el-popover>
</span>
</div>
</div>
<!-- 操作 -->
<div
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.scope)"
class=
"blue-text"
>
详情
</el-button>
</div>
</GLTable>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"营销计划"
name=
"second"
>
<el-tab-pane
label=
"营销计划"
name=
"second"
>
...
@@ -81,7 +105,8 @@
...
@@ -81,7 +105,8 @@
</template>
</template>
<
script
>
<
script
>
import
{
marketingPeopleListShow
}
from
'@/api/modules/clientDataOverview'
import
{
marketingPeopleListShow
,
getcrowdManageList
}
from
'@/api/modules/clientDataOverview'
import
{
getStaffList
}
from
'@/api/modules/clientManage'
import
marketingPlan
from
'./components/marketingPlan.vue'
import
marketingPlan
from
'./components/marketingPlan.vue'
import
Swiper
from
'swiper'
import
Swiper
from
'swiper'
import
'swiper/dist/css/swiper.min.css'
import
'swiper/dist/css/swiper.min.css'
...
@@ -90,10 +115,14 @@ export default {
...
@@ -90,10 +115,14 @@ export default {
components
:
{
marketingPlan
},
components
:
{
marketingPlan
},
data
()
{
data
()
{
return
{
return
{
selectTab
:
1
,
queryTab
:
''
,
crowdGroupId
:
''
,
crowdGroupId
:
''
,
activeName
:
'first'
,
activeName
:
'first'
,
searchForm
:
{},
searchForm
:
{
isActive
:
-
1
,
crowdId
:
''
},
isActive
:
0
,
displayNum
:
4
,
//展示的数目
displayNum
:
4
,
//展示的数目
closeFlag
:
false
,
//展开收起
closeFlag
:
false
,
//展开收起
showTitle
:
''
,
// 展示的标题
showTitle
:
''
,
// 展示的标题
...
@@ -102,57 +131,39 @@ export default {
...
@@ -102,57 +131,39 @@ export default {
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'
keyword
'
,
name
:
'
carNumber
'
,
label
:
'车牌号'
label
:
'车牌号'
},
},
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'
keyword
'
,
name
:
'
carSeries
'
,
label
:
'车系'
label
:
'车系'
},
},
{
{
type
:
'select'
,
type
:
'select'
,
name
:
'
status
'
,
name
:
'
followStaff
'
,
label
:
'跟进员工'
,
label
:
'跟进员工'
,
optionLabel
:
'label'
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionId
:
'value'
,
optionList
:
[
optionList
:
[]
{
label
:
'全部'
,
value
:
''
},
{
label
:
'待跟进'
,
value
:
0
},
{
label
:
'跟进中'
,
value
:
1
},
{
label
:
'已完成'
,
value
:
2
}
],
placeholder
:
'请选择'
},
},
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'
keyword
'
,
name
:
'
customerPhone
'
,
label
:
'联系电话'
label
:
'联系电话'
},
},
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'
keyword
'
,
name
:
'
nickName
'
,
label
:
'企微名称'
label
:
'企微名称'
},
},
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'
us
erName'
,
name
:
'
custom
erName'
,
label
:
'客户名称'
label
:
'客户名称'
},
},
{
{
...
@@ -179,8 +190,8 @@ export default {
...
@@ -179,8 +190,8 @@ export default {
},
},
{
{
type
:
'datePicker'
,
type
:
'datePicker'
,
name
:
'
daterang
e'
,
name
:
'
carBuyDat
e'
,
label
:
'购车'
,
label
:
'购车
时间
'
,
valueFormat
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
...
@@ -190,7 +201,7 @@ export default {
...
@@ -190,7 +201,7 @@ export default {
},
},
{
{
type
:
'datePicker'
,
type
:
'datePicker'
,
name
:
'
daterang
e'
,
name
:
'
InsEndDat
e'
,
label
:
'车险到期时间'
,
label
:
'车险到期时间'
,
valueFormat
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
{
pickerOptions
:
{
...
@@ -207,84 +218,88 @@ export default {
...
@@ -207,84 +218,88 @@ export default {
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
//
addHtml: 'customerName',
minWidth
:
150
minWidth
:
150
},
},
{
{
label
:
'企微名称'
,
label
:
'企微名称'
,
prop
:
'customerPhone'
,
prop
:
'nickNameList'
,
minWidth
:
120
addHtml
:
'nickNameList'
,
width
:
220
},
},
{
{
label
:
'联系电话'
,
label
:
'联系电话'
,
prop
:
'customerSex'
,
prop
:
'customerPhone'
,
addHtml
:
'customerSex'
,
width
:
130
width
:
150
},
},
{
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'
joinScene
'
,
prop
:
'
carVin
'
,
addHtml
:
'joinScene'
,
width
:
140
,
minWidth
:
140
line
:
1
},
},
{
{
label
:
'车牌号'
,
label
:
'车牌号'
,
prop
:
'
invitorName
'
,
prop
:
'
carNumber
'
,
minW
idth
:
120
w
idth
:
120
},
},
{
{
label
:
'车系'
,
label
:
'车系'
,
prop
:
'
joinTime
'
,
prop
:
'
audi
'
,
width
:
170
width
:
170
},
},
{
{
label
:
'车险开始时间'
,
label
:
'车险开始时间'
,
prop
:
'
joinTim
e'
,
prop
:
'
isStartDat
e'
,
width
:
170
width
:
170
},
},
{
{
label
:
'车险到期时间'
,
label
:
'车险到期时间'
,
prop
:
'
joinTim
e'
,
prop
:
'
insEndDat
e'
,
width
:
170
width
:
170
},
},
{
{
label
:
'跟进员工'
,
label
:
'跟进员工'
,
prop
:
'joinTime'
,
prop
:
'followStaff'
,
width
:
170
width
:
170
,
line
:
1
},
},
{
{
label
:
'是否加企微'
,
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'
joinTi
me'
,
prop
:
'
isJoinNa
me'
,
width
:
1
7
0
width
:
1
3
0
},
},
{
{
label
:
'购车时间'
,
label
:
'购车时间'
,
prop
:
'
joinTim
e'
,
prop
:
'
buyDat
e'
,
width
:
1
7
0
width
:
1
3
0
},
},
{
{
label
:
'添加时间'
,
label
:
'添加时间'
,
prop
:
'joinTime'
,
prop
:
'addTime'
,
width
:
170
width
:
130
}
},
],
tableOption
:
{
width
:
60
,
btnList
:
[
{
{
name
:
'详情'
,
label
:
'操作'
,
pType
:
'detail'
width
:
'66px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
}
]
]
}
},
}
getListApi
:
getcrowdManageList
,
// getListApi: getDetailQuitTableList,
status
:
true
}
}
},
},
created
()
{
created
()
{
// this.$route.query || this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
this
.
crowdGroupId
=
this
.
$route
.
query
.
crowdId
||
''
this
.
crowdGroupId
=
this
.
$route
.
query
.
crowdId
// 判断营销SOP返回来的页面
this
.
getMarketingPeople
()
this
.
queryTab
=
this
.
$route
.
query
.
selectTab
||
''
if
(
this
.
queryTab
)
{
this
.
activeName
=
this
.
queryTab
==
'first'
?
'first'
:
'second'
}
// this.getMarketingPeople()
this
.
getStaffList
()
},
},
mounted
()
{
mounted
()
{
new
Swiper
(
'.swiper-container'
,
{
new
Swiper
(
'.swiper-container'
,
{
...
@@ -301,18 +316,79 @@ export default {
...
@@ -301,18 +316,79 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
// 获取营销人群展示
marketSOP
()
{
getMarketingPeople
()
{
let
params
=
this
.
itemArr
[
this
.
isActive
]
this
.
createMarketSOP
(
params
)
},
// 处理时间参数
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
console
.
log
(
params
)
if
(
params
.
carBuyDate
)
{
params
.
beginCarBuyDate
=
this
.
searchForm
.
carBuyDate
[
0
]
params
.
endCarBuyDate
=
this
.
searchForm
.
carBuyDate
[
1
]
}
else
{
if
(
params
.
beginCarBuyDate
)
delete
params
.
beginCarBuyDate
&&
delete
params
.
endCarBuyDate
}
if
(
params
.
InsEndDate
)
{
params
.
beginCInsEndDate
=
this
.
searchForm
.
InsEndDate
[
0
]
params
.
endInsEndDate
=
this
.
searchForm
.
InsEndDate
[
1
]
}
else
{
if
(
params
.
beginCInsEndDate
)
delete
params
.
beginCInsEndDate
&&
delete
params
.
endInsEndDate
}
delete
params
.
carBuyDate
delete
params
.
InsEndDate
return
params
},
async
beforeSearchFn
()
{
if
(
this
.
status
)
{
this
.
status
=
false
let
params
=
{
let
params
=
{
'req.crowdGroupId'
:
this
.
crowdGroupId
'req.crowdGroupId'
:
this
.
crowdGroupId
}
}
marketingPeopleListShow
(
params
).
then
(
res
=>
{
await
marketingPeopleListShow
(
params
).
then
(
res
=>
{
this
.
itemArr
=
res
.
crowdUnitList
this
.
itemArr
=
res
.
crowdUnitList
this
.
showTitle
=
this
.
itemArr
[
0
].
crowdName
this
.
searchForm
.
crowdId
=
53
})
}
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchForm
=
this
.
getParams
()
resolve
()
})
},
// 跳转到详情页面
goDetail
(
scope
)
{
this
.
$router
.
push
(
'/clientManage/clientDetail?id='
+
scope
.
oneId
)
},
// 获取跟进员工
getStaffList
(
val
)
{
const
params
=
{
staffName
:
val
?
val
.
trim
()
:
''
}
getStaffList
(
params
).
then
(
res
=>
{
if
(
res
.
length
==
0
)
{
return
''
}
const
id
=
this
.
marketPeopleFormList
.
findIndex
(
item
=>
{
return
item
.
name
==
'followStaff'
})
const
staff
=
res
.
map
(
item
=>
{
return
{
label
:
item
.
staffName
,
value
:
item
.
staffName
}
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
console
.
log
(
staff
)
this
.
$nextTick
(()
=>
{
this
.
marketPeopleFormList
[
id
].
optionList
=
staff
})
})
})
},
},
// 搜索表格
// 搜索表格
searchTable
()
{
searchTable
()
{
console
.
log
(
this
.
searchForm
)
this
.
$refs
.
marketPeople
.
refreshTable
()
this
.
$refs
.
marketPeople
.
refreshTable
()
},
},
//重置表格
//重置表格
...
@@ -331,7 +407,7 @@ export default {
...
@@ -331,7 +407,7 @@ export default {
}
}
var
params
=
{
var
params
=
{
addOrEdit
:
'add'
,
addOrEdit
:
'add'
,
fromPage
:
'/custom/clientDataOverview/marketingPeople'
,
fromPage
:
`/custom/clientDataOverview/marketingPeople?crowdId=
${
this
.
crowdGroupId
}
&selectTab=first`
,
$title
:
encodeURI
(
'新建SOP'
),
$title
:
encodeURI
(
'新建SOP'
),
info
:
{
info
:
{
// 人群
// 人群
...
@@ -341,6 +417,7 @@ export default {
...
@@ -341,6 +417,7 @@ export default {
}
}
params
.
info
.
crowdList
.
push
(
marketQuery
)
params
.
info
.
crowdList
.
push
(
marketQuery
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
console
.
log
(
params
)
this
.
$history
.
push
({
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
path
:
'marketing/sop/editSop'
})
})
...
@@ -355,10 +432,15 @@ export default {
...
@@ -355,10 +432,15 @@ export default {
}
}
},
},
// 选择的人群
// 选择的人群
choickItem
(
idx
,
title
)
{
choickItem
(
idx
,
title
,
id
)
{
this
.
isActive
=
idx
this
.
isActive
=
idx
this
.
showTitle
=
title
this
.
showTitle
=
title
console
.
log
(
id
)
// 发送请求查询列表
// 发送请求查询列表
this
.
searchForm
=
{
crowdId
:
58
}
this
.
searchTable
()
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
// this.$refs.marketPeople.data.length ? (this.$refs.marketPeople.tableHeightValues = '') : this.$refs.marketPeople.setTableHeightFun()
// this.$refs.marketPeople.data.length ? (this.$refs.marketPeople.tableHeightValues = '') : this.$refs.marketPeople.setTableHeightFun()
...
@@ -368,13 +450,33 @@ export default {
...
@@ -368,13 +450,33 @@ export default {
},
},
handleClick
(
tab
)
{
handleClick
(
tab
)
{
console
.
log
(
tab
)
console
.
log
(
tab
)
// this.activeName
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.expandImg
{
display
:
flex
;
.smallFontSize
{
margin-left
:
2px
;
height
:
20px
;
font-size
:
12px
;
letter-spacing
:
0
;
line-height
:
20px
;
font-weight
:
400
;
}
.imgEll
{
margin-left
:
6.5px
;
cursor
:
pointer
;
}
}
.pure-green-text
{
color
:
#61cc43
;
}
.pure-yello-text
{
color
:
#fb8f28
;
}
/
deep
/
.swiper-container-horizontal
>
.swiper-pagination-progressbar
{
/
deep
/
.swiper-container-horizontal
>
.swiper-pagination-progressbar
{
width
:
5%
;
width
:
5%
;
bottom
:
0px
;
bottom
:
0px
;
...
...
src/views/clientManage/index.vue
View file @
ed4ec52
...
@@ -18,10 +18,10 @@
...
@@ -18,10 +18,10 @@
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
</span>
</span>
<div
slot=
"followStaff"
class=
"entmicro"
slot-scope=
"scope"
>
<
!--
<
div
slot=
"followStaff"
class=
"entmicro"
slot-scope=
"scope"
>
<div
v-if=
"!followList(scope.scope.followStaff).length"
>
--
</div>
<div
v-if=
"!followList(scope.scope.followStaff).length"
>
--
</div>
<div
class=
"entmicro-tag"
style=
"padding-right:3px"
v-for=
"(tag, idx) in followList(scope.scope.followStaff)"
:key=
"idx"
>
<div
class=
"entmicro-tag"
style=
"padding-right:3px"
v-for=
"(tag, idx) in followList(scope.scope.followStaff)"
:key=
"idx"
>
<el-tooltip
effect=
"dark"
:content=
"tag"
placement=
"top"
>
<el-tooltip
effect=
"dark"
:content=
"tag"
placement=
"top"
v-if=
"idx
< 3
"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
v-if=
"idx
< 3
"
:disable-transitions=
"false"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
v-if=
"idx
< 3
"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
}}
{{
tag
}}
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 3 && idx == 3"
>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 3 && idx == 3"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</div>
<div
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</div>
<div
class=
"entmicro-hover"
>
<div
class=
"entmicro-hover"
>
<el-tag
style=
"margin-left:4px"
type=
"info"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<el-tag
style=
"margin-left:4px"
type=
"info"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
style=
"color: #75acff"
></i>
<i
class=
"el-icon-user-solid"
style=
"color: #75acff"
></i>
{{
i
}}
{{
i
}}
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</el-popover>
</el-popover>
</el-tag>
</el-tag>
</div>
</div>
</div>
</div>
-->
<!-- 企微名称 -->
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
v-if=
"!scope.scope.nickNameList.length"
>
--
</div>
<div
v-if=
"!scope.scope.nickNameList.length"
>
--
</div>
...
@@ -259,21 +259,21 @@ export default {
...
@@ -259,21 +259,21 @@ export default {
{
{
label
:
'客户ID'
,
label
:
'客户ID'
,
prop
:
'oneId'
,
prop
:
'oneId'
,
width
:
14
0
,
width
:
29
0
,
line
:
1
line
:
1
},
},
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
addHtml
:
'customerName'
,
width
:
1
2
0
,
width
:
1
7
0
,
line
:
1
line
:
1
},
},
{
{
label
:
'企微名称'
,
label
:
'企微名称'
,
prop
:
'nickNameList'
,
prop
:
'nickNameList'
,
addHtml
:
'nickNameList'
,
addHtml
:
'nickNameList'
,
width
:
190
,
width
:
190
},
},
{
{
label
:
'联系电话'
,
label
:
'联系电话'
,
...
@@ -289,7 +289,7 @@ export default {
...
@@ -289,7 +289,7 @@ export default {
{
{
label
:
'跟进员工'
,
label
:
'跟进员工'
,
prop
:
'followStaff'
,
prop
:
'followStaff'
,
addHtml
:
'followStaff'
,
//
addHtml: 'followStaff',
width
:
320
width
:
320
},
},
{
{
...
@@ -323,13 +323,13 @@ export default {
...
@@ -323,13 +323,13 @@ export default {
{
{
label
:
'车系'
,
label
:
'车系'
,
prop
:
'audi'
,
prop
:
'audi'
,
width
:
12
0
,
width
:
25
0
,
line
:
1
line
:
1
},
},
{
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'carVin'
,
prop
:
'carVin'
,
width
:
18
0
,
width
:
27
0
,
line
:
1
line
:
1
},
},
{
{
...
@@ -341,7 +341,7 @@ export default {
...
@@ -341,7 +341,7 @@ export default {
{
{
label
:
'购车时间'
,
label
:
'购车时间'
,
prop
:
'buyDate'
,
prop
:
'buyDate'
,
width
:
17
0
,
width
:
25
0
,
line
:
1
line
:
1
},
},
{
{
...
...
src/views/guestGroup/components/selectFollow.vue
View file @
ed4ec52
...
@@ -68,7 +68,7 @@ export default {
...
@@ -68,7 +68,7 @@ export default {
},
},
methods
:
{
methods
:
{
jumpUrl
()
{
jumpUrl
()
{
util
.
openUrl
(
location
.
origin
+
'/
home
/followUp/index'
)
util
.
openUrl
(
location
.
origin
+
'/
settings
/followUp/index'
)
},
},
getFollower
()
{
getFollower
()
{
var
params
=
{
var
params
=
{
...
...
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