车辆
Showing
1 changed file
with
9 additions
and
1 deletions
| ... | @@ -237,7 +237,7 @@ async function changeSelectIn() { | ... | @@ -237,7 +237,7 @@ async function changeSelectIn() { |
| 237 | async function changeSelectOut() { | 237 | async function changeSelectOut() { |
| 238 | const res = await booking.getVehicleByCheckIn({ | 238 | const res = await booking.getVehicleByCheckIn({ |
| 239 | activityId: route.params.cptId, | 239 | activityId: route.params.cptId, |
| 240 | checkIn: form1.value.checkIn, | 240 | checkIn: form2.value.checkIn, |
| 241 | category: '1' | 241 | category: '1' |
| 242 | }) | 242 | }) |
| 243 | form2.value.checkOut = '' | 243 | form2.value.checkOut = '' |
| ... | @@ -273,6 +273,13 @@ async function handleSubmit(v) { | ... | @@ -273,6 +273,13 @@ async function handleSubmit(v) { |
| 273 | // category: v | 273 | // category: v |
| 274 | // }) | 274 | // }) |
| 275 | } | 275 | } |
| 276 | const res = await booking.checkOrderPay('1') | ||
| 277 | if (!res.data) { | ||
| 278 | await proxy.$modal.confirm(language == 0 ? '您有未支付的订单,请前往支付!' : 'You have unpaid orders, please proceed to payment!') | ||
| 279 | await router.push({ | ||
| 280 | path: '/center/myReservation' | ||
| 281 | }) | ||
| 282 | } else { | ||
| 276 | await router.push({ | 283 | await router.push({ |
| 277 | name: 'carList', | 284 | name: 'carList', |
| 278 | params: { | 285 | params: { |
| ... | @@ -280,6 +287,7 @@ async function handleSubmit(v) { | ... | @@ -280,6 +287,7 @@ async function handleSubmit(v) { |
| 280 | }, | 287 | }, |
| 281 | query: obj | 288 | query: obj |
| 282 | }) | 289 | }) |
| 290 | } | ||
| 283 | } | 291 | } |
| 284 | 292 | ||
| 285 | 293 | ... | ... |
-
Please register or sign in to post a comment