Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
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
pseer
gxpt_web
Commits
93a56499
Commit
93a56499
authored
Jan 24, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赠送优惠卷只显示有效期内的
parent
ae7c9094
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
index.vue
src/views/system/consumer/index.vue
+10
-2
index.vue
src/views/system/consumerCoupon/index.vue
+1
-0
No files found.
src/views/system/consumer/index.vue
View file @
93a56499
...
...
@@ -194,6 +194,7 @@
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
v
-
hasPermi
=
"['system:consumer:give']"
@
click
=
"give(scope.row)"
>
赠送优惠卷
<
/el-button
>
...
...
@@ -314,7 +315,7 @@
type
=
"text"
icon
=
"el-icon-circle-plus"
@
click
=
"submitcouponGive(scope.row)"
>
选择
>
赠送
<
/el-button
>
<
/template
>
<
/el-table-column
>
...
...
@@ -549,10 +550,17 @@ export default {
this
.
couponTitle
=
"优惠卷列表"
;
}
,
submitcouponGive
(
row
)
{
give
({
consumerId
:
this
.
consumerId
,
couponId
:
row
.
id
}
).
then
(
response
=>
{
const
consumerId
=
this
.
consumerId
;
this
.
$modal
.
confirm
(
'是否赠送'
+
row
.
name
+
'优惠卷'
).
then
(
function
()
{
}
).
then
(()
=>
{
console
.
log
(
consumerId
)
give
({
consumerId
:
consumerId
,
couponId
:
row
.
id
}
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"赠送成功"
);
this
.
couponOpen
=
false
;
}
);
this
.
getList
();
}
).
catch
(()
=>
{
}
);
this
.
consumerId
=
null
;
this
.
couponOpen
=
false
;
}
,
...
...
src/views/system/consumerCoupon/index.vue
View file @
93a56499
...
...
@@ -129,6 +129,7 @@
plain
icon=
"el-icon-edit"
size=
"mini"
v-hasPermi=
"['system:consumerCoupon:empower']"
@
click=
"onEmpower"
>
美团授权
</el-button>
...
...
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