e156ac4d by zhangmeng

车辆预约选择

1 parent 13c71fe5
......@@ -217,6 +217,7 @@ onMounted(() => {
function changeUseType(e) {
console.log(form.value.useType)
changecarNum()
console.log(form.value)
}
function changecarNum(e) {
......@@ -251,8 +252,9 @@ function initDays() {
}
function disabledDate(date) {
// const today = dayjs().format('YYYY-MM-DD')
if (form.value.carStart) {
return date.getTime() > dayjs(form.value.carStart).valueOf()
if (lform.value.carStart) {
return (date.getTime() < dayjs(lform.value.carStart).valueOf())||(date.getTime() > dayjs(lform.value.carEnd).valueOf())
}
return true
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!