You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { makeAutoObservable, runInAction } from "mobx";
|
|
|
|
import * as req from '../utils/request';
|
|
|
|
import { prepareUrl } from '../utils/commons';
|
|
|
|
|
|
|
|
class Reservation {
|
|
|
|
|
|
|
|
constructor(root) {
|
|
|
|
makeAutoObservable(this, { rootStore: false });
|
|
|
|
this.root = root;
|
|
|
|
}
|
|
|
|
|
|
|
|
fetchRecent() {
|
|
|
|
runInAction(() => {
|
|
|
|
this.reservationList = [
|
|
|
|
{
|
|
|
|
key: '1',
|
|
|
|
id: '1',
|
|
|
|
referenceNumber: '中华游111029-N111025076',
|
|
|
|
arrivalDate: '2023-04-08',
|
|
|
|
pax: '5AD 1CH',
|
|
|
|
status: 'Confirm',
|
|
|
|
reservationDate: '2023-04-08 19:31',
|
|
|
|
guide: 'Bill',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: '2',
|
|
|
|
id: '3',
|
|
|
|
referenceNumber: '中华游111029-N111025076',
|
|
|
|
arrivalDate: '2023-04-08',
|
|
|
|
pax: '5AD 1CH',
|
|
|
|
status: 'Confirm',
|
|
|
|
reservationDate: '2023-04-08 19:31',
|
|
|
|
guide: 'Jim',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: '3',
|
|
|
|
id: '3',
|
|
|
|
referenceNumber: '中华游111029-N111025076',
|
|
|
|
arrivalDate: '2023-05-08',
|
|
|
|
pax: '3AD',
|
|
|
|
status: 'Confirm',
|
|
|
|
reservationDate: '2023-01-08 19:31',
|
|
|
|
guide: 'Giffigan',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
reservationList = [
|
|
|
|
{
|
|
|
|
key: '1',
|
|
|
|
id: '1',
|
|
|
|
referenceNumber: '-',
|
|
|
|
arrivalDate: '-',
|
|
|
|
pax: '-',
|
|
|
|
status: '-',
|
|
|
|
reservationDate: '-',
|
|
|
|
guide: '-',
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Reservation;
|