Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 8f0f508f
authored
May 25, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop
1 parent
3cdd6304
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
19 deletions
src/api/modules/sop.js
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/editEvent.vue
src/views/sop/sopAnalysis/completeList.vue
src/views/sop/sopAnalysis/touchList.vue
src/api/modules/sop.js
View file @
8f0f508
...
...
@@ -88,6 +88,28 @@ const getSopStaffTaskListApi = params => {
})
}
// sop-完成率-根据evnetid获取失败事件列表
const
getFailEventList
=
params
=>
{
params
.
method
=
'scrm.api.sop.sopEvent.listEventFailByEventId'
return
http
({
url
:
'rop-scrm-sop/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// sop-完成率-根据evnetid获取成功事件列表
// const getSuccessEventList = params => {
// params.method = 'scrm.api.sop.sopEvent.listEventFailByEventId'
// return http({
// url: 'rop-scrm-sop/router',
// method: 'POST',
// data: params,
// sign: true
// })
// }
// 校验当前商户的企微群发任务情况
const
getTaskStatusApi
=
params
=>
{
params
.
method
=
'scrm.api.sop.task.merchantWWMsgTaskStatusCheck'
...
...
@@ -214,4 +236,4 @@ const getMomentListApi = params => {
})
}
export
default
{
getCustomerListApi
,
getCustomerByTagListApi
,
getCustomerCrowdApi
,
getSopInfoListApi
,
getSopBaseInfoApi
,
getEventListApi
,
getSopCustomerStatisticsListApi
,
getSopStaffTaskListApi
,
getTaskStatusApi
,
parseEventCountApi
,
deleteSopEventApi
,
endSopEventApi
,
batchEditSopEventApi
,
insertOrUpdateSopApi
,
getSopInfoDetailApi
,
getGroupListApi
,
getMaterialListApi
,
getMomentListApi
}
export
default
{
getCustomerListApi
,
getCustomerByTagListApi
,
getCustomerCrowdApi
,
getSopInfoListApi
,
getSopBaseInfoApi
,
getEventListApi
,
getSopCustomerStatisticsListApi
,
getSopStaffTaskListApi
,
get
FailEventList
,
get
TaskStatusApi
,
parseEventCountApi
,
deleteSopEventApi
,
endSopEventApi
,
batchEditSopEventApi
,
insertOrUpdateSopApi
,
getSopInfoDetailApi
,
getGroupListApi
,
getMaterialListApi
,
getMomentListApi
}
src/views/sop/editSop/baseInfo.vue
View file @
8f0f508
...
...
@@ -313,6 +313,20 @@ export default {
})
},
recoverCrowdList
()
{
var
list
=
[]
this
.
editForm
[
this
.
customerDataList
[
this
.
currentCustomerIdx
].
reqListName
].
forEach
(
item
=>
{
list
.
push
({
crowdId
:
item
.
crowdId
,
crowdName
:
item
.
crowdName
,
crowdDesc
:
item
.
crowdDesc
,
total
:
item
.
total
})
})
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
=
JSON
.
parse
(
JSON
.
stringify
(
list
))
this
.
changeCustomer
()
},
recoverLabelList
()
{
var
list
=
[]
var
groupIdList
=
[]
...
...
@@ -369,6 +383,7 @@ export default {
recoverCustomerList
()
{
switch
(
this
.
customerDataList
[
this
.
currentCustomerIdx
].
confName
)
{
case
'人群'
:
this
.
recoverCrowdList
()
break
case
'标签'
:
this
.
recoverLabelList
()
...
...
@@ -497,6 +512,7 @@ export default {
}
this
.
editForm
.
customerInfoList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
))
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'customerInfoList'
)
// this.key = new Date()
},
// 选择标签
...
...
@@ -514,7 +530,6 @@ export default {
}
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
=
obj
this
.
changeCustomer
()
this
.
key
=
new
Date
()
},
// 营销对象类型
...
...
@@ -570,7 +585,6 @@ export default {
},
deleteCustPop
()
{
// this.$confirm('修改的客户类型(是否加企微、是否有手机号)不一致,原有营销渠道可能不可用,系统自动重置原有营销事件。是否确定修改?', '提示', {
this
.
$confirm
(
'修改的客户类型(是否加企微、是否有手机号)不一致,原有营销渠道可能不可用,系统自动重置原有营销事件。是否确定修改?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -640,11 +654,13 @@ export default {
this
.
$emit
(
'handleTabChange'
,
{
activeName
:
'editEvent'
,
addOrEdit
:
addOrEdit
,
eventIndex
:
addOrEdit
==
'add'
?
'-1'
:
idx
,
info
:
{
...
row
,
sopName
:
this
.
editForm
.
sopName
}
})
},
reqCrowdAttrs
()
{
},
reqCrowdAttrs
()
{
var
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
))
return
list
},
reqLabelAttrs
()
{
var
list
=
[]
console
.
log
(
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
)
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
.
forEach
(
item
=>
{
item
.
labelList
.
forEach
(
subItem
=>
{
list
.
push
({
...
...
@@ -719,6 +735,7 @@ export default {
sopName
:
item
.
sopName
,
sopId
:
this
.
routeInfo
.
id
,
followerTypeId
:
item
.
followerTypeId
,
followerTypeName
:
item
.
followerTypeName
,
reachesType
:
item
.
reachesType
,
reachesTypeSet
:
item
.
reachesTypeSet
})
...
...
src/views/sop/editSop/editEvent.vue
View file @
8f0f508
...
...
@@ -79,7 +79,7 @@
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormRefChannel"
:isEdit=
"isEdit"
:labelWidth=
"labelWidth"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormDataChannel"
:formRules=
"editRule"
>
<div
slot=
"channelSuffix"
class=
"edit-tips m-t-8"
>
预估受众用户总数:100/500
</div>
<
template
slot=
"reachesType"
slot-scope=
"scope"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
@
change=
"handleReachesType"
>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
</el-radio-group>
<span
class=
"m-l-20"
v-if=
"editForm[scope.scope.name] == 2"
id=
"reachesTypeSet"
>
...
...
@@ -353,11 +353,6 @@ export default {
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionList
:
[
// {
// confId: 3,
// confName: '不限制',
// isDisabled: false
// },
{
confId
:
1
,
confName
:
'单次'
,
...
...
@@ -530,6 +525,10 @@ export default {
this
.
recoveryEndTime
()
},
handleReachesType
(
val
)
{
this
.
editForm
.
reachesTypeSet
=
val
==
1
?
1
:
''
},
// 素材
handleMaterialConfirm
(
val
)
{
// additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板)
...
...
@@ -642,6 +641,9 @@ export default {
this
.
submit
=
false
return
true
}
// 跟进员工类型followerTypeId
this
.
editForm
.
followerTypeName
=
this
.
baseData
.
staffTypeList
.
find
(
item
=>
item
.
id
).
businessName
// console.log(this.editForm)
if
(
this
.
editForm
.
repeatFlag
==
'Y'
)
{
this
.
$apis
.
sop
.
parseEventCountApi
(
countParams
).
then
(
res
=>
{
this
.
editForm
.
eventCount
=
res
.
eventStatistics
.
eventCount
...
...
src/views/sop/sopAnalysis/completeList.vue
View file @
8f0f508
...
...
@@ -48,14 +48,16 @@
<!-- 表格区域 开始 -->
<GLTable
ref=
"completeListRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"finishEventCount"
slot-scope=
"scope"
>
<el-popover
placement=
"bottom-end"
width=
"200"
trigger=
"click"
content=
"因企微、短信等限制无法正常执行的事件
"
>
<span
class=
"cursor-pointer"
slot=
"reference"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
finishEventCount
:
'-'
}}
</span>
<el-popover
v-show=
"scope.scope.successEventList"
placement=
"bottom-end"
width=
"200"
trigger=
"click"
:content=
"scope.scope.successEventList
"
>
<span
class=
"cursor-pointer"
slot=
"reference"
@
click=
"handleGetSuccessEvent(scope.scope)"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
finishEventCount
:
'-'
}}
</span>
</el-popover>
<span
v-show=
"!scope.scope.successEventList"
class=
"cursor-pointer"
@
click=
"handleGetSuccessEvent(scope.scope)"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
finishEventCount
:
'-'
}}
</span>
</
template
>
<
template
slot=
"failEventCount"
slot-scope=
"scope"
>
<el-popover
placement=
"bottom-end"
width=
"200"
trigger=
"click"
content=
"因企微、短信等限制无法正常执行的事件
"
>
<span
class=
"cursor-pointer"
slot=
"reference"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
failEventCount
:
'-'
}}
</span>
<el-popover
v-show=
"scope.scope.failEventList"
placement=
"bottom-end"
width=
"200"
trigger=
"click"
:content=
"scope.scope.failEventList
"
>
<span
class=
"cursor-pointer"
slot=
"reference"
@
click=
"handleGetFailEvent(scope.scope)"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
failEventCount
:
'-'
}}
</span>
</el-popover>
<span
v-show=
"!scope.scope.failEventList"
class=
"cursor-pointer"
slot=
"reference"
@
click=
"handleGetFailEvent(scope.scope)"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
failEventCount
:
'-'
}}
</span>
</
template
>
</GLTable>
<!-- 表格区域 end -->
...
...
@@ -186,6 +188,20 @@ export default {
})
},
handleGetSuccessEvent
(
row
)
{
this
.
$apis
.
sop
.
getFailEventList
({
id
:
row
.
id
}).
then
(
res
=>
{
let
idx
=
this
.
$refs
.
completeListRef
.
data
.
findIndex
(
item
=>
item
.
id
==
row
.
id
)
this
.
$refs
.
completeListRef
.
data
[
idx
].
successEventList
=
res
})
},
handleGetFailEvent
(
row
)
{
this
.
$apis
.
sop
.
getFailEventList
({
id
:
row
.
id
}).
then
(
res
=>
{
let
idx
=
this
.
$refs
.
completeListRef
.
data
.
findIndex
(
item
=>
item
.
id
==
row
.
id
)
this
.
$refs
.
completeListRef
.
data
[
idx
].
failEventList
=
res
})
},
drawPie
()
{
let
chartDom
=
document
.
getElementById
(
'completePie'
)
let
myChart
=
echarts
.
init
(
chartDom
)
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
8f0f508
...
...
@@ -130,11 +130,11 @@ export default {
formatter
:
cellValue
=>
{
return
cellValue
.
viewCount
||
'-'
}
},
{
label
:
'查看总时长'
,
prop
:
''
}
// {
// label: '查看总时长',
// prop: ''
// }
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
...
...
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