Prechádzať zdrojové kódy

feat(types): setData,ration,glj 类型调整

zhangweicheng 5 rokov pred
rodič
commit
7485ae1093

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

@@ -118,7 +118,7 @@ export enum CptModelName {
 // 无数据表的模块名称的枚举
 export enum SubModelName {
   bookmarks = 'bookmarks', // 书签批注
-  component = 'component', // 组成物
+  components = 'components', // 组成物
 }
 
 export enum ActionType {
@@ -128,12 +128,18 @@ export enum ActionType {
   DELETE = 'delete',
 }
 
+// 特殊的action
+export enum ActionName {
+  // ration相关
+  addStdRations = 'addStdRations', // 添加标准定额
+}
+
 // 统一subject更新提交数据入口,为撤销功能做准备
 export interface ISetData<T = any> {
   projectID: string; // 考虑到可能会跨项目更新,提高一层
   module: CptModelName | SubModelName;
   action: ActionType;
-  actionName?: string; // 除了增删改查,还会有更复杂的操作,用这个来区分
+  actionName?: ActionName; // 除了增删改查,还会有更复杂的操作,用这个来区分
   filter?: any; // 查询条件
   update?: any; // 和update类型对应,
   documents?: T[]; // add 类型对应,批量插入

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

@@ -132,6 +132,7 @@ export interface IProjectGlj {
   taxRate?: number; // 税率
   adjustPrice?: string; // 显示调整基价
   quantity?: number; // 显示关联的消耗量
+  tenderQuantity?: number; // 调整后消耗量
   techQuantity?: string; // 技术措施项目消耗量
   subdivisionQuantity?: string; // 分部分项消耗量
   tenderPrice?: string; // 调整后价格

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

@@ -293,7 +293,7 @@ export interface IRation {
   programID?: number;
   fees?: any; // 费用字段
   gljQtyCoe?: IGljQtyCoe; // 工料机消耗量调整系数字段
-  rationQtyCoe?: string; // 子目工程量调整系数
+  rationQtyCoe?: number; // 子目工程量调整系数
   tenderQuantity?: string; // 调整后工程量
   noAdjustPrice?: boolean; // { type: boolean; default: false }; // 不调价
   targetUnitFee?: string; // 目标单价