From 004a31ee0841908f69629d695f266350310755c1 Mon Sep 17 00:00:00 2001 From: Wren Date: Fri, 12 Sep 2025 14:54:03 +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=E6=96=B0=E5=A2=9EremoveAnn?= =?UTF-8?q?otations=E5=8F=82=E6=95=B0=E4=BB=A5=E6=8E=A7=E5=88=B6=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E7=A7=BB=E9=99=A4=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E3=80=82?= 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, 8 insertions(+), 4 deletions(-) diff --git a/app/api/files/files-upload.ts b/app/api/files/files-upload.ts index c8160a1..97c7461 100644 --- a/app/api/files/files-upload.ts +++ b/app/api/files/files-upload.ts @@ -231,7 +231,8 @@ export async function appendContractAttachments( mergeMode: 'overwrite' | 'new' = 'overwrite', isReprocess: boolean = true, remark?: string, - jwtToken?: string + jwtToken?: string, + removeAnnotations: boolean = true ): Promise<{data: FileUploadResponse; error?: never} | {data?: never; error: string; status?: number}> { try { console.log('【合同附件追加】开始追加附件:', { documentId, fileCount: files.length, mergeMode }); @@ -247,6 +248,7 @@ 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 7e911b8..14f4b62 100644 --- a/app/routes/documents._index.tsx +++ b/app/routes/documents._index.tsx @@ -794,7 +794,8 @@ export default function DocumentsIndex() { attachmentMergeMode, true, // isReprocess attachmentRemark || undefined, - loaderData.frontendJWT as string | undefined + loaderData.frontendJWT as string | undefined, + true // removeAnnotations ); if (result.error) { @@ -1064,7 +1065,7 @@ export default function DocumentsIndex() { 下载 - {record.type === 1 && record.fileStatus === 'Processed' && ( + {record.type === '1' && record.fileStatus === 'Processed' && ( <>