Sfoglia il codice sorgente

feat(types): 修改管理费率类型

zhangweicheng 4 anni fa
parent
commit
3cab3bbc8f
2 ha cambiato i file con 9 aggiunte e 8 eliminazioni
  1. 8 1
      types/src/interface/base.ts
  2. 1 7
      types/src/interface/ration.ts

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

@@ -261,7 +261,14 @@ export interface IBRBase {
   quantity?: number;
   quantityEXP?: string;
   quantityDetails?: IQuantityDetail[]; // 工程量明细 -- 原先保存在另外的表中
-  fees?: any; // 费用字段
+  fees?: {
+    [key: string]: {
+      tenderTotalFee: number;
+      tenderUnitPrice: number;
+      totalFee: number;
+      unitPrice: number;
+    };
+  }; // 费用字段
   gljQtyCoe?: IGljQtyCoe; // 工料机消耗量调整系数字段
   rationQtyCoe?: number; // 子目工程量调整系数
   bookmarks?: IBookmark[]; // 书签批注

+ 1 - 7
types/src/interface/ration.ts

@@ -316,7 +316,7 @@ export interface IRation extends IBRBase {
   prefix?: RationPrefix; // { type: string; default: '' }; // 定额是补充、借用时用  补 借
   referenceRationID?: string; // 如果是通过模板关联子目生成的定额,这里记录对应的主定额ID
   jobContentText?: string; // 工作内容 (选择自清单)
-  manageFeeRate?: string; // 管理费率
+  manageFeeRate?: number; // 管理费率
   // 是否记取面积增加费
   areaIncreaseFee?: boolean | null; // { type: Schema.Types.Mixed; default: false }; // true 是,false否,null 不确定,三个状态
   // 工料机特有属性
@@ -355,12 +355,6 @@ export interface ILibRationsAndGljsResult {
   rationGljs: (IStdGlj | ICptGlj)[];
 }
 
-export enum RationListType {
-  ASS = 'rationAssList',
-  COE = 'rationCoeList',
-  GLJ = 'rationGljList',
-}
-
 // 补充定额章节树-模板(后台设置)
 export interface ICptRationTreeTemplate {
   compilationId: string;