Przeglądaj źródła

feat(types): 兼容旧代码

zhangweicheng 3 lat temu
rodzic
commit
720c23d507
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      types/src/interface/bill.ts

+ 4 - 4
types/src/interface/bill.ts

@@ -254,16 +254,16 @@ export interface IBillIndexGlj {
 }
 
 export interface IBillIndexRation {
-  ID: string;
-  parentID: string;
-  seq: number;
+  ID?: string;
+  parentID?: string;
+  seq?: number;
   code: string;
   name: string;
   unit: string;
   quantity: string;
   unitPrice: string;
   rationGljList: IBillIndexGlj[];
-  dynamicIndex: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
+  dynamicIndex?: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
 }
 
 export interface IFBIndex {