From 5694081269264f2b9334ab2dd2e2ed365c4bc61c Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 27 Jun 2025 10:23:49 +0800 Subject: [PATCH 1/3] =?UTF-8?q?perf:=20=E4=BA=A7=E5=93=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86:=20=E7=BC=96=E8=BE=91:=20=E5=85=81=E8=AE=B8=E4=B8=8D?= =?UTF-8?q?=E9=80=89=E8=AF=AD=E7=A7=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductInfoForm.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx index 413fa19..4642e57 100644 --- a/src/views/products/Detail/ProductInfoForm.jsx +++ b/src/views/products/Detail/ProductInfoForm.jsx @@ -400,7 +400,7 @@ const formValuesMapper = (values) => { key: 'lgc_details', transform: (value) => { const valueArr = Object.values(value) - .filter((_v) => !isEmpty(_v)) + .filter((_v) => !isEmpty(_v.lgc)) .map((e) => ({ title: '', ...e, descriptions: e.descriptions || '' })); return valueArr; }, @@ -409,7 +409,7 @@ const formValuesMapper = (values) => { key: 'lgc_details_mapped', transform: (value) => { const valueArr = Object.values(value) - .filter((_v) => !isEmpty(_v)) + .filter((_v) => !isEmpty(_v.lgc)) .map((e) => ({ title: '', ...e, descriptions: e.descriptions || '' })); return valueArr.reduce((r, c) => ({ ...r, [c.lgc]: c }), {}); }, From 87d1e0d3ae6087ec62a7381801dc9175b3b249f2 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 27 Jun 2025 11:01:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=A2=84=E8=A7=88?= =?UTF-8?q?=20Doc=20=E9=87=8D=E5=A4=8D=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reservation/Detail.jsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/reservation/Detail.jsx b/src/views/reservation/Detail.jsx index dacde1f..59b99d1 100644 --- a/src/views/reservation/Detail.jsx +++ b/src/views/reservation/Detail.jsx @@ -43,7 +43,7 @@ function Detail() { ]; function detailTextRender(_, confirm) { - const formattedText = confirm.PCI_ConfirmText;//.replace(/\;/g, '\n——————————————————————\n'); + const formattedText = confirm.PCI_ConfirmText; return (
{formattedText} @@ -76,6 +76,8 @@ function Detail() { const [confirmText, setConfirmText] = useState(''); const [newConfirmText, setNewConfirmText] = useState(''); const [dataLoading, setDataLoading] = useState(false); + const [reservationPreviewUrl, setReservationPreviewUrl] = useState(''); + const [nameCardPreviewUrl, setNameCardPreviewUrl] = useState(''); const { notification } = App.useApp(); const { reservationId } = useParams(); @@ -93,9 +95,6 @@ function Detail() { const nameCardUrl = `https://p9axztuwd7x8a7.mycht.cn/service-fileServer/DownloadPlanDoc?GRI_SN=${reservationId}&VEI_SN=${travelAgencyId}&token=${loginToken}&FileType=2&v=${randomString}` - const reservationPreviewUrl = officeWebViewerUrl + encodeURIComponent(reservationUrl); - const nameCardPreviewUrl = officeWebViewerUrl + encodeURIComponent(nameCardUrl); - const showConfirmModal = (confirm) => { setIsModalOpen(true); const formattedText = confirm.PCI_ConfirmText;//.replace(/\;/g, '\n——————————————————————\n'); @@ -118,6 +117,10 @@ function Detail() { useEffect(() => { setDataLoading(true); + + setReservationPreviewUrl(officeWebViewerUrl + encodeURIComponent(reservationUrl)) + setNameCardPreviewUrl(officeWebViewerUrl + encodeURIComponent(nameCardUrl)) + getReservationDetail(reservationId) .catch(ex => { notification.error({ From 40ca0bdf8d1336efa9f6d92c40f24129cbc48c3f Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 27 Jun 2025 11:16:52 +0800 Subject: [PATCH 3/3] =?UTF-8?q?perf:=20=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SecondHeaderWrapper.jsx | 6 +++--- src/views/App.jsx | 4 ++-- src/views/products/Detail.jsx | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/SecondHeaderWrapper.jsx b/src/components/SecondHeaderWrapper.jsx index 9a13d91..196ec92 100644 --- a/src/components/SecondHeaderWrapper.jsx +++ b/src/components/SecondHeaderWrapper.jsx @@ -10,8 +10,8 @@ const HeaderWrapper = ({ children, header, loading, backTo, ...props }) => { } = theme.useToken(); return ( <> - - + +
{/* {header} */} @@ -20,7 +20,7 @@ const HeaderWrapper = ({ children, header, loading, backTo, ...props }) => {
- + {children || }
diff --git a/src/views/App.jsx b/src/views/App.jsx index d176c1d..a2710fd 100644 --- a/src/views/App.jsx +++ b/src/views/App.jsx @@ -98,7 +98,7 @@ function App() { {contextHolder} - +
@@ -159,7 +159,7 @@ function App() {
- + {needToLogin ? <>login... : }
China Highlights International Travel Service Co., LTD, Version: {BUILD_VERSION}
diff --git a/src/views/products/Detail.jsx b/src/views/products/Detail.jsx index d9ea10d..6ff6a2c 100644 --- a/src/views/products/Detail.jsx +++ b/src/views/products/Detail.jsx @@ -43,11 +43,11 @@ function Detail() { backTo={false} header={
setAddProductVisible(true)} />}> <> - + {/* onNodeSelect={handleNodeSelect} */} - + -
+