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 c9e06b28
authored
May 30, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新2.4代码
1 parent
d3fd8929
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
61 deletions
src/views/clientDataOverview/GroupOperating/components/marketingPlan.vue
src/views/clientDataOverview/GroupOperating/marketingPeople.vue
src/views/clientDataOverview/index.vue
src/views/clientManage/index.vue
src/views/clientDataOverview/GroupOperating/components/marketingPlan.vue
View file @
c9e06b2
...
@@ -2,22 +2,30 @@
...
@@ -2,22 +2,30 @@
<div
class=
"scrm-sub-client-container"
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"searchFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<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"
></GLTable>
<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=
"goBasicInfo(scope.scope)"
>
SOP分析
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goBasicInfo(scope.scope)"
>
编辑
</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>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getTableList
}
from
'@/api/modules/clientManage'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
searchForm
:
{},
searchForm
:
{},
searchFormList
:
[{
searchFormList
:
[
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
// name: 'keyword',
// name: 'keyword',
label
:
'分群名称'
,
label
:
'人群名称'
placeholder
:
'请输入分群关键字'
},
},
{
{
type
:
'select'
,
type
:
'select'
,
...
@@ -29,31 +37,15 @@ export default {
...
@@ -29,31 +37,15 @@ export default {
{
{
label
:
'全部'
,
label
:
'全部'
,
value
:
''
value
:
''
},
{
label
:
'救援服务'
,
value
:
3
},
{
label
:
'新车询价'
,
value
:
4
},
{
label
:
'试驾预约'
,
value
:
5
},
{
label
:
'维保预约'
,
value
:
6
}
}
],
],
placeholder
:
'请选择'
placeholder
:
'请选择'
}
}
],
],
//
getListApi: getTableList,
getListApi
:
getTableList
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableParams
:
{
tableParams
:
{
listName
:
'
list
'
,
listName
:
'
data
'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'人群名称'
,
label
:
'人群名称'
,
...
@@ -74,6 +66,11 @@ export default {
...
@@ -74,6 +66,11 @@ export default {
{
{
label
:
'营销状态'
,
label
:
'营销状态'
,
prop
:
'dsdasds'
prop
:
'dsdasds'
},
{
label
:
'操作'
,
prop
:
'options'
,
addHtml
:
'options'
}
}
]
]
}
}
...
@@ -90,6 +87,26 @@ export default {
...
@@ -90,6 +87,26 @@ export default {
},
200
)
},
200
)
},
},
methods
:
{
methods
:
{
// 确认删除或结束
confirm
(
type
)
{
this
.
$confirm
(
`是否确认
${
type
==
'delete'
?
'删除'
:
'结束'
}
?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
})
})
.
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消操作'
})
})
},
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
$refs
.
marketingPlan
.
data
.
length
?
(
this
.
$refs
.
marketingPlan
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
this
.
$refs
.
marketingPlan
.
data
.
length
?
(
this
.
$refs
.
marketingPlan
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
},
},
...
...
src/views/clientDataOverview/GroupOperating/marketingPeople.vue
View file @
c9e06b2
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
<!-- 切换导航栏 -->
<!-- 切换导航栏 -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"营销人群"
name=
"first"
>
<el-tab-pane
label=
"营销人群"
name=
"first"
>
<div
class=
"pageContent"
v-if=
"activeName == 'first'"
>
<!-- v-if="activeName == 'first'" -->
<div
class=
"pageContent"
>
<div
class=
"markPeople"
>
<div
class=
"markPeople"
>
<span>
营销人群
</span>
<span>
营销人群
</span>
<span
v-if=
"itemArr.length > 4 && !closeFlag"
@
click=
"expandClick('expand')"
>
<span
v-if=
"itemArr.length > 4 && !closeFlag"
@
click=
"expandClick('expand')"
>
...
@@ -32,7 +33,7 @@
...
@@ -32,7 +33,7 @@
<span>
人
</span>
<span>
人
</span>
</p>
</p>
<p
class=
"peopledesc"
>
{{
item
.
desc
}}
</p>
<p
class=
"peopledesc"
>
{{
item
.
desc
}}
</p>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP()"
>
创建营销SOP
</el-button>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP()"
:disabled=
"item.type"
>
创建营销SOP
</el-button>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -40,7 +41,7 @@
...
@@ -40,7 +41,7 @@
<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)"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx
, item.title
)"
>
<div
class=
"marketItem-border"
>
<div
class=
"marketItem-border"
>
<p
class=
"peopleName"
>
{{ item.title }}
</p>
<p
class=
"peopleName"
>
{{ item.title }}
</p>
<div
class=
"itemBox"
>
<div
class=
"itemBox"
>
...
@@ -49,7 +50,7 @@
...
@@ -49,7 +50,7 @@
<span>
人
</span>
<span>
人
</span>
</p>
</p>
<p
class=
"peopledesc"
>
{{ item.desc }}
</p>
<p
class=
"peopledesc"
>
{{ item.desc }}
</p>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP(
)
"
>
创建营销SOP
</el-button>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP(
item.id)"
:disabled=
"item.type
"
>
创建营销SOP
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -60,14 +61,14 @@
...
@@ -60,14 +61,14 @@
</div>
</div>
</div>
</div>
<div
class=
"otherPageContent"
>
<div
class=
"otherPageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"marketPeopleFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLCombiForm
v-if=
"activeName == 'first'"
:formObj=
"searchForm"
:formData=
"marketPeopleFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<div
class=
"leadList"
>
<div
class=
"leadList"
>
<div>
<div>
<span>
N-3待定保客户
</span>
<span>
{{ showTitle }}
</span>
</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"
>
营销SOP
</el-button>
<el-button
class=
"marketSOP"
size=
"small"
@
click=
"marketButton()"
>
营销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"
ref=
"marketPeople"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
></GLTable>
...
@@ -95,10 +96,11 @@ export default {
...
@@ -95,10 +96,11 @@ export default {
isActive
:
-
1
,
isActive
:
-
1
,
displayNum
:
4
,
//展示的数目
displayNum
:
4
,
//展示的数目
closeFlag
:
false
,
//展开收起
closeFlag
:
false
,
//展开收起
showTitle
:
''
,
// 展示的标题
itemArr
:
[
itemArr
:
[
// 后台传一个状态回来
// 后台传一个状态回来
{
title
:
'N-23待定保客户'
,
num
:
323
,
desc
:
'我顶着大太阳,只想为你撑伞'
},
{
title
:
'N-23待定保客户'
,
num
:
323
,
desc
:
'我顶着大太阳,只想为你撑伞'
,
id
:
1
,
type
:
'false'
},
{
title
:
'N-45待定保客户'
,
num
:
1312
,
desc
:
'你专心在画睫毛,我专心在等你笑'
},
{
title
:
'N-45待定保客户'
,
num
:
1312
,
desc
:
'你专心在画睫毛,我专心在等你笑'
,
id
:
2
},
{
title
:
'N-33待定保客户'
,
num
:
43133
,
desc
:
'气球在我手上,牵着你瞎逛'
},
{
title
:
'N-33待定保客户'
,
num
:
43133
,
desc
:
'气球在我手上,牵着你瞎逛'
},
{
title
:
'N-1待定保客户'
,
num
:
123213
,
desc
:
'城堡为爱守着秘密,而我为你守着爱情'
},
{
title
:
'N-1待定保客户'
,
num
:
123213
,
desc
:
'城堡为爱守着秘密,而我为你守着爱情'
},
{
title
:
'N-2待定保客户'
,
num
:
1233
,
desc
:
'喜欢在人潮中,你只属于我的那画面'
},
{
title
:
'N-2待定保客户'
,
num
:
1233
,
desc
:
'喜欢在人潮中,你只属于我的那画面'
},
...
@@ -166,33 +168,25 @@ export default {
...
@@ -166,33 +168,25 @@ export default {
},
},
{
{
type
:
'select'
,
type
:
'select'
,
name
:
'
type
'
,
name
:
'
isJoin
'
,
label
:
'是否已加企微'
,
label
:
'是否已加企微'
,
placeholder
:
'请选择'
,
optionLabel
:
'label'
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionId
:
'value'
,
optionList
:
[
optionList
:
[
{
{
label
:
'全部'
,
label
:
'全部'
,
value
:
''
value
:
null
},
{
label
:
'救援服务'
,
value
:
3
},
},
{
{
label
:
'新车询价'
,
label
:
'是'
,
value
:
4
value
:
1
},
{
label
:
'试驾预约'
,
value
:
5
},
},
{
{
label
:
'
维保预约
'
,
label
:
'
否
'
,
value
:
6
value
:
0
}
}
],
]
placeholder
:
'请选择'
},
},
{
{
type
:
'datePicker'
,
type
:
'datePicker'
,
...
@@ -282,9 +276,19 @@ export default {
...
@@ -282,9 +276,19 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
// 搜索表格
searchTable
()
{
console
.
log
(
this
.
searchForm
)
this
.
$refs
.
marketPeople
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{}
this
.
$refs
.
marketPeople
.
refreshTable
()
},
// 跳转到营销SOP
// 跳转到营销SOP
createMarketSOP
()
{
createMarketSOP
(
id
)
{
util
.
openUrl
(
location
.
origin
+
'/marketing/sop/editSop'
)
util
.
openUrl
(
location
.
origin
+
`/marketing/sop/editSop?addOrEdit=add&fromPage=sopList&corwedId=
${
id
}
`
)
},
},
expandClick
(
val
)
{
expandClick
(
val
)
{
if
(
val
==
'expand'
)
{
if
(
val
==
'expand'
)
{
...
@@ -296,8 +300,9 @@ export default {
...
@@ -296,8 +300,9 @@ export default {
}
}
},
},
// 选择的人群
// 选择的人群
choickItem
(
idx
)
{
choickItem
(
idx
,
title
)
{
this
.
isActive
=
idx
;
this
.
isActive
=
idx
this
.
showTitle
=
title
// 发送请求查询列表
// 发送请求查询列表
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
...
@@ -366,7 +371,7 @@ export default {
...
@@ -366,7 +371,7 @@ export default {
font-size
:
14px
;
font-size
:
14px
;
color
:
#999999
;
color
:
#999999
;
line-height
:
20px
;
line-height
:
20px
;
//
min-
height
:
40px
;
height
:
40px
;
}
}
.createSOP
{
.createSOP
{
margin
:
24px
0
;
margin
:
24px
0
;
...
...
src/views/clientDataOverview/index.vue
View file @
c9e06b2
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
<span
class=
"personText"
>
人
</span>
<span
class=
"personText"
>
人
</span>
<!-- <span class="numPro">占比:{{ (topDataObj.purposeCustomerAddPercent && topDataObj.purposeCustomerAddPercent.toFixed(2)) || 0 }}%</span> -->
<!-- <span class="numPro">占比:{{ (topDataObj.purposeCustomerAddPercent && topDataObj.purposeCustomerAddPercent.toFixed(2)) || 0 }}%</span> -->
<span
class=
"numPro"
>
占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal}}%
</span>
<span
class=
"numPro"
>
占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal
}}%
</span>
</p>
</p>
<!-- <div class="marketingBtn">
<!-- <div class="marketingBtn">
<el-dropdown>
<el-dropdown>
...
@@ -284,10 +284,17 @@
...
@@ -284,10 +284,17 @@
</div>
</div>
</div>
</div>
<div
class=
"middlemsg"
>
<div
class=
"middlemsg"
>
<span
class=
"normalTitle"
@
click=
"goToGroupOperating()"
>
客户分群
</span>
<div
class=
"settiongBox"
>
<span
class=
"normalTitle"
>
客户分群
</span>
<div
class=
"set"
>
<span>
设置
</span>
<i
class=
"el-icon-arrow-right color-58"
></i>
</div>
</div>
<div
class=
"itembox"
>
<div
class=
"itembox"
>
<
template
v-for=
"(item, index) in titles"
>
<
template
v-for=
"(item, index) in titles"
>
<div
class=
"item"
@
click=
"goto(item.id)"
fn=
"人群客户列表"
mode=
"div"
:key=
"index"
>
<!-- fn="人群客户列表" mode="div" -->
<div
class=
"item"
@
click=
"goToGroupOperating()"
:key=
"index"
>
<div
class=
"itemTitle"
>
<div
class=
"itemTitle"
>
<span
class=
"itemName"
>
{{
item
.
name
}}
</span>
<span
class=
"itemName"
>
{{
item
.
name
}}
</span>
<el-popover
placement=
"top"
trigger=
"hover"
:content=
"item.subName"
>
<el-popover
placement=
"top"
trigger=
"hover"
:content=
"item.subName"
>
...
@@ -383,7 +390,7 @@ export default {
...
@@ -383,7 +390,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
crowdType
:
3
,
crowdType
:
3
,
isCloseShowNumTag
:
false
,
isCloseShowNumTag
:
false
,
isReload
:
true
,
isReload
:
true
,
isShowModal
:
false
,
isShowModal
:
false
,
...
@@ -519,6 +526,9 @@ export default {
...
@@ -519,6 +526,9 @@ export default {
this
.
getDataOverviewBarMapFun
()
this
.
getDataOverviewBarMapFun
()
},
},
methods
:
{
methods
:
{
goToGroupOperating
()
{
this
.
$router
.
push
(
'/clientDataOverview/GroupOperating/marketingPeople'
)
},
goNextPage
()
{
goNextPage
()
{
// window.open('https://www.baidu.com', '_blank')
// window.open('https://www.baidu.com', '_blank')
// this.dialogVisible = true
// this.dialogVisible = true
...
@@ -716,7 +726,7 @@ export default {
...
@@ -716,7 +726,7 @@ export default {
goto
(
id
)
{
goto
(
id
)
{
if
(
this
.
userType
==
2
)
return
if
(
this
.
userType
==
2
)
return
// this.$router.push('/clientDataOverview/group/' + id )
// this.$router.push('/clientDataOverview/group/' + id )
this
.
$router
.
push
(
`/clientDataOverview/group/
${
id
}
/
${
this
.
crowdType
}
`
)
this
.
$router
.
push
(
`/clientDataOverview/group/
${
id
}
/
${
this
.
crowdType
}
`
)
}
}
}
}
}
}
...
@@ -1173,6 +1183,20 @@ export default {
...
@@ -1173,6 +1183,20 @@ export default {
min-width
:
1050px
;
min-width
:
1050px
;
background
:
#ffffff
;
background
:
#ffffff
;
padding-bottom
:
1px
;
padding-bottom
:
1px
;
.settiongBox
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
border-bottom
:
1px
solid
#e5e5e5
;
.normalTitle
{
border-bottom
:
none
;
}
.set
{
font-size
:
16px
;
color
:
#5850ff
;
margin-right
:
20px
;
}
}
.itembox
{
.itembox
{
margin
:
20px
;
margin
:
20px
;
display
:
flex
;
display
:
flex
;
...
...
src/views/clientManage/index.vue
View file @
c9e06b2
...
@@ -258,7 +258,7 @@ export default {
...
@@ -258,7 +258,7 @@ export default {
{
{
label
:
'客户ID'
,
label
:
'客户ID'
,
prop
:
'oneId'
,
prop
:
'oneId'
,
width
:
18
0
,
width
:
14
0
,
line
:
1
line
:
1
},
},
{
{
...
@@ -272,7 +272,7 @@ export default {
...
@@ -272,7 +272,7 @@ export default {
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
:
28
0
width
:
32
0
},
},
{
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
label
:
'是否加企微'
,
//1. 加入,0.未加入
...
@@ -301,7 +301,7 @@ export default {
...
@@ -301,7 +301,7 @@ export default {
label
:
'当前状态'
,
label
:
'当前状态'
,
prop
:
'status'
,
prop
:
'status'
,
addHtml
:
'status'
,
addHtml
:
'status'
,
width
:
1
3
0
width
:
1
2
0
},
},
{
{
label
:
'所属渠道'
,
label
:
'所属渠道'
,
...
...
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