fix: 添加交叉评查的案卷类型的查询,动态选择文档类型
This commit is contained in:
@@ -25,6 +25,7 @@ export enum CrossCheckingDocType {
|
||||
export interface DocumentType {
|
||||
id: number;
|
||||
name: string;
|
||||
code: string;
|
||||
evaluation_point_groups_ids?: number[];
|
||||
}
|
||||
|
||||
@@ -521,10 +522,10 @@ export async function updateDocumentAuditStatus(id: string, auditStatus: number,
|
||||
*/
|
||||
export async function getCrossCheckingDocumentTypes(jwtToken?: string): Promise<ApiResponse<DocumentType[]>> {
|
||||
try {
|
||||
console.log('[getCrossCheckingDocumentTypes] 开始获取交叉评查文档类型');
|
||||
// console.log('[getCrossCheckingDocumentTypes] 开始获取交叉评查文档类型');
|
||||
|
||||
const response = await postgrestGet<DocumentType>('document_types',{
|
||||
select: 'id,name,evaluation_point_groups_ids',
|
||||
select: 'id,name,code,evaluation_point_groups_ids',
|
||||
filter: {
|
||||
evaluation_point_groups_ids: 'not.is.null'
|
||||
},
|
||||
@@ -547,7 +548,7 @@ export async function getCrossCheckingDocumentTypes(jwtToken?: string): Promise<
|
||||
item.evaluation_point_groups_ids.length > 0
|
||||
);
|
||||
|
||||
console.log('[getCrossCheckingDocumentTypes] 获取成功,共', filteredData.length, '个文档类型');
|
||||
// console.log('[getCrossCheckingDocumentTypes] 获取成功,共', filteredData.length, '个文档类型');
|
||||
|
||||
return {
|
||||
success: true,
|
||||
|
||||
Reference in New Issue
Block a user