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
bba68658
Commit
bba68658
authored
Mar 18, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制订单换房必须有房间才可提交
parent
2dd1d51c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
index.vue
src/views/system/order/index.vue
+8
-3
No files found.
src/views/system/order/index.vue
View file @
bba68658
...
@@ -516,8 +516,8 @@
...
@@ -516,8 +516,8 @@
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"
所属
房间"
prop
=
"roomId"
>
<
el
-
form
-
item
label
=
"
更换
房间"
prop
=
"roomId"
>
<
el
-
select
v
-
model
=
"changeForm.roomId"
clearable
placeholder
=
"请选择
所属
房间"
>
<
el
-
select
v
-
model
=
"changeForm.roomId"
clearable
placeholder
=
"请选择
更换
房间"
>
<
el
-
option
<
el
-
option
v
-
for
=
"item in changeRoomList"
v
-
for
=
"item in changeRoomList"
:
key
=
"item.id"
:
key
=
"item.id"
...
@@ -1080,8 +1080,9 @@ export default {
...
@@ -1080,8 +1080,9 @@ export default {
}
,
}
,
changeroomList
(
row
)
{
changeroomList
(
row
)
{
changeRoomList
(
row
.
id
).
then
(
res
=>
{
changeRoomList
(
row
.
id
).
then
(
res
=>
{
if
(
res
.
code
===
500
)
{
if
(
res
.
data
===
null
)
{
this
.
$modal
.
msgError
(
res
.
msg
);
this
.
$modal
.
msgError
(
res
.
msg
);
this
.
changeOpen
=
false
;
}
else
{
}
else
{
this
.
changeRoomList
=
res
.
data
this
.
changeRoomList
=
res
.
data
}
}
...
@@ -1113,6 +1114,10 @@ export default {
...
@@ -1113,6 +1114,10 @@ export default {
}
)
}
)
}
,
}
,
submitChangeRoom
()
{
submitChangeRoom
()
{
if
(
this
.
changeForm
.
roomId
===
''
||
this
.
changeForm
.
roomId
===
null
)
{
this
.
$modal
.
msgError
(
"更换房间不能为空"
);
return
;
}
this
.
$refs
[
"changeForm"
].
validate
(
valid
=>
{
this
.
$refs
[
"changeForm"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
changeRoom
(
this
.
changeForm
).
then
(
res
=>
{
changeRoom
(
this
.
changeForm
).
then
(
res
=>
{
...
...
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