feat(cross-checking): 交叉评查上传支持合同类型选择

This commit is contained in:
2026-03-18 22:00:26 +08:00
parent 9fd222ef3d
commit 62a8f4b13d
2 changed files with 35 additions and 3 deletions
+5 -2
View File
@@ -1,5 +1,6 @@
import { UPLOAD_URL, API_BASE_URL } from '../../config/api-config';
import axios from 'axios';
import { CONTRACT_TYPES, DEFAULT_CONTRACT_TYPE } from '~/constants/contractTypes';
/**
* 从不同格式的 API 响应中提取数据
@@ -224,7 +225,8 @@ export async function batchUploadAndAssignCrossCheckingFiles(
docType: string,
taskType: string = '市局间交叉评查',
token: string | null = null,
principalUserIds: number[] = []
principalUserIds: number[] = [],
attributeType?: string
): Promise<{
successes: Array<{file: CrossCheckingUploadedFile; result: Record<string, unknown>}>;
failures: Array<{file: CrossCheckingUploadedFile; error: string}>;
@@ -249,7 +251,8 @@ export async function batchUploadAndAssignCrossCheckingFiles(
is_test_document: isTestDocument,
task_name: taskName,
doc_type: typeof docType === 'string' ? docType.toUpperCase() : docType,
task_type: taskType
task_type: taskType,
attribute_type: attributeType || null
};
// console.log('fileInfo', fileInfo)