Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 d40cf384
authored
Jul 09, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
a33b4257
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/MarketingTask.vue
src/views/activityLink/components/MarketingGift.vue
View file @
d40cf38
...
@@ -187,18 +187,19 @@ export default {
...
@@ -187,18 +187,19 @@ export default {
return
return
}
}
const
params
=
{}
const
params
=
{}
const
selectedGoodsList
=
[
this
.
selectedGoodsList
,
this
.
selectedServiceList
].
map
(
item
=>
{
const
selectedGoodsList
=
[
...
this
.
selectedGoodsList
,
...
this
.
selectedServiceList
].
map
(
item
=>
{
return
{
return
{
couponId
:
item
.
id
,
couponId
:
item
.
id
,
couponAmount
:
item
.
couponAmount
,
couponAmount
:
item
.
couponAmount
,
couponAnticipatedCost
:
item
.
denomination
couponAnticipatedCost
:
item
.
denomination
}
}
})
})
console
.
log
(
this
.
selectedGoodsList
,
this
.
selectedServiceList
)
const
equityServices
=
this
.
selectedCarList
.
map
(
i
=>
i
.
packageCode
)
const
equityServices
=
this
.
selectedCarList
.
map
(
i
=>
i
.
packageCode
)
params
.
equityServices
=
equityServices
.
join
(
','
)
params
.
equityServices
=
equityServices
.
join
(
','
)
params
.
activityPrice
=
(
this
.
editForm
.
activityPrice
*
100
).
toFixed
(
0
)
params
.
activityPrice
=
(
this
.
editForm
.
activityPrice
*
100
).
toFixed
(
0
)
params
.
superMarketingCouponRelRequestList
=
selectedGoodsList
||
[]
params
.
superMarketingCouponRelRequestList
=
selectedGoodsList
||
[]
console
.
log
(
params
)
this
.
setProcess
({
this
.
setProcess
({
1
:
{
1
:
{
...
params
...
params
...
@@ -323,10 +324,10 @@ export default {
...
@@ -323,10 +324,10 @@ export default {
}
}
},
},
//用车权益
//用车权益
getCarList
()
{
async
getCarList
()
{
this
.
$apis
.
giftBag
.
packageDefault
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
let
res
=
await
this
.
$apis
.
giftBag
.
packageDefault
({
merchantId
:
this
.
merchantId
,
activitySubscribe
:
this
.
subscribe
})
console
.
log
(
r
es
)
let
equities
=
JSON
.
parse
(
res
.
equiti
es
)
}
)
console
.
log
(
equities
,
99
)
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
merchantId
:
this
.
merchantId
merchantId
:
this
.
merchantId
...
@@ -336,7 +337,20 @@ export default {
...
@@ -336,7 +337,20 @@ export default {
.
equityMerchant
(
params
)
.
equityMerchant
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
carList
=
res
.
packageConfigs
const
packageConfigs
=
res
.
packageConfigs
||
[]
packageConfigs
.
forEach
(
p
=>
{
for
(
let
k
in
equities
)
{
if
(
k
==
p
.
packageCode
)
{
p
.
packageAmount
=
equities
[
k
]
}
}
this
.
selectedCarList
.
forEach
(
s
=>
{
if
(
p
.
packageCode
==
s
.
packageCode
)
{
p
.
packageAmount
=
s
.
packageAmount
}
})
})
this
.
carList
=
packageConfigs
this
.
selectedPreExisting
(
this
.
selectedCarList
,
this
.
carList
,
'packageCode'
,
this
.
$refs
[
'carRef'
])
this
.
selectedPreExisting
(
this
.
selectedCarList
,
this
.
carList
,
'packageCode'
,
this
.
$refs
[
'carRef'
])
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
d40cf38
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<el-table-column
label=
"操作"
width=
"260"
>
<el-table-column
label=
"操作"
width=
"260"
>
<div
class=
"config-panel flex"
slot-scope=
"scope"
>
<div
class=
"config-panel flex"
slot-scope=
"scope"
>
<div
class=
"config-msg"
v-if=
"item.assignType == 1 && item.registerStatus === 0"
@
click=
"showRegister"
>
邀请人员注册
</div>
<div
class=
"config-msg"
v-if=
"item.assignType == 1 && item.registerStatus === 0"
@
click=
"showRegister"
>
邀请人员注册
</div>
<div
class=
"config-msg"
@
click=
"handleConfig(
scope.row
)"
>
配置话术 / 短信
</div>
<div
class=
"config-msg"
@
click=
"handleConfig(
item.batchNo, scope
)"
>
配置话术 / 短信
</div>
</div>
</div>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -122,8 +122,9 @@ export default {
...
@@ -122,8 +122,9 @@ export default {
data
()
{
data
()
{
return
{
return
{
taskList
:
[{
batchNo
:
1
,
...
taskData
}],
taskList
:
[{
batchNo
:
1
,
...
taskData
}],
batchNo
:
0
,
customerKey
:
[],
customerKey
:
[],
select
Emp
:
{},
select
Index
:
{},
qrCodeUrl
:
''
,
qrCodeUrl
:
''
,
linkUrl
:
''
,
linkUrl
:
''
,
invite
:
{
invite
:
{
...
@@ -269,12 +270,13 @@ export default {
...
@@ -269,12 +270,13 @@ export default {
})
})
},
},
//话术配置
//话术配置
handleConfig
(
row
)
{
handleConfig
(
num
,
row
)
{
this
.
configVisible
=
true
this
.
configVisible
=
true
this
.
selectEmp
=
row
this
.
batchNo
=
num
-
1
this
.
selectIndex
=
row
.
$index
this
.
configForm
=
{
this
.
configForm
=
{
talkId
:
''
,
talkId
:
''
,
messageContent
:
'【
门店名称】诚邀您参与{0},请尽快点击链接参与,谨防错过哦! {1} 谨防错过退订回T。
'
messageContent
:
'【
广汇汽车】尊敬的客户,您获得一份续保权益套餐,您可以点击https://dwz.cn/I2gmHGBQ 查看或使用您的权益明细,退订回T
'
}
}
this
.
$apis
.
marketing
.
getRobotList
({}).
then
(
res
=>
{
this
.
$apis
.
marketing
.
getRobotList
({}).
then
(
res
=>
{
this
.
roobList
=
res
.
list
||
[]
this
.
roobList
=
res
.
list
||
[]
...
@@ -282,8 +284,8 @@ export default {
...
@@ -282,8 +284,8 @@ export default {
},
},
handleCancelConfirm
()
{
handleCancelConfirm
()
{
this
.
configVisible
=
false
this
.
configVisible
=
false
this
.
selectEmp
.
talkId
=
this
.
configForm
.
talkId
this
.
taskList
[
this
.
batchNo
].
staffList
[
this
.
selectIndex
]
.
talkId
=
this
.
configForm
.
talkId
this
.
selectEmp
.
messageContent
=
this
.
configForm
.
messageContent
.
replace
(
/门店名称
/
,
this
.
$globalState
.
session
.
merchantName
)
this
.
taskList
[
this
.
batchNo
].
staffList
[
this
.
selectIndex
].
messageContent
=
this
.
configForm
.
messageContent
.
replace
(
/广汇汽车
/
,
this
.
$globalState
.
session
.
merchantName
)
},
},
handleCancel
()
{
handleCancel
()
{
this
.
taskList
=
[{
batchNo
:
1
,
...
taskData
,
...{
isFinish
:
false
}
}]
this
.
taskList
=
[{
batchNo
:
1
,
...
taskData
,
...{
isFinish
:
false
}
}]
...
...
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