撤销更新

This commit is contained in:
2025-09-12 14:55:52 +08:00
parent 004a31ee08
commit 75fcaa4885
3 changed files with 4 additions and 8 deletions
+1 -3
View File
@@ -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);
}
+2 -3
View File
@@ -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() {
<i className="ri-download-line"></i>
</button>
{record.type === '1' && record.fileStatus === 'Processed' && (
{record.type === 1 && record.fileStatus === 'Processed' && (
<>
<button
type="button"
+1 -2
View File
@@ -921,8 +921,7 @@ export default function FilesUpload() {
attachmentMergeMode,
true, // isReprocess
attachmentRemark || undefined,
loaderData.frontendJWT as string | undefined,
true // removeAnnotations
loaderData.frontendJWT as string | undefined
);
if (result.error) {