Browse Source

Merge branch 'master' of 192.168.1.41:SmartCost/SCCommon

lipk 2 years ago
parent
commit
d7a230be6d
2 changed files with 28 additions and 3 deletions
  1. 0 1
      types/src/interface/base.ts
  2. 28 2
      types/src/interface/glj.ts

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

@@ -197,7 +197,6 @@ export enum ActionName {
   UPDATE_INDEX_KEY = 'updateIndexKey', // 修改定额工料机的名称,规格,单位
   UPDATE_GLJ_CODE = 'updateGljCode', // 修改定额工料机的编码
   ADD_RATION_GLJS = 'addRationGljs', // 添加定额工料机(多个)
-  ADD_RATION_GLJS_FROM_UNIT = 'addRationGljsFromUnit', // 从单位工程项目人材机中选择并添加定额工料机(多个)
   REPLACE_RATION_GLJ = 'replaceRationGlj', // 替换定额工料机(单个)
 
   // 项目工料机相关

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

@@ -457,13 +457,32 @@ export interface IGetPagingGljOptions {
   excludeIDs?: (number | string)[]; // 排除的人材机ID
 }
 
+// 选择人材机界面标准人材机
+export interface ISelectStdGlj extends IStdGlj {
+  isProjectGlj?: boolean;
+}
+
+// 选择人材机界面补充人材机
+export interface ISelectCptGlj extends ICptGlj {
+  isProjectGlj?: boolean;
+}
+
+// 选择人材机界面项目人材机
+export interface ISelectProjectGlj extends IProjectGlj {
+  gljClass?: string;
+  isProjectGlj?: boolean;
+}
+
+// 选择人材机界面人材机
+export type ISelectGlj = ISelectStdGlj | ISelectCptGlj | ISelectProjectGlj;
+
 // 选择人材机接口返回数据格式
 export interface ISelectGljResult {
   libData: ISelectGljLibItem[]; // 库下拉项
   treeData: (IStdGljTree | ICptGljTree)[]; // 人材机分类树
-  gljData: (IStdGlj | ICptGlj)[]; // 人材机数据
+  gljData: ISelectGlj[]; // 人材机数据
   total: number; // 当前数据总数量
-  locatedGlj?: IStdGlj | ICptGlj; // 需要定位到的人材机
+  locatedGlj?: ISelectGlj; // 需要定位到的人材机
 }
 
 /* 选择人材机相关 ↑ */
@@ -539,3 +558,10 @@ export interface ICptGljLib {
 export interface IGljKeyMap {
   [key: string]: IBaseGlj;
 }
+
+// 添加定额人材机的document
+export interface IAddRationGljDoc {
+  code: string;
+  repositoryID?: number | string;
+  projectGljID?: string;
+}