Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-scene
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 97d9b5e2
authored
Jan 04, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.23.1' of
http://192.168.3.233:8090/saas/scrm-micro-scene
into v3.23.1
2 parents
acea7e18
99ee4d78
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
67 additions
and
28 deletions
src/api/modules/journeyConfig.js
src/components/model/activityModel.vue
src/mixins/config.js
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/editCondition.vue
src/views/journeyConfig/config.vue
src/api/modules/journeyConfig.js
View file @
97d9b5e
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-07 16:54:06
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-04 1
0:41:30
* @LastEditTime: 2024-01-04 1
5:17:51
* @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -183,6 +183,7 @@ const setStageData = params => {
url
:
`/process/sop/api/sopInsts/
${
params
.
instId
}
/instParam/stageData`
,
method
:
'post'
,
data
:
params
.
data
,
noSessionId
:
true
,
sign
:
false
})
}
...
...
src/components/model/activityModel.vue
View file @
97d9b5e
...
...
@@ -135,6 +135,9 @@ export default {
computed
:
{
selectType
()
{
return
this
.
activityList
.
length
?
this
.
activityList
.
find
(
act
=>
act
.
itemValue
==
this
.
activeName
).
itemType
:
''
},
miniType
()
{
return
this
.
activityList
.
length
?
this
.
activityList
.
find
(
act
=>
act
.
itemValue
==
this
.
activeName
).
miniType
:
''
}
},
methods
:
{
...
...
@@ -191,7 +194,7 @@ export default {
params
.
marketingUrl
=
this
.
selectItem
.
cardCover
params
.
marketingTitle
=
this
.
selectItem
.
cardTitle
}
this
.
$emit
(
'selectActivity'
,
{
marketingId
,
marketingType
:
this
.
activeName
,
marketingName
,
marketingContent
,
...
params
})
this
.
$emit
(
'selectActivity'
,
{
marketingId
,
marketingType
:
this
.
activeName
,
m
iniType
:
this
.
miniType
,
m
arketingName
,
marketingContent
,
...
params
})
},
handleSizeChange
(
val
)
{
this
.
pageSize
=
val
...
...
src/mixins/config.js
View file @
97d9b5e
export
default
{
data
()
{
return
{
journeyStatus
:
2
,
journeyStatus
:
0
,
statusList
:
[],
activityType
:
{
1
:
[
...
...
@@ -159,7 +159,8 @@ export default {
this
.
$apis
.
journeyConfig
.
getInstIdDetail
({
instId
:
this
.
query
.
instId
}).
then
(
res
=>
{
const
instParam
=
JSON
.
parse
(
res
.
instParam
)
const
dataTypeCode
=
instParam
.
dataTypeCode
if
(
dataTypeCode
==
'"xbpzj"'
)
{
console
.
log
(
dataTypeCode
)
if
(
dataTypeCode
==
'xbpzj'
)
{
this
.
statusList
=
this
.
activityType
[
1
]
}
else
{
this
.
statusList
=
this
.
activityType
[
2
]
...
...
@@ -174,15 +175,17 @@ export default {
if
(
instStatus
==
0
&&
activityId
)
{
this
.
journeyStatus
=
2
}
if
(
instStatus
==
1
&&
activityId
)
{
if
(
instStatus
==
1
)
{
this
.
journeyStatus
=
3
}
if
(
instStatus
==
-
1
&&
activityId
)
{
if
(
instStatus
==
-
1
)
{
this
.
journeyStatus
=
4
}
console
.
log
(
stages
,
'this.journeyStatus'
)
const
nodes
=
res
.
nodes
const
configList
=
[]
for
(
let
k
in
stages
)
{
console
.
log
(
stages
[
k
])
let
list
=
[]
for
(
let
v
of
nodes
)
{
if
(
v
.
nodeParam
&&
JSON
.
parse
(
v
.
nodeParam
).
stage
==
stages
[
k
].
value
)
{
...
...
@@ -203,13 +206,15 @@ export default {
sopList
})
}
console
.
log
(
configList
,
'configList'
)
this
.
configList
=
configList
})
},
async
haneldOpenQY
()
{
this
.
handleConfirm
(
'开启提示'
,
'确定开启'
,
'旅程开启后将无法修改关联的活动链接'
,
''
,
async
()
=>
{
await
this
.
$apis
.
journeyConfig
.
authorizeMerchant
({
merchantId
:
this
.
$globalState
.
session
.
merchantId
})
this
.
$apis
.
journeyConfig
.
concatActivity
({
instId
:
this
.
query
.
instId
,
data
:
{
supMerchantNo
:
this
.
$globalState
.
session
.
merchantId
}
}).
then
(
res
=>
{})
await
this
.
$apis
.
journeyConfig
.
concatActivity
({
instId
:
this
.
query
.
instId
,
data
:
{
supMerchantNo
:
this
.
$globalState
.
session
.
merchantId
}
})
this
.
setSopInsts
(
1
)
})
}
}
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
97d9b5e
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-04 1
3:39:03
* @LastEditTime: 2024-01-04 1
5:22:28
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -395,7 +395,8 @@ export default {
title
,
label
,
editable
,
conditionsList
:
conditionsList
[
k
]
conditionsList
:
conditionsList
,
index
:
k
}
this
.
conditionVisible
=
true
},
...
...
src/views/journeyConfig/components/editCondition.vue
View file @
97d9b5e
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-0
3 18:08:45
* @LastEditTime: 2024-01-0
4 16:20:31
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -15,14 +15,13 @@
<span
v-else-if=
"item.getName"
>
{{
item
.
getName
(
conditionInfo
[
item
.
name
])
}}
</span>
<span
v-else
>
{{
conditionInfo
[
item
.
name
]
}}
</span>
</div>
<div
class=
"condition-panel"
v-if=
"
status == 1
"
>
<div
class=
"condition-panel"
v-if=
"
configInfo.length == 2
"
>
<div
class=
"flex"
>
<label
class=
"condition-label"
>
企微成员范围:
</label>
<div
class=
"condition-select"
>
<div
class=
"m-b-10"
>
<el-radio-group
v-model=
"radio"
>
<el-radio
:label=
"3"
>
全部成员
</el-radio>
<el-radio
:label=
"6"
>
指定成员
</el-radio>
<el-radio-group
v-model=
"empType"
>
<el-radio
:label=
"index"
v-for=
"(item, index) in configInfo"
:key=
"item.id"
>
{{
item
.
name
}}
</el-radio>
</el-radio-group>
</div>
<el-button
size=
"small"
@
click=
"handleAddEmp"
>
...
...
@@ -40,7 +39,7 @@
</div>
</div>
</div>
<div
class=
"condition-panel"
v-else-if=
"status == 2"
>
<div
class=
"condition-panel"
>
<div
class=
"flex"
>
<label
class=
"condition-label"
>
进入条件:
</label>
<div
class=
"condition-select"
>
...
...
@@ -55,7 +54,7 @@
</div>
</div>
</div>
<div
class=
"condition-panel"
v-else
>
<div
class=
"condition-panel"
>
<div
class=
"flex-column-center"
>
<label
class=
"condition-label"
>
进入条件:
</label>
<div
class=
"condition-select"
>
...
...
@@ -68,13 +67,13 @@
</div>
</div>
</div>
<div
class=
"flex-column-center"
>
<div
class=
"flex-column-center"
v-if=
"configInfo.length == 1"
>
<label
class=
"require"
>
*
</label>
<label
class=
"condition-label"
>
页面配置:
</label>
<div
class=
"condition-select"
>
<div
class=
"condition-input"
>
<span>
当前页面营销活动为
</span>
<el-input
style=
"width: 284px;"
></el-input>
<el-input
style=
"width: 284px;"
v-model=
"activityName"
></el-input>
<a
@
click=
"typeVisible = true"
>
编辑页面
</a>
</div>
</div>
...
...
@@ -94,6 +93,7 @@ import selectEmp from './selectEmp'
import
selectType
from
'./selectType'
import
materialModel
from
'@/components/model/materialModel'
import
activityModel
from
'@/components/model/activityModel'
import
{
use
}
from
'echarts'
export
default
{
components
:
{
selectEmp
,
...
...
@@ -110,12 +110,13 @@ export default {
},
data
()
{
return
{
status
:
1
,
empType
:
0
,
userList
:
[],
materialList
:
{
name
:
'素材'
,
type
:
'material'
,
funName
:
'material'
,
miniType
:
8
,
fileType
:
true
,
groupListApi
:
this
.
$apis
.
welcomeword
.
getGroupListApi
,
materialListApi
:
this
.
$apis
.
welcomeword
.
getMaterialListApi
,
...
...
@@ -128,6 +129,7 @@ export default {
itemName
:
'权益卡试用'
,
itemValue
:
3
,
itemType
:
'card'
,
miniType
:
1
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getCard
,
params
:
{
tryAble
:
1
,
...
...
@@ -137,6 +139,7 @@ export default {
{
itemName
:
'权益套餐'
,
itemValue
:
4
,
miniType
:
2
,
itemType
:
'package'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getPackage
,
params
:
{
...
...
@@ -147,6 +150,7 @@ export default {
itemName
:
'商城券'
,
itemValue
:
2
,
itemType
:
'coupon'
,
miniType
:
4
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getMerchant
,
params
:
{
discountTypes
:
[
2
,
3
,
4
],
...
...
@@ -158,6 +162,7 @@ export default {
{
itemName
:
'秒杀活动'
,
itemValue
:
5
,
miniType
:
3
,
itemType
:
'activity'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getActivity
,
params
:
{
...
...
@@ -169,6 +174,7 @@ export default {
{
itemName
:
'众筹活动'
,
itemValue
:
6
,
miniType
:
5
,
itemType
:
'crowdfunding'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
crowdfundingActivity
,
params
:
{
...
...
@@ -181,6 +187,7 @@ export default {
itemName
:
'膨胀金活动'
,
itemValue
:
7
,
itemType
:
'crowdfunding'
,
miniType
:
6
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
bulgeActivity
,
params
:
{
currentPage
:
1
,
...
...
@@ -191,6 +198,7 @@ export default {
membersVisible
:
false
,
typeVisible
:
false
,
selectData
:
[],
configInfo
:
[],
conditionItem
:
[
{
label
:
'客户旅程'
,
...
...
@@ -217,8 +225,18 @@ export default {
]
}
},
computed
:
{
activityName
()
{
if
(
this
.
configInfo
.
length
&&
this
.
configInfo
[
0
].
value
)
return
this
.
configInfo
.
value
.
match
(
/
\d
+
\+(\D
+
)
/
)[
1
]
else
return
''
}
},
mounted
()
{
const
{
dataTypeCode
}
=
this
.
conditionInfo
.
conditionsList
const
{
index
}
=
this
.
conditionInfo
,
{
dataTypeCode
,
conditions
}
=
this
.
conditionInfo
.
conditionsList
[
index
],
condition
=
conditions
.
filter
(
i
=>
i
.
isHide
)
console
.
log
(
condition
,
'condition'
)
this
.
configInfo
=
condition
this
.
$apis
.
journeyConfig
.
sopConditionList
({
dataTypeCode
}).
then
(
res
=>
{
this
.
stepList
=
res
})
...
...
@@ -228,7 +246,8 @@ export default {
this
.
userList
.
splice
(
idx
,
1
)
},
selectActivity
(
val
)
{
console
.
log
(
val
)
const
{
marketingName
,
marketingId
,
miniType
}
=
val
this
.
configInfo
[
0
].
value
=
`
${
miniType
}
+
${
marketingId
}
+
${
marketingName
}
`
},
// 成员弹窗
handleConfirm
()
{
...
...
@@ -244,17 +263,27 @@ export default {
}
},
handleSure
()
{
const
{
editable
,
label
,
conditions
,
order
}
=
this
.
$parent
.
stepItem
if
(
this
.
configInfo
.
length
==
2
)
{
const
userId
=
this
.
userList
.
map
(
i
=>
i
.
userId
),
staffName
=
this
.
userList
.
map
(
i
=>
i
.
staffName
),
desc
=
{}
for
(
let
i
=
0
;
i
<
userId
.
length
;
i
++
)
{
desc
[
userId
[
i
]]
=
staffName
[
i
]
}
this
.
configInfo
[
this
.
empType
].
operators
[
0
].
value
=
userId
.
join
(
','
)
this
.
configInfo
[
this
.
empType
].
operators
[
0
].
desc
=
desc
}
const
{
editable
,
label
,
order
}
=
this
.
$parent
.
stepItem
const
{
instId
}
=
this
.
$route
.
query
,
data
=
{
[
`
${
order
}
`
]:
{
conditions
:
[]
,
conditions
:
this
.
conditionInfo
.
conditionsList
,
editable
,
value
:
label
value
:
label
}
}
this
.
$apis
.
journeyConfig
.
setStageData
({
instId
,
data
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$parent
.
$parent
.
getDetail
(
)
})
this
.
$emit
(
'closeCondition'
)
},
...
...
src/views/journeyConfig/config.vue
View file @
97d9b5e
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-04 1
1:16:15
* @LastEditTime: 2024-01-04 1
3:54:59
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -19,7 +19,7 @@
</div>
<div
class=
"journey-step bg-fff pb20"
>
<div
class=
"journey-step-title border-title"
>
客户旅程阶段
客户旅程阶段
{{ journeyStatus }}
</div>
<div
class=
"journey-step-body"
>
<div
class=
"journey-step-info"
v-for=
"(val, k) in configList"
:key=
"k"
>
...
...
@@ -208,7 +208,7 @@ export default {
color
:
#666666
;
margin-left
:
5px
;
display
:
inline-block
;
width
:
1
4
6px
;
width
:
1
5
6px
;
}
}
.journey-step-body
{
...
...
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