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
042374d8
Commit
042374d8
authored
Mar 11, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠卷领取记录表增加作废和恢复功能
parent
7626f831
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
11 deletions
+71
-11
consumerCoupon.js
src/api/system/consumerCoupon.js
+15
-0
index.vue
src/views/system/consumerCoupon/index.vue
+53
-8
index.vue
src/views/system/order/index.vue
+1
-1
roomOrderIndex.vue
src/views/system/order/roomOrderIndex.vue
+2
-2
No files found.
src/api/system/consumerCoupon.js
View file @
042374d8
...
@@ -35,6 +35,21 @@ export function updateConsumerCoupon(data) {
...
@@ -35,6 +35,21 @@ export function updateConsumerCoupon(data) {
})
})
}
}
export
function
cancelCoupon
(
id
)
{
return
request
({
url
:
'/system/consumerCoupon/cancelCoupon?id='
+
id
,
method
:
'get'
,
})
}
export
function
restoreCoupon
(
id
)
{
return
request
({
url
:
'/system/consumerCoupon/restoreCoupon?id='
+
id
,
method
:
'get'
,
})
}
// 删除优惠券领取记录
// 删除优惠券领取记录
export
function
delConsumerCoupon
(
id
)
{
export
function
delConsumerCoupon
(
id
)
{
return
request
({
return
request
({
...
...
src/views/system/consumerCoupon/index.vue
View file @
042374d8
...
@@ -77,6 +77,22 @@
...
@@ -77,6 +77,22 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"优惠卷状态"
prop=
"isDelete"
>
<el-select
v-model=
"queryParams.isDelete"
placeholder=
"请选择优惠卷状态"
>
<el-option
key=
0
label=
"正常"
value=
0
:value=
"0"
/>
<el-option
key=
1
label=
"作废"
value=
1
/>
</el-select>
</el-form-item>
<el-form-item
label=
"有效期开始"
prop=
"startDate"
>
<el-form-item
label=
"有效期开始"
prop=
"startDate"
>
<el-date-picker
clearable
<el-date-picker
clearable
...
@@ -255,13 +271,29 @@
...
@@ -255,13 +271,29 @@
<!--
@
click
=
"handleUpdate(scope.row)"
-->
<!--
@
click
=
"handleUpdate(scope.row)"
-->
<!--
v
-
hasPermi
=
"['system:consumerCoupon:edit']"
-->
<!--
v
-
hasPermi
=
"['system:consumerCoupon:edit']"
-->
<!--
>
修改
<
/el-button>--
>
<!--
>
修改
<
/el-button>--
>
<
el
-
button
<!--
<
el
-
button
-->
size
=
"mini"
<!--
size
=
"mini"
-->
type
=
"text"
<!--
type
=
"text"
-->
icon
=
"el-icon-delete"
<!--
icon
=
"el-icon-delete"
-->
@
click
=
"handleDelete(scope.row)"
<!--
@
click
=
"handleDelete(scope.row)"
-->
v
-
hasPermi
=
"['system:coupon:remove']"
<!--
v
-
hasPermi
=
"['system:coupon:remove']"
-->
>
删除
<!--
>
删除
-->
<!--
<
/el-button>--
>
<
el
-
button
v
-
if
=
"scope.row.isDelete == 0"
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"cancelCoupon(scope.row)"
v
-
hasPermi
=
"['system:coupon:edit']"
>
作废
<
/el-button
>
<
el
-
button
v
-
if
=
"scope.row.isDelete == 1"
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"restoreCoupon(scope.row)"
v
-
hasPermi
=
"['system:coupon:edit']"
>
恢复
<
/el-button
>
<
/el-button
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -377,6 +409,7 @@ import {
...
@@ -377,6 +409,7 @@ import {
}
from
'@/api/system/consumerCoupon'
}
from
'@/api/system/consumerCoupon'
import
{
listStore
,
storeList
}
from
"../../../api/system/store"
;
import
{
listStore
,
storeList
}
from
"../../../api/system/store"
;
import
{
query
}
from
'@/api/system/pack'
import
{
query
}
from
'@/api/system/pack'
import
{
cancelCoupon
,
restoreCoupon
}
from
"../../../api/system/consumerCoupon"
;
export
default
{
export
default
{
...
@@ -430,7 +463,7 @@ export default {
...
@@ -430,7 +463,7 @@ export default {
endDate
:
null
,
endDate
:
null
,
useDate
:
null
,
useDate
:
null
,
useStatus
:
null
,
useStatus
:
null
,
isDelete
:
null
,
isDelete
:
0
,
deleteBy
:
null
,
deleteBy
:
null
,
deleteTime
:
null
,
deleteTime
:
null
,
phone
:
null
,
phone
:
null
,
...
@@ -614,6 +647,18 @@ export default {
...
@@ -614,6 +647,18 @@ export default {
...
this
.
queryParams
...
this
.
queryParams
}
,
`consumerCoupon_${new Date().getTime()
}
.xlsx`
)
}
,
`consumerCoupon_${new Date().getTime()
}
.xlsx`
)
}
,
}
,
cancelCoupon
(
row
)
{
cancelCoupon
(
row
.
id
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
'操作成功'
)
this
.
getList
()
}
)
}
,
restoreCoupon
(
row
)
{
restoreCoupon
(
row
.
id
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
'操作成功'
)
this
.
getList
()
}
)
}
,
// 美团授权逻辑
// 美团授权逻辑
onEmpower
()
{
onEmpower
()
{
console
.
log
(
window
.
location
.
href
)
console
.
log
(
window
.
location
.
href
)
...
...
src/views/system/order/index.vue
View file @
042374d8
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
<
span
>
{{
parseTime
(
scope
.
row
.
payTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
payTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"订单时长(H)"
align
=
"center"
prop
=
"timeLong"
width
=
"
9
0"
/>
<
el
-
table
-
column
label
=
"订单时长(H)"
align
=
"center"
prop
=
"timeLong"
width
=
"
11
0"
/>
<
el
-
table
-
column
label
=
"支付类型"
align
=
"center"
prop
=
"payType"
>
<
el
-
table
-
column
label
=
"支付类型"
align
=
"center"
prop
=
"payType"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
dict
-
tag
:
options
=
"dict.type.store_pay_ways"
:
value
=
"scope.row.payType"
/>
<
dict
-
tag
:
options
=
"dict.type.store_pay_ways"
:
value
=
"scope.row.payType"
/>
...
...
src/views/system/order/roomOrderIndex.vue
View file @
042374d8
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
>
关闭
>
关闭
</el-button>
</el-button>
</el-col>
</el-col>
<
right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar
>
<
!--
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
--
>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"orderList"
>
<el-table
v-loading=
"loading"
:data=
"orderList"
>
<el-table-column
label=
"订单流水号"
align=
"center"
prop=
"orderNo"
width=
"150"
/>
<el-table-column
label=
"订单流水号"
align=
"center"
prop=
"orderNo"
width=
"150"
/>
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<
span
>
{{
parseTime
(
scope
.
row
.
payTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
payTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"订单时长(H)"
align
=
"center"
prop
=
"timeLong"
width
=
"
9
0"
/>
<
el
-
table
-
column
label
=
"订单时长(H)"
align
=
"center"
prop
=
"timeLong"
width
=
"
11
0"
/>
<
el
-
table
-
column
label
=
"支付类型"
align
=
"center"
prop
=
"payType"
>
<
el
-
table
-
column
label
=
"支付类型"
align
=
"center"
prop
=
"payType"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
dict
-
tag
:
options
=
"dict.type.store_pay_ways"
:
value
=
"scope.row.payType"
/>
<
dict
-
tag
:
options
=
"dict.type.store_pay_ways"
:
value
=
"scope.row.payType"
/>
...
...
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