ソースを参照

feat(types): 修改 IFees

zhangweicheng 3 年 前
コミット
a1a416fc82
2 ファイル変更10 行追加7 行削除
  1. 7 6
      types/src/interface/base.ts
  2. 3 1
      types/src/interface/bill.ts

+ 7 - 6
types/src/interface/base.ts

@@ -278,14 +278,15 @@ export interface IGetData {
   approval?: IProjectApproval;
 }
 
+export interface IFee {
+  tenderTotalFee: number;
+  tenderUnitPrice: number;
+  totalFee: number;
+  unitPrice: number;
+}
 // 费用字段
 export interface IFees {
-  [key: string]: {
-    tenderTotalFee: number;
-    tenderUnitPrice: number;
-    totalFee: number;
-    unitPrice: number;
-  };
+  [key: string]: IFee;
 }
 
 // 定额和清单共有的属性,造价书中很多地方需要

+ 3 - 1
types/src/interface/bill.ts

@@ -1,7 +1,7 @@
 import { IComponent } from './glj';
 import { FileType } from './project';
 import { IElfItem } from './billGuide';
-import { IBRBase, INumFileRef, ITreeScm } from './base';
+import { IBRBase, IFees, INumFileRef, ITreeScm } from './base';
 import { ICalcItem } from './calculation';
 
 // 清单固定类别
@@ -283,6 +283,7 @@ export interface IBillIndexRation {
   unitPrice: string;
   rationGljList: IBillIndexGlj[];
   dynamicIndex?: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
+  fees?: IFees; // 费用字段
 }
 
 export interface IFBIndex {
@@ -308,6 +309,7 @@ export interface IFBIndex {
   dynamicIndex?: Record<string, string>; // 动态指标,年-月为key 综合指标的映射
   minUnitPrice?: string;
   maxUnitPrice?: string;
+  fees?: IFees; // 费用字段
 }
 export interface IBillIndex extends IFBIndex {
   classCode: string; // 类别别名