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 1f946c43
authored
Jun 19, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复sop一轮bug
1 parent
2cb0061d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
105 additions
and
40 deletions
src/api/modules/sop.js
src/components/selectTag/index.vue
src/views/sop/editSop/baseInfo.vue
src/views/sop/sopAnalysis/touchList.vue
src/views/sop/viewEvent.vue
src/views/sop/viewSop.vue
src/api/modules/sop.js
View file @
1f946c4
...
@@ -25,7 +25,7 @@ const getCustomerByTagListApi = params => {
...
@@ -25,7 +25,7 @@ const getCustomerByTagListApi = params => {
//群标签获取客户列表
//群标签获取客户列表
const
getCustomerByGroupTagListApi
=
params
=>
{
const
getCustomerByGroupTagListApi
=
params
=>
{
params
.
method
=
'entmicro.api.customer.base.
page
'
params
.
method
=
'entmicro.api.customer.base.
getCustomerBasePageByTag
'
return
http
({
return
http
({
url
:
'rop-scrm-entmicro/router'
,
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/components/selectTag/index.vue
View file @
1f946c4
...
@@ -123,6 +123,7 @@ export default {
...
@@ -123,6 +123,7 @@ export default {
},
},
init
(
item
)
{
init
(
item
)
{
this
.
labelGroupName
=
''
this
.
labelGroupName
=
''
this
.
labelTreeRetSelect
=
[]
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
querylabeltree
(
item
)
this
.
querylabeltree
(
item
)
},
},
...
@@ -131,7 +132,6 @@ export default {
...
@@ -131,7 +132,6 @@ export default {
this
.
querylabeltree
()
this
.
querylabeltree
()
},
},
querylabeltree
(
selectItem
)
{
querylabeltree
(
selectItem
)
{
console
.
log
(
'?????????'
)
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
common
this
.
$apis
.
common
.
querylabeltree
({
.
querylabeltree
({
...
@@ -160,9 +160,7 @@ export default {
...
@@ -160,9 +160,7 @@ export default {
}
}
})
})
//回显
//回显
console
.
log
(
'????????'
)
selectItem
.
forEach
(
item
=>
{
selectItem
.
forEach
(
item
=>
{
console
.
log
(
item
)
this
.
labelTreeRets
.
forEach
(
tag
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelList
=
[]
let
labelList
=
[]
...
@@ -256,7 +254,6 @@ export default {
...
@@ -256,7 +254,6 @@ export default {
let
labelTreeRets
=
this
.
labelTreeRetSelect
let
labelTreeRets
=
this
.
labelTreeRetSelect
.
map
(
item
=>
{
.
map
(
item
=>
{
if
(
item
.
tagChecked
.
length
)
{
if
(
item
.
tagChecked
.
length
)
{
console
.
log
(
item
)
return
{
return
{
labelGroup
:
item
.
labelGroup
,
labelGroup
:
item
.
labelGroup
,
labelList
:
item
.
tagChecked
,
labelList
:
item
.
tagChecked
,
...
@@ -265,7 +262,6 @@ export default {
...
@@ -265,7 +262,6 @@ export default {
}
}
})
})
.
filter
(
item
=>
item
)
.
filter
(
item
=>
item
)
console
.
log
(
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
},
},
//全选
//全选
...
...
src/views/sop/editSop/baseInfo.vue
View file @
1f946c4
...
@@ -33,8 +33,13 @@
...
@@ -33,8 +33,13 @@
<!--
<div
v-show=
"editForm.customerInfoList.length != 0"
class=
"customer-box m-t-10"
>
-->
<!--
<div
v-show=
"editForm.customerInfoList.length != 0"
class=
"customer-box m-t-10"
>
-->
<div
v-show=
"item.list.length != 0"
>
<div
v-show=
"item.list.length != 0"
>
<div
class=
"customer-box m-t-10"
>
<div
class=
"customer-box m-t-10"
>
<div
class=
"customer-title"
v-if=
"editForm.sopType==1"
>
{{
item
.
confName
}}
客户 :预估
{{
item
.
customerCount
}}
人
</div>
<div
class=
"customer-title"
v-if=
"editForm.sopType==1"
>
{{
item
.
confName
}}
客户
<div
class=
"customer-title"
v-if=
"editForm.sopType==2"
>
标签群聊 :预估
{{
item
.
customerCount
}}
个
</div>
:预估
{{
item
.
customerCount
}}
人
</div>
<div
class=
"customer-title"
v-if=
"editForm.sopType==2"
>
标签群聊 :预估
{{
item
.
customerCount
}}
个
</div>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<template
v-if=
"item.confName == '标签' || item.confName == '群标签'"
>
<template
v-if=
"item.confName == '标签' || item.confName == '群标签'"
>
<div
v-for=
"(subItem, subIdx) in item.list"
:key=
"subIdx"
>
<div
v-for=
"(subItem, subIdx) in item.list"
:key=
"subIdx"
>
...
@@ -69,10 +74,10 @@
...
@@ -69,10 +74,10 @@
<div
class=
"container edit-container"
v-loading=
"marketingEventLoading"
>
<div
class=
"container edit-container"
v-loading=
"marketingEventLoading"
>
<div
class=
"edit-title flex"
style=
"align-items: center"
>
<div
class=
"edit-title flex"
style=
"align-items: center"
>
<p>
营销事件设置
</p>
<p>
营销事件设置
</p>
<el-tooltip
:disabled=
"!(!
editForm.customerInfoList.length
|| !editForm.sopName)"
effect=
"dark"
<el-tooltip
:disabled=
"!(!
(editForm.customerInfoList && editForm.customerInfoList.length)
|| !editForm.sopName)"
effect=
"dark"
content=
"请先完善sop名称和营销对象"
placement=
"top"
>
content=
"请先完善sop名称和营销对象"
placement=
"top"
>
<div>
<div>
<el-button
class=
"m-r-20"
:disabled=
"!
editForm.customerInfoList.length
|| !editForm.sopName"
:size=
"size"
<el-button
class=
"m-r-20"
:disabled=
"!
(editForm.customerInfoList && editForm.customerInfoList.length)
|| !editForm.sopName"
:size=
"size"
type=
"primary"
@
click=
"handleEventEdit('add')"
>
添加事件
type=
"primary"
@
click=
"handleEventEdit('add')"
>
添加事件
</el-button>
</el-button>
</div>
</div>
...
@@ -97,9 +102,12 @@
...
@@ -97,9 +102,12 @@
item.repeatTime
item.repeatTime
}}重复循环至
</p>
}}重复循环至
</p>
<p
class=
"m-r-20"
v-show=
"item.repeatFlag == 'Y'"
>
{{ item.eventEndDate }}
</p>
<p
class=
"m-r-20"
v-show=
"item.repeatFlag == 'Y'"
>
{{ item.eventEndDate }}
</p>
<p
class=
"m-r-20 txt-blue"
v-if=
"editForm.sopType == 1"
>
<p
class=
"m-r-20 txt-blue"
v-if=
'editForm.sopType== 1'
>
{{ baseData.channelTypeList.find(k => k.confId == item.pushChannelType).confName }}
{{ baseData.channelTypeList.find(k => k.confId == item.pushChannelType).confName }}
</p>
</p>
<p
class=
"m-r-20 txt-blue"
v-if=
'editForm.sopType== 2'
>
企微群推送
</p>
</div>
</div>
<div>
<div>
<div
v-for=
"(obj, index) in backupContentJson(item.backupContent)"
:key=
"index"
>
<div
v-for=
"(obj, index) in backupContentJson(item.backupContent)"
:key=
"index"
>
...
@@ -259,18 +267,20 @@
...
@@ -259,18 +267,20 @@
</div>
</div>
</div>
</div>
<div
class=
"event-btns"
>
<div
class=
"event-btns"
>
<el-button
v-if=
"editForm.sopStatus !==1 && routeInfo.addOrEdit !== 'copy' && routeInfo.addOrEdit !== 'add'"
type=
"primary"
size=
"small"
<el-button
v-if=
"editForm.sopStatus !==1 && routeInfo.addOrEdit !== 'copy' && routeInfo.addOrEdit !== 'add'"
type=
"primary"
size=
"small"
@
click=
"handleEventView(item)"
>
查看
@
click=
"handleEventView(item)"
>
查看
</el-button>
</el-button>
<el-button
v-if=
"new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit == 'copy'"
<el-button
v-if=
"new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit == 'copy'"
class=
"default newBtnSty"
:size=
"size"
@
click=
"handleEventDelete(index)"
>
删除
class=
"default newBtnSty"
:size=
"size"
@
click=
"handleEventDelete(index)"
>
删除
</el-button>
</el-button>
<el-tooltip
:disabled=
"!(!editForm.customerInfoList.length || !editForm.sopName)"
effect=
"dark"
<el-tooltip
:disabled=
"!(!(editForm.customerInfoList && editForm.customerInfoList.length) || !editForm.sopName)"
effect=
"dark"
content=
"请先完善sop名称和营销对象"
placement=
"top"
>
content=
"请先完善sop名称和营销对象"
placement=
"top"
>
<div>
<div>
<el-button
class=
"default-blue-btn newBtnSty"
<el-button
class=
"default-blue-btn newBtnSty"
v-if=
"new Date(item.eventStartDate) > new Date() || !item.eventStartDate"
v-if=
"new Date(item.eventStartDate) > new Date() || !item.eventStartDate"
:disabled=
"!
editForm.customerInfoList.length
|| !editForm.sopName"
:size=
"size"
:disabled=
"!
(editForm.customerInfoList && editForm.customerInfoList.length)
|| !editForm.sopName"
:size=
"size"
@
click=
"handleEventEdit('edit', item, index)"
>
编辑
@
click=
"handleEventEdit('edit', item, index)"
>
编辑
</el-button>
</el-button>
</div>
</div>
...
@@ -314,7 +324,7 @@ export default {
...
@@ -314,7 +324,7 @@ export default {
title
:
'基本信息'
,
title
:
'基本信息'
,
url
:
url
,
url
:
url
,
marketingEventLoading
:
false
,
marketingEventLoading
:
false
,
marketingSOPLoading
:
false
,
marketingSOPLoading
:
false
,
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
editStatus
:
false
,
editStatus
:
false
,
editDisabled
:
false
,
editDisabled
:
false
,
...
@@ -390,7 +400,7 @@ export default {
...
@@ -390,7 +400,7 @@ export default {
endDate
:
''
,
endDate
:
''
,
// tagging: [],
// tagging: [],
customerOptType
:
''
,
customerOptType
:
''
,
customerInfoList
:
[]
,
customerInfoList
:
null
,
// customerIds: [],
// customerIds: [],
customerOptUpdate
:
'1'
,
customerOptUpdate
:
'1'
,
sopType
:
1
,
sopType
:
1
,
...
@@ -431,7 +441,7 @@ export default {
...
@@ -431,7 +441,7 @@ export default {
],
],
handleRadioChange
:
val
=>
{
handleRadioChange
:
val
=>
{
let
hasList
let
hasList
if
(
this
.
editForm
.
customerOptType
){
if
(
this
.
editForm
.
customerOptType
)
{
this
.
currentCustomerIdx
=
this
.
customerDataList
.
findIndex
(
item
=>
item
.
confId
==
this
.
editForm
.
customerOptType
)
this
.
currentCustomerIdx
=
this
.
customerDataList
.
findIndex
(
item
=>
item
.
confId
==
this
.
editForm
.
customerOptType
)
hasList
=
this
.
customerDataList
[
this
.
currentCustomerIdx
]?.
list
?.
length
hasList
=
this
.
customerDataList
[
this
.
currentCustomerIdx
]?.
list
?.
length
}
}
...
@@ -444,7 +454,7 @@ export default {
...
@@ -444,7 +454,7 @@ export default {
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
this
.
editForm
.
customerOptType
=
val
==
1
?
''
:
4
this
.
editForm
.
customerOptType
=
val
==
1
?
''
:
4
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
=
[]
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
=
[]
//
this.changeCustomer()
this
.
changeCustomer
()
this
.
editForm
.
eventList
=
[]
this
.
editForm
.
eventList
=
[]
}
else
{
}
else
{
this
.
editForm
.
sopType
=
val
==
1
?
2
:
1
this
.
editForm
.
sopType
=
val
==
1
?
2
:
1
...
@@ -997,8 +1007,16 @@ export default {
...
@@ -997,8 +1007,16 @@ export default {
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
.
length
&&
this
.
getGroupByTagList
()
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
.
length
&&
this
.
getGroupByTagList
()
break
break
}
}
this
.
editForm
.
customerInfoList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
))
this
.
$nextTick
(()
=>
{
this
.
$set
(
this
.
editForm
,
'customerInfoList'
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
)))
this
.
$refs
.
editFormRef
&&
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'customerInfoList'
)
this
.
$refs
.
editFormRef
&&
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'customerInfoList'
)
}
)
// this.key = new Date()
// this.key = new Date()
},
},
...
@@ -1044,7 +1062,6 @@ export default {
...
@@ -1044,7 +1062,6 @@ export default {
break
break
case
1
:
case
1
:
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
isTagVisible
=
!
this
.
isTagVisible
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
idx
].
list
)))
this
.
$refs
.
selectTagForm
.
init
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
idx
].
list
)))
this
.
$refs
.
selectTagForm
.
init
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
idx
].
list
)))
break
break
case
2
:
case
2
:
...
@@ -1052,6 +1069,7 @@ export default {
...
@@ -1052,6 +1069,7 @@ export default {
break
break
case
3
:
case
3
:
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
$refs
.
selectTagForm
.
init
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
idx
].
list
)))
this
.
$refs
.
selectTagForm
.
init
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
idx
].
list
)))
}
}
},
},
...
@@ -1065,6 +1083,7 @@ export default {
...
@@ -1065,6 +1083,7 @@ export default {
callback
:
action
=>
{
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
=
[]
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
=
[]
// this.$set(this.editForm,'customerInfoList',[])
this
.
changeCustomer
()
this
.
changeCustomer
()
// this.editForm.eventList = []
// this.editForm.eventList = []
}
}
...
@@ -1143,7 +1162,7 @@ export default {
...
@@ -1143,7 +1162,7 @@ export default {
},
},
handleEventView
(
item
)
{
handleEventView
(
item
)
{
this
.
$router
.
push
({
path
:
'/sop/viewEvent'
,
query
:
{
info
:
item
}});
this
.
$router
.
push
({
path
:
'/sop/viewEvent'
,
query
:
{
info
:
item
,
sopType
:
this
.
editForm
.
sopType
}});
},
},
handleEventEdit
(
addOrEdit
,
row
,
idx
)
{
handleEventEdit
(
addOrEdit
,
row
,
idx
)
{
let
currentCustObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
this
.
currentCustomerIdx
]))
let
currentCustObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
this
.
currentCustomerIdx
]))
...
@@ -1231,7 +1250,7 @@ export default {
...
@@ -1231,7 +1250,7 @@ export default {
const
mixedType
=
materialType
&&
activityType
const
mixedType
=
materialType
&&
activityType
const
obj
=
{
const
obj
=
{
// videoImageStorage: [],
// videoImageStorage: [],
resourceList
:[]
resourceList
:
[]
}
}
val
.
forEach
(
event
=>
{
val
.
forEach
(
event
=>
{
...
@@ -1255,7 +1274,6 @@ export default {
...
@@ -1255,7 +1274,6 @@ export default {
if
(
event
&&
(
event
.
attType
==
7
||
event
.
attType
==
4
))
{
if
(
event
&&
(
event
.
attType
==
7
||
event
.
attType
==
4
))
{
obj
.
additionalType
=
2
obj
.
additionalType
=
2
let
attContentCopy
=
JSON
.
parse
(
event
.
attContent
)
let
attContentCopy
=
JSON
.
parse
(
event
.
attContent
)
console
.
log
(
attContentCopy
)
if
(
attContentCopy
.
marketingContent
.
selectType
==
'coupon'
)
{
if
(
attContentCopy
.
marketingContent
.
selectType
==
'coupon'
)
{
obj
.
additionalType
=
3
obj
.
additionalType
=
3
obj
.
objectType
=
5
obj
.
objectType
=
5
...
@@ -1289,7 +1307,6 @@ export default {
...
@@ -1289,7 +1307,6 @@ export default {
obj
.
objectId
=
backupattContent
.
objectId
obj
.
objectId
=
backupattContent
.
objectId
}
}
if
(
event
&&
(
event
.
attType
==
7
||
event
.
attType
==
4
))
{
if
(
event
&&
(
event
.
attType
==
7
||
event
.
attType
==
4
))
{
console
.
log
(
event
)
let
attContentCopy
=
JSON
.
parse
(
event
.
attContent
)
let
attContentCopy
=
JSON
.
parse
(
event
.
attContent
)
if
(
attContentCopy
.
marketingContent
.
selectType
==
'coupon'
)
{
if
(
attContentCopy
.
marketingContent
.
selectType
==
'coupon'
)
{
obj
.
objectType
=
16
obj
.
objectType
=
16
...
@@ -1316,6 +1333,13 @@ export default {
...
@@ -1316,6 +1333,13 @@ export default {
this
.
submit
=
true
this
.
submit
=
true
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
!
this
.
editForm
.
customerInfoList
?.
length
){
this
.
$message
({
message
:
'请选择营销对象'
,
type
:
'error'
})
return
}
if
(
!
this
.
editForm
.
eventList
.
length
)
{
if
(
!
this
.
editForm
.
eventList
.
length
)
{
return
true
return
true
}
}
...
@@ -1360,7 +1384,7 @@ export default {
...
@@ -1360,7 +1384,7 @@ export default {
params
.
eventList
[
idx
].
eventEndDate
=
item
.
eventEndDate
params
.
eventList
[
idx
].
eventEndDate
=
item
.
eventEndDate
}
}
let
backupContent
=
typeof
item
.
backupContent
==
'string'
?
JSON
.
parse
(
item
.
backupContent
)
:
item
.
backupContent
let
backupContent
=
typeof
item
.
backupContent
==
'string'
?
JSON
.
parse
(
item
.
backupContent
)
:
item
.
backupContent
params
.
eventList
[
index
]
=
{...
params
.
eventList
[
index
],...
this
.
handleMarketingContentTypes
(
backupContent
)}
params
.
eventList
[
index
]
=
{...
params
.
eventList
[
index
],
...
this
.
handleMarketingContentTypes
(
backupContent
)}
idx
=
idx
+
1
idx
=
idx
+
1
}
else
{
}
else
{
params
.
eventList
.
push
(
item
)
params
.
eventList
.
push
(
item
)
...
@@ -1385,7 +1409,7 @@ export default {
...
@@ -1385,7 +1409,7 @@ export default {
this
.
editForm
.
eventList
.
forEach
((
item
,
index
)
=>
{
this
.
editForm
.
eventList
.
forEach
((
item
,
index
)
=>
{
// params.eventList.push(JSON.parse(JSON.stringify(item)))
// params.eventList.push(JSON.parse(JSON.stringify(item)))
// params.eventList[index].resourceList = []
// params.eventList[index].resourceList = []
params
.
eventList
[
index
]
=
{...
item
,...
this
.
handleMarketingContentTypes
(
item
.
object
)}
params
.
eventList
[
index
]
=
{...
item
,
...
this
.
handleMarketingContentTypes
(
item
.
object
)}
params
.
eventList
[
index
].
backupContent
=
item
.
object
params
.
eventList
[
index
].
backupContent
=
item
.
object
delete
params
.
eventList
[
index
].
object
delete
params
.
eventList
[
index
].
object
})
})
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
1f946c4
...
@@ -177,6 +177,11 @@ export default {
...
@@ -177,6 +177,11 @@ export default {
prop
:
'commentCount'
,
prop
:
'commentCount'
,
}
}
],
],
diffsRepeatMode
:{
1
:
'按天'
,
2
:
'按周'
,
3
:
'按月'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
baseData
:
{
baseData
:
{
sopEventList
:
[]
sopEventList
:
[]
...
@@ -236,7 +241,9 @@ export default {
...
@@ -236,7 +241,9 @@ export default {
this
.
labelOptUpdate
=
this
.
baseData
.
sopEventList
[
0
].
labelOptUpdate
this
.
labelOptUpdate
=
this
.
baseData
.
sopEventList
[
0
].
labelOptUpdate
if
(
this
.
baseData
.
sopEventList
.
length
)
{
if
(
this
.
baseData
.
sopEventList
.
length
)
{
this
.
baseData
.
sopEventList
.
forEach
(
item
=>
{
this
.
baseData
.
sopEventList
.
forEach
(
item
=>
{
item
.
confName
=
item
.
eventStartDate
+
(
item
.
repeatFlag
==
'Y'
?
(
''
-
' + item.eventEndDate'
||
''
)
:
''
)
+
' '
+
item
.
eventTime
+
' '
+
pushChannelTypeList
[
item
.
pushChannelType
]
console
.
log
(
item
)
item
.
confName
=
item
.
eventStartDate
+
' '
+
item
.
eventTime
+
' '
+
this
.
diffsRepeatMode
[
item
.
repeatMode
]
+
' '
+
pushChannelTypeList
[
item
.
pushChannelType
]
// item.confName = item.eventStartDate + (item.repeatFlag == 'Y' ? (''-' + item.eventEndDate' || '') : '') + ' ' + item.eventTime + ' ' + pushChannelTypeList[item.pushChannelType]
})
})
this
.
getOptionsList
(
'searchFormData'
,
false
)
this
.
getOptionsList
(
'searchFormData'
,
false
)
this
.
searchForm
.
eventId
=
this
.
baseData
.
sopEventList
[
0
].
id
this
.
searchForm
.
eventId
=
this
.
baseData
.
sopEventList
[
0
].
id
...
...
src/views/sop/viewEvent.vue
View file @
1f946c4
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"base-info-item"
>
<div
class=
"base-info-item"
>
<span><span
class=
"red-icon"
>
*
</span>
营销时间:
</span>
<span><span
class=
"red-icon"
>
*
</span>
营销时间:
</span>
<span>
{{
eventInfo
.
eventStartDate
}}
{{
eventInfo
.
eventTime
}}
</span>
<span>
{{
eventInfo
.
eventStartDate
}}
{{
eventInfo
.
eventTime
}}
</span>
</div>
</div>
<div
class=
"base-info-item"
>
<div
class=
"base-info-item"
>
<span><span
class=
"red-icon"
>
*
</span>
是否重复:
{{
eventInfo
.
repeatFlag
==
'Y'
?
'是'
:
'否'
}}
</span>
<span><span
class=
"red-icon"
>
*
</span>
是否重复:
{{
eventInfo
.
repeatFlag
==
'Y'
?
'是'
:
'否'
}}
</span>
...
@@ -22,8 +22,11 @@
...
@@ -22,8 +22,11 @@
</div>
</div>
<div
class=
"base-info-item"
>
<div
class=
"base-info-item"
>
<span><span
class=
"red-icon"
>
*
</span>
重复时间:
<span><span
class=
"red-icon"
>
*
</span>
重复时间:
<span
v-if=
"eventInfo.repeatMode == '1'"
>
每天重复循环至
{{
eventInfo
.
eventEndDate
}}
</span>
<span
v-if=
"eventInfo.repeatMode == '1'"
>
每天重复循环至
{{
eventInfo
.
eventEndDate
}}
</span>
<span
v-else
>
每
{{
eventInfo
.
repeatMode
==
2
?
'周'
:
'月'
}}{{
eventInfo
.
repeatTime
}}
重复循环至
{{
eventInfo
.
eventEndDate
}}
</span>
<span
v-else
>
每
{{
eventInfo
.
repeatMode
==
2
?
'周'
:
'月'
}}{{
eventInfo
.
repeatTime
}}
重复循环至
{{
eventInfo
.
eventEndDate
}}
</span>
</span>
</span>
</div>
</div>
</
template
>
</
template
>
...
@@ -33,7 +36,7 @@
...
@@ -33,7 +36,7 @@
<div
class=
"container m-b-20"
>
<div
class=
"container m-b-20"
>
<p
class=
"edit-title"
>
营销时间
</p>
<p
class=
"edit-title"
>
营销时间
</p>
<div
class=
"marketing-content"
>
<div
class=
"marketing-content"
>
<div
class=
"marketing-title"
>
<span
class=
"red-icon"
>
*
</span>
营销内容:
</div>
<div
class=
"marketing-title"
>
<span
class=
"red-icon"
>
*
</span>
营销内容:
</div>
<div
class=
"marketing-box"
>
<div
class=
"marketing-box"
>
<div
v-for=
"(obj, index) in backupContentJson(eventInfo.backupContent)"
:key=
"index"
>
<div
v-for=
"(obj, index) in backupContentJson(eventInfo.backupContent)"
:key=
"index"
>
<div
class=
"textHidden"
:title=
"obj.attContent"
v-if=
"obj.attType == 1"
<div
class=
"textHidden"
:title=
"obj.attContent"
v-if=
"obj.attType == 1"
...
@@ -152,9 +155,20 @@
...
@@ -152,9 +155,20 @@
<div
class=
"container m-b-20"
>
<div
class=
"container m-b-20"
>
<p
class=
"edit-title"
>
营销设置
</p>
<p
class=
"edit-title"
>
营销设置
</p>
<div
class=
"base-info-list"
>
<div
class=
"base-info-list"
>
<
template
v-if=
"sopType ==1"
>
<div
class=
"base-info-item"
>
<span><span
class=
"red-icon"
>
*
</span>
营销设置:
</span>
<span>
{{
diffPushChannelType
[
eventInfo
.
pushChannelType
]
}}
</span>
</div>
<div
class=
"base-info-item"
>
<span><span
class=
"red-icon"
>
*
</span>
跟进员工类型:
{{
staffTypeList
.
find
(
item
=>
item
.
id
==
eventInfo
.
followerTypeId
).
followName
}}
</span>
</div>
</
template
>
<div
class=
"base-info-item"
>
<div
class=
"base-info-item"
>
<span><span
class=
"red-icon"
>
*
</span>
营销次数:
</span>
<span><span
class=
"red-icon"
>
*
</span>
营销次数:
</span>
<span>
{{ eventInfo.reachesType == 1
? '1' : eventInfo.reachesTypeSet
}}次
</span>
<span>
{{ eventInfo.reachesType == 1
? '1' : eventInfo.reachesTypeSet
}}次
</span>
</div>
</div>
<div
class=
"base-info-item"
>
<div
class=
"base-info-item"
>
<span><span
class=
"red-icon"
>
*
</span>
标签更新:{{ eventInfo.labelOptUpdate == '1' ? '开启' : '关闭' }}
</span>
<span><span
class=
"red-icon"
>
*
</span>
标签更新:{{ eventInfo.labelOptUpdate == '1' ? '开启' : '关闭' }}
</span>
...
@@ -173,7 +187,13 @@ export default {
...
@@ -173,7 +187,13 @@ export default {
name
:
"viewEvent"
,
name
:
"viewEvent"
,
data
()
{
data
()
{
return
{
return
{
eventInfo
:
null
eventInfo
:
null
,
staffTypeList
:
null
,
diffPushChannelType
:
{
1
:
'企业微信'
,
2
:
'短信'
,
3
:
'微信朋友圈'
}
}
}
},
},
methods
:
{
methods
:
{
...
@@ -205,10 +225,19 @@ export default {
...
@@ -205,10 +225,19 @@ export default {
})
})
return
htm
return
htm
},
},
getStaffTypeList
()
{
this
.
$apis
.
common
.
getStaffFollowerListApi
({}).
then
(
res
=>
{
this
.
staffTypeList
=
res
})
},
},
},
mounted
()
{
mounted
()
{
this
.
eventInfo
=
this
.
$route
.
query
.
info
const
{
info
,
sopType
}
=
this
.
$route
.
query
console
.
log
(
this
.
eventInfo
)
this
.
getStaffTypeList
()
this
.
eventInfo
=
info
this
.
sopType
=
sopType
}
}
}
}
</
script
>
</
script
>
...
@@ -232,24 +261,33 @@ export default {
...
@@ -232,24 +261,33 @@ export default {
}
}
}
}
}
}
.marketing-content
{
.marketing-content
{
margin
:
32px
84px
;
margin
:
32px
84px
;
display
:
flex
;
display
:
flex
;
.marketing-title{
.marketing-title
{
display
:
flex
;
display
:
flex
;
color
:
#666666
;
color
:
#666666
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.marketing-box
{
.marketing-box
{
background
:
#F9F9F9
;
background
:
#F9F9F9
;
padding
:
20px
;
padding
:
20px
;
min-width
:
644px
;
min-width
:
644px
;
min-height
:
204px
;
min-height
:
204px
;
}
}
}
}
.red-icon
{
.red-icon
{
color
:
#f56c6c
;
color
:
#f56c6c
;
margin-right
:
4px
;
margin-right
:
4px
;
}
}
.model-item-img
{
width
:
90px
;
height
:
78px
;
margin-right
:
5px
;
}
</
style
>
</
style
>
src/views/sop/viewSop.vue
View file @
1f946c4
...
@@ -201,7 +201,7 @@ export default {
...
@@ -201,7 +201,7 @@ export default {
methods
:
{
methods
:
{
handleEventView
()
{
handleEventView
()
{
let
info
=
this
.
editForm
.
eventList
&&
this
.
editForm
.
eventList
[
0
]
let
info
=
this
.
editForm
.
eventList
&&
this
.
editForm
.
eventList
[
0
]
this
.
$router
.
push
({
path
:
'/sop/viewEvent'
,
query
:
{
info
}});
this
.
$router
.
push
({
path
:
'/sop/viewEvent'
,
query
:
{
info
,
sopType
:
this
.
editForm
.
sopType
}});
},
},
tramWord
(
val
)
{
tramWord
(
val
)
{
...
...
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