车辆预约选择
Showing
1 changed file
with
4 additions
and
2 deletions
| ... | @@ -217,6 +217,7 @@ onMounted(() => { | ... | @@ -217,6 +217,7 @@ onMounted(() => { |
| 217 | function changeUseType(e) { | 217 | function changeUseType(e) { |
| 218 | console.log(form.value.useType) | 218 | console.log(form.value.useType) |
| 219 | changecarNum() | 219 | changecarNum() |
| 220 | console.log(form.value) | ||
| 220 | } | 221 | } |
| 221 | 222 | ||
| 222 | function changecarNum(e) { | 223 | function changecarNum(e) { |
| ... | @@ -251,8 +252,9 @@ function initDays() { | ... | @@ -251,8 +252,9 @@ function initDays() { |
| 251 | } | 252 | } |
| 252 | function disabledDate(date) { | 253 | function disabledDate(date) { |
| 253 | // const today = dayjs().format('YYYY-MM-DD') | 254 | // const today = dayjs().format('YYYY-MM-DD') |
| 254 | if (form.value.carStart) { | 255 | if (lform.value.carStart) { |
| 255 | return date.getTime() > dayjs(form.value.carStart).valueOf() | 256 | return (date.getTime() < dayjs(lform.value.carStart).valueOf())||(date.getTime() > dayjs(lform.value.carEnd).valueOf()) |
| 257 | |||
| 256 | } | 258 | } |
| 257 | return true | 259 | return true |
| 258 | } | 260 | } | ... | ... |
-
Please register or sign in to post a comment