diff --git a/src/stores/Reservation.js b/src/stores/Reservation.js index 6f4a851..2fb6999 100644 --- a/src/stores/Reservation.js +++ b/src/stores/Reservation.js @@ -80,21 +80,6 @@ class Reservation { }); } - // get confirmationList() { - // return computed(() => { - // return json.PlanChange.map((data, index) => { - // return { - // key: data.PCI_SN, - // PCI_Changetext: data.PCI_Changetext, - // PCI_SendDate: data.PCI_SendDate, - // ConfirmPerson: data.ConfirmPerson, - // PCI_ConfirmText: data.PCI_ConfirmText, - // PCI_ConfirmDate: data.PCI_ConfirmDate - // } - // }); - // }).get(); - // } - fetchCityList(reservationId) { const fetchUrl = prepareUrl(HT_HOST + '/service-cusservice/PTGetCityGuide') .append('VEI_SN', this.root.authStore.login.travelAgencyId) @@ -106,7 +91,7 @@ class Reservation { .then(json => { runInAction(() => { if (json.errcode == 0) { - this.cityList = json.Result.map((data, index) => { + this.cityList = (json?.Result ?? []).map((data, index) => { return { key: data.CII_SN, cityId: data.CII_SN, @@ -124,14 +109,15 @@ class Reservation { fetchGuideList() { const fetchUrl = prepareUrl(HT_HOST + '/service-cusservice/PTGetGuideList') - .append('VEI_SN', 628)//this.root.authStore.login.travelAgencyId) + .append('VEI_SN', this.root.authStore.login.travelAgencyId) .build(); return fetchJSON(fetchUrl) .then(json => { runInAction(() => { if (json.errcode == 0) { - this.guideList = json.Result.map((data, index) => { + console.info(json.Result); + this.guideList = (json?.Result ?? []).map((data, index) => { return { guideId: data.TGI_SN, guideName: data.TGI2_Name, diff --git a/src/views/reservation/Detail.jsx b/src/views/reservation/Detail.jsx index 67bf8dd..74d2e51 100644 --- a/src/views/reservation/Detail.jsx +++ b/src/views/reservation/Detail.jsx @@ -121,7 +121,7 @@ function Detail() {