@kengic/vue 0.27.2-beta.2 → 0.27.2-beta.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ import { IRequestConfig, IRequestOptions } from '../../../../service';
2
2
  /** 请求参数. */
3
3
  export declare class ExecuteQueryQuery {
4
4
  /** 主键. */
5
- id: string | null;
5
+ id?: string | null;
6
6
  constructor(obj?: ExecuteQueryQuery);
7
7
  }
8
8
  /**
@@ -3,7 +3,7 @@ import * as DEF from '../../../def';
3
3
  /** 请求参数. */
4
4
  export declare class QueryByIDQuery {
5
5
  /** id. */
6
- id: string | null;
6
+ id?: string | null;
7
7
  constructor(obj?: QueryByIDQuery);
8
8
  }
9
9
  /**
@@ -3,7 +3,7 @@ import * as DEF from '../../../def';
3
3
  /** 请求参数. */
4
4
  export declare class QueryByIDQuery {
5
5
  /** id. */
6
- id: string | null;
6
+ id?: string | null;
7
7
  constructor(obj?: QueryByIDQuery);
8
8
  }
9
9
  /**
@@ -1029,16 +1029,30 @@ export declare class WorkstationDTO {
1029
1029
  devcodDsc?: string | null;
1030
1030
  /** 主工作区. */
1031
1031
  hmewrkare?: string | null;
1032
+ /** 主工作区描述. */
1033
+ hmewrkareDsc?: string | null;
1032
1034
  /** 主键. */
1033
1035
  id?: string | null;
1034
1036
  /** 创建日期. */
1035
1037
  insDt?: string | null;
1036
1038
  /** 创建用户. */
1037
1039
  insUsrId?: string | null;
1040
+ /** 标签打印机(Label Printer Address). */
1041
+ lblPrtadr?: string | null;
1042
+ /** 标签打印机名称. */
1043
+ lblPrtadrDsc?: string | null;
1044
+ /** 便携标签打印机(Mobile Printer Address). */
1045
+ mobPrtadr?: string | null;
1046
+ /** 便携标签打印机名称. */
1047
+ mobPrtadrDsc?: string | null;
1038
1048
  /** 修改日期. */
1039
1049
  modUsrId?: string | null;
1040
1050
  /** 修改用户. */
1041
1051
  moddte?: string | null;
1052
+ /** 纸张打印机(Paper Printer Address). */
1053
+ papPrtadr?: string | null;
1054
+ /** 纸张打印机名称. */
1055
+ papPrtadrDsc?: string | null;
1042
1056
  /** 仓库. */
1043
1057
  whId?: string | null;
1044
1058
  /** 工作站与工作区域关系. */
@@ -2,7 +2,7 @@ import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { VarButton, VarButtonConfig } from '../../api/WMS/models';
4
4
  import { KG__VAR_BUTTON__TYPE } from '../../const';
5
- import { IKgButtonOnAfterRequestEventListener, IKgButtonOnBeforeRequestEventListener, IKgButtonOnClickEventListener, IKgButtonOnImportOkEventListener, IKgButtonOnSubmitCancelEventListener, IKgButtonOnSubmitSaveEventListener } from './KgButton.event';
5
+ import { eventListeners, IKgButtonOnAfterRequestEventListener, IKgButtonOnBeforeRequestEventListener, IKgButtonOnClickEventListener, IKgButtonOnImportOkEventListener, IKgButtonOnSubmitCancelEventListener, IKgButtonOnSubmitSaveEventListener } from './KgButton.event';
6
6
  import { IKgButtonStore } from './KgButton.store';
