diff --git a/src/stores/Reservation.js b/src/stores/Reservation.js index 67edcfb..dd55f3f 100644 --- a/src/stores/Reservation.js +++ b/src/stores/Reservation.js @@ -17,6 +17,7 @@ class Reservation { .append('GroupNo', referenceNo) .append('DateStart', fromDate) .append('DateEnd', thruDate) + .append('RsTotal', this.reservationPage.total) .append('PageNum', this.reservationPage.size) .append('PageIndex', this.reservationPage.current) .build(); @@ -47,9 +48,9 @@ class Reservation { fetchReservation(reservationId) { const fetchUrl = prepareUrl(HT_HOST + '/service-tourdesign/GetPlanInfo') - .append('VEI_SN', this.root.authStore.login.travelAgencyId) - .append('GRI_SN', reservationId) - .build(); + .append('VEI_SN', this.root.authStore.login.travelAgencyId) + .append('GRI_SN', reservationId) + .build(); return fetchJSON(fetchUrl) .then(json => { @@ -97,29 +98,7 @@ class Reservation { itineraryList = [ ]; - - customerList = []; - // { - // title: 'Crane / Gemma Chelse', - // description: 'Gender: Male Nationality: United States Passport: 655844449 Expiration Date: 2030-09-07 Birth Date: 1979-12-23', - // }, - // { - // title: 'McCracken / Ryan Lee', - // description: 'Gender: Female Nationality: United States Passport: 655844450 Expiration Date: 2030-09-07 Birth Date: 1983-05-17', - // }, - // { - // title: 'Ramlakhan / Darryl', - // description: 'Gender: Female Nationality: United States Passport: 661810034 Expiration Date: 2026-03-16 Birth Date: 2006-07-12', - // }, - // { - // title: 'Ramlakhan / Reanne', - // description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26', - // }, - // { - // title: 'Alexander Daich', - // description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26s', - // }, - // ]; + customerNames = ''; } diff --git a/src/views/reservation/Detail.jsx b/src/views/reservation/Detail.jsx index d4a0985..cabe475 100644 --- a/src/views/reservation/Detail.jsx +++ b/src/views/reservation/Detail.jsx @@ -74,33 +74,21 @@ function Detail() { - + Itinerary Overview - - - - + - - Customer Names (Full name as it appears on passport){customerNames}} - itemLayout="horizontal" - dataSource={toJS(customerList)} - renderItem={(item, index) => ( - - {index + 1}. {item.title}} - description={item.description} - /> - - )} - /> + + Customer Names (Full name as it appears on passport) +