Prechádzať zdrojové kódy

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/SCCommon

vian 4 rokov pred
rodič
commit
f59fa795a5

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

@@ -262,7 +262,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[]; // 书签批注

+ 2 - 2
types/src/interface/glj.ts

@@ -198,7 +198,7 @@ export interface IProjectGlj {
   noAdjustPrice: boolean; // 不调价  { type: boolean; default: false }
   noTaxEqp?: boolean; // 不计税设备  { type: boolean; default: false }
   adjCoe?: number; // 调整系数ID
-  specs: string; // 规格型号
+  specs?: string; // 规格型号
   type: GljType; // 类型
   model?: number; // 机型
   unit: string; // 单位
@@ -222,7 +222,7 @@ export interface IProjectGlj {
   // 经济指标数据
   materialIndexType?: string; // 工料指标类别
   materialIndexUnit?: string; // 工料指标单位
-  materialIndexCoe: number; // 单位转换系数
+  materialIndexCoe?: number; // 单位转换系数
   isMainMaterial: boolean; // 是否主要材料 (0为否 1为是) { type: boolean; default: false };
   remark?: string; // 备注
   originPlace?: string; // 产地

+ 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;