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 95db8247
authored
Jun 07, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新2.4.0代码
1 parent
7255570e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
341 additions
and
162 deletions
src/api/modules/clientDataOverview.js
src/common/constants.js
src/views/clientDataOverview/components/marketingPlan.vue
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/index copy.vue
src/views/clientDataOverview/index.vue
src/views/clientDataOverview/marketingPeople.vue
src/views/clientManage/index.vue
src/api/modules/clientDataOverview.js
View file @
95db824
...
...
@@ -7,7 +7,8 @@
* @returns
*/
import
{
http3
http3
,
http
}
from
'@/main'
// const url = 'http://192.168.3.193:8395/rop-scrm-entmicro/router'
...
...
@@ -72,7 +73,7 @@ export function customerClusterListShow(params) {
params
.
method
=
'scrm.api.datahub.crowdgroup.queryCrowdGroupList'
return
http3
({
// https://scrm.dev.glsx.com.cn
url
:
'
http://scrm.dev.glsx.com.cn
/rop-scrm-datahub/router'
,
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
...
...
@@ -85,7 +86,7 @@ export function marketingPeopleListShow(params) {
params
.
method
=
'scrm.api.datahub.crowdgroup.queryCrowdListByCrowdGroupId'
return
http3
({
// http://192.168.3.226:9636
url
:
'
http://scrm.dev.glsx.com.cn
/rop-scrm-datahub/router'
,
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
...
...
@@ -97,9 +98,45 @@ export function marketingPeopleListShow(params) {
export
function
searchCrowdIdByCrowdname
(
params
)
{
params
.
method
=
'scrm.api.datahub.crowd.queryCrowdIdByCrowdName'
return
http3
({
url
:
'
http://scrm.dev.glsx.com.cn
/rop-scrm-datahub/router'
,
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
\ No newline at end of file
}
// 删除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
src/common/constants.js
View file @
95db824
...
...
@@ -153,67 +153,67 @@ export const Constants = {
DESCRIBEDATA
:
[{
name
:
'潜在意向客户'
,
info
:
'无购车且无其他交易行为的所有客户'
,
id
:
1
id
:
4
},
{
name
:
'潜在意向已加企微客户'
,
info
:
'在潜在意向客户中,已加企微的客户'
,
id
:
2
id
:
5
},
{
name
:
'潜在意向未加企微客户'
,
info
:
'在潜在意向客户中,未加企微的客户'
,
id
:
3
id
:
6
},
{
name
:
'基盘客户'
,
info
:
'有购车或其他交易行为的所有客户'
,
id
:
4
id
:
1
},
{
name
:
'基盘已加企微客户'
,
info
:
'在基盘客户中,已加企微的客户'
,
id
:
5
id
:
2
},
{
name
:
'基盘未加企微客户'
,
info
:
'在基盘客户中,未加企微的客户'
,
id
:
6
},
{
name
:
'新车客户'
,
info
:
'购车时间3个月的客户'
,
id
:
7
},
{
name
:
'车险待续保客户'
,
info
:
'近一个月内车险即将到期的客户'
,
id
:
8
},
{
name
:
'新车待首保客户'
,
info
:
'购车时间5~7个月内,且无保养记录的客户'
,
id
:
9
},
{
name
:
'沉默客户'
,
info
:
'超过180天未到店的客户'
,
id
:
10
id
:
3
},
// {
// name: '新车客户',
// info: '购车时间3个月的客户',
// id: 7
// },
// {
// name: '车险待续保客户',
// info: '近一个月内车险即将到期的客户',
// id: 8
// },
// {
// name: '新车待首保客户',
// info: '购车时间5~7个月内,且无保养记录的客户',
// id: 9
// },
// {
// name: '沉默客户',
// info: '超过180天未到店的客户',
// id: 10
// },
{
name
:
'已加企微,待匹配客户'
,
info
:
'已加企微,且未匹配到潜在意向或基盘客户的客户'
,
id
:
11
id
:
7
},
{
name
:
'已加企微,待匹配客户(已绑定手机号)'
,
info
:
'已加企微,且未匹配到潜在意向或基盘客户的客户(已绑定手机号)'
,
id
:
20
id
:
8
},
{
name
:
'未加企微,未匹配客户'
,
info
:
'未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户'
,
id
:
21
id
:
9
}
]
}
\ No newline at end of file
src/views/clientDataOverview/components/marketingPlan.vue
View file @
95db824
...
...
@@ -6,13 +6,17 @@
<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>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"handleDelete(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
>
</GLTable>
</div>
</div>
</template>
</template>
<
script
>
import
{
getTableList
}
from
'@/api/modules/clientManage'
...
...
@@ -42,7 +46,7 @@ export default {
placeholder
:
'请选择'
}
],
getListApi
:
getTableList
,
getListApi
:
this
.
$apis
.
clientDataOverview
.
getSopInfoListApi
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableParams
:
{
listName
:
'data'
,
...
...
@@ -87,21 +91,71 @@ export default {
},
200
)
},
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分析
goSOPAnalysis
(
id
)
{
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
'/
npmph/clientDataOverview/marketingPeople?selectTab=2
'
)}
&id=
${
id
}
`
)
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
'/
custom/clientDataOverview/marketingPeople?selectTab=second
'
)}
&id=
${
id
}
`
)
},
// 跳转SOP编辑页面
goSOPEdit
(
id
)
{
// goSOPEdit(id) {
// 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
=
{
addOrEdit
:
'edit'
,
fromPage
:
'/custom/clientDataOverview/marketingPeople?selectTab=2'
,
$title
:
encodeURI
(
'编辑SOP'
)
fromPage
:
`/custom/clientDataOverview/marketingPeople?crowdId=
${
this
.
crowdGroupId
}
&selectTab=2`
,
$title
:
encodeURI
(
'编辑SOP'
),
info
:
{
// 人群
customerOptType
:
2
,
crowdList
:
[]
}
}
// addOrEdit != 'add' && (params.id = row.id)
this
.
$router
.
push
({
path
:
'/sop/editSop'
,
query
:
params
params
.
info
.
crowdList
.
push
(
marketQuery
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
console
.
log
(
params
)
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
})
},
// 确认删除或结束
...
...
src/views/clientDataOverview/group.vue
View file @
95db824
...
...
@@ -21,7 +21,6 @@
</div>
<div>
<el-button
size=
"small"
@
click=
"handleExport"
class=
"export"
>
导出
</el-button>
<el-button
plain
size=
"small"
@
click=
"createMarketSOP()"
>
营销SOP
</el-button>
...
...
@@ -58,7 +57,6 @@
</div>
</div>
</template>
<
script
>
import
{
getCustomerList
,
getcrowdManageList
,
customerClusterListExport
,
searchCrowdIdByCrowdname
}
from
'@/api/modules/clientDataOverview'
import
{
getStaffList
}
from
'@/api/modules/clientManage'
...
...
@@ -208,8 +206,6 @@ export default {
created
()
{
let
{
id
}
=
this
this
.
init
(
id
)
console
.
log
(
this
.
$route
.
params
)
console
.
log
(
this
.
$route
.
query
)
this
.
groupCorwdTitle
=
this
.
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
this
.
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
).
name
:
''
this
.
groupCorwdDesc
=
this
.
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
this
.
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
).
info
:
''
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
...
...
@@ -254,12 +250,12 @@ export default {
marketQuery
=
JSON
.
parse
(
this
.
$route
.
query
.
crowdInfo
)
}
if
(
this
.
crowdType
==
3
)
{
let
crowdP
arams
=
{
'req.crowdName'
:
'已加企微,待匹配客户'
,
'req.merchantId'
:
44209846
let
p
arams
=
{
'req.crowdName'
:
this
.
groupCorwdTitle
,
'req.merchantId'
:
this
.
merchantId
}
await
searchCrowdIdByCrowdname
(
crowdP
arams
).
then
(
res
=>
{
this
.
corwdId
=
res
||
''
await
searchCrowdIdByCrowdname
(
p
arams
).
then
(
res
=>
{
this
.
corwdId
=
res
})
marketQuery
=
{
crowdDesc
:
this
.
groupCorwdDesc
,
...
...
@@ -279,8 +275,8 @@ export default {
}
}
params
.
info
.
crowdList
.
push
(
marketQuery
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
console
.
log
(
params
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
})
...
...
@@ -301,7 +297,6 @@ export default {
}
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
this
.
$nextTick
(()
=>
{
this
.
tagsPartFormList
[
id
].
optionList
=
staff
})
...
...
@@ -379,7 +374,6 @@ export default {
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'@/styles/variables.scss'
;
.expandImg
{
...
...
src/views/clientDataOverview/index copy.vue
View file @
95db824
...
...
@@ -222,7 +222,6 @@ export default {
height
:
17px
;
align-items
:
center
;
font-size
:
12px
;
font-family
:
Helvetica
;
color
:
#8c8c8c
;
display
:
flex
;
justify-content
:
space-between
;
...
...
src/views/clientDataOverview/index.vue
View file @
95db824
...
...
@@ -47,7 +47,7 @@
</div>
<!-- 引入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>
-->
<div
class=
"personsMap"
v-if=
"topDataObj.entmicroAddCustomerCount > 0"
>
<!--
<pictorial-bar
width=
"100%"
height=
"500px"
:entmicroAddCustomerCount=
"topDataObj.entmicroAddCustomerCount"
:entmicroNotAddCustomerCount=
"topDataObj.entmicroNotAddCustomerCount"
></pictorial-bar>
-->
...
...
@@ -59,7 +59,7 @@
<div
class=
"itembox"
>
<div
style=
"display: flex; overflow: hidden"
>
<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"
>
<span
class=
"client"
>
基盘客户
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"有购车或其他交易行为的所有客户"
>
...
...
@@ -81,7 +81,7 @@
<el-divider></el-divider>
<no-data
:type=
"'hasText'"
v-if=
"isEmptyObj"
></no-data>
<div
class=
"firmClient"
>
<div
@
click=
"goto(
5
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
@
click=
"goto(
2
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
class=
"clientCompleted"
>
<span>
已加企微
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在基盘客户中,已加企微的客户"
>
...
...
@@ -95,7 +95,7 @@
<span
class=
"numPro"
>
占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%
</span>
</p>
</div>
<div
@
click=
"goto(
6
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
@
click=
"goto(
3
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
class=
"clientCompleted"
>
<span>
未加企微
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在基盘客户中,未加企微的客户"
>
...
...
@@ -114,7 +114,7 @@
<!-- <el-divider direction="vertical"></el-divider> -->
</div>
<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"
>
<span
class=
"client"
>
潜在意向客户
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"无购车且无其他交易行为的所有客户"
>
...
...
@@ -139,7 +139,7 @@
<no-data
:type=
"'hasText'"
v-if=
"isEmptyObj"
></no-data>
<div
class=
"firmClient"
>
<div
@
click=
"goto(
2
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
@
click=
"goto(
5
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
class=
"clientCompleted"
>
<span>
已加企微
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在潜在意向客户中,已加企微的客户"
>
...
...
@@ -153,7 +153,7 @@
<span
class=
"numPro"
>
占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%
</span>
</p>
</div>
<div
@
click=
"goto(
3
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
@
click=
"goto(
6
)"
fn=
"人群客户列表"
mode=
"div"
class=
"wid50"
>
<div
class=
"clientCompleted"
>
<span>
未加企微
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"在潜在意向客户中,未加企微的客户"
>
...
...
@@ -173,10 +173,10 @@
</div>
<div
class=
"intendedTop"
>
<!-- 已加企微,待匹配客户 -->
<div
class=
"intended"
@
click=
"goto(
11
)"
>
<div
class=
"intended"
@
click=
"goto(
7
)"
>
<p
class=
"intend-name"
>
<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=
"已加企微,且未匹配到潜在意向或基盘客户的客户"
>
<span
class=
"dataOverPopover"
>
已加企微,且未匹配到潜在意向或基盘客户的客户
</span>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
...
...
@@ -197,7 +197,7 @@
</div>
</div>
<!-- 未加企微,未匹配客户 -->
<div
class=
"intended"
@
click=
"goto(
21
)"
>
<div
class=
"intended"
@
click=
"goto(
9
)"
>
<p
class=
"intend-name"
>
<span>
未加企微,未匹配客户
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户"
>
...
...
src/views/clientDataOverview/marketingPeople.vue
View file @
95db824
...
...
@@ -23,7 +23,7 @@
<el-divider></el-divider>
<!-- 营销人群展示 -->
<div
class=
"bigMarketItem"
v-if=
"closeFlag"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[
{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx, item.crowdName)">
<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
"
>
<p
class=
"peopleName"
>
{{
item
.
crowdName
}}
</p>
<div
class=
"itemBox"
>
...
...
@@ -41,7 +41,7 @@
<div
v-show=
"!closeFlag"
>
<div
class=
"swiper-container"
id=
"swiper"
>
<div
class=
"swiper-wrapper"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx, item.crowdName)"
>
<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"
>
<p
class=
"peopleName"
>
{{ item.crowdName }}
</p>
<div
class=
"itemBox"
>
...
...
@@ -68,10 +68,33 @@
</div>
<div>
<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>
<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>
</el-tab-pane>
<el-tab-pane
label=
"营销计划"
name=
"second"
>
...
...
@@ -82,7 +105,8 @@
</template>
<
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
Swiper
from
'swiper'
import
'swiper/dist/css/swiper.min.css'
...
...
@@ -95,8 +119,10 @@ export default {
queryTab
:
''
,
crowdGroupId
:
''
,
activeName
:
'first'
,
searchForm
:
{},
isActive
:
-
1
,
searchForm
:
{
crowdId
:
''
},
isActive
:
0
,
displayNum
:
4
,
//展示的数目
closeFlag
:
false
,
//展开收起
showTitle
:
''
,
// 展示的标题
...
...
@@ -105,57 +131,39 @@ export default {
{
type
:
'input'
,
inputType
:
'text'
,
name
:
'
keyword
'
,
name
:
'
carNumber
'
,
label
:
'车牌号'
},
{
type
:
'input'
,
inputType
:
'text'
,
name
:
'
keyword
'
,
name
:
'
carSeries
'
,
label
:
'车系'
},
{
type
:
'select'
,
name
:
'
status
'
,
name
:
'
followStaff
'
,
label
:
'跟进员工'
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionList
:
[
{
label
:
'全部'
,
value
:
''
},
{
label
:
'待跟进'
,
value
:
0
},
{
label
:
'跟进中'
,
value
:
1
},
{
label
:
'已完成'
,
value
:
2
}
],
placeholder
:
'请选择'
optionList
:
[]
},
{
type
:
'input'
,
inputType
:
'text'
,
name
:
'
keyword
'
,
name
:
'
customerPhone
'
,
label
:
'联系电话'
},
{
type
:
'input'
,
inputType
:
'text'
,
name
:
'
keyword
'
,
name
:
'
nickName
'
,
label
:
'企微名称'
},
{
type
:
'input'
,
inputType
:
'text'
,
name
:
'
us
erName'
,
name
:
'
custom
erName'
,
label
:
'客户名称'
},
{
...
...
@@ -182,8 +190,8 @@ export default {
},
{
type
:
'datePicker'
,
name
:
'
daterang
e'
,
label
:
'购车'
,
name
:
'
carBuyDat
e'
,
label
:
'购车
时间
'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
{
disabledDate
(
time
)
{
...
...
@@ -193,7 +201,7 @@ export default {
},
{
type
:
'datePicker'
,
name
:
'
daterang
e'
,
name
:
'
InsEndDat
e'
,
label
:
'车险到期时间'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
{
...
...
@@ -210,78 +218,77 @@ export default {
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
//
addHtml: 'customerName',
minWidth
:
150
},
{
label
:
'企微名称'
,
prop
:
'customerPhone'
,
minWidth
:
120
prop
:
'nickNameList'
,
addHtml
:
'nickNameList'
,
width
:
220
},
{
label
:
'联系电话'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
,
width
:
150
prop
:
'customerPhone'
,
width
:
130
},
{
label
:
'车架号'
,
prop
:
'
joinScene
'
,
addHtml
:
'joinScene'
,
minWidth
:
140
prop
:
'
carVin
'
,
width
:
140
,
line
:
1
},
{
label
:
'车牌号'
,
prop
:
'
invitorName
'
,
minW
idth
:
120
prop
:
'
carNumber
'
,
w
idth
:
120
},
{
label
:
'车系'
,
prop
:
'
joinTime
'
,
prop
:
'
audi
'
,
width
:
170
},
{
label
:
'车险开始时间'
,
prop
:
'
joinTim
e'
,
prop
:
'
isStartDat
e'
,
width
:
170
},
{
label
:
'车险到期时间'
,
prop
:
'
joinTim
e'
,
prop
:
'
insEndDat
e'
,
width
:
170
},
{
label
:
'跟进员工'
,
prop
:
'joinTime'
,
width
:
170
prop
:
'followStaff'
,
width
:
170
,
line
:
1
},
{
label
:
'是否加企微'
,
prop
:
'
joinTi
me'
,
width
:
1
7
0
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'
isJoinNa
me'
,
width
:
1
3
0
},
{
label
:
'购车时间'
,
prop
:
'
joinTim
e'
,
width
:
1
7
0
prop
:
'
buyDat
e'
,
width
:
1
3
0
},
{
label
:
'添加时间'
,
prop
:
'joinTime'
,
width
:
170
prop
:
'addTime'
,
width
:
130
},
{
label
:
'操作'
,
width
:
'66px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
],
tableOption
:
{
width
:
60
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
}
// getListApi: getDetailQuitTableList,
]
},
getListApi
:
getcrowdManageList
,
status
:
true
}
},
created
()
{
...
...
@@ -291,7 +298,8 @@ export default {
if
(
this
.
queryTab
)
{
this
.
activeName
=
this
.
queryTab
==
'first'
?
'first'
:
'second'
}
this
.
getMarketingPeople
()
// this.getMarketingPeople()
this
.
getStaffList
()
},
mounted
()
{
new
Swiper
(
'.swiper-container'
,
{
...
...
@@ -308,18 +316,79 @@ export default {
})
},
methods
:
{
// 获取营销人群展示
getMarketingPeople
()
{
let
params
=
{
'req.crowdGroupId'
:
this
.
crowdGroupId
marketSOP
()
{
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
}
marketingPeopleListShow
(
params
).
then
(
res
=>
{
this
.
itemArr
=
res
.
crowdUnitList
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
=
{
'req.crowdGroupId'
:
this
.
crowdGroupId
}
await
marketingPeopleListShow
(
params
).
then
(
res
=>
{
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
()
{
console
.
log
(
this
.
searchForm
)
this
.
$refs
.
marketPeople
.
refreshTable
()
},
//重置表格
...
...
@@ -329,6 +398,7 @@ export default {
},
// 跳转到营销SOP
createMarketSOP
(
info
)
{
console
.
log
(
info
)
let
marketQuery
=
{
crowdDesc
:
info
.
crowdDesc
,
crowdId
:
info
.
crowdId
,
...
...
@@ -337,7 +407,7 @@ export default {
}
var
params
=
{
addOrEdit
:
'add'
,
fromPage
:
`/
npmph/clientDataOverview/marketingPeople?crowdId=
${
this
.
crowdGroupId
}
&selectTab=
${
this
.
activeName
}
`
,
fromPage
:
`/
custom/clientDataOverview/marketingPeople?crowdId=
${
this
.
crowdGroupId
}
&selectTab=first
`
,
$title
:
encodeURI
(
'新建SOP'
),
info
:
{
// 人群
...
...
@@ -362,10 +432,15 @@ export default {
}
},
// 选择的人群
choickItem
(
idx
,
title
)
{
choickItem
(
idx
,
title
,
id
)
{
this
.
isActive
=
idx
this
.
showTitle
=
title
console
.
log
(
id
)
// 发送请求查询列表
this
.
searchForm
=
{
crowdId
:
58
}
this
.
searchTable
()
},
setTableFinishFun
()
{
// this.$refs.marketPeople.data.length ? (this.$refs.marketPeople.tableHeightValues = '') : this.$refs.marketPeople.setTableHeightFun()
...
...
@@ -375,13 +450,33 @@ export default {
},
handleClick
(
tab
)
{
console
.
log
(
tab
)
// this.activeName
}
}
}
</
script
>
<
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
{
width
:
5%
;
bottom
:
0px
;
...
...
src/views/clientManage/index.vue
View file @
95db824
...
...
@@ -18,20 +18,20 @@
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</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
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"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
}}
</el-tag>
</el-tooltip>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 3 && idx == 3"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<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"
>
<i
class=
"el-icon-user-solid"
style=
"color: #75acff"
></i>
{{
i
}}
...
...
@@ -40,7 +40,7 @@
</el-popover>
</el-tag>
</div>
</div>
</div>
-->
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
v-if=
"!scope.scope.nickNameList.length"
>
--
</div>
...
...
@@ -259,21 +259,21 @@ export default {
{
label
:
'客户ID'
,
prop
:
'oneId'
,
width
:
14
0
,
width
:
29
0
,
line
:
1
},
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
width
:
1
2
0
,
width
:
1
7
0
,
line
:
1
},
{
label
:
'企微名称'
,
prop
:
'nickNameList'
,
addHtml
:
'nickNameList'
,
width
:
190
,
width
:
190
},
{
label
:
'联系电话'
,
...
...
@@ -289,7 +289,7 @@ export default {
{
label
:
'跟进员工'
,
prop
:
'followStaff'
,
addHtml
:
'followStaff'
,
//
addHtml: 'followStaff',
width
:
320
},
{
...
...
@@ -323,13 +323,13 @@ export default {
{
label
:
'车系'
,
prop
:
'audi'
,
width
:
12
0
,
width
:
25
0
,
line
:
1
},
{
label
:
'车架号'
,
prop
:
'carVin'
,
width
:
18
0
,
width
:
27
0
,
line
:
1
},
{
...
...
@@ -341,7 +341,7 @@ export default {
{
label
:
'购车时间'
,
prop
:
'buyDate'
,
width
:
17
0
,
width
:
25
0
,
line
:
1
},
{
...
...
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