فهرست منبع

feat(types): 兼容旧代码

zhangweicheng 4 سال پیش
والد
کامیت
72ef6c7f07
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      types/src/interface/bill.ts

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

@@ -267,9 +267,9 @@ export interface IBillIndexRation {
 }
 
 export interface IFBIndex {
-  ID: string;
-  parentID: string;
-  seq: number;
+  ID?: string;
+  parentID?: string;
+  seq?: number;
   constructionName: string;
   singleName: string;
   unitName: string;
@@ -286,7 +286,7 @@ export interface IFBIndex {
   month?: string; // 信息价月
   fileType?: FileType; // 文件类型
   indexTypes?: string[]; // 项目分类或者说功能分类--
-  dynamicIndex: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
+  dynamicIndex?: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
 }
 export interface IBillIndex extends IFBIndex {
   classCode: string; // 类别别名