d2718611 by zhangmeng

酒店日期优化

1 parent 636fb586
......@@ -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);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!