e156ac4d by zhangmeng

车辆预约选择

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