From 1ea9fb205ccdc011b279d908ff21a29eac8f7f2d Mon Sep 17 00:00:00 2001 From: Wren Date: Mon, 22 Sep 2025 11:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=99=84=E4=BB=B6=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BC=98=E5=8C=96=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=80=89=E6=8B=A9=E5=92=8C=E9=AA=8C=E8=AF=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E6=94=AF=E6=8C=81=E5=A4=9A=E7=A7=8D=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=A0=BC=E5=BC=8F=EF=BC=8C=E8=B0=83=E6=95=B4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=95=8C=E9=9D=A2=E4=BB=A5=E6=8F=90=E5=8D=87=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routes/documents._index.tsx | 6 +- app/routes/rules-files.tsx | 260 ++++++++++++++++++++++++++++++-- 2 files changed, 254 insertions(+), 12 deletions(-) diff --git a/app/routes/documents._index.tsx b/app/routes/documents._index.tsx index 7e911b8..2ecf9ca 100644 --- a/app/routes/documents._index.tsx +++ b/app/routes/documents._index.tsx @@ -1064,11 +1064,11 @@ export default function DocumentsIndex() { 下载 - {record.type === 1 && record.fileStatus === 'Processed' && ( + {record.type === '1' && record.fileStatus === 'Processed' && ( <> - - + )} + - + ) } ]; @@ -705,6 +814,139 @@ export default function RulesFiles() { /> )} + {/* 附件追加模态框 */} + {showAttachmentUpload && ( +
+
+
+

追加合同附件

+ +
+ +
+
+

+ 目标文档ID: {selectedDocumentId} +

+

+ 支持PDF、Word、ZIP、RAR格式,ZIP/RAR内仅合并其中的PDF文件 +

+
+ +
+ +
+ e.target.files && handleAttachmentFilesSelected(e.target.files)} + className="hidden" + id="attachment-file-input" + /> + +
+ {attachmentFiles.length > 0 && ( +
+

+ 已选择 {attachmentFiles.length} 个文件 +

+
+ {attachmentFiles.map((file, index) => ( +
+ + {file.name} ({formatFileSize(file.size)}) +
+ ))} +
+
+ )} +
+ +
+ +
+ + +
+
+ +
+ +