Przeglądaj źródła

feat(types): 修改项目、费用定额、工程专业等类型

vian 5 lat temu
rodzic
commit
346343b0cb
2 zmienionych plików z 25 dodań i 16 usunięć
  1. 4 3
      types/src/interface/Compliation.ts
  2. 21 13
      types/src/interface/project.ts

+ 4 - 3
types/src/interface/Compliation.ts

@@ -1,6 +1,6 @@
 /* eslint-disable camelcase */
 import { ELockInfo } from './User';
-import { TaxType, FileType, IGLJCol } from './project';
+import { TaxType, IGLJCol } from './project';
 import { IFileRef } from './base';
 
 export interface ICptItem {
@@ -23,6 +23,7 @@ export interface ITaxGroup {
 
 // 工程专业
 export interface IEngineering {
+  ID: string;
   name: string;
   feeName: string;
   engineering: number;
@@ -50,7 +51,7 @@ export interface IEngineering {
   taxGroup: ITaxGroup[];
 }
 
-export interface IbillValuation {
+export interface IValuation {
   engineeringList: IEngineering[];
   enable: boolean;
   ID: string;
@@ -67,7 +68,7 @@ export interface ICompilation {
   name: string;
   description: string;
   rationValuations?: any;
-  billValuations?: IbillValuation[];
+  billValuations?: IValuation[];
   version?: versionType; // 版本
   versionText?: string; // 版本对应的显示文字:免费版,学习版,专业版
   lockInfo?: ELockInfo; //

+ 21 - 13
types/src/interface/project.ts

@@ -66,18 +66,6 @@ export enum OverHeightOption {
   SPECIFIC, // 指定具体位置,显示分部分项以及措施项目的树结构显示叶子清单(分项)供勾选
 }
 
-// 工程特征、基本信息
-export interface IInfoItem {
-  key: string;
-  dispName: string;
-  value?: string;
-  required?: string;
-  readonly?: string;
-  options?: string;
-  cellType?: string;
-  items?: IInfoItem[];
-}
-
 // 承包人材料调整类型
 export enum GLJAdjustType {
   PRICE_INFO = 'priceInfo', // 造价信息差额调整法
@@ -103,12 +91,32 @@ export enum FileTypeName {
   CONTROL = '控制价',
 }
 
+export const FileTypeMap = {
+  [FileType.SUBMISSION]: FileTypeName.SUBMISSION,
+  [FileType.INVITATION]: FileTypeName.SUBMISSION,
+  [FileType.CONTROL]: FileTypeName.CONTROL,
+};
+
+// 工程特征、基本信息
+export interface IInfoItem {
+  key: string;
+  dispName: string;
+  value?: string;
+  required?: string;
+  readonly?: string;
+  options?: string;
+  cellType?: string;
+  fileKind?: FileTypeName;
+  items?: IInfoItem[];
+}
+
 // 项目属性
 export interface IProperty {
   rootProjectID?: string; // 建设项目ID
   valuationID?: string; // 计价规则
   engineeringID?: string; // 工程专业
-  taxType?: number; // 计税方式
+  fileType?: FileType; // 文件类型
+  taxType?: TaxType; // 计税方式
   rationFeeType?: number; // 定额取费专业
   unitFeeType?: number; // 单位工程取费专业
   calcProgram?: IFileRef; // 计算程序