|
|
|
|
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: '-',
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
customerList = [
|
|
|
|
|
{
|
|
|
|
|
title: 'Crane / Gemma Chelse',
|
|
|
|
|
description: '性别:男 生日:2002-07-02 国籍:英国 护照号:559489179 护照有效期:2029-03-11',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'McCracken / Ryan Lee',
|
|
|
|
|
description: '性别:男 生日:1964-11-21 国籍:英国 护照号:126793728 护照有效期:2031-08-03',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Ramlakhan / Darryl',
|
|
|
|
|
description: '性别:男 生日:1983-04-16 国籍:特立尼达和多巴哥 护照号:TB591985 护照有效期:2027-11-12',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Ramlakhan / Reanne',
|
|
|
|
|
description: '性别:女 生日:1983-12-16 国籍:特立尼达和',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Alexander Daich',
|
|
|
|
|
description: '性别:男 国籍:以色列',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
itineraryList = [
|
|
|
|
|
{
|
|
|
|
|
key: '1',
|
|
|
|
|
name: '2',
|
|
|
|
|
age: '二',
|
|
|
|
|
address: '5月2日',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '2',
|
|
|
|
|
name: '2',
|
|
|
|
|
age: '三',
|
|
|
|
|
address: '5月3日',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '3',
|
|
|
|
|
name: '3',
|
|
|
|
|
age: '新德里(New Delhi)',
|
|
|
|
|
address: '新德里苏尔亚酒店The Surya New Delhi',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Reservation;
|