更新附件追加功能,新增removeAnnotations参数以控制注释移除逻辑,优化文件上传接口调用。
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user