Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d2718611
authored
2024-05-31 10:35:18 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
酒店日期优化
1 parent
636fb586
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
src/viewsPc/booking/hotelOrder.vue
src/viewsPc/booking/hotelOrder.vue
View file @
d271861
...
...
@@ -34,6 +34,7 @@
v-model=
"rzRange"
type=
"daterange"
:disabled-date=
"disabledDateRZ"
:clearable=
"false"
:placeholder=
"language==0?'选择日期':'Select date'"
format=
"YYYY-MM-DD"
value-format=
"YYYY-MM-DD"
/>
...
...
@@ -294,7 +295,7 @@ function disabledDateRZ(date) {
return
!
((
date
.
getTime
()
>=
dayjs
(
lform
.
value
.
hqStart
).
valueOf
())
&&
(
date
.
getTime
()
<=
dayjs
(
lform
.
value
.
hqEnd
).
valueOf
()))
}
}
return
true
//
return true
}
function
changeRoomNum
(
e
)
{
if
(
form
.
value
.
addNum
>
e
)
{
...
...
@@ -334,9 +335,9 @@ function getDaysBetween(e) {
var
d2
=
Date
.
parse
(
rzRange
.
value
?
rzRange
.
value
[
1
]:
null
)
if
(
d1
==
d2
)
{
usedays
=
0
ElMessage
.
error
(
language
==
0
?
'入住时间跨度需大于一天'
:
'The duration of the stay must be more than one day.'
)
ElMessage
.
error
(
language
.
value
==
0
?
'入住时间跨度需大于一天'
:
'The duration of the stay must be more than one day.'
)
// console.trace()
rzRange
.
value
=
[
]
rzRange
.
value
=
[
route
.
query
.
start
,
route
.
query
.
end
]
return
}
else
{
var
days
=
(
d2
-
d1
)
/
(
1
*
24
*
60
*
60
*
1000
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment