Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
Project
Project
Details
Activity
Releases
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
viitto
million
Commits
bbd50545
Commit
bbd50545
authored
Mar 17, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
65dc1fd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
orderForm.vue
src/pages/hotel/orderForm.vue
+13
-7
No files found.
src/pages/hotel/orderForm.vue
View file @
bbd50545
...
...
@@ -713,10 +713,11 @@ export default {
return
this
.
orderKey
!=
""
;
},
async
submit
()
{
let
roomGroupLen
=
this
.
msg
.
searchroomGroup
.
length
;
//判断选择的人数与入住人数
let
Count1
=
0
let
roomGroup
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
parameters
.
roomGroup
))
let
roomGroup
=
this
.
parameters
.
roomGroup
roomGroup
.
forEach
(
x
=>
{
Count1
+=
Number
(
x
.
roomMaleCount
)
+
Number
(
x
.
roomFemaleCount
)
+
Number
(
x
.
roomChildCount
)
})
...
...
@@ -727,6 +728,15 @@ export default {
this
.
$message
.
error
(
'入住人數與總入住數不匹配'
);
return
;
}
for
(
let
i
=
0
;
i
<
roomGroup
.
length
;
i
++
)
{
roomGroup
[
i
].
roomMaleCount
=
roomGroup
[
i
].
roomMaleCount
?
roomGroup
[
i
].
roomMaleCount
:
0
roomGroup
[
i
].
roomFemaleCount
=
roomGroup
[
i
].
roomFemaleCount
?
roomGroup
[
i
].
roomFemaleCount
:
0
roomGroup
[
i
].
roomChildCount
=
roomGroup
[
i
].
roomChildCount
?
roomGroup
[
i
].
roomChildCount
:
0
if
(
!
roomGroup
[
i
].
roomMaleCount
&&!
roomGroup
[
i
].
roomMaleCount
){
this
.
$message
.
error
(
'一個房間至少入住一人'
);
return
;
}
}
this
.
parameters
.
CustomerId
=
this
.
userInfo
.
Id
;
this
.
parameters
.
EmployeeIdStr
=
this
.
userInfo
.
Surname
+
this
.
userInfo
.
Name
this
.
$refs
.
mail
.
validate
()
...
...
@@ -736,12 +746,8 @@ export default {
this
.
$refs
.
guestAddress
.
validate
()
this
.
$refs
.
checkInTime
.
validate
()
this
.
parameters
.
guestEmail
=
this
.
userInfo
.
Mailbox
for
(
let
i
=
0
;
i
<
this
.
parameters
.
roomGroup
.
length
;
i
++
)
{
if
(
!
this
.
parameters
.
roomGroup
[
i
].
roomMaleCount
&&!
this
.
parameters
.
roomGroup
[
i
].
roomMaleCount
){
this
.
$message
.
error
(
'一個房間至少入住一人'
);
return
;
}
}
let
flag
=
true
...
...
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