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' && (
<>