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
f2bb38eb
Commit
f2bb38eb
authored
Jan 30, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加作废订单按钮
parent
489b6015
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
31 deletions
+38
-31
index.vue
src/views/system/order/index.vue
+38
-31
No files found.
src/views/system/order/index.vue
View file @
f2bb38eb
...
@@ -294,6 +294,7 @@
...
@@ -294,6 +294,7 @@
<
span
>
{{
parseTime
(
scope
.
row
.
createTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
createTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remark"
/>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<!--
<
el
-
button
-->
<!--
<
el
-
button
-->
...
@@ -433,9 +434,28 @@
...
@@ -433,9 +434,28 @@
<
/el-dialog
>
<
/el-dialog
>
<!--
订单作废对话框
-->
<!--
订单作废对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"repealOpen"
width
=
"500px"
append
-
to
-
body
>
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"repealOpen"
width
=
"700px"
append
-
to
-
body
>
<
el
-
form
ref
=
"repealForm"
:
model
=
"repealForm"
label
-
width
=
"150px"
>
<
el
-
form
ref
=
"repealForm"
:
model
=
"repealForm"
:
rules
=
"repealRules"
label
-
width
=
"150px"
>
<
el
-
alert
title
=
"1: 当前操作是作废订单,确认后,该订单不会继续进行"
type
=
"error"
:
closable
=
"false"
show
-
icon
>
<
/el-alert
>
<
el
-
alert
title
=
"2:当选择是否作废优惠卷为是时,该订单使用的优惠卷会失效,
选择为否时,该优惠卷会更改为未使用,有重复使用优惠卷的可能"
type
=
"error"
:
closable
=
"false"
show
-
icon
>
<
/el-alert
>
<
el
-
alert
title
=
"3:操作前请知晓上述风险"
type
=
"error"
:
closable
=
"false"
show
-
icon
>
<
/el-alert
>
<
el
-
checkbox
:
value
=
"!modify"
@
change
=
"ismodify"
>
我已知晓
<
/el-checkbox
>
<
el
-
form
-
item
label
=
"优惠券是否失效"
prop
=
"isReverseconsume"
>
<
el
-
form
-
item
label
=
"优惠券是否失效"
prop
=
"isReverseconsume"
>
<
el
-
radio
-
group
v
-
model
=
"repealForm.isReverseconsume"
>
<
el
-
radio
-
group
v
-
model
=
"repealForm.isReverseconsume"
>
<
el
-
radio
<
el
-
radio
...
@@ -445,15 +465,12 @@
...
@@ -445,15 +465,12 @@
>
{{
dict
.
label
}}
<
/el-radio
>
>
{{
dict
.
label
}}
<
/el-radio
>
<
/el-radio-group
>
<
/el-radio-group
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
required
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
>
<
el
-
input
v
-
model
=
"repealForm.remark"
placeholder
=
"请输入备注"
/>
<
el
-
input
v
-
model
=
"repealForm.remark"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-form
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitFormRepeal"
>
确
定
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"submitFormRepeal"
:
disabled
=
modify
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/div
>
<
/el-dialog
>
<
/el-dialog
>
...
@@ -493,6 +510,7 @@ export default {
...
@@ -493,6 +510,7 @@ export default {
value
:
0
value
:
0
}
}
],
],
modify
:
true
,
options
:
[],
options
:
[],
roomList
:
[],
roomList
:
[],
packList
:
[],
packList
:
[],
...
@@ -547,32 +565,16 @@ export default {
...
@@ -547,32 +565,16 @@ export default {
// 表单参数
// 表单参数
form
:
{
}
,
form
:
{
}
,
// 表单校验
// 表单校验
rules
:
{
rules
:
{
}
,
orderType
:
[
repealRules
:
{
{
required
:
true
,
message
:
"订单类型(0:订房订单,1:续房订单,2:充值订单)不能为空"
,
trigger
:
"change"
}
remark
:
[
],
{
required
:
true
,
message
:
"备注不能为空"
,
trigger
:
"blur"
}
serialNumber
:
[
]
{
required
:
true
,
message
:
"订单流水号不能为空"
,
trigger
:
"blur"
}
],
consumerId
:
[
{
required
:
true
,
message
:
"用户ID不能为空"
,
trigger
:
"blur"
}
],
originalPrice
:
[
{
required
:
true
,
message
:
"订单总价不能为空"
,
trigger
:
"blur"
}
],
payWays
:
[
{
required
:
true
,
message
:
"1.余额支付,2:微信支付不能为空"
,
trigger
:
"blur"
}
],
realPrice
:
[
{
required
:
true
,
message
:
"订单实付不能为空"
,
trigger
:
"blur"
}
],
isUseCoupon
:
[
{
required
:
true
,
message
:
"是否使用优惠券(0:否,1:是)不能为空"
,
trigger
:
"change"
}
],
}
}
}
;
}
;
}
,
}
,
created
()
{
created
()
{
this
.
modify
=
true
;
this
.
onGetRoomList
();
this
.
onGetRoomList
();
this
.
getList
();
this
.
getList
();
this
.
onGetAllStoreList
();
this
.
onGetAllStoreList
();
...
@@ -656,6 +658,8 @@ export default {
...
@@ -656,6 +658,8 @@ export default {
}
,
}
,
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
repealForm
.
remark
=
''
;
this
.
modify
=
true
;
this
.
form
=
{
this
.
form
=
{
id
:
null
,
id
:
null
,
orderType
:
null
,
orderType
:
null
,
...
@@ -688,6 +692,9 @@ export default {
...
@@ -688,6 +692,9 @@ export default {
this
.
queryParams
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
}
,
}
,
ismodify
(
e
)
{
this
.
modify
=
!
e
;
}
,
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
resetForm
(
"queryForm"
);
...
...
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