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 @@
...
@@ -194,6 +194,7 @@
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
icon
=
"el-icon-delete"
icon
=
"el-icon-delete"
v
-
hasPermi
=
"['system:consumer:give']"
@
click
=
"give(scope.row)"
@
click
=
"give(scope.row)"
>
赠送优惠卷
>
赠送优惠卷
<
/el-button
>
<
/el-button
>
...
@@ -314,7 +315,7 @@
...
@@ -314,7 +315,7 @@
type
=
"text"
type
=
"text"
icon
=
"el-icon-circle-plus"
icon
=
"el-icon-circle-plus"
@
click
=
"submitcouponGive(scope.row)"
@
click
=
"submitcouponGive(scope.row)"
>
选择
>
赠送
<
/el-button
>
<
/el-button
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -549,10 +550,17 @@ export default {
...
@@ -549,10 +550,17 @@ export default {
this
.
couponTitle
=
"优惠卷列表"
;
this
.
couponTitle
=
"优惠卷列表"
;
}
,
}
,
submitcouponGive
(
row
)
{
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
.
$modal
.
msgSuccess
(
"赠送成功"
);
this
.
couponOpen
=
false
;
this
.
couponOpen
=
false
;
}
);
}
);
this
.
getList
();
}
).
catch
(()
=>
{
}
);
this
.
consumerId
=
null
;
this
.
consumerId
=
null
;
this
.
couponOpen
=
false
;
this
.
couponOpen
=
false
;
}
,
}
,
...
...
src/views/system/consumerCoupon/index.vue
View file @
93a56499
...
@@ -129,6 +129,7 @@
...
@@ -129,6 +129,7 @@
plain
plain
icon=
"el-icon-edit"
icon=
"el-icon-edit"
size=
"mini"
size=
"mini"
v-hasPermi=
"['system:consumerCoupon:empower']"
@
click=
"onEmpower"
@
click=
"onEmpower"
>
美团授权
>
美团授权
</el-button>
</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