소스 검색

feat(types): 保存指标库属性新增

zhangweicheng 4 년 전
부모
커밋
87f98ce42e
3개의 변경된 파일34개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 0
      types/src/interface/base.ts
  2. 1 1
      types/src/interface/compilation.ts
  3. 32 7
      types/src/interface/project.ts

+ 1 - 0
types/src/interface/base.ts

@@ -151,6 +151,7 @@ export enum CptModelName {
   processData = 'processData', // 流程备份数据
   processData = 'processData', // 流程备份数据
   billIndex = 'billIndex', // 清单指标库
   billIndex = 'billIndex', // 清单指标库
   FBIndex = 'FBIndex', // 分部指标库
   FBIndex = 'FBIndex', // 分部指标库
+  commonIndex = 'commonIndex', // 综合指标库
 }
 }
 
 
 // 无数据表的模块名称的枚举
 // 无数据表的模块名称的枚举

+ 1 - 1
types/src/interface/compilation.ts

@@ -129,7 +129,7 @@ export interface IStructuralSegment {
 }
 }
 
 
 // 单体模板
 // 单体模板
-interface ISubMonomerTemplate {
+export interface ISubMonomerTemplate {
   dispName: string;
   dispName: string;
   key: string;
   key: string;
   monomerType: string;
   monomerType: string;

+ 32 - 7
types/src/interface/project.ts

@@ -411,16 +411,41 @@ export interface IImportLog {
   constructID?: string;
   constructID?: string;
   constructName?: string;
   constructName?: string;
 }
 }
-export interface ISaveUnitInfo {
-  unitName: string;
-  singleName: string;
-  constructionName: string;
-  unitID: string;
-  singleID: string;
-  constructionID: string;
+export interface ISaveProjectInfo {
+  ID: string;
+  parentID: string;
+  seq: number;
+  type: ProjectType;
+  name?: string;
+  unitName?: string;
+  singleName?: string;
+  constructionName?: string;
+  unitID?: string;
+  singleID?: string;
+  constructionID?: string;
+  indexTypes: string[];
+  projLocation: string;
+  year: string;
+  month: string;
+  fileType: FileType;
+  unit?: string;
+  quantity?: string;
+}
+
+export interface ICommonIndex {
+  ID: string;
+  parentID: string;
+  seq: number;
+  type: ProjectType;
+  name?: string;
+  constructionID?: string;
   indexTypes: string[];
   indexTypes: string[];
   projLocation: string;
   projLocation: string;
   year: string;
   year: string;
   month: string;
   month: string;
   fileType: FileType;
   fileType: FileType;
+  unit?: string;
+  quantity?: string;
+  composite: string; // 综合指标
+  dynamicIndex: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
 }
 }