Bladeren bron

feat(types): 完善compilation相关定义

vian 5 jaren geleden
bovenliggende
commit
dbddffbda0
3 gewijzigde bestanden met toevoegingen van 57 en 7 verwijderingen
  1. 45 2
      types/src/interface/Compliation.ts
  2. 1 1
      types/src/interface/base.ts
  3. 11 4
      types/src/interface/project.ts

+ 45 - 2
types/src/interface/Compliation.ts

@@ -1,5 +1,7 @@
 /* eslint-disable camelcase */
 import { ELockInfo } from './User';
+import { TaxType, FileType, IGLJCol } from './project';
+import { IFileRef } from './base';
 
 export interface ICptItem {
   ID: string;
@@ -7,10 +9,51 @@ export interface ICptItem {
   description: string;
 }
 
+export interface IProgramLib extends IFileRef {
+  displayName: string;
+}
+
+export interface ITaxGroup {
+  programLib: IProgramLib;
+  templateLib: IFileRef;
+  colLib: IFileRef;
+  feeLib: IFileRef;
+  taxType: TaxType;
+}
+
+// 工程专业
+export interface IEngineering {
+  name: string;
+  feeName: string;
+  engineering: number;
+  projectEngineering: number;
+  valuationID: string;
+  // 显示设置
+  isAreaIncrease?: boolean; // 显示面积增加费
+  isItemIncrease?: boolean; // 显示子目增加费
+  isInstall?: boolean; // 显示安装增加费
+  gljCol?: IGLJCol;
+  overHeightLib?: IFileRef[];
+  economicLib?: IFileRef[];
+  mainQuantityLib?: IFileRef[];
+  materialLib?: IFileRef[];
+  engineerFeatureLib?: IFileRef[];
+  engineerInfoLib?: IFileRef[];
+  infoLib?: IFileRef[];
+  featureLib?: IFileRef[];
+  artificialLib?: IFileRef[];
+  billLib?: IFileRef[];
+  billsGuidanceLib?: IFileRef[];
+  gljLib?: IFileRef[];
+  rationLib?: IFileRef[];
+  progressiveLib?: IFileRef[];
+  taxGroup: ITaxGroup[];
+}
+
 export interface IbillValuation {
-  engineering_list: any;
+  engineeringList: IEngineering[];
   enable: boolean;
-  id: string;
+  ID: string;
   name: string;
 }
 

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

@@ -9,7 +9,7 @@ export interface ITreeScm {
 }
 
 export interface IFileRef {
-  id: string;
+  ID: string;
   name: string;
 }
 

+ 11 - 4
types/src/interface/project.ts

@@ -92,8 +92,15 @@ export enum TaxType {
 
 // 文件类型
 export enum FileType {
-  BID_SUBMISSION = 1, // 投标
-  BID_INVITATION, // 招标
+  SUBMISSION = 1, // 投标
+  INVITATION, // 招标
+  CONTROL, // 控制价
+}
+
+export enum FileTypeName {
+  SUBMISSION = '投标',
+  INVITATION = '招标',
+  CONTROL = '控制价',
 }
 
 // 项目属性
@@ -105,8 +112,8 @@ export interface IProperty {
   rationFeeType?: number; // 定额取费专业
   unitFeeType?: number; // 单位工程取费专业
   calcProgram?: IFileRef; // 计算程序
-  colLibID?: number; // 列设置
-  templateLibID?: number; // 清单模板
+  colLibID?: string; // 列设置
+  templateLibID?: string; // 清单模板
   unitPriceFile?: IFileRef; // 单价文件
   feeFile?: IFileRef; // 费率文件
   region?: string;