From 75fcaa48850cc7a51c5893e68f2c7037f1cb6b3a Mon Sep 17 00:00:00 2001 From: Wren Date: Fri, 12 Sep 2025 14:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/files/files-upload.ts | 4 +--- app/routes/documents._index.tsx | 5 ++--- app/routes/files.upload.tsx | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/api/files/files-upload.ts b/app/api/files/files-upload.ts index 97c7461..c8160a1 100644 --- a/app/api/files/files-upload.ts +++ b/app/api/files/files-upload.ts @@ -231,8 +231,7 @@ export async function appendContractAttachments( mergeMode: 'overwrite' | 'new' = 'overwrite', isReprocess: boolean = true, remark?: string, - jwtToken?: string, - removeAnnotations: boolean = true + jwtToken?: string ): Promise<{data: FileUploadResponse; error?: never} | {data?: never; error: string; status?: number}> { try { console.log('【合同附件追加】开始追加附件:', { documentId, fileCount: files.length, mergeMode }); @@ -248,7 +247,6 @@ export async function appendContractAttachments( // 添加其他参数 formData.append('merge_mode', mergeMode); formData.append('is_reprocess', isReprocess.toString()); - formData.append('remove_annotations', removeAnnotations.toString()); if (remark) { formData.append('remark', remark); } diff --git a/app/routes/documents._index.tsx b/app/routes/documents._index.tsx index 14f4b62..7e911b8 100644 --- a/app/routes/documents._index.tsx +++ b/app/routes/documents._index.tsx @@ -794,8 +794,7 @@ export default function DocumentsIndex() { attachmentMergeMode, true, // isReprocess attachmentRemark || undefined, - loaderData.frontendJWT as string | undefined, - true // removeAnnotations + loaderData.frontendJWT as string | undefined ); if (result.error) { @@ -1065,7 +1064,7 @@ export default function DocumentsIndex() { 下载 - {record.type === '1' && record.fileStatus === 'Processed' && ( + {record.type === 1 && record.fileStatus === 'Processed' && ( <>