Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
integralMall
integral-mall
Commits
5f53828c
Commit
5f53828c
authored
Sep 01, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 新建优惠券时多张卡券不支持过期自动退款
parent
000eafa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
detail.vue
src/views/goods/coupon/detail.vue
+15
-9
No files found.
src/views/goods/coupon/detail.vue
View file @
5f53828c
...
...
@@ -500,7 +500,7 @@
<el-form-item
label=
"退款方式"
prop=
"refundWay"
>
<el-checkbox-group
v-model=
"couponForm.refundWay"
@
change=
"checkBoxChange"
:disabled=
"$route.query.giftId != '-1'"
>
<el-checkbox
label=
"1"
>
主动退款
</el-checkbox>
<el-checkbox
label=
"2"
>
过期自动退款
</el-checkbox>
<el-checkbox
label=
"2"
:disabled=
"cardList.length > 1"
>
过期自动退款
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</div>
...
...
@@ -738,7 +738,7 @@ export default {
},
methods
:
{
checkBoxChange
(
e
)
{
console
.
log
(
e
);
//
console.log(e);
},
clearHistoryData
()
{
this
.
$confirm
(
'是否确认清除【展示门店数据】?清除后,可进入升级后的编辑页面。'
,
'提示'
,
{
...
...
@@ -1076,7 +1076,7 @@ export default {
this
.
visibleData
.
uuid
=
''
;
this
.
visibleData
.
useNewStoreWidget
=
1
;
}
console
.
log
(
this
.
visibleData
);
//
console.log(this.visibleData);
this
.
visibleData
=
Object
.
assign
({},
this
.
visibleData
);
},
// 礼品字数限制
...
...
@@ -1145,8 +1145,14 @@ export default {
},
// 子组件触发方法
selectCard
(
arr
)
{
console
.
log
(
arr
);
console
.
log
(
this
.
cardList
);
// console.log(arr);
// console.log(this.cardList);
if
(
arr
.
length
>
1
)
{
const
index
=
this
.
couponForm
.
refundWay
.
indexOf
(
'2'
);
if
(
index
!=
-
1
)
{
this
.
couponForm
.
refundWay
.
splice
(
index
,
1
);
}
}
if
(
arr
.
length
+
this
.
cardList
.
length
>
15
)
{
this
.
$message
.
error
(
`最多支持添加15张卡券,目前一共选择
${
arr
.
length
+
this
.
cardList
.
length
}
张卡券`
);
...
...
@@ -1170,7 +1176,7 @@ export default {
});
this
.
limitTimesNumArr
.
push
(
val
.
cardLimit
);
this
.
couponCardStockArr
.
push
(
val
.
couponStock
);
console
.
log
(
this
.
couponCardStockArr
);
//
console.log(this.couponCardStockArr);
this
.
limitTimes
=
Math
.
min
.
apply
(
null
,
this
.
limitTimesNumArr
);
this
.
limitTimesNum
=
Math
.
min
.
apply
(
null
,
this
.
limitTimesNumArr
);
this
.
couponCardStock
=
Math
.
min
.
apply
(
null
,
this
.
couponCardStockArr
);
...
...
@@ -1183,7 +1189,7 @@ export default {
};
this
.
getCardCost
(
params
);
}
console
.
log
(
this
.
limitTimesNumArr
);
//
console.log(this.limitTimesNumArr);
},
async
getCardCost
(
params
)
{
const
res
=
await
request
.
post
(
'/api-integral-mall/get-integral-mall-CashCost'
,
qs
.
stringify
(
params
));
...
...
@@ -1233,8 +1239,8 @@ export default {
this
.
couponCardStock
=
''
;
this
.
couponForm
.
limitTimesStatus
=
false
;
}
console
.
log
(
this
.
limitTimesNumArr
);
console
.
log
(
this
.
cardList
);
//
console.log(this.limitTimesNumArr);
//
console.log(this.cardList);
},
// 券包积分计算
handleIntegralCostTotal
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment