From 59b5cc5b313316ce72d01a7b9342b18c7c957674 Mon Sep 17 00:00:00 2001 From: xianyi Date: Tue, 30 Dec 2025 17:46:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=90=8C=E6=84=8F=E4=B9=A6?= =?UTF-8?q?=E5=AF=BC=E6=A3=80=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/exam/ExamModal.tsx | 2 +- src/components/exam/ExamSection.tsx | 6 +- src/components/exam/ExamSignPanel.tsx | 533 +++++++++++++++++++++++++- 3 files changed, 531 insertions(+), 10 deletions(-) diff --git a/src/components/exam/ExamModal.tsx b/src/components/exam/ExamModal.tsx index f8b17ac..564b9ba 100644 --- a/src/components/exam/ExamModal.tsx +++ b/src/components/exam/ExamModal.tsx @@ -22,7 +22,7 @@ export const ExamModal = ({ client, tab, onTabChange, onClose }: ExamModalProps) { key: 'detail', label: '详情' }, { key: 'sign', label: '签到' }, { key: 'addon', label: '加项' }, - { key: 'print', label: '打印导检单' }, + // { key: 'print', label: '打印导检单' }, { key: 'delivery', label: '报告寄送' }, ]; diff --git a/src/components/exam/ExamSection.tsx b/src/components/exam/ExamSection.tsx index 672ea13..bd02af7 100644 --- a/src/components/exam/ExamSection.tsx +++ b/src/components/exam/ExamSection.tsx @@ -266,7 +266,7 @@ export const ExamSection = ({ }} > 签到 - {signDone && } + {(signDone && printDone) && } - + */} + )} + + {/*
点击后弹出知情同意书全文及签名区域,签署完成后回到签到页面。
*/}
{consentLoading &&
加载中...
} {!consentLoading && consentMessage &&
{consentMessage}
} - {!consentLoading && consentList.length > 0 && ( + {!consentLoading && (consentList.length > 0 || true) && (
{consentList.map((item) => (
{
))} +
+
+ 导检单 + {daojiandanUrl && ( + 已签名 + )} +
+
+ {daojiandanUrl ? ( + <> + + + + ) : ( + + )} +
+
)} @@ -715,7 +1155,7 @@ export const ExamSignPanel = ({ examId, onBusyChange }: ExamSignPanelProps) => { showSignature && (
-
+
签署知情同意书
) } + { + showDaojiandanSignature && ( +
+
+
+
签署导检单
+
+ +
+
+
+ +
+
请在上方区域签名
+ +
+
+ {daojiandanSubmitMessage && ( +
{daojiandanSubmitMessage}
+ )} +
+ + +
+
+
+ ) + } + { + showDaojiandanPreview && daojiandanUrl && ( +
+
+
导检单
+
+ + +
+
+
+
+