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 e1bff8d9
authored
Mar 18, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop分析列表
1 parent
98c9152b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
27 deletions
src/views/sop/sopAnalysis/completeList.vue
src/views/sop/sopAnalysis/staffList.vue
src/views/sop/sopAnalysis/touchList.vue
src/views/sop/sopAnalysis/completeList.vue
View file @
e1bff8d
...
@@ -56,31 +56,63 @@ export default {
...
@@ -56,31 +56,63 @@ export default {
},
},
searchForm
:
{},
searchForm
:
{},
// 表格
// 表格
getListApi
:
this
.
$apis
.
sop
.
getListApi
,
getListApi
:
this
.
$apis
.
sop
.
get
Event
ListApi
,
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'营销事件'
,
label
:
'营销事件'
,
prop
:
'sopName'
prop
:
'sopName'
,
formatter
:
cellValue
=>
{
var
repeatTxt
=
''
var
weekToTxt
=
{
1
:
'一'
,
2
:
'二'
,
3
:
'三'
,
4
:
'四'
,
5
:
'五'
,
6
:
'六'
,
7
:
'日'
}
switch
(
cellValue
.
repeatMode
)
{
case
1
:
repeatTxt
=
' 每天重复推送至'
break
case
2
:
repeatTxt
=
' 每周'
+
weekToTxt
[
cellValue
.
repeatTime
]
+
'重复推送至'
break
case
3
:
repeatTxt
=
' 每月'
+
cellValue
.
repeatTime
+
'重复推送至'
break
}
return
cellValue
.
eventStartDate
+
' '
+
cellValue
.
eventTime
+
(
cellValue
.
repeatFlag
==
'Y'
?
repeatTxt
:
' 单次'
)
+
(
cellValue
.
repeatFlag
==
'Y'
?
' '
+
cellValue
.
eventEndDate
:
''
)
}
},
},
{
{
label
:
'营销渠道'
,
label
:
'营销渠道'
,
prop
:
'remarkName'
,
prop
:
'pushChannelType'
,
width
:
'200'
width
:
'100'
,
formatter
:
cellValue
=>
{
var
pushChannelTypeList
=
{
1
:
'企业微信'
,
2
:
'短信'
,
3
:
'微信朋友圈'
}
return
pushChannelTypeList
[
cellValue
.
pushChannelType
]
}
},
},
{
{
label
:
'营销事件总数'
,
label
:
'营销事件总数'
,
prop
:
'
anticipatedCost
'
,
prop
:
'
eventStatistics
'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
(
cellValue
.
anticipatedCost
/
100
).
toFixed
(
2
)
return
cellValue
.
eventStatistics
?
cellValue
.
eventStatistics
.
eventCount
:
'-'
}
}
},
},
{
{
label
:
'已完成事件数'
,
label
:
'已完成事件数'
,
prop
:
'
staffList
'
,
prop
:
'
eventStatistics
'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
staffList
.
map
(
item
=>
item
.
staffName
).
join
(
','
)
return
cellValue
.
eventStatistics
?
cellValue
.
eventStatistics
.
finishEventCount
:
'-'
}
}
}
}
]
]
...
...
src/views/sop/sopAnalysis/staffList.vue
View file @
e1bff8d
...
@@ -62,25 +62,21 @@ export default {
...
@@ -62,25 +62,21 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'员工名称'
,
label
:
'员工名称'
,
prop
:
'
n
ame'
prop
:
'
userN
ame'
},
},
{
{
label
:
'已完成任务数'
,
label
:
'已完成任务数'
,
prop
:
'remarkName'
,
prop
:
'finishTaskCount'
width
:
'200'
},
},
{
{
label
:
'已下发任务数'
,
label
:
'已下发任务数'
,
prop
:
'anticipatedCost'
,
prop
:
'issuedTaskCount'
formatter
:
cellValue
=>
{
return
(
cellValue
.
anticipatedCost
/
100
).
toFixed
(
2
)
}
},
},
{
{
label
:
'个人完成率'
,
label
:
'个人完成率'
,
prop
:
'
staffLis
t'
,
prop
:
'
percen
t'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
staffList
.
map
(
item
=>
item
.
staffName
).
join
(
','
)
return
cellValue
.
issuedTaskCount
?
((
cellValue
.
finishTaskCount
-
cellValue
.
issuedTaskCount
)
/
100
).
toFixed
(
2
)
+
'%'
:
'0%'
}
}
}
}
]
]
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
e1bff8d
...
@@ -92,26 +92,27 @@ export default {
...
@@ -92,26 +92,27 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'
n
ame'
prop
:
'
customerN
ame'
},
},
{
{
label
:
'客户手机号'
,
label
:
'客户手机号'
,
prop
:
'
remarkNam
e'
,
prop
:
'
customerPhon
e'
,
width
:
'
20
0'
width
:
'
11
0'
},
},
{
{
label
:
'初次查看事件'
,
label
:
'初次查看事件'
,
prop
:
'
anticipatedCost
'
,
prop
:
'
firstViewDate
'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
(
cellValue
.
anticipatedCost
/
100
).
toFixed
(
2
)
return
cellValue
.
firstViewDate
||
'未查看'
}
}
},
},
{
{
label
:
'营销事件总数'
,
label
:
'查看次数'
,
prop
:
'staffList'
,
prop
:
'viewCount'
formatter
:
cellValue
=>
{
},
return
cellValue
.
staffList
.
map
(
item
=>
item
.
staffName
).
join
(
','
)
{
}
label
:
'查看总时长'
,
prop
:
''
}
}
]
]
},
},
...
...
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