diff --git a/src/views/reservation/NameCard.jsx b/src/views/reservation/NameCard.jsx index f19e297..fd8b37e 100644 --- a/src/views/reservation/NameCard.jsx +++ b/src/views/reservation/NameCard.jsx @@ -1,5 +1,6 @@ import { observer } from "mobx-react"; import { Row, Col, Space, Table, Typography, List, Watermark } from 'antd'; +import DocViewer, { DocViewerRenderers } from "@cyntler/react-doc-viewer"; import { useStore } from '@/stores/StoreContext.js'; const { Title } = Typography; @@ -7,21 +8,21 @@ const { Title } = Typography; function NameCard() { const { reservationStore } = useStore(); const { meetAndGreet } = reservationStore; + const docs = [{ uri: "https://www.chinahighlights.com/public/NameCard.doc" }]; return ( - - - - {meetAndGreet.customerNames} - - - - - {meetAndGreet.pax} - - - + ); } diff --git a/src/views/reservation/Print.jsx b/src/views/reservation/Print.jsx index 48ad0b2..980c57c 100644 --- a/src/views/reservation/Print.jsx +++ b/src/views/reservation/Print.jsx @@ -6,42 +6,10 @@ import { Row, Col, Space, Table, Typography, List, Watermark } from "antd"; import DocViewer, { DocViewerRenderers } from "@cyntler/react-doc-viewer"; import { useStore } from "../../stores/StoreContext.js"; -const { Title } = Typography; - -const itineraryListColumns = [ - { - title: "Day", - dataIndex: "day", - key: "day", - }, - { - title: "Place & Transport", - dataIndex: "placeTransport", - key: "placeTransport", - }, - { - title: "Today’s Activities", - dataIndex: "todayActivities", - key: "todayActivities", - }, - { - title: "Accommodation", - dataIndex: "accommodation", - key: "accommodation", - }, - { - title: "Meals", - dataIndex: "meals", - key: "meals", - }, -]; - function Print() { const navigate = useNavigate(); const { reservationId } = useParams(); - const { reservationStore } = useStore(); - const { itineraryList, customerList } = reservationStore; - const docs = [{ uri: "https://www.chinahighlights.com/public/reservationW220420009.doc" }, { uri: "https://www.chinahighlights.com/public/SampleSpec.docx" }]; + const docs = [{ uri: "https://www.chinahighlights.com/public/reservationW220420009.doc" }]; useEffect(() => { console.info("Detail.useEffect: " + reservationId); @@ -49,88 +17,17 @@ function Print() { return ( - - - - Stream - - - - - - - Booking for Mr. Prasanna Venkatesa Nathan(United States) trip - - - - - Booking Number: 220629-W220420009 - - - - - Customer Names (Full name as it appears on passport): - - - - - ( - - {item.title}} description={item.description} /> - - )} - /> - - - - - Hotels and Room: - - - - - Guide Language: English - - - - - Notes: - - - - - Itinerary Overview: - - - - - - - - - - Detailed Tour Itinerary - - - - - Packaged Price Includes: - - - - - Packaged Price Excludes: - - - - - Asia Highlights Contact: - - - + ); }