Przeglądaj źródła

feat(types): 工程量表达式枚举

zhangweicheng 3 lat temu
rodzic
commit
cf49d817d0
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      types/src/interface/base.ts

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

@@ -290,6 +290,13 @@ export interface IFees {
   [key: string]: IFee;
   [key: string]: IFee;
 }
 }
 
 
+export enum BaseEXP {
+  QDL = 'QDL',
+  ZXGCLHJ = 'ZXGCLHJ', // 子项工程量合计
+  GCLMXHJ = 'GCLMXHJ',
+  MBGCL = 'MBGCL', // 模板工程量
+}
+
 // 定额和清单共有的属性,造价书中很多地方需要
 // 定额和清单共有的属性,造价书中很多地方需要
 export interface IBRBase {
 export interface IBRBase {
   ID: string;
   ID: string;
@@ -302,7 +309,7 @@ export interface IBRBase {
   code?: string;
   code?: string;
   name?: string;
   name?: string;
   quantity?: number;
   quantity?: number;
-  quantityEXP?: string;
+  quantityEXP?: BaseEXP | string;
   quantityDetails?: IQuantityDetail[]; // 工程量明细 -- 原先保存在另外的表中
   quantityDetails?: IQuantityDetail[]; // 工程量明细 -- 原先保存在另外的表中
   // 是否记取面积增加费
   // 是否记取面积增加费
   areaIncreaseFee?: boolean | null; // { type: Schema.Types.Mixed; default: false }; // true 是,false否,null 不确定,三个状态
   areaIncreaseFee?: boolean | null; // { type: Schema.Types.Mixed; default: false }; // true 是,false否,null 不确定,三个状态