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

feat(types): 抽离费用字段IFees

vian 4 лет назад
Родитель
Сommit
b3ba69cd12
1 измененных файлов с 12 добавлено и 9 удалено
  1. 12 9
      types/src/interface/base.ts

+ 12 - 9
types/src/interface/base.ts

@@ -222,7 +222,7 @@ export interface ISetData<T = any, F = any, R = any> {
 }
 
 export interface IColumnMeta {
-  ID:string;
+  ID: string;
   title: string;
   data: string;
   renderer?: string;
@@ -256,6 +256,16 @@ export interface IGetData {
   projectsPermission: IProjectPermission[];
 }
 
+// 费用字段
+export interface IFees {
+  [key: string]: {
+    tenderTotalFee: number;
+    tenderUnitPrice: number;
+    totalFee: number;
+    unitPrice: number;
+  };
+}
+
 // 定额和清单共有的属性,造价书中很多地方需要
 export interface IBRBase {
   ID: string;
@@ -272,14 +282,7 @@ export interface IBRBase {
   quantityDetails?: IQuantityDetail[]; // 工程量明细 -- 原先保存在另外的表中
   // 是否记取面积增加费
   areaIncreaseFee?: boolean | null; // { type: Schema.Types.Mixed; default: false }; // true 是,false否,null 不确定,三个状态
-  fees?: {
-    [key: string]: {
-      tenderTotalFee: number;
-      tenderUnitPrice: number;
-      totalFee: number;
-      unitPrice: number;
-    };
-  }; // 费用字段
+  fees?: IFees; // 费用字段
   bookmarks?: IBookmark[]; // 书签批注
 
   targetUnitPrice?: number; // 调价:目标综合单价