浏览代码

feat(types): 项目属性相关types修改,actionName新增属性类型

lishihao 4 年之前
父节点
当前提交
6a143c2a61
共有 2 个文件被更改,包括 8 次插入4 次删除
  1. 2 2
      types/src/interface/base.ts
  2. 6 2
      types/src/interface/project.ts

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

@@ -164,8 +164,8 @@ export enum ActionType {
 export enum ActionName {
   // 项目属性相关
   RESET_COL_METAS = 'resetColMetas', // 重置默认列设置
-
-  // ration相关
+  UPDATE_PROPERTY='updateProperty',  //更新项目属性
+  // ration相关property
   ADD_LIB_RATIONS = 'addLibRations', // 添加标准/补充定额
   ADD_GLJ_RATIONS = 'addGljRations', // 插入工料机类型的定额
   CLEAN_ZMHS = 'cleanZmhs', // 清空子目换算

+ 6 - 2
types/src/interface/project.ts

@@ -123,7 +123,11 @@ export interface IInfoItem {
   fileKind?: FileTypeName;
   items?: IInfoItem[];
 }
-
+export interface IBasicInfo extends IInfoItem{
+  ID:string, 
+  parentID:string,
+  seq:number
+}
 // 工程特征指标
 interface IBaseEngineerFeature {
   value: string;
@@ -209,7 +213,7 @@ export interface IProperty {
   tenderSetting?: ITenderSetting; // 调价设置
   overHeight?: IOverHeight[]; // 超高降效数据
   overHeightOption?: OverHeightOption; // 超高降效选项
-  basicInfo?: IInfoItem[]; // 基本信息
+  basicInfo?: IBasicInfo[]; // 基本信息
   feature?: IInfoItem[]; // 工程特征
   progressiveInterval?: IProgressiveInterval[]; // 累进区间
   gljAdjustType?: GLJAdjustType; // 承包人材料调整类型