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 fbe02bef
authored
Aug 11, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
c329d3d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/MarketingGift.vue
View file @
fbe02be
...
...
@@ -293,7 +293,7 @@ export default {
return
}
let
equityCode
if
(
this
.
isGhPackage
&&
!
this
.
giftValue
)
{
if
(
(
this
.
isGhPackage
&&
!
this
.
giftValue
)
||
(
this
.
isGhPackage
&&
this
.
isCustom
)
)
{
if
(
selectedCarList
.
length
==
0
)
{
this
.
$message
.
error
(
'请选择1~2项用车权益'
)
return
...
...
@@ -311,12 +311,10 @@ export default {
equityCode
=
await
this
.
$apis
.
marketing
.
packageGetCode
({
merchantId
:
this
.
merchantId
,
createdBy
:
this
.
merchantId
,
packageCode
:
this
.
equitiesCode
,
serviceItemsList
})
}
if
(
this
.
isGhPackage
&&
this
.
giftValue
)
{
equityCode
=
this
.
equitiesCode
}
this
.
totalPrice
=
0
for
(
let
i
=
0
;
i
<
selectedCarList
.
length
;
i
++
)
{
this
.
totalPrice
=
this
.
totalPrice
+
parseFloat
(
selectedCarList
[
i
].
packageAmount
||
0
)
...
...
@@ -405,9 +403,6 @@ export default {
if
(
res
&&
res
.
id
)
{
params
.
id
=
res
.
id
params
.
name
=
res
.
name
if
(
res
.
equities
)
{
params
.
equities
=
JSON
.
stringify
({
[
this
.
equitiesCode
]:
this
.
totalPrice
})
}
}
this
.
$apis
.
giftBag
.
packageAdd
(
params
).
then
(
res
=>
{
if
(
res
)
{
...
...
@@ -751,9 +746,6 @@ export default {
})
},
tabClick
(
index
)
{
if
((
index
==
1
||
index
==
3
)
&&
this
.
activityInfo
.
ghExclusiveFlag
==
2
)
{
this
.
$message
.
error
(
'不可以修改用车权益/门店服务'
)
}
this
.
currentIndex
=
index
}
},
...
...
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