|
|
|
@ -50,16 +50,18 @@ function Detail() {
|
|
|
|
|
const [dataLoading, setDataLoading] = useState(false);
|
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
|
const { reservationId } = useParams();
|
|
|
|
|
const { reservationStore } = useStore();
|
|
|
|
|
const { authStore, reservationStore } = useStore();
|
|
|
|
|
const { reservationDetail, confirmationList } = reservationStore;
|
|
|
|
|
|
|
|
|
|
const { login } = authStore;
|
|
|
|
|
const officeWebViewerUrl =
|
|
|
|
|
'https://view.officeapps.live.com/op/embed.aspx?wdPrint=1&wdHideGridlines=0&wdHideComments=1&wdEmbedCode=0&src=';
|
|
|
|
|
const reservationUrl =
|
|
|
|
|
'https://view.officeapps.live.com/op/embed.aspx?wdPrint=1&wdHideGridlines=0&wdHideComments=1&wdEmbedCode=0&src=' +
|
|
|
|
|
encodeURIComponent('https://www.chinahighlights.com/public/reservationW220420009.doc');
|
|
|
|
|
|
|
|
|
|
`https://p9axztuwd7x8a7.mycht.cn/service-fileServer/DownloadPlanDoc?GRI_SN=${reservationId}&VEI_SN=${login.travelAgencyId}FileType=1`;
|
|
|
|
|
const nameCardUrl =
|
|
|
|
|
'https://view.officeapps.live.com/op/embed.aspx?wdPrint=false&wdHideGridlines=true&wdHideComments=true&src=' +
|
|
|
|
|
encodeURIComponent('https://www.chinahighlights.com/public/W220420009.doc');
|
|
|
|
|
`https://p9axztuwd7x8a7.mycht.cn/service-fileServer/DownloadPlanDoc?GRI_SN=${reservationId}&VEI_SN=${login.travelAgencyId}FileType=2`;
|
|
|
|
|
|
|
|
|
|
const reservationPreviewUrl = officeWebViewerUrl + encodeURIComponent(reservationUrl);
|
|
|
|
|
const nameCardPreviewUrl = officeWebViewerUrl + encodeURIComponent(nameCardUrl);
|
|
|
|
|
|
|
|
|
|
const showConfirmModal = (confirm) => {
|
|
|
|
|
setIsModalOpen(true);
|
|
|
|
@ -123,10 +125,10 @@ function Detail() {
|
|
|
|
|
</Row>
|
|
|
|
|
<Row gutter={{ md: 24 }}>
|
|
|
|
|
<Col span={12} style={{height: '100%'}} >
|
|
|
|
|
<iframe id="msdoc-iframe-reservation" title="msdoc-iframe-reservation" src={reservationUrl} frameBorder="0" style={{ width: '100%', height: '600px' }}></iframe>
|
|
|
|
|
<iframe id="msdoc-iframe-reservation" title="msdoc-iframe-reservation" src={reservationPreviewUrl} frameBorder="0" style={{ width: '100%', height: '600px' }}></iframe>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={12} style={{height: '100%'}} >
|
|
|
|
|
<iframe id="msdoc-iframe-name-card" title="msdoc-iframe-name-card" src={nameCardUrl} frameBorder="0" style={{ width: '100%', height: '600px' }}></iframe>
|
|
|
|
|
<iframe id="msdoc-iframe-name-card" title="msdoc-iframe-name-card" src={nameCardPreviewUrl} frameBorder="0" style={{ width: '100%', height: '600px' }}></iframe>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row>
|
|
|
|
|