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)}) +
+ ))} +
+
+ )} +
+ +
+ +
+ + +
+
+ +
+ +