Browse Source

feat(types): 选择人材机界面人材机

vian 2 years ago
parent
commit
5970d60fb7
1 changed files with 19 additions and 1 deletions
  1. 19 1
      types/src/interface/glj.ts

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

@@ -457,10 +457,28 @@ 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 {
+  isProjectGlj?: boolean;
+}
+
+// 选择人材机界面人材机
+export type ISelectGlj = ISelectStdGlj | ISelectCptGlj | ISelectProjectGlj;
+
 // 选择人材机接口返回数据格式
 export interface ISelectGljResult {
   libData: ISelectGljLibItem[]; // 库下拉项
-  treeData: (IStdGljTree | ICptGljTree)[]; // 人材机分类树
+  treeData: ISelectGlj[]; // 人材机分类树
   gljData: (IStdGlj | ICptGlj)[]; // 人材机数据
   total: number; // 当前数据总数量
   locatedGlj?: IStdGlj | ICptGlj; // 需要定位到的人材机