|
|
|
@ -2,7 +2,8 @@ import { useParams, useNavigate } from "react-router-dom";
|
|
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
|
import { toJS } from "mobx";
|
|
|
|
|
import { Row, Col, Space, Button, Table, Input, Typography, Modal, App } from 'antd';
|
|
|
|
|
import { Row, Col, Space, Button, Table, Input, Typography, Modal, Watermark, App } from 'antd';
|
|
|
|
|
import DocViewer, { DocViewerRenderers } from "@cyntler/react-doc-viewer";
|
|
|
|
|
import { useStore } from '@/stores/StoreContext.js';
|
|
|
|
|
|
|
|
|
|
const { Title } = Typography;
|
|
|
|
@ -76,6 +77,7 @@ function Detail() {
|
|
|
|
|
const [dataLoading, setDataLoading] = useState(false);
|
|
|
|
|
const { itineraryList, customerNames, reservationDetail } = reservationStore;
|
|
|
|
|
const confirmationList = reservationStore.confirmationList;
|
|
|
|
|
const docs = [{ uri: "https://www.chinahighlights.com/public/reservationW220420009.doc" }, { uri: "https://www.chinahighlights.com/public/NameCard.doc" }];
|
|
|
|
|
|
|
|
|
|
const showConfirmModal = (confirm) => {
|
|
|
|
|
setIsModalOpen(true);
|
|
|
|
@ -138,15 +140,25 @@ function Detail() {
|
|
|
|
|
<Button type="link" onClick={() => navigate('/reservation/newest')}>Back</Button>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row>
|
|
|
|
|
{/* <Row>
|
|
|
|
|
<Col span={2}>
|
|
|
|
|
<Button type="link" onClick={() => navigate(`/reservation/${reservationId}/print`)}>Booking information</Button>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={2}>
|
|
|
|
|
<Button type="link" onClick={() => navigate(`/reservation/${reservationId}/name-card`)}>Name Card</Button>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
</Row> */}
|
|
|
|
|
<Row gutter={{ md: 24 }}>
|
|
|
|
|
<Col span={24}>
|
|
|
|
|
<Watermark content={["Global Highlights", "Discovery Your Way!"]}>
|
|
|
|
|
<DocViewer
|
|
|
|
|
documents={docs}
|
|
|
|
|
pluginRenderers={DocViewerRenderers}
|
|
|
|
|
style={{ height: 600 }} />
|
|
|
|
|
</Watermark>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
{/* <Row gutter={{ md: 24 }}>
|
|
|
|
|
<Col span={24}><Space direction="vertical" style={{ width: '100%' }}>
|
|
|
|
|
<Title level={5}>Itinerary Overview</Title>
|
|
|
|
|
<Table
|
|
|
|
@ -164,7 +176,7 @@ function Detail() {
|
|
|
|
|
<TextArea rows={4} value={customerNames} readOnly maxLength={6} />
|
|
|
|
|
</Space>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
</Row> */}
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={24}><Space direction="vertical" style={{ width: '100%' }}>
|
|
|
|
|
<Title level={5}>Confirmation</Title>
|
|
|
|
|