Przeglądaj źródła

fix(types): 1.抽离报表树的flags类型

lishihao 4 lat temu
rodzic
commit
2cf88ff8fa
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      types/src/interface/report.ts

+ 6 - 1
types/src/interface/report.ts

@@ -1,3 +1,8 @@
+
+export interface ReportFlags{
+   constructSumType?: string | null, taxType?: string | null, auditType?: string | null 
+}
+
 export interface ReportSubTree {
   nodeType: number;
   refId: number;
@@ -5,7 +10,7 @@ export interface ReportSubTree {
   ID: number;
   released: boolean;
   items: ReportSubTree[] | null;
-  flags?: { constructSumType?: string | null, taxType?: string | null, auditType?: string | null };
+  flags?:ReportFlags;
 
 }
 export interface ReportTree {