|
|
@ -189,9 +189,11 @@ export default { |
|
|
|
await this.$axios |
|
|
|
.get(`/trending/api/BookingOnline/FindBookingID?BookingNo=${this.$route.params.id}&Lang=${this.$i18n.localeProperties["langQuery"]}`) |
|
|
|
.then((response) => { |
|
|
|
const data = response.data.DATA.rel; |
|
|
|
this.bookingID = data; |
|
|
|
console.log("ID:" + this.bookingID); |
|
|
|
if(response && response.data && response.data.DATA && response.data.DATA.rel){ |
|
|
|
const data = response.data.DATA.rel; |
|
|
|
this.bookingID = data; |
|
|
|
console.log("ID:" + this.bookingID); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((error) => { |
|
|
|
console.log(error); |
|
|
@ -201,9 +203,10 @@ export default { |
|
|
|
await this.$axios |
|
|
|
.get(`/trending/api/BookingOnline/Booking?BookingID=${this.bookingID}&BookingNo=${this.$route.params.id}&Lang=${this.$i18n.localeProperties["langQuery"]}`) |
|
|
|
.then((response) => { |
|
|
|
const data = response.data.DATA.rel; |
|
|
|
this.BookingOrder = data; |
|
|
|
console.log("訂單:" + JSON.stringify(this.BookingOrder)); |
|
|
|
if(response && response.data && response.data.DATA && response.data.DATA.rel){ |
|
|
|
const data = response.data.DATA.rel; |
|
|
|
this.BookingOrder = data; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((error) => { |
|
|
|
console.log(error); |
|
|
|