From 3cb0e3767eb79dd85215a969670f122f3f48cc0d Mon Sep 17 00:00:00 2001
From: Jimmy Liow <18777396951@163.com>
Date: Thu, 11 May 2023 16:59:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A2=84=E8=A7=88=E8=AE=A1?=
=?UTF-8?q?=E5=88=92=E5=92=8C=E6=8E=A5=E6=9C=BA=E7=89=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/reservation/NameCard.jsx | 25 +++---
src/views/reservation/Print.jsx | 127 +++--------------------------
2 files changed, 25 insertions(+), 127 deletions(-)
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:
-
-
-
+
);
}