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 6ecbc84d
authored
Aug 11, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
9372b332
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/MarketingGift.vue
View file @
6ecbc84
...
@@ -189,7 +189,7 @@ export default {
...
@@ -189,7 +189,7 @@ export default {
return
return
}
}
this
.
init
()
this
.
init
()
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(
async
()
=>
{
if
(
info
.
serviceMerchantPackageConfigDTOS
)
this
.
selectedCarList
=
info
.
serviceMerchantPackageConfigDTOS
if
(
info
.
serviceMerchantPackageConfigDTOS
)
this
.
selectedCarList
=
info
.
serviceMerchantPackageConfigDTOS
let
activityCoupon
=
info
.
activityCouponBaseInfoDTOS
||
info
.
couponList
||
info
.
couponItemList
let
activityCoupon
=
info
.
activityCouponBaseInfoDTOS
||
info
.
couponList
||
info
.
couponItemList
...
@@ -206,15 +206,15 @@ export default {
...
@@ -206,15 +206,15 @@ export default {
}
}
this
.
giftValue
=
info
.
giftId
||
''
this
.
giftValue
=
info
.
giftId
||
''
if
(
this
.
giftValue
&&
info
.
ghExclusiveFlag
==
2
)
{
if
(
this
.
giftValue
&&
info
.
ghExclusiveFlag
==
2
)
{
this
.
getModel
()
await
this
.
getModel
()
}
else
{
this
.
getList
()
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
this
.
handleSaveGift
(
false
)
this
.
handleSaveGift
(
false
)
}
}
},
0
)
},
0
)
this
.
getList
()
})
})
},
},
deep
:
true
deep
:
true
...
@@ -659,7 +659,7 @@ export default {
...
@@ -659,7 +659,7 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
marketing
.
servicePage
(
params
).
then
(
res
=>
{
this
.
$apis
.
marketing
.
servicePage
(
params
).
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
selectedCarList
=
[]
if
(
!
isChecked
)
this
.
selectedCarList
=
[]
this
.
$refs
[
'carRef'
].
$refs
[
'listMutiTable'
].
clearSelection
()
this
.
$refs
[
'carRef'
].
$refs
[
'listMutiTable'
].
clearSelection
()
this
.
carList
=
res
.
list
||
[]
this
.
carList
=
res
.
list
||
[]
this
.
carList
.
forEach
(
p
=>
{
this
.
carList
.
forEach
(
p
=>
{
...
@@ -667,6 +667,7 @@ export default {
...
@@ -667,6 +667,7 @@ export default {
if
(
isChecked
)
{
if
(
isChecked
)
{
this
.
selectedCarList
.
forEach
(
s
=>
{
this
.
selectedCarList
.
forEach
(
s
=>
{
if
(
p
.
packageCode
==
s
.
packageCode
)
{
if
(
p
.
packageCode
==
s
.
packageCode
)
{
s
.
packageName
=
p
.
packageName
||
p
.
serviceName
p
.
packageAmount
=
s
.
packageAmount
||
0
p
.
packageAmount
=
s
.
packageAmount
||
0
}
}
})
})
...
@@ -685,6 +686,7 @@ export default {
...
@@ -685,6 +686,7 @@ export default {
this
.
getCarMoreList
()
this
.
getCarMoreList
()
return
return
}
}
return
new
Promise
(
resolve
=>
{
this
.
$apis
.
giftBag
.
packageDetail
({
id
:
this
.
giftValue
}).
then
(
res
=>
{
this
.
$apis
.
giftBag
.
packageDetail
({
id
:
this
.
giftValue
}).
then
(
res
=>
{
this
.
$nextTick
(
async
()
=>
{
this
.
$nextTick
(
async
()
=>
{
this
.
selectedCarList
=
res
.
serviceMerchantPackageConfigDTOS
||
[]
this
.
selectedCarList
=
res
.
serviceMerchantPackageConfigDTOS
||
[]
...
@@ -708,15 +710,20 @@ export default {
...
@@ -708,15 +710,20 @@ export default {
}
}
})
})
await
this
.
getCarMoreList
(
true
)
await
this
.
getCarMoreList
(
true
)
console
.
log
(
this
.
selectedCarList
,
this
.
carList
,
7777777777
)
this
.
selectedPreExisting
(
this
.
selectedCarList
,
this
.
carList
,
'packageCode'
,
this
.
$refs
[
'carRef'
])
this
.
selectedPreExisting
(
this
.
selectedCarList
,
this
.
carList
,
'packageCode'
,
this
.
$refs
[
'carRef'
])
resolve
()
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
resolve
()
}
}
}
else
{
}
else
{
this
.
getList
()
this
.
getList
()
resolve
()
}
}
})
})
})
})
})
},
},
handleClose
()
{
handleClose
()
{
this
.
giftVisible
=
false
this
.
giftVisible
=
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