Quellcode durchsuchen

feat(types): 修改补充人材机相关类型

vian vor 4 Jahren
Ursprung
Commit
7d9ca649c8
1 geänderte Dateien mit 20 neuen und 2 gelöschten Zeilen
  1. 20 2
      types/src/interface/glj.ts

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

@@ -211,6 +211,15 @@ export interface IProjectGljs {
 }
 
 /* 标准人材机相关 ↓ */
+// 标准人材机库
+export interface IStdGljLib {
+  dispName: string;
+  compilationId: string;
+  compilationName: string;
+  ID: number;
+  rationLibs: [{ dispName: string; ID: number }];
+}
+
 // 标准、补充人材机共用属性(原始数据)
 export interface IBaseRationGlj {
   code: string;
@@ -275,6 +284,9 @@ export interface IStdGljTree extends ITreeScm {
 /* 标准人材机相关 ↑ */
 
 /* 补充人材机相关 ↓ */
+// 补充人材机库标记
+export const cptLibKey = 'complementaryLib';
+
 // 补充人材机分类树-模板(后台设置)
 export interface IRawCptGljTreeTemplate {
   compilationId: string;
@@ -338,6 +350,12 @@ export interface IInsertCptGlj {
   model?: number;
 }
 
+// 准备组成物返回数据接口
+export interface IPrepareComponentResult {
+  displayComponents: ICptDisplayComponent[];
+  allowComponent: boolean;
+}
+
 // 补充人材机
 /* 补充人材机相关 ↑ */
 
@@ -354,7 +372,7 @@ export interface ISelectGljLibItem {
 
 // 获取人材机分页数据接口选项
 export interface IGetPagingGljOptions {
-  classList?: number[]; // 需要匹配的分类
+  classList?: (number | string)[]; // 需要匹配的分类
   typeList?: GljType[]; // 需要匹配的人材机类型
   libID?: number | string; // 人材机库ID
   replaceGlj?: IBaseGlj; // 替换的人材机
@@ -367,7 +385,7 @@ export interface IGetPagingGljOptions {
 // 选择人材机接口返回数据格式
 export interface ISelectGljResult {
   libData: ISelectGljLibItem[]; // 库下拉项
-  treeData: IStdGljTree[]; // 人材机分类树
+  treeData: (IStdGljTree | ICptGljTree)[]; // 人材机分类树
   gljData: (IStdGlj | ICptGlj)[]; // 人材机数据
   total: number; // 当前数据总数量
   locatedGlj?: IStdGlj | ICptGlj; // 需要定位到的人材机