7
7
  export interface IUseKgButton {
8
8
  /**
@@ -20,6 +20,10 @@ export interface IUseKgButton {
20
20
  * <p>「当前按钮」. 即当前提交表单所属的按钮.</p>
21
21
  */
22
22
  currentButton: ComputedRef<VarButton | null>;
23
+ /**
24
+ * 所有事件监听函数.
25
+ */
26
+ eventListeners: typeof eventListeners;
23
27
  /**
24
28
  * 界面标识.
25
29
  */
@@ -1,5 +1,5 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
- import { IKgFormOnBlurEventListener, IKgFormOnChangeEventListener, IKgFormOnLookupBeforeOkEventListener, IKgFormOnLookupBeforeOpenEventListener, IKgFormOnLookupOkEventListener, IKgFormOnSelectBeforeRequestEventListener, IKgFormOnSelectBeforeSetDatasEventListener, IKgFormOnSelectChangeEventListener } from './KgForm.event';
2
+ import { eventListeners, IKgFormOnBlurEventListener, IKgFormOnChangeEventListener, IKgFormOnLookupBeforeOkEventListener, IKgFormOnLookupBeforeOpenEventListener, IKgFormOnLookupOkEventListener, IKgFormOnSelectBeforeRequestEventListener, IKgFormOnSelectBeforeSetDatasEventListener, IKgFormOnSelectChangeEventListener } from './KgForm.event';
3
3
  import { IKgFormStore } from './KgForm.store';
4
4
  export declare type IUseKgForm = {
5
5
  Select: {
@@ -12,6 +12,10 @@ export declare type IUseKgForm = {
12
12
  varName: string | null | undefined;
13
13
  }): void;
14
14
  };
15
+ /**
16
+ * 所有事件监听函数.
17
+ */
18
+ eventListeners: typeof eventListeners;
15
19
  formID: string;
16
20
  /**
17
21
  * 监听事件: 失去焦点.
@@ -2,7 +2,7 @@ import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { VarProfileDetail, VarProfileMasterDTO } from '../../api/WMS/models';
4
4
  import { IKgTableRequestParameter } from '../KgTable';
5
- import { IKgSearchOnReadyEventListener, IKgSearchOnResetEventListener, IKgSearchOnSearchEventListener } from './KgSearch.event';
5
+ import { eventListeners, IKgSearchOnReadyEventListener, IKgSearchOnResetEventListener, IKgSearchOnSearchEventListener } from './KgSearch.event';
6
6
  import { IKgSearchStore } from './KgSearch.store';
7
7
  export declare type IUseKgSearch = {
8
8
  /**
@@ -18,6 +18,10 @@ export declare type IUseKgSearch = {
18
18
  * 高级查询的操作符表单数据对象.
19
19
  */
20
20
  dynamicQueryOperatorModel: ComputedRef<Record<string, string>>;
21
+ /**
22
+ * 所有事件监听函数.
23
+ */
24
+ eventListeners: typeof eventListeners;
21
25
  /**
22
26
  * 界面标识.
23
27
  */
@@ -4,7 +4,7 @@ import { RuleObject } from 'ant-design-vue/es/form';
4
4
  import { ComputedRef, Ref } from 'vue';
5
5
  import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
6
6
  import { IKgVarSubmitConfigProperties, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../const';
7
- import { IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener } from './KgSubmit.event';
7
+ import { eventListeners, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener } from './KgSubmit.event';
8
8
  import { IKgSubmitStore } from './KgSubmit.store';
9
9
  export interface IUseKgSubmit {
10
10
  /**
@@ -58,6 +58,10 @@ export interface IUseKgSubmit {
58
58
  * <p>「当前按钮」的「提交表单字段」(可见的).</p>
59
59
  */
60
60
  currentVarSubmitDetailsForVisible: ComputedRef<VarSubmitDetail[] | null>;
61
+ /**
62
+ * 所有事件监听函数.
63
+ */
64
+ eventListeners: typeof eventListeners;
61
65
  /**
62
66
  * 界面标识.
63
67
  */
@@ -1,6 +1,6 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
- import { IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRowDoubleClickEventListener } from './KgTable.event';
3
+ import { eventListeners, IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRowDoubleClickEventListener } from './KgTable.event';
4
4
  import { IKgTableStore } from './KgTable.store';
5
5
  import { IKgTableRow } from './KgTable.vm';
6
6
  export interface IUseKgTable {
@@ -8,6 +8,10 @@ export interface IUseKgTable {
8
8
  * 列表数据.
9
9
  */
10
10
  datas: ComputedRef<Record<string, any>[]>;
11
+ /**
12
+ * 所有事件监听函数.
13
+ */
14
+ eventListeners: typeof eventListeners;
11
15
  /** 界面标识. */
12
16
  formID: string;
13
17
  /** @deprecated 已弃用, 请使用 {@link IUseKgTable.idKey}. */
@@ -8,7 +8,7 @@ import { type IUseKgSearch } from '../KgSearch';
8
8
  import { IUseKgSubmit } from '../KgSubmit';
9
9
  import { IUseKgTable } from '../KgTable';
10
10
  import { IUseKgVarConfig } from '../KgVarConfig';
11
- import { IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
11
+ import { eventListeners, IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
12
12
  import { IKgVarStore } from './KgVar.store';
13
13
  import { IKgProps, IKgSlots } from './KgVar.vm';
14
14
  export declare type IUseKgVar = {
@@ -41,6 +41,10 @@ export declare type IUseKgVar = {
41
41
  currentVarGridMaster: ComputedRef<VarGridMasterDTO | null>;
42
42
  /** 当前的 VarProfileMaster ID. */
43
43
  currentVarProfileMasterID: ComputedRef<string | null>;
44
+ /**
45
+ * 所有事件监听函数.
46
+ */
47
+ eventListeners: typeof eventListeners;
44
48
  /**
45
49
  * 界面标识.
46
50
  */
@@ -0,0 +1,15 @@
1
+ import { IKgEventListener, IRemoveEventListener } from '@kengic/core.core';
2
+ /**
3
+ * <p>构造事件监听.</p>
4
+ * <p>在 {@link onEventFactory} 的基础上, 支持在组件卸载时自动取消监听.</p>
5
+ *
6
+ * @param param.event 事件名称.
7
+ * @param param.id 唯一标识.
8
+ * @param param.addEventListener 添加事件监听.
9
+ * @param param.removeEventListener 移除事件监听.
10
+ */
11
+ export declare function kgOnEventFactory<E extends string, L extends IKgEventListener = any>(param: {
12
+ event: E;
13
+ eventListeners: Record<string, Record<E, Array<L>>> | any;
14
+ id?: string | undefined;
15
+ }): (listener: L, isOnce?: boolean) => IRemoveEventListener;
@@ -1,3 +1,4 @@
1
+ export * from './event.util';
1
2
  export * from './kg-auth.util';
2
3
  export * from './kg.util';
3
4
  export * from './kg-route.util';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.27.2-beta.2",
3
+ "version": "0.27.2-beta.4",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
@@ -40,7 +40,7 @@
40
40
  "@iconify/vue": "4.1.2",
41
41
  "@kengic/core.core": "0.0.1-beta.22",
42
42
  "@kengic/core.react": "0.0.2-beta.5",
43
- "@kengic/pont": "1.2.17-beta.4",
43
+ "@kengic/pont": "1.2.17-beta.5",
44
44
  "@rys-fe/vite-plugin-theme": "0.8.6",
45
45
  "@thymine/xunee": "0.4.9-beta.8",
46
46
  "@types/crypto-js": "4.1.1",