新增电子试验主文件目录与文件归档
This commit is contained in:
@@ -18,6 +18,7 @@ export interface DocumentSummary {
|
||||
id: string;
|
||||
trial_id: string;
|
||||
site_id?: string | null;
|
||||
etmf_node_id?: string | null;
|
||||
doc_type: string;
|
||||
title: string;
|
||||
scope_type: DocumentScopeType;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
import type { DocumentScopeType, DocumentSummary } from "./documents";
|
||||
|
||||
export type EtmfNodeStatus = "NOT_REQUIRED" | "MISSING" | "UPLOADED" | "EFFECTIVE" | "INACTIVE";
|
||||
|
||||
export interface EtmfTreeNode {
|
||||
id: string;
|
||||
study_id: string;
|
||||
parent_id?: string | null;
|
||||
code: string;
|
||||
name: string;
|
||||
description?: string | null;
|
||||
scope_type: DocumentScopeType;
|
||||
required: boolean;
|
||||
expected_doc_type?: string | null;
|
||||
sort_order: number;
|
||||
is_active: boolean;
|
||||
status: EtmfNodeStatus;
|
||||
document_count: number;
|
||||
effective_document_count: number;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
children: EtmfTreeNode[];
|
||||
}
|
||||
|
||||
export interface EtmfNodeCreatePayload {
|
||||
study_id: string;
|
||||
parent_id?: string | null;
|
||||
code: string;
|
||||
name: string;
|
||||
description?: string | null;
|
||||
scope_type?: DocumentScopeType;
|
||||
required?: boolean;
|
||||
expected_doc_type?: string | null;
|
||||
sort_order?: number;
|
||||
is_active?: boolean;
|
||||
}
|
||||
|
||||
export interface EtmfNodeUpdatePayload {
|
||||
parent_id?: string | null;
|
||||
code?: string;
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
scope_type?: DocumentScopeType;
|
||||
required?: boolean;
|
||||
expected_doc_type?: string | null;
|
||||
sort_order?: number;
|
||||
is_active?: boolean;
|
||||
}
|
||||
|
||||
export type EtmfDocumentCreatePayload = {
|
||||
trial_id: string;
|
||||
site_id?: string | null;
|
||||
doc_no: string;
|
||||
doc_type: string;
|
||||
title: string;
|
||||
scope_type: DocumentScopeType;
|
||||
owner_id?: string | null;
|
||||
description?: string | null;
|
||||
};
|
||||
|
||||
export interface EtmfNodeDocumentList {
|
||||
documents: DocumentSummary[];
|
||||
}
|
||||
Reference in New Issue
Block a user