@kengic/vue 0.5.19-beta.0 → 0.5.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class QueryByIDQuery {
5
+ /** id */
6
+ id: string | null;
7
+ constructor(obj?: QueryByIDQuery);
8
+ }
9
+ /**
10
+ * 表格视图-通过ID查询
11
+ *
12
+ * @param config 请求配置.
13
+ * @param option 请求选项.
14
+ */
15
+ export declare function QueryByID(config?: IRequestConfig<QueryByIDQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.VarGridMasterDTO>;
16
+ export declare namespace QueryByID {
17
+ var method: "GET";
18
+ var url: string;
19
+ }
@@ -0,0 +1,16 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class UpdateQuery {
5
+ }
6
+ /**
7
+ * 表格视图-更新.
8
+ *
9
+ * @param config 请求配置.
10
+ * @param option 请求选项.
11
+ */
12
+ export declare function Update(config?: IRequestConfig<UpdateQuery, DEF.WMS.UpdateVarGridMasterQuery>, option?: IRequestOptions): Promise<string>;
13
+ export declare namespace Update {
14
+ var method: "POST";
15
+ var url: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ export { QueryByID, QueryByIDQuery } from './QueryByID';
2
+ export { Update, UpdateQuery } from './Update';
@@ -1,5 +1,6 @@
1
1
  export * as VarController from './VarController';
2
2
  export * as VarContextController from './VarContextController';
3
+ export * as VarGridMasterController from './VarGridMasterController';
3
4
  export * as VarProfileMasterController from './VarProfileMasterController';
4
5
  export * as VarVariableCatalogController from './VarVariableCatalogController';
5
6
  export * as WhController from './WhController';
@@ -1,4 +1,20 @@
1
- /** 创建查询条件. */
1
+ /** 创建表格视图. */
2
+ export declare class CreateVarGridMasterQuery {
3
+ /** 是否默认(DefaultFlag). */
4
+ def_flg?: number | null;
5
+ /** 界面标识(FormID). */
6
+ frm_id?: string | null;
7
+ /** 视图变量名称(GridVariableName). */
8
+ grd_var_nam?: string | null;
9
+ /** 分组(GroupName). */
10
+ grp_nam?: string | null;
11
+ /** 用户(UserID). */
12
+ usr_id?: string | null;
13
+ /** 字段列表. */
14
+ varGridDetails?: Array<VarGridDetail> | null;
15
+ constructor(obj?: CreateVarGridMasterQuery);
16
+ }
17
+ /** 创建查询条件视图. */
2
18
  export declare class CreateVarProfileMasterQuery {
3
19
  /** 是否默认(DefaultFlag). */
4
20
  def_flg?: number | null;
@@ -29,6 +45,26 @@ export declare class IPage<T0> {
29
45
  total?: number | null;
30
46
  constructor(obj?: IPage<T0>);
31
47
  }
48
+ /** 更新表格视图. */
49
+ export declare class UpdateVarGridMasterQuery {
50
+ /** 定制级别(CustomLevel). */
51
+ cust_lvl?: number | null;
52
+ /** 是否默认(DefaultFlag). */
53
+ def_flg?: number | null;
54
+ /** 界面标识(FormID). */
55
+ frm_id?: string | null;
56
+ /** 视图变量名称(GridVariableName). */
57
+ grd_var_nam?: string | null;
58
+ /** 分组(GroupName). */
59
+ grp_nam?: string | null;
60
+ /** 主键 */
61
+ id?: string | null;
62
+ /** 用户(UserID). */
63
+ usr_id?: string | null;
64
+ /** 字段列表. */
65
+ varGridDetails?: Array<VarGridDetail> | null;
66
+ constructor(obj?: UpdateVarGridMasterQuery);
67
+ }
32
68
  /** 按钮 */
33
69
  export declare class VarButton {
34
70
  /** 接口地址(Command). */
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  'onUpdate:value': import("vue").PropType<(value: import("./index.vm").IKgFormItemValue | null) => void>;
40
40
  onKgSubmit: import("vue").PropType<() => void>;
41
41
  onKgChange: import("vue").PropType<(value: any) => void>;
42
- onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
42
+ onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>; /** 是否禁用. */
43
43
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange")[], "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
44
  kgVarName: {
45
45
  type: import("vue").PropType<string>;
@@ -78,7 +78,7 @@ declare const _default: import("vue").DefineComponent<{
78
78
  'onUpdate:value': import("vue").PropType<(value: import("./index.vm").IKgFormItemValue | null) => void>;
79
79
  onKgSubmit: import("vue").PropType<() => void>;
80
80
  onKgChange: import("vue").PropType<(value: any) => void>;
81
- onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
81
+ onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>; /** 是否禁用. */
82
82
  }>> & {
83
83
  onKgSubmit?: ((...args: any[]) => any) | undefined;
84
84
  onKgChange?: ((...args: any[]) => any) | undefined;
@@ -10,6 +10,8 @@ export declare type IUseKgVar = {
10
10
  isRetrievingVar: ComputedRef<ReturnType<IKgVarStore['isRetrievingVar']>>;
11
11
  /** 正在查询 VarProfileMaster. */
12
12
  isRetrievingVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarProfileMaster']>>;
13
+ /** 正在查询 VarGridMaster. */
14
+ isRetrievingVarGridMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarGridMaster']>>;
13
15
  /** 正在创建. */
14
16
  isCreating: ComputedRef<ReturnType<IKgVarStore['isCreating']>>;
15
17
  /** 正在更新. */
@@ -37,6 +39,8 @@ export declare type IUseKgVar = {
37
39
  currentVarGridMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMaster']>>;
38
40
  /** 系统的 VarGridDetail 列表. */
39
41
  systemVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getSystemVarGridDetails']>>;
42
+ /** 当前的 VarGridDetail 列表. */
43
+ currentVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridDetails']>>;
40
44
  t: (var_nam?: string | null) => ComputedRef<string>;
41
45
  };
42
46
  /**
@@ -1,5 +1,5 @@
1
1
  import { type StoreDefinition } from 'pinia';
2
- import { VarButton, VarCatalog, VarVariableConfig, VarGridConfig, VarGridDetail, VarGridDTO, VarGridMasterDTO, VarLookup, VarPossibility, VarProfileConfig, VarProfileDetail, VarProfileDTO, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField, VarVariableInput } from '../../apis/WMS/models';
2
+ import { VarButton, VarCatalog, VarGridConfig, VarGridDetail, VarGridDTO, VarGridMasterDTO, VarLookup, VarPossibility, VarProfileConfig, VarProfileDetail, VarProfileDTO, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField, VarVariableConfig, VarVariableInput } from '../../apis/WMS/models';
3
3
  export declare type IFormID = {
4
4
  formID: string;
5
5
  /**
@@ -22,6 +22,8 @@ export interface IKgVarState {
22
22
  isRetrievingVarMap: Map<string, boolean>;
23
23
  /** 正在查询 VarProfileMaster. */
24
24
  isRetrievingVarProfileMasterMap: Map<string, boolean>;
25
+ /** 正在查询 VarGridMaster. */
26
+ isRetrievingVarGridMasterMap: Map<string, boolean>;
25
27
  /** 正在创建. */
26
28
  isCreatingMap: Map<string, boolean>;
27
29
  /** 正在创建: 正在调用接口. */
@@ -68,6 +70,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
68
70
  getFormLevel(): (formID?: string | null) => number;
69
71
  isRetrievingVar(): (formID?: string | null) => boolean | null;
70
72
  isRetrievingVarProfileMaster(): (formID?: string | null) => boolean | null;
73
+ isRetrievingVarGridMaster(): (formID?: string | null) => boolean | null;
71
74
  isCreating(): (formID?: string | null) => boolean | null;
72
75
  isUpdating(): (formID?: string | null) => boolean | null;
73
76
  isCopying(): (formID?: string | null) => boolean | null;
@@ -150,9 +153,9 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
150
153
  *
151
154
  * @param formID
152
155
  * @param value
153
- * @param onReady 是否等待变量配置数据加载完成.
156
+ * @param whenReady 是否等待变量配置数据加载完成.
154
157
  */
155
- setIsUpdating(formID: string, value: boolean, onReady?: boolean): void;
158
+ setIsUpdating(formID: string, value: boolean, whenReady?: boolean): void;
156
159
  setIsCopying(formID: string, value: boolean): void;
157
160
  setIsDeleting(formID: string, deleting: boolean): void;
158
161
  setIsCreatingRequesting(formID: string, value: boolean): void;
@@ -166,6 +169,12 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
166
169
  * @param currentVarProfileMasterID 当前选择的查询条件的 ID.
167
170
  */
168
171
  setCurrentVarProfileMasterID(formID: string, currentVarProfileMasterID: string): Promise<void>;
172
+ /**
173
+ * 设置当前选择的表格视图的 ID.
174
+ * @param formID 界面标识.
175
+ * @param currentVarGridMasterID 当前选择的表格视图的 ID.
176
+ */
177
+ setCurrentVarGridMasterID(formID: string, currentVarGridMasterID: string): Promise<void>;
169
178
  /**
170
179
  * 设置列的宽度.
171
180
  * @param formID 界面标识.
@@ -42,7 +42,7 @@ declare const _default: {
42
42
  KgTableSettingGridConfigModal: {
43
43
  title: string;
44
44
  };
45
- KgTableSettingSaveGridMaster: {
45
+ KgTableSettingVarGridMasterSaveAs: {
46
46
  title: string;
47
47
  };
48
48
  KgTableSettingVarGridConfig: {
@@ -42,7 +42,7 @@ declare const _default: {
42
42
  KgTableSettingGridConfigModal: {
43
43
  title: string;
44
44
  };
45
- KgTableSettingSaveGridMaster: {
45
+ KgTableSettingVarGridMasterSaveAs: {
46
46
  title: string;
47
47
  };
48
48
  KgTableSettingVarGridConfig: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.5.19-beta.0",
3
+ "version": "0.5.19",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",