|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { useParams, useNavigate } from "react-router-dom";
|
|
|
|
|
import { useEffect } from 'react';
|
|
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
|
import { toJS } from "mobx";
|
|
|
|
|
import { Row, Col, Space, Button, Table, Input, Typography, List, App } from 'antd';
|
|
|
|
@ -41,9 +41,11 @@ function Detail() {
|
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
|
const { reservationId } = useParams();
|
|
|
|
|
const { reservationStore } = useStore();
|
|
|
|
|
const [dataLoading, setDataLoading] = useState(false);
|
|
|
|
|
const { itineraryList, customerNames, customerList, reservationDetail } = reservationStore;
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
setDataLoading(true);
|
|
|
|
|
reservationStore.fetchReservation(reservationId)
|
|
|
|
|
.catch(ex => {
|
|
|
|
|
notification.error({
|
|
|
|
@ -52,6 +54,9 @@ function Detail() {
|
|
|
|
|
placement: 'top',
|
|
|
|
|
duration: 4,
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
setDataLoading(false);
|
|
|
|
|
});
|
|
|
|
|
}, [reservationId]);
|
|
|
|
|
|
|
|
|
@ -78,6 +83,7 @@ function Detail() {
|
|
|
|
|
<Title level={5}>Itinerary Overview</Title>
|
|
|
|
|
<Table
|
|
|
|
|
bordered
|
|
|
|
|
loading={dataLoading}
|
|
|
|
|
pagination={false}
|
|
|
|
|
dataSource={toJS(itineraryList)} columns={itineraryListColumns}
|
|
|
|
|
/>
|
|
|
|
@ -92,12 +98,22 @@ function Detail() {
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={24}>
|
|
|
|
|
<TextArea rows={4} placeholder="如贵社对计划中的行程安排有任何建议请联系组团人本人。中华游欢迎大家对我们的工作提出合理化建议。" maxLength={6} />
|
|
|
|
|
<Col span={24}><Space direction="vertical" style={{ width: '100%' }}>
|
|
|
|
|
<Title level={5}>Confirmation</Title>
|
|
|
|
|
<TextArea rows={4}
|
|
|
|
|
autoSize={{
|
|
|
|
|
minRows: 2,
|
|
|
|
|
maxRows: 6,
|
|
|
|
|
}}
|
|
|
|
|
value="------变更内容 (2023-04-17):------
|
|
|
|
|
客人火车变更:
|
|
|
|
|
4月27日 D2952(1249-1549)(一等)北站
|
|
|
|
|
4月30日 D1761(1646-2006)(一等)西站
|
|
|
|
|
======收到后请速确认并回执,谢谢! 变更日期:2023-04-16" maxLength={6} />
|
|
|
|
|
<Button type="primary" onClick={() => console.info('submit')}>Submit</Button>
|
|
|
|
|
</Space>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
<Button type="primary" onClick={() => console.info('submit')}>Submit</Button>
|
|
|
|
|
</Space>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|