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 7e2d402a
authored
Mar 31, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_dev_v2.0.0' into 'v2.0.0'
Chenwq dev v2.0.0 See merge request
!74
2 parents
1b15a417
9459d907
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
96 additions
and
89 deletions
src/api/modules/sop.js
src/assets/css/public.scss
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/materialModel.vue
src/views/sop/editSop/components/selectCustomer.vue
src/views/sop/editSop/editEvent.vue
src/views/sop/index.vue
src/views/sop/sopAnalysis/completeList.vue
src/views/sop/sopAnalysis/staffList.vue
src/views/sop/sopAnalysis/touchList.vue
src/views/sop/sopList.vue
src/api/modules/sop.js
View file @
7e2d402
...
...
@@ -183,7 +183,8 @@ const getGroupListApi = params => {
// 获取素材列表
const
getMaterialListApi
=
params
=>
{
params
.
method
=
'marketing.api.material.page'
// params.method = 'marketing.api.material.page'
params
.
method
=
'marketing.api.material.sop.page'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
...
...
src/assets/css/public.scss
View file @
7e2d402
...
...
@@ -179,6 +179,10 @@ html {
height
:
120px
;
}
.marketing
.w-320
{
width
:
320px
;
}
.marketing
.m-t-8
{
margin-top
:
8px
;
}
...
...
src/views/sop/editSop/baseInfo.vue
View file @
7e2d402
<!-- 编辑sop -->
<
template
>
<div
class=
"marketing
p-t-20
edit-box"
>
<div
class=
"marketing edit-box"
>
<div
class=
"sop-base-info"
>
<div
class=
"container m-b-20"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormRef"
:isEdit=
"isEdit"
:labelWidth=
"labelWidth"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"startDate"
>
<div
v-show=
"editForm.eventList.length"
>
{{
editForm
.
startDate
}}
<span
v-show=
"editForm.endDate"
>
-
{{
editForm
.
endDate
}}
</span>
</div>
<el-input
class=
"w-320"
:placeholder=
"!editForm.eventList.length ? '设置营销事件后自动补充' : editForm.startDate + (editForm.endDate ? ' - ' + editForm.endDate : '')"
disabled
></el-input>
</div>
<div
slot=
"customerInfoList"
slot-scope=
"scope"
>
<div
v-if=
"!scope.scope.isDisabled"
>
...
...
src/views/sop/editSop/components/materialModel.vue
View file @
7e2d402
...
...
@@ -65,7 +65,7 @@ export default {
return
{
searchForm
:
{
groupId
:
''
,
business
Type
:
''
material
Type
:
''
},
searchFormData
:
[
{
...
...
@@ -79,12 +79,12 @@ export default {
},
{
label
:
'素材类型'
,
name
:
'
business
Type'
,
name
:
'
material
Type'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'
business
TypeList'
optionsName
:
'
material
TypeList'
}
],
// selectedData: [],
...
...
@@ -100,7 +100,7 @@ export default {
tableTotal
:
0
,
baseData
:
{
groupList
:
[],
business
TypeList
:
[
material
TypeList
:
[
{
confId
:
1
,
confName
:
'PDF'
...
...
@@ -180,7 +180,7 @@ export default {
handleReset
()
{
this
.
searchForm
=
{
groupId
:
''
,
business
Type
:
''
material
Type
:
''
}
this
.
handleSearch
()
},
...
...
src/views/sop/editSop/components/selectCustomer.vue
View file @
7e2d402
...
...
@@ -15,7 +15,7 @@
<GLTable
ref=
"customerRef"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"handleSelectionTable"
></GLTable>
</div>
<div
class=
"selected-list"
>
<p
class=
"list-title p-16"
>
已选(
{{
selectedSum
}}
)
</p>
<p
class=
"list-title p-16"
>
已选(
{{
Array
.
isArray
(
selectedCustomerList
)
?
selectedCustomerList
.
length
:
0
}}
)
</p>
<div
class=
"list-customers"
:style=
"
{ height: heightBox + 'px' }">
<el-tag
class=
"customer-tag"
v-for=
"(item, idx) in selectedCustomerList"
:key=
"idx"
:size=
"size"
type=
"info"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
...
...
@@ -37,7 +37,6 @@ export default {
url
:
url
,
searchForm
:
{},
customerList
:
[],
selectedSum
:
0
,
heightBox
:
200
,
// 表格
getListApi
:
this
.
$apis
.
sop
.
getCustomerListApi
,
...
...
@@ -54,7 +53,10 @@ export default {
label
:
'客户名称'
,
prop
:
'customerName'
,
line
:
1
,
width
:
'110px'
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'客户手机号'
,
...
...
@@ -69,14 +71,14 @@ export default {
prop
:
'customerSex'
,
width
:
'60px'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
sexList
.
find
(
item
=>
item
.
confId
==
cellValue
.
customerSex
).
confName
return
this
.
baseData
.
sexList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
customerSex
)
?
this
.
baseData
.
sexList
.
find
(
item
=>
item
.
confId
==
cellValue
.
customerSex
).
confName
:
'未知'
}
},
{
label
:
'是否加企微'
,
prop
:
'isJoin'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
joinList
.
find
(
item
=>
item
.
confId
==
cellValue
.
isJoin
).
confName
return
this
.
baseData
.
joinList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
isJoin
)
?
this
.
baseData
.
joinList
.
find
(
item
=>
item
.
confId
==
cellValue
.
isJoin
).
confName
:
'-'
}
},
{
...
...
@@ -137,15 +139,6 @@ export default {
}
},
watch
:
{
selectedCustomerList
:
{
handler
()
{
this
.
selectedSum
=
this
.
selectedCustomerList
.
length
},
deep
:
true
}
},
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
350
...
...
@@ -155,21 +148,20 @@ export default {
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
searchForm
=
{
// labelStandInfoList: []
tagLists
:
[]
}
this
.
selectedLabelList
.
length
&&
this
.
selectedLabelList
.
forEach
(
item
=>
{
item
.
labelList
.
forEach
(
subItem
=>
{
// this.searchForm.labelStandInfoList.push({
this
.
searchForm
.
tagLists
.
push
({
groupId
:
item
.
labelGroup
.
id
,
groupName
:
item
.
labelGroup
.
name
,
groupType
:
item
.
labelType
,
labelId
:
subItem
.
id
,
labelName
:
subItem
.
name
item
.
labelList
.
length
&&
item
.
labelList
.
forEach
(
subItem
=>
{
this
.
searchForm
.
tagLists
.
push
({
groupId
:
item
.
labelGroup
.
id
,
groupName
:
item
.
labelGroup
.
name
,
groupType
:
item
.
labelType
,
labelId
:
subItem
.
id
,
labelName
:
subItem
.
name
})
})
})
})
this
.
getListApi
=
this
.
selectedLabelList
.
length
?
this
.
$apis
.
sop
.
getCustomerByTagListApi
:
this
.
$apis
.
sop
.
getCustomerListApi
resolve
()
...
...
@@ -224,7 +216,7 @@ export default {
var
selectIds
=
this
.
selectedCustomerList
.
map
(
item
=>
item
.
id
)
currentList
.
forEach
(
item
=>
{
if
(
!
selectIds
.
includes
(
item
.
id
)
&&
!
tableIds
.
includes
(
item
.
id
))
{
this
.
selected
Label
List
.
push
(
item
)
this
.
selected
Customer
List
.
push
(
item
)
}
})
this
.
recoverySelected
()
...
...
src/views/sop/editSop/editEvent.vue
View file @
7e2d402
<!-- 编辑sop - 添加事件 -->
<
template
>
<div
class=
"edit-event marketing
p-t-20
edit-box"
>
<div
class=
"edit-event marketing edit-box"
>
<!-- 营销时间 -->
<div
class=
"container m-b-20"
>
<p
class=
"edit-title"
>
营销时间
</p>
...
...
src/views/sop/index.vue
View file @
7e2d402
...
...
@@ -40,8 +40,8 @@
</div>
</div>
</div>
<div
v-show=
"!sopList.length"
class=
"txt-center"
>
<img
src=
"@/assets/empty.png"
/>
<div
v-show=
"!sopList.length"
class=
"txt-center"
style=
"height: 400px;"
>
<img
s
tyle=
"margin-top: 140px;"
s
rc=
"@/assets/empty.png"
/>
<p
class=
"m-t-10"
>
暂无数据
</p>
</div>
</div>
...
...
src/views/sop/sopAnalysis/completeList.vue
View file @
7e2d402
...
...
@@ -26,7 +26,7 @@
<div
class=
"analysis-title-block m-b-20"
>
完成率
</div>
<p
class=
"analysis-num"
>
{{
sopInfo
.
completedPercent
+
'%'
}}
</p>
<p
class=
"analysis-num"
>
{{
sopInfo
.
completedPercent
}}
</p>
<div
id=
"completePie"
class=
"chart-pie"
></div>
</div>
</div>
...
...
@@ -51,6 +51,7 @@ export default {
size
:
'small'
,
url
:
url
,
sopInfo
:
{
completedPercent
:
''
,
sopStatistics
:
{}
},
searchForm
:
{},
...
...
@@ -149,7 +150,7 @@ export default {
getBaseInfo
()
{
this
.
$apis
.
sop
.
getSopBaseInfoApi
({
sopId
:
this
.
sopId
}).
then
(
res
=>
{
this
.
sopInfo
=
res
this
.
sopInfo
.
completedPercent
=
Math
.
round
((
this
.
sopInfo
.
sopStatistics
.
finishEventCount
/
this
.
sopInfo
.
sopStatistics
.
eventCount
)
*
100
).
toFixed
(
0
)
this
.
sopInfo
.
completedPercent
=
Math
.
round
((
this
.
sopInfo
.
sopStatistics
.
finishEventCount
/
this
.
sopInfo
.
sopStatistics
.
eventCount
)
*
100
).
toFixed
(
0
)
+
'%'
this
.
drawPie
()
})
},
...
...
src/views/sop/sopAnalysis/staffList.vue
View file @
7e2d402
...
...
@@ -24,7 +24,7 @@
</div>
<div
class=
"analysis-block"
>
<div
class=
"analysis-title-block m-b-20"
>
总任务完成率
</div>
<p
class=
"analysis-num"
>
{{
sopInfo
.
taskPercent
+
'%'
}}
</p>
<p
class=
"analysis-num"
>
{{
sopInfo
.
taskPercent
}}
</p>
<div
id=
"completePie"
class=
"chart-pie"
></div>
</div>
</div>
...
...
@@ -49,10 +49,10 @@ export default {
size
:
'small'
,
url
:
url
,
sopInfo
:
{
taskPercent
:
''
,
sopStatistics
:
{}
},
loading
:
false
,
taskPercent
:
''
,
searchForm
:
{},
// isCheckStatus: false,
// 表格
...
...
@@ -126,7 +126,7 @@ export default {
getBaseInfo
()
{
this
.
$apis
.
sop
.
getSopBaseInfoApi
({
sopId
:
this
.
sopId
}).
then
(
res
=>
{
this
.
sopInfo
=
res
this
.
sopInfo
.
taskPercent
=
this
.
sopInfo
.
sopStatistics
.
issuedTaskCount
?
Math
.
round
((
this
.
sopInfo
.
sopStatistics
.
finishTaskCount
/
this
.
sopInfo
.
sopStatistics
.
issuedTaskCount
)
*
100
).
toFixed
(
0
)
:
0
this
.
sopInfo
.
taskPercent
=
this
.
sopInfo
.
sopStatistics
.
issuedTaskCount
?
Math
.
round
((
this
.
sopInfo
.
sopStatistics
.
finishTaskCount
/
this
.
sopInfo
.
sopStatistics
.
issuedTaskCount
)
*
100
).
toFixed
(
0
)
+
'%'
:
'-'
this
.
drawPie
()
})
},
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
7e2d402
...
...
@@ -7,43 +7,45 @@
<span>
{{
sopInfo
.
sopName
}}
</span>
</div>
<div>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<!--
<span
slot=
"footer"
>
<div
v-loading=
"loading"
>
<div>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<!--
<span
slot=
"footer"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</span>
-->
</glsx-combi-form>
</div>
</glsx-combi-form>
</div>
<div
class=
"analysis-box flex-default"
>
<div
class=
"analysis-block"
>
<div
class=
"analysis-title-block m-b-20"
>
客户总数
<img
src=
"@/assets/sop/customer-total.png"
/>
<div
class=
"analysis-box flex-default"
>
<div
class=
"analysis-block"
>
<div
class=
"analysis-title-block m-b-20"
>
客户总数
<img
src=
"@/assets/sop/customer-total.png"
/>
</div>
<p
class=
"analysis-num"
>
{{
baseData
.
sopEventList
.
length
?
sopInfo
.
customerCount
:
'-'
}}
</p>
</div>
<
p
class=
"analysis-num"
>
{{
baseData
.
sopEventList
.
length
?
sopInfo
.
customerCount
:
'-'
}}
</p
>
</div
>
<div
class=
"analysis-block"
>
<div
class=
"analysis-title-block m-b-20"
>
已触达客户数
<
img
src=
"@/assets/sop/touch-customer.png"
/
>
<
div
class=
"analysis-block"
>
<div
class=
"analysis-title-block m-b-20"
>
已触达客户数
<img
src=
"@/assets/sop/touch-customer.png"
/
>
</div>
<
p
class=
"analysis-num"
>
{{
baseData
.
sopEventList
.
length
?
selectedEventInfo
.
eventStatistics
.
reachCustomerCount
:
'-'
}}
</p
>
</div>
<p
class=
"analysis-num"
>
{{
baseData
.
sopEventList
.
length
?
selectedEventInfo
.
eventStatistics
.
reachCustomerCount
:
'-'
}}
</p>
</div>
<div
class=
"analysis-block"
>
<div
class=
"analysis-title-block m-b-20"
>
触达率
<div
class=
"analysis-block"
>
<div
class=
"analysis-title-block m-b-20"
>
触达率
</div>
<p
class=
"analysis-num"
>
{{
sopInfo
.
touchPercent
}}
</p>
<div
id=
"completePie"
class=
"chart-pie"
></div>
</div>
<p
class=
"analysis-num"
>
{{
sopInfo
.
touchPercent
}}
</p>
<div
id=
"completePie"
class=
"chart-pie"
></div>
</div>
</div>
<p
class=
"m-b-10"
>
客户触达明细
</p>
<p
class=
"m-b-10"
>
客户触达明细
</p>
<!-- 表格区域 开始 -->
<GLTable
ref=
"touchListRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"touchListRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
</div>
</div>
</div>
</
template
>
...
...
@@ -59,6 +61,7 @@ export default {
return
{
size
:
'small'
,
url
:
url
,
loading
:
false
,
searchForm
:
{
sopId
:
''
,
eventId
:
''
...
...
@@ -135,6 +138,7 @@ export default {
mounted
()
{
this
.
getBaseData
()
this
.
$refs
.
touchListRef
.
tableHeightValues
=
'400px'
},
methods
:
{
...
...
@@ -147,6 +151,7 @@ export default {
},
getBaseData
()
{
this
.
loading
=
true
var
params
=
{
sopId
:
this
.
sopId
,
ifFilter
:
'Y'
,
...
...
@@ -158,20 +163,25 @@ export default {
2
:
'短信'
,
3
:
'微信朋友圈'
}
this
.
$apis
.
sop
.
getEventListApi
(
params
).
then
(
res
=>
{
this
.
baseData
.
sopEventList
=
res
.
list
console
.
log
(
res
)
if
(
this
.
baseData
.
sopEventList
.
length
)
{
this
.
baseData
.
sopEventList
.
forEach
(
item
=>
{
item
.
confName
=
item
.
eventStartDate
+
(
item
.
repeatFlag
==
'Y'
?
'-'
+
item
.
eventEndDate
:
''
)
+
' '
+
item
.
eventTime
+
' '
+
pushChannelTypeList
[
item
.
pushChannelType
]
})
this
.
getOptionsList
(
'searchFormData'
,
false
)
this
.
searchForm
.
eventId
=
this
.
baseData
.
sopEventList
[
0
].
id
this
.
selectedEventInfo
=
this
.
baseData
.
sopEventList
[
0
]
}
this
.
getBaseInfo
()
this
.
$refs
.
touchListRef
.
refreshTable
()
})
this
.
$apis
.
sop
.
getEventListApi
(
params
)
.
then
(
res
=>
{
this
.
baseData
.
sopEventList
=
res
.
list
console
.
log
(
res
)
if
(
this
.
baseData
.
sopEventList
.
length
)
{
this
.
baseData
.
sopEventList
.
forEach
(
item
=>
{
item
.
confName
=
item
.
eventStartDate
+
(
item
.
repeatFlag
==
'Y'
?
'-'
+
item
.
eventEndDate
:
''
)
+
' '
+
item
.
eventTime
+
' '
+
pushChannelTypeList
[
item
.
pushChannelType
]
})
this
.
getOptionsList
(
'searchFormData'
,
false
)
this
.
searchForm
.
eventId
=
this
.
baseData
.
sopEventList
[
0
].
id
this
.
selectedEventInfo
=
this
.
baseData
.
sopEventList
[
0
]
}
this
.
getBaseInfo
()
this
.
$refs
.
touchListRef
.
refreshTable
()
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
beforeSearchFn
()
{
...
...
src/views/sop/sopList.vue
View file @
7e2d402
<!-- sop管理 -->
<
template
>
<div
class=
"marketing
p-t-20
sop-list"
>
<div
class=
"marketing sop-list"
>
<div
class=
"m-b-20 p-relative"
>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit('add')"
>
新建SOP
</el-button>
<el-button
class=
"sop-back-btn"
:size=
"size"
type=
"primary"
@
click=
"handleBack"
>
返回
</el-button>
...
...
@@ -69,7 +69,9 @@ export default {
tableColumns
:
[
{
label
:
'SOP名称'
,
prop
:
'sopName'
prop
:
'sopName'
,
width
:
260
,
line
:
1
},
{
label
:
'营销时间'
,
...
...
@@ -83,7 +85,7 @@ export default {
label
:
'营销状态'
,
prop
:
'sopStatus'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
sopStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
sopStatus
).
confName
return
this
.
baseData
.
sopStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
sopStatus
)
?
this
.
baseData
.
sopStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
sopStatus
).
confName
:
'-'
}
},
{
...
...
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