d738403b by zhangmeng

车辆

1 parent 83f265ca
...@@ -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,13 +273,21 @@ async function handleSubmit(v) { ...@@ -273,13 +273,21 @@ async function handleSubmit(v) {
273 // category: v 273 // category: v
274 // }) 274 // })
275 } 275 }
276 await router.push({ 276 const res = await booking.checkOrderPay('1')
277 name: 'carList', 277 if (!res.data) {
278 params: { 278 await proxy.$modal.confirm(language == 0 ? '您有未支付的订单,请前往支付!' : 'You have unpaid orders, please proceed to payment!')
279 id: route.params.cptId 279 await router.push({
280 }, 280 path: '/center/myReservation'
281 query: obj 281 })
282 }) 282 } else {
283 await router.push({
284 name: 'carList',
285 params: {
286 id: route.params.cptId
287 },
288 query: obj
289 })
290 }
283 } 291 }
284 292
285 293
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!