Quellcode durchsuchen

feat(types): 定额人材机相关

vian vor 4 Jahren
Ursprung
Commit
fdfa018ddf

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

@@ -169,6 +169,7 @@ export enum ActionName {
   // 补充人材机相关
   // 补充人材机相关
   CHANGE_CPT_RATION_TREE = 'changeCptRationTree', // 补充定额章节树数据变更
   CHANGE_CPT_RATION_TREE = 'changeCptRationTree', // 补充定额章节树数据变更
   CHANGE_CPT_RATION = 'changeCptRation', // 补充定额数据变更
   CHANGE_CPT_RATION = 'changeCptRation', // 补充定额数据变更
+  CHANGE_CPT_RATION_GLJ = 'changeCptRationGlj', // 补充定额人材机变更
 }
 }
 
 
 export interface IBaseFilter {
 export interface IBaseFilter {

+ 2 - 0
types/src/interface/error.ts

@@ -106,6 +106,8 @@ export enum ErrNo {
   CPT_GLJ_NOT_EXISTS = 5034, // 补充人材机不存在
   CPT_GLJ_NOT_EXISTS = 5034, // 补充人材机不存在
   CPT_RATION_INVALID = 5035, // 无效的补充定额(需要编码有值)
   CPT_RATION_INVALID = 5035, // 无效的补充定额(需要编码有值)
   CPT_RATION_NOT_EXISTS = 5036, // 补充定额不存在
   CPT_RATION_NOT_EXISTS = 5036, // 补充定额不存在
+  CANT_FIND_GLJ_BY_CODE = 5037, // 根据人材机编码查询出来的人材机为空
+  CPT_RATION_GLJ_CODE_EXISTS = 5038, // 定额人材机编码已存在
   /* 数据配置错误(大多数为后台标准、模板数据配置问题)  6001 - 6999 */
   /* 数据配置错误(大多数为后台标准、模板数据配置问题)  6001 - 6999 */
   // 补充人材机分类树模板 未配置
   // 补充人材机分类树模板 未配置
   CPT_GLJ_TREE_TEMPLATE_EMPTY = 6001,
   CPT_GLJ_TREE_TEMPLATE_EMPTY = 6001,

+ 8 - 0
types/src/interface/glj.ts

@@ -405,3 +405,11 @@ export interface ICptDisplayRationGlj {
   from: FromType;
   from: FromType;
   type: GljType;
   type: GljType;
 }
 }
+
+// 重算补充定额价格需要的人材机类型
+export interface IGljForCalcRationPrice {
+  basePrice: number;
+  consumeAmt: number;
+  type: GljType;
+  [props: string]: any;
+}

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

@@ -9,7 +9,13 @@ import {
   ITreeScm,
   ITreeScm,
 } from './base';
 } from './base';
 import { IBookmark } from './bill';
 import { IBookmark } from './bill';
-import { GljType, ICptGlj, IStdGlj, MaterialType } from './glj';
+import {
+  GljType,
+  ICptDisplayRationGlj,
+  ICptGlj,
+  IStdGlj,
+  MaterialType,
+} from './glj';
 import { IQuantityDetail } from './quantityDetail';
 import { IQuantityDetail } from './quantityDetail';
 
 
 // 标准定额库
 // 标准定额库
@@ -368,3 +374,21 @@ export interface IInsertCptRation {
   machinePrice: number;
   machinePrice: number;
   basePrice: number;
   basePrice: number;
 }
 }
+
+// 更新补充定额人材机的请求数据
+export interface IUpdateCptRationGlj {
+  ID?: string | number; // 人材机ID
+  code?: string;
+  consumeAmt?: number;
+  from?: FromType;
+}
+
+// 更新补充定额人材机的返回更新数据
+export interface IUpdateCptRationGljResult {
+  labourPrice: number;
+  materialPrice: number;
+  machinePrice: number;
+  basePrice: number;
+  rationGljList: ICptRationGljRef[];
+  displayRationGljList: ICptDisplayRationGlj[];
+}