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 0966a48d
authored
Jul 10, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
dc13debe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
19 deletions
src/views/activityLink/components/Marketing.vue
src/views/activityLink/components/MarketingTask.vue
src/views/activityLink/components/Process.vue
src/views/activityLink/components/Marketing.vue
View file @
0966a48
...
@@ -25,6 +25,9 @@
...
@@ -25,6 +25,9 @@
</div>
</div>
</GLTable>
</GLTable>
</GLDialog>
</GLDialog>
<el-dialog
title=
"预览"
:append-to-body=
"true"
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<phone-view
:activityInfo=
"activityInfo"
></phone-view>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -33,6 +36,7 @@ import marketingTask from './MarketingTask'
...
@@ -33,6 +36,7 @@ import marketingTask from './MarketingTask'
import
marketingGift
from
'./MarketingGift'
import
marketingGift
from
'./MarketingGift'
import
marketingContent
from
'./MarketingContent'
import
marketingContent
from
'./MarketingContent'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
PhoneView
from
'./PhoneView.vue'
export
default
{
export
default
{
components
:
{
components
:
{
marketingTask
,
marketingTask
,
...
@@ -41,6 +45,7 @@ export default {
...
@@ -41,6 +45,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
routeInfo
:
{},
routeInfo
:
{},
tabList
:
[{
label
:
'营销任务'
},
{
label
:
'营销礼包'
},
{
label
:
'营销内容'
}],
tabList
:
[{
label
:
'营销任务'
},
{
label
:
'营销礼包'
},
{
label
:
'营销内容'
}],
caseList
:
[],
caseList
:
[],
...
@@ -137,7 +142,18 @@ export default {
...
@@ -137,7 +142,18 @@ export default {
this
.
getActivityInfo
(
row
.
id
)
this
.
getActivityInfo
(
row
.
id
)
},
},
//预览
//预览
handleView
(
row
)
{},
handleView
(
row
)
{
this
.
$apis
.
marketing
.
activityDetail
({
id
:
row
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
// if (res) {
// const activityCoupon = res.activityCouponBaseInfoDTOS || res.couponList || [],
// selectedGoodsList = activityCoupon.filter(i => i.discountType == 8),
// couponList = activityCoupon.filter(i => i.discountType != 8)
// this.activityInfo = { ...res, selectedEquityList: res.serviceMerchantPackageConfigDTOList, couponList, selectedGoodsList }
// this.dialogVisible = true
// }
})
},
tabClick
(
index
)
{
tabClick
(
index
)
{
this
.
currentIndex
=
index
this
.
currentIndex
=
index
},
},
...
@@ -160,6 +176,7 @@ export default {
...
@@ -160,6 +176,7 @@ export default {
}
}
this
.
$apis
.
activity
.
activityPage
(
param
).
then
(
res
=>
{
this
.
$apis
.
activity
.
activityPage
(
param
).
then
(
res
=>
{
this
.
caseList
=
res
.
list
||
[]
this
.
caseList
=
res
.
list
||
[]
this
.
$refs
.
caseRef
.
tableTotal
=
res
.
total
})
})
},
},
handleTabClick
()
{
handleTabClick
()
{
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
0966a48
...
@@ -147,9 +147,9 @@ export default {
...
@@ -147,9 +147,9 @@ export default {
watch
:
{
watch
:
{
process
:
{
process
:
{
handler
(
val
)
{
handler
(
val
)
{
console
.
log
(
val
)
if
(
val
[
0
]
===
false
)
{
if
(
val
[
0
]
===
false
)
{
this
.
taskList
=
[{
batchNo
:
1
,
...
taskData
,
...{
isFinish
:
false
}
}]
this
.
taskList
=
[{
batchNo
:
1
,
...
taskData
,
...{
isFinish
:
false
}
}]
this
.
findMerchantStaffList
()
this
.
customerKey
=
[]
this
.
customerKey
=
[]
}
}
},
},
...
@@ -250,21 +250,6 @@ export default {
...
@@ -250,21 +250,6 @@ export default {
},
},
handleSelectionChange
(
val
,
item
)
{
handleSelectionChange
(
val
,
item
)
{
item
.
staffList
=
val
item
.
staffList
=
val
item
.
staffList
=
item
.
staffList
.
map
(
item
=>
{
return
{
lastStaffFlag
:
item
.
lastCustomerNum
?
1
:
0
,
lastCustomerNum
:
item
.
lastCustomerNum
,
merchantId
:
item
.
merchantNo
,
staffPhone
:
item
.
staffPhone
,
staffName
:
item
.
staffName
,
staffUuid
:
item
.
uuid
,
id
:
item
.
id
,
messageContent
:
item
.
messageContent
,
registerStatus
:
item
.
registerStatus
,
talkId
:
item
.
talkId
,
createdBy
:
item
.
createdBy
}
})
},
},
//邀请人员注册
//邀请人员注册
showRegister
()
{
showRegister
()
{
...
@@ -297,6 +282,7 @@ export default {
...
@@ -297,6 +282,7 @@ export default {
console
.
log
(
this
.
taskList
[
this
.
batchNo
].
tableData
)
console
.
log
(
this
.
taskList
[
this
.
batchNo
].
tableData
)
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
].
talkId
=
this
.
configForm
.
talkId
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
].
talkId
=
this
.
configForm
.
talkId
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
].
messageContent
=
this
.
configForm
.
messageContent
.
replace
(
/广汇汽车/
,
this
.
$globalState
.
session
.
merchantName
)
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
].
messageContent
=
this
.
configForm
.
messageContent
.
replace
(
/广汇汽车/
,
this
.
$globalState
.
session
.
merchantName
)
console
.
log
(
this
.
taskList
)
},
},
handleCancel
()
{
handleCancel
()
{
...
@@ -315,6 +301,23 @@ export default {
...
@@ -315,6 +301,23 @@ export default {
key
:
item
.
key
key
:
item
.
key
}
}
})
})
customerRequestList
.
forEach
(
item
=>
{
item
.
staffList
=
item
.
staffList
.
map
(
item
=>
{
return
{
lastStaffFlag
:
item
.
lastCustomerNum
?
1
:
0
,
lastCustomerNum
:
item
.
lastCustomerNum
,
merchantId
:
item
.
merchantNo
,
staffPhone
:
item
.
staffPhone
,
staffName
:
item
.
staffName
,
staffUuid
:
item
.
uuid
,
id
:
item
.
id
,
messageContent
:
item
.
messageContent
,
registerStatus
:
item
.
registerStatus
,
talkId
:
item
.
talkId
,
createdBy
:
item
.
createdBy
}
})
})
console
.
log
(
customerRequestList
)
console
.
log
(
customerRequestList
)
if
(
this
.
vaildTask
())
if
(
this
.
vaildTask
())
this
.
setProcess
({
this
.
setProcess
({
...
...
src/views/activityLink/components/Process.vue
View file @
0966a48
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
}
}
params
=
{
...
params
,
...
this
.
process
[
k
]
}
params
=
{
...
params
,
...
this
.
process
[
k
]
}
}
}
console
.
log
(
params
)
this
.
loading
=
true
const
{
const
{
backgroundHeight
,
backgroundHeight
,
detail
:
{
backgroundImage
},
detail
:
{
backgroundImage
},
...
@@ -69,11 +69,11 @@ export default {
...
@@ -69,11 +69,11 @@ export default {
const
url
=
await
this
.
createMain
(
backgroundHeight
,
backgroundImage
,
draggableList
)
const
url
=
await
this
.
createMain
(
backgroundHeight
,
backgroundImage
,
draggableList
)
params
.
subscribe
=
this
.
subscribe
params
.
subscribe
=
this
.
subscribe
params
.
backgroundImage
=
url
params
.
backgroundImage
=
url
this
.
loading
=
true
this
.
$apis
.
marketing
this
.
$apis
.
marketing
.
createSuperMarketing
(
params
)
.
createSuperMarketing
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
loading
=
false
this
.
init
()
this
.
init
()
this
.
$message
.
success
(
'操作成功'
)
this
.
$message
.
success
(
'操作成功'
)
}
}
...
...
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