Prechádzať zdrojové kódy

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

zhangweicheng 4 rokov pred
rodič
commit
87f98ce42e

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

@@ -151,6 +151,7 @@ export enum CptModelName {
   processData = 'processData', // 流程备份数据
   billIndex = 'billIndex', // 清单指标库
   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;
   key: string;
   monomerType: string;

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

@@ -411,16 +411,41 @@ export interface IImportLog {
   constructID?: 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[];
   projLocation: string;
   year: string;
   month: string;
   fileType: FileType;
+  unit?: string;
+  quantity?: string;
+  composite: string; // 综合指标
+  dynamicIndex: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
 }