|
|
@ -30,7 +30,7 @@ class Reservation {
|
|
|
|
.then(json => {
|
|
|
|
.then(json => {
|
|
|
|
if (json.errcode == 0) {
|
|
|
|
if (json.errcode == 0) {
|
|
|
|
runInAction(() => {
|
|
|
|
runInAction(() => {
|
|
|
|
this.reservationList = (json?.Result ?? []).map((data, index) => {
|
|
|
|
this.reservationList = (json?.Result??[]).map((data, index) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
key: data.vas_gri_sn,
|
|
|
|
key: data.vas_gri_sn,
|
|
|
|
reservationId: data.vas_gri_sn,
|
|
|
|
reservationId: data.vas_gri_sn,
|
|
|
@ -42,7 +42,7 @@ class Reservation {
|
|
|
|
guide: data.Guide
|
|
|
|
guide: data.Guide
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.reservationPage.total = (json?.Result ?? [{RsTotal: 0}]).RsTotal;
|
|
|
|
this.reservationPage.total = (json?.Result??[{RsTotal: 0}]).RsTotal;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
throw new Error(json.errmsg + ': ' + json.errcode);
|
|
|
|
throw new Error(json.errmsg + ': ' + json.errcode);
|
|
|
@ -63,7 +63,7 @@ class Reservation {
|
|
|
|
this.reservationDetail = {
|
|
|
|
this.reservationDetail = {
|
|
|
|
referenceNumber: json.PlanDetail[0].GRI_Name, tourGuide: json.PlanDetail[0].Guide, arrivalDate: json.PlanDetail[0].eoi_getdate
|
|
|
|
referenceNumber: json.PlanDetail[0].GRI_Name, tourGuide: json.PlanDetail[0].Guide, arrivalDate: json.PlanDetail[0].eoi_getdate
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.confirmationList = (json?.PlanChange ?? []).map((data, index) => {
|
|
|
|
this.confirmationList = (json?.PlanChange??[]).map((data, index) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
key: data.PCI_SN,
|
|
|
|
key: data.PCI_SN,
|
|
|
|
PCI_Changetext: data.PCI_Changetext,
|
|
|
|
PCI_Changetext: data.PCI_Changetext,
|
|
|
@ -91,7 +91,7 @@ class Reservation {
|
|
|
|
.then(json => {
|
|
|
|
.then(json => {
|
|
|
|
runInAction(() => {
|
|
|
|
runInAction(() => {
|
|
|
|
if (json.errcode == 0) {
|
|
|
|
if (json.errcode == 0) {
|
|
|
|
this.cityList = (json?.Result ?? []).map((data, index) => {
|
|
|
|
this.cityList = (json?.Result??[]).map((data, index) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
key: data.CII_SN,
|
|
|
|
key: data.CII_SN,
|
|
|
|
cityId: data.CII_SN,
|
|
|
|
cityId: data.CII_SN,
|
|
|
@ -117,7 +117,7 @@ class Reservation {
|
|
|
|
runInAction(() => {
|
|
|
|
runInAction(() => {
|
|
|
|
if (json.errcode == 0) {
|
|
|
|
if (json.errcode == 0) {
|
|
|
|
console.info(json.Result);
|
|
|
|
console.info(json.Result);
|
|
|
|
this.guideList = (json?.Result ?? []).map((data, index) => {
|
|
|
|
this.guideList = (json?.Result??[]).map((data, index) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
guideId: data.TGI_SN,
|
|
|
|
guideId: data.TGI_SN,
|
|
|
|
guideName: data.TGI2_Name,
|
|
|
|
guideName: data.TGI2_Name,
|
|
|
|