Просмотр исходного кода

feat(types): 检测清单增加选项

zhangweicheng 3 лет назад
Родитель
Сommit
a1dfcd8dde
1 измененных файлов с 28 добавлено и 11 удалено
  1. 28 11
      types/src/interface/bill.ts

+ 28 - 11
types/src/interface/bill.ts

@@ -1,7 +1,7 @@
 import { FileType } from './project';
 import { IElfItem } from './billGuide';
-import { BRType, IBRBase, INumFileRef, ITreeScm } from './base';
-import { IQuantityDetail } from './quantityDetail';
+import { IBRBase, INumFileRef, ITreeScm } from './base';
+import { ICalcItem } from './calculation';
 
 // 清单固定类别
 export enum FixedFlag {
@@ -254,38 +254,47 @@ export interface IBillIndexGlj {
 }
 
 export interface IBillIndexRation {
+  ID: string;
+  parentID: string;
+  seq: number;
   code: string;
   name: string;
   unit: string;
   quantity: string;
   unitPrice: string;
   rationGljList: IBillIndexGlj[];
+  dynamicIndex: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
 }
 
-export interface IBillIndex {
-  compilationID: string;
+export interface IFBIndex {
+  ID: string;
+  parentID: string;
+  seq: number;
   constructionName: string;
   singleName: string;
   unitName: string;
   constructionID: string;
   singleID: string;
   unitID: string;
-  classCode: string; // 类别别名
-  groupCode?: string;
   code: string;
   name: string;
   unit: string;
   quantity: string;
-  itemCharacter: string;
-  unitPrice: string; // 综合单价
-  rations: IBillIndexRation[];
-  minUnitPrice?: string;
-  maxUnitPrice?: string;
+  unitPrice: string; // 经济指标--综合单价
   projLocation?: string; // 工程所在地
   year?: string; // 信息价年
   month?: string; // 信息价月
   fileType?: FileType; // 文件类型
   indexTypes?: string[]; // 项目分类或者说功能分类--
+  dynamicIndex: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
+}
+export interface IBillIndex extends IFBIndex {
+  classCode: string; // 类别别名
+  groupCode?: string;
+  itemCharacter: string;
+  rations: IBillIndexRation[];
+  minUnitPrice?: string;
+  maxUnitPrice?: string;
 }
 
 export enum LibType {
@@ -295,3 +304,11 @@ export enum LibType {
 export interface IBillOption extends INumFileRef {
   libType?: LibType;
 }
+
+export interface IBillCheckOptions {
+  fileType: FileType[];
+  year: string;
+  projLocation: string;
+  projectType: string;
+  engineerType: string;
+}