@kengic/vue 0.26.5-beta.0 → 0.26.5-beta.10

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.
Files changed (42) hide show
  1. package/dist/fit-screen-outline.7341560f.mjs +8 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +22815 -14420
  4. package/dist/one-to-one-outlined.4f97e62a.mjs +8 -0
  5. package/dist/reload-outlined.abae07b1.mjs +8 -0
  6. package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +3 -1
  7. package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +25 -0
  8. package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +1 -0
  9. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  10. package/dist/src/apis/WMS/models.d.ts +72 -0
  11. package/dist/src/components/KgAppSelect/index.store.d.ts +2 -2
  12. package/dist/src/components/KgButton/index.store.d.ts +2 -2
  13. package/dist/src/components/KgCanvas/KgCanvas.ContextMenu.d.ts +104 -0
  14. package/dist/src/components/KgCanvas/KgCanvas.d.ts +122 -0
  15. package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +35 -0
  16. package/dist/src/components/KgCanvas/index.d.ts +4 -0
  17. package/dist/src/components/KgCanvas/index.hooks.d.ts +49 -0
  18. package/dist/src/components/KgCanvas/index.store.d.ts +201 -0
  19. package/dist/src/components/KgForm/index.store.d.ts +2 -2
  20. package/dist/src/components/KgSearch/index.store.d.ts +2 -2
  21. package/dist/src/components/KgStation/KgStation.d.ts +47 -0
  22. package/dist/src/components/KgStation/index.d.ts +3 -0
  23. package/dist/src/components/KgStation/index.hooks.d.ts +29 -0
  24. package/dist/src/components/KgStation/index.store.d.ts +45 -0
  25. package/dist/src/components/KgSubmit/index.store.d.ts +2 -2
  26. package/dist/src/components/KgTable/index.store.d.ts +2 -2
  27. package/dist/src/components/KgVar/index.store.d.ts +2 -2
  28. package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +21 -12
  29. package/dist/src/components/KgWarehouse/index.hooks.d.ts +3 -4
  30. package/dist/src/components/KgWarehouse/index.store.d.ts +13 -11
  31. package/dist/src/components/index.d.ts +3 -0
  32. package/dist/src/config/index.store.d.ts +13 -5
  33. package/dist/src/consts/i18n/en.d.ts +8 -0
  34. package/dist/src/consts/i18n/es_ES.d.ts +8 -0
  35. package/dist/src/consts/i18n/fr_FR.d.ts +8 -0
  36. package/dist/src/consts/i18n/km_KH.d.ts +8 -0
  37. package/dist/src/consts/i18n/ko_KR.d.ts +8 -0
  38. package/dist/src/consts/i18n/vi_VN.d.ts +8 -0
  39. package/dist/src/consts/i18n/zh_CN.d.ts +8 -0
  40. package/dist/src/services/http-client.d.ts +54 -19
  41. package/dist/src/utils/kg.util.d.ts +3 -1
  42. package/package.json +5 -7
@@ -0,0 +1,201 @@
1
+ import { Q } from '@thymine/xunee';
2
+ import { StoreDefinition } from 'pinia';
3
+ import { Ref } from 'vue';
4
+ import { IKgEventListener } from '../../consts';
5
+ import { type IKgCanvasContextMenu } from './KgCanvas.ContextMenu';
6
+ /**
7
+ * 事件类型.
8
+ * 'onInit': 图形组件初始完成
9
+ * 'onReload': 重新加载
10
+ * 'onMouseMove': 鼠标移动
11
+ * 'onMouseEnter': 鼠标进入
12
+ * 'onMouseLeave': 鼠标离开
13
+ * 'onClick': 单击鼠标左键
14
+ * 'onRightClick': 单击鼠标右键
15
+ */
16
+ export declare type IKgCanvasEvent = 'onInit' | 'onReload' | 'onMouseMove' | 'onMouseEnter' | 'onMouseLeave' | 'onClick' | 'onRightClick';
17
+ export declare type IKgCanvasOnInitEventListenerParameter = {
18
+ /**
19
+ * Q.
20
+ */
21
+ Q: typeof Q;
22
+ /**
23
+ * 图形组件对象.
24
+ */
25
+ graph: Q.Graph;
26
+ eid: string;
27
+ };
28
+ export declare type IKgCanvasOnInitEventListener = ((param: IKgCanvasOnInitEventListenerParameter) => Promise<boolean>) & IKgEventListener;
29
+ export declare type IKgCanvasOnRightClickEventListenerParameter = {
30
+ /**
31
+ * Q.
32
+ */
33
+ Q: typeof Q;
34
+ /**
35
+ * <p>右键菜单列表.</p>
36
+ * <p>用户可以直接修改该参数的值, 从而修改此次单击右键事件弹出的右键菜单.</p>
37
+ */
38
+ contextMenus: Ref<Array<IKgCanvasContextMenu>>;
39
+ eid: string;
40
+ /**
41
+ * 图元.
42
+ */
43
+ element?: Q.Element;
44
+ /**
45
+ * 图元组件.
46
+ */
47
+ elementUI?: Q.ElementUI;
48
+ /**
49
+ * 图形组件对象.
50
+ */
51
+ graph: Q.Graph;
52
+ /**
53
+ * 图元组件.
54
+ */
55
+ ui?: Q.BaseUI;
56
+ };
57
+ export declare type IKgCanvasOnRightClickEventListener = ((param: IKgCanvasOnRightClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
58
+ export declare type IKgCanvasOnReloadEventListenerParameter = {
59
+ /**
60
+ * Q.
61
+ */
62
+ Q: typeof Q;
63
+ eid: string;
64
+ /**
65
+ * 图形组件对象.
66
+ */
67
+ graph: Q.Graph;
68
+ };
69
+ export declare type IKgCanvasOnReloadEventListener = ((param: IKgCanvasOnReloadEventListenerParameter) => Promise<boolean>) & IKgEventListener;
70
+ export declare type IKgCanvasOnMouseMoveEventListenerParameter = {
71
+ /**
72
+ * Q.
73
+ */
74
+ Q: typeof Q;
75
+ eid: string;
76
+ /**
77
+ * 图元.
78
+ */
79
+ element?: Q.Element;
80
+ /**
81
+ * 图元组件.
82
+ */
83
+ elementUI?: Q.ElementUI;
84
+ /**
85
+ * 图形组件对象.
86
+ */
87
+ graph: Q.Graph;
88
+ /**
89
+ * 图元组件.
90
+ */
91
+ ui?: Q.BaseUI;
92
+ };
93
+ export declare type IKgCanvasOnMouseMoveEventListener = ((param: IKgCanvasOnMouseMoveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
94
+ export declare type IKgCanvasOnMouseLeaveEventListenerParameter = {
95
+ /**
96
+ * Q.
97
+ */
98
+ Q: typeof Q;
99
+ eid: string;
100
+ /**
101
+ * 图元.
102
+ */
103
+ element?: Q.Element;
104
+ /**
105
+ * 图元组件.
106
+ */
107
+ elementUI?: Q.ElementUI;
108
+ /**
109
+ * 图形组件对象.
110
+ */
111
+ graph: Q.Graph;
112
+ /**
113
+ * 图元组件.
114
+ */
115
+ ui?: Q.BaseUI;
116
+ };
117
+ export declare type IKgCanvasOnMouseLeaveEventListener = ((param: IKgCanvasOnMouseLeaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
118
+ export declare type IKgCanvasOnMouseEnterEventListenerParameter = {
119
+ /**
120
+ * Q.
121
+ */
122
+ Q: typeof Q;
123
+ eid: string;
124
+ /**
125
+ * 图元.
126
+ */
127
+ element?: Q.Element;
128
+ /**
129
+ * 图元组件.
130
+ */
131
+ elementUI?: Q.ElementUI;
132
+ /**
133
+ * 图形组件对象.
134
+ */
135
+ graph: Q.Graph;
136
+ /**
137
+ * 图元组件.
138
+ */
139
+ ui?: Q.BaseUI;
140
+ };
141
+ export declare type IKgCanvasOnMouseEnterEventListener = ((param: IKgCanvasOnMouseEnterEventListenerParameter) => Promise<boolean>) & IKgEventListener;
142
+ export declare type IKgCanvasOnClickEventListenerParameter = {
143
+ /**
144
+ * Q.
145
+ */
146
+ Q: typeof Q;
147
+ eid: string;
148
+ /**
149
+ * 图元.
150
+ */
151
+ element?: Q.Element;
152
+ /**
153
+ * 图元组件.
154
+ */
155
+ elementUI?: Q.ElementUI;
156
+ /**
157
+ * 图形组件对象.
158
+ */
159
+ graph: Q.Graph;
160
+ /**
161
+ * 图元组件.
162
+ */
163
+ ui?: Q.BaseUI;
164
+ };
165
+ export declare type IKgCanvasOnClickEventListener = ((param: IKgCanvasOnClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
166
+ export declare type IKgCanvasEventListenerParameter = IKgCanvasOnInitEventListenerParameter | IKgCanvasOnRightClickEventListenerParameter | IKgCanvasOnReloadEventListenerParameter | IKgCanvasOnMouseMoveEventListenerParameter | IKgCanvasOnMouseEnterEventListenerParameter | IKgCanvasOnMouseLeaveEventListenerParameter | IKgCanvasOnClickEventListenerParameter;
167
+ export declare type IKgCanvasEventListener = IKgCanvasOnInitEventListener | IKgCanvasOnRightClickEventListener | IKgCanvasOnReloadEventListener | IKgCanvasOnMouseMoveEventListener | IKgCanvasOnMouseEnterEventListener | IKgCanvasOnMouseLeaveEventListener | IKgCanvasOnClickEventListener;
168
+ export interface IUseKgCanvasStoreState {
169
+ onClickEventListenerMap: Map<string, Array<IKgCanvasOnClickEventListener>>;
170
+ onInitEventListenerMap: Map<string, Array<IKgCanvasOnInitEventListener>>;
171
+ onMouseEnterEventListenerMap: Map<string, Array<IKgCanvasOnMouseEnterEventListener>>;
172
+ onMouseLeaveEventListenerMap: Map<string, Array<IKgCanvasOnMouseLeaveEventListener>>;
173
+ onMouseMoveEventListenerMap: Map<string, Array<IKgCanvasOnMouseMoveEventListener>>;
174
+ onReloadEventListenerMap: Map<string, Array<IKgCanvasOnReloadEventListener>>;
175
+ onRightClickEventListenerMap: Map<string, Array<IKgCanvasOnRightClickEventListener>>;
176
+ }
177
+ export interface IUseKgCanvasStoreGetters {
178
+ }
179
+ export interface IUseKgCanvasStoreActions {
180
+ /**
181
+ * 注册事件监听.
182
+ * @param event 事件名称.
183
+ * @param listener 事件监听函数.
184
+ */
185
+ addEventListener(event: IKgCanvasEvent, listener: any): void;
186
+ /**
187
+ * 触发事件.
188
+ * @param event 事件名称.
189
+ * @param param 参数.
190
+ */
191
+ emit<T = IKgCanvasEventListenerParameter>(event: IKgCanvasEvent, param?: T | null): Promise<boolean>;
192
+ /**
193
+ * 退订事件监听.
194
+ * @param event 事件名称.
195
+ * @param listener 事件监听函数.
196
+ */
197
+ removeEventListener(event: IKgCanvasEvent, listener?: any): void;
198
+ }
199
+ export declare type IUseKgCanvasStore = StoreDefinition<'KgCanvas', IUseKgCanvasStoreState, IUseKgCanvasStoreGetters, IUseKgCanvasStoreActions>;
200
+ export declare type IKgCanvasStore = ReturnType<IUseKgCanvasStore>;
201
+ export declare const useKgCanvasStore: IUseKgCanvasStore;
@@ -195,7 +195,7 @@ export interface IUseKgFormStoreActions {
195
195
  * @param event 事件名称.
196
196
  * @param listener 事件监听函数.
197
197
  */
198
- addEventListener(formID: string | null | undefined, event: IKgFormEvent, listener: IKgFormEventListener): void;
198
+ addEventListener(formID: string | null | undefined, event: IKgFormEvent, listener: any): void;
199
199
  /**
200
200
  * 清理数据.
201
201
  * @param formID 页面标识.
@@ -214,7 +214,7 @@ export interface IUseKgFormStoreActions {
214
214
  * @param event 事件名称.
215
215
  * @param listener 事件监听函数.
216
216
  */
217
- removeEventListener(formID: string | null | undefined, event: IKgFormEvent, listener?: IKgFormEventListener): void;
217
+ removeEventListener(formID: string | null | undefined, event: IKgFormEvent, listener?: any): void;
218
218
  }
219
219
  export declare type IUseKgFormStore = StoreDefinition<'KgForm', IUseKgFormStoreState, IUseKgFormStoreGetters, IUseKgFormStoreActions>;
220
220
  export declare type IKgFormStore = ReturnType<IUseKgFormStore>;
@@ -82,7 +82,7 @@ export interface IUseKgSearchStoreActions {
82
82
  * @param event 事件名称.
83
83
  * @param listener 事件监听函数.
84
84
  */
85
- addEventListener(formID: string, event: IKgSearchEvent, listener: IKgSearchEventListener): void;
85
+ addEventListener(formID: string, event: IKgSearchEvent, listener: any): void;
86
86
  /**
87
87
  * 清理数据.
88
88
  * @param formID 页面标识.
@@ -115,7 +115,7 @@ export interface IUseKgSearchStoreActions {
115
115
  * @param event 事件名称.
116
116
  * @param listener 事件监听函数.
117
117
  */
118
- removeEventListener(formID: string, event: IKgSearchEvent, listener?: IKgSearchEventListener): void;
118
+ removeEventListener(formID: string, event: IKgSearchEvent, listener?: any): void;
119
119
  setDynamicQueryOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
120
120
  /**
121
121
  * 设置表单数据.
@@ -0,0 +1,47 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgStation.less';
3
+ export declare const getProps: () => {
4
+ /**
5
+ * <p>是否隐藏.</p>
6
+ * <p>此组件需要在不同的地方使用,</p>
7
+ * <ul>
8
+ * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
9
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
10
+ * </ul>
11
+ *
12
+ * @default undefined
13
+ */
14
+ kgInvisible: PropType<boolean>;
15
+ onKgOk: PropType<() => void>;
16
+ };
17
+ export declare type KgStationProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
18
+ declare const _default: import("vue").DefineComponent<{
19
+ /**
20
+ * <p>是否隐藏.</p>
21
+ * <p>此组件需要在不同的地方使用,</p>
22
+ * <ul>
23
+ * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
24
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
25
+ * </ul>
26
+ *
27
+ * @default undefined
28
+ */
29
+ kgInvisible: PropType<boolean>;
30
+ onKgOk: PropType<() => void>;
31
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
32
+ /**
33
+ * <p>是否隐藏.</p>
34
+ * <p>此组件需要在不同的地方使用,</p>
35
+ * <ul>
36
+ * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
37
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
38
+ * </ul>
39
+ *
40
+ * @default undefined
41
+ */
42
+ kgInvisible: PropType<boolean>;
43
+ onKgOk: PropType<() => void>;
44
+ }>> & {
45
+ onKgOk?: ((...args: any[]) => any) | undefined;
46
+ }, {}>;
47
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { default as KgStation } from './KgStation';
2
+ export * from './index.hooks';
3
+ export * from './index.store';
@@ -0,0 +1,29 @@
1
+ import { Pinia } from 'pinia';
2
+ import { ComputedRef } from 'vue';
3
+ import { WorkstationAreaDTO, WorkstationDTO } from '../../apis/WMS/models';
4
+ import { IKgStationStore } from './index.store';
5
+ export declare type IUseKgStation = {
6
+ /**
7
+ * 当前工作区.
8
+ */
9
+ area: ComputedRef<WorkstationAreaDTO | null>;
10
+ /**
11
+ * 当前工作站.
12
+ */
13
+ station: ComputedRef<WorkstationDTO | null>;
14
+ /**
15
+ * 所有工作站.
16
+ */
17
+ stations: ComputedRef<IKgStationStore['getStations']>;
18
+ store: IKgStationStore;
19
+ /**
20
+ * 是否显示弹窗.
21
+ */
22
+ visible: ComputedRef<IKgStationStore['getVisible']>;
23
+ };
24
+ /**
25
+ * 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
26
+ *
27
+ * @param pinia
28
+ */
29
+ export declare function useKgStation(pinia?: Pinia): IUseKgStation;
@@ -0,0 +1,45 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { WorkstationDTO } from '../../apis/WMS/models';
3
+ export interface IUseKgStationStoreState {
4
+ /**
5
+ * 当前工作站.
6
+ */
7
+ station: WorkstationDTO | null;
8
+ /**
9
+ * 所有工作站.
10
+ */
11
+ stations: Array<WorkstationDTO> | undefined;
12
+ /**
13
+ * 是否显示弹窗.
14
+ */
15
+ visible: boolean;
16
+ }
17
+ export interface IUseKgStationStoreGetters {
18
+ getStation: WorkstationDTO | null;
19
+ getStations: Array<WorkstationDTO> | undefined;
20
+ /**
21
+ * 是否显示弹窗.
22
+ */
23
+ getVisible: boolean;
24
+ }
25
+ export interface IUseKgStationStoreActions {
26
+ /**
27
+ * 查询所有工作站.
28
+ */
29
+ requestStations(): Promise<void>;
30
+ /**
31
+ * 设置当前工作站.
32
+ *
33
+ * @param station 当前工作站.
34
+ */
35
+ setStation(station?: WorkstationDTO | null): void;
36
+ /**
37
+ * 设置是否显示弹窗.
38
+ *
39
+ * @param visible 是否显示.
40
+ */
41
+ setVisible(visible: boolean): void;
42
+ }
43
+ export declare type IUseKgStationStore = StoreDefinition<'KgStation', IUseKgStationStoreState, IUseKgStationStoreGetters, IUseKgStationStoreActions>;
44
+ export declare type IKgStationStore = ReturnType<IUseKgStationStore>;
45
+ export declare const useKgStationStore: IUseKgStationStore;
@@ -159,7 +159,7 @@ export interface IUseKgSubmitStoreActions {
159
159
  * @param event 事件名称.
160
160
  * @param listener 事件监听函数.
161
161
  */
162
- addEventListener(formID: string, event: IKgSubmitEvent, listener: IKgSubmitEventListener): void;
162
+ addEventListener(formID: string, event: IKgSubmitEvent, listener: any): void;
163
163
  /**
164
164
  * 添加一个「提交表单字段」.
165
165
  *
@@ -185,7 +185,7 @@ export interface IUseKgSubmitStoreActions {
185
185
  * @param event 事件名称.
186
186
  * @param listener 事件监听函数.
187
187
  */
188
- removeEventListener(formID: string, event: IKgSubmitEvent, listener?: IKgSubmitEventListener): void;
188
+ removeEventListener(formID: string, event: IKgSubmitEvent, listener?: any): void;
189
189
  setFormModel(formID?: string | null, model?: Record<string, any> | null): void;
190
190
  setIsLoading(formID: string, value: boolean): void;
191
191
  }
@@ -147,7 +147,7 @@ export interface IUseKgTableStoreActions {
147
147
  * @param event 事件名称.
148
148
  * @param listener 事件监听函数.
149
149
  */
150
- addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: IKgTableEventListener): void;
150
+ addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: any): void;
151
151
  /**
152
152
  * 清空表格数据.
153
153
  * @param formID 界面标识.
@@ -198,7 +198,7 @@ export interface IUseKgTableStoreActions {
198
198
  * @param event 事件名称.
199
199
  * @param listener 事件监听函数.
200
200
  */
201
- removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: IKgTableEventListener): void;
201
+ removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: any): void;
202
202
  /**
203
203
  * 设置列表数据.
204
204
  * @param param.frmId 界面标识.
@@ -151,7 +151,7 @@ export interface IUseKgVarStoreActions {
151
151
  * @param event 事件名称.
152
152
  * @param listener 事件监听函数.
153
153
  */
154
- addEventListener(formID: string | null | undefined, event: IKgVarEvent, listener: IKgVarEventListener): void;
154
+ addEventListener(formID: string | null | undefined, event: IKgVarEvent, listener: any): void;
155
155
  createVarConfigControl(formID: string | null | undefined, varConfigControl: VarConfigControl): void;
156
156
  createVarConfigDescription(formID: string | null | undefined, varConfigDescription: VarConfigDescription): void;
157
157
  createVarConfigPossibility(formID: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
@@ -205,7 +205,7 @@ export interface IUseKgVarStoreActions {
205
205
  * @param event 事件名称.
206
206
  * @param listener 事件监听函数.
207
207
  */
208
- removeEventListener(formID: string, event: IKgVarEvent, listener?: IKgVarEventListener): void;
208
+ removeEventListener(formID: string, event: IKgVarEvent, listener?: any): void;
209
209
  /**
210
210
  * 查询所有变量配置.
211
211
  *
@@ -2,10 +2,13 @@ import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgWarehouse.less';
3
3
  export declare const getProps: () => {
4
4
  /**
5
- * 是否隐藏.
6
- * 此组件需要在不同的地方使用,
7
- * 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
8
- * 在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,
5
+ * <p>是否隐藏.</p>
6
+ * <p>此组件需要在不同的地方使用,</p>
7
+ * <ul>
8
+ * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
9
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
10
+ * </ul>
11
+ *
9
12
  * @default undefined
10
13
  */
11
14
  kgInvisible: PropType<boolean>;
@@ -14,20 +17,26 @@ export declare const getProps: () => {
14
17
  export declare type IKgWarehouseProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
15
18
  declare const _default: import("vue").DefineComponent<{
16
19
  /**
17
- * 是否隐藏.
18
- * 此组件需要在不同的地方使用,
19
- * 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
20
- * 在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,
20
+ * <p>是否隐藏.</p>
21
+ * <p>此组件需要在不同的地方使用,</p>
22
+ * <ul>
23
+ * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
24
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
25
+ * </ul>
26
+ *
21
27
  * @default undefined
22
28
  */
23
29
  kgInvisible: PropType<boolean>;
24
30
  onKgOk: PropType<() => void>;
25
31
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
26
32
  /**
27
- * 是否隐藏.
28
- * 此组件需要在不同的地方使用,
29
- * 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
30
- * 在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,
33
+ * <p>是否隐藏.</p>
34
+ * <p>此组件需要在不同的地方使用,</p>
35
+ * <ul>
36
+ * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
37
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
38
+ * </ul>
39
+ *
31
40
  * @default undefined
32
41
  */
33
42
  kgInvisible: PropType<boolean>;
@@ -1,6 +1,5 @@
1
1
  import { Pinia } from 'pinia';
2
2
  import { ComputedRef } from 'vue';
3
- import { WhDTO } from '../../apis/WMS/models';
4
3
  import { IRemoveEventListenerHandler } from '../../consts';
5
4
  import { IKgWarehouseMountedEventListener, IKgWarehouseStore } from './index.store';
6
5
  export declare type IUseKgWarehouse = {
@@ -12,13 +11,13 @@ export declare type IUseKgWarehouse = {
12
11
  onMounted(listener: IKgWarehouseMountedEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
13
12
  store: IKgWarehouseStore;
14
13
  /**
15
- * 弹窗当前是否显示.
14
+ * 是否显示弹窗.
16
15
  */
17
- visible: ComputedRef<boolean>;
16
+ visible: ComputedRef<IKgWarehouseStore['getVisible']>;
18
17
  /**
19
18
  * 当前仓库.
20
19
  */
21
- warehouse: ComputedRef<WhDTO | null>;
20
+ warehouse: ComputedRef<IKgWarehouseStore['getWarehouse']>;
22
21
  };
23
22
  /**
24
23
  * 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
@@ -9,19 +9,19 @@ export declare type IKgWarehouseEvent = 'mounted';
9
9
  export declare type IKgWarehouseMountedEventListener = (() => void) & IKgEventListener;
10
10
  export declare type IKgWarehouseEventListener = IKgWarehouseMountedEventListener;
11
11
  export interface IUseKgWarehouseStoreState {
12
+ mountedListeners: Array<IKgWarehouseMountedEventListener>;
12
13
  /**
13
- * 弹窗当前是否显示.
14
+ * 是否显示弹窗.
14
15
  */
15
16
  visible: boolean;
16
17
  /**
17
18
  * 当前仓库.
18
19
  */
19
20
  warehouse: WhDTO | null;
20
- mountedListeners: Array<IKgWarehouseMountedEventListener>;
21
21
  }
22
22
  export interface IUseKgWarehouseStoreGetters {
23
23
  /**
24
- * 弹窗当前是否显示.
24
+ * 是否显示弹窗.
25
25
  */
26
26
  getVisible: boolean;
27
27
  getWarehouse: WhDTO | null;
@@ -32,13 +32,7 @@ export interface IUseKgWarehouseStoreActions {
32
32
  * @param event 事件名称.
33
33
  * @param listener 事件监听函数.
34
34
  */
35
- addEventListener(event: IKgWarehouseEvent, listener: IKgWarehouseEventListener): void;
36
- /**
37
- * 退订事件监听.
38
- * @param event 事件名称.
39
- * @param listener 事件监听函数.
40
- */
41
- removeEventListener(event: IKgWarehouseEvent, listener?: IKgWarehouseEventListener): void;
35
+ addEventListener(event: IKgWarehouseEvent, listener: any): void;
42
36
  /**
43
37
  * 触发事件.
44
38
  * @param event 事件名称.
@@ -46,12 +40,20 @@ export interface IUseKgWarehouseStoreActions {
46
40
  */
47
41
  emit(event: IKgWarehouseEvent, args?: any | null): void;
48
42
  /**
49
- * 设置弹窗是否显示.
43
+ * 退订事件监听.
44
+ * @param event 事件名称.
45
+ * @param listener 事件监听函数.
46
+ */
47
+ removeEventListener(event: IKgWarehouseEvent, listener?: any): void;
48
+ /**
49
+ * 设置是否显示弹窗.
50
+ *
50
51
  * @param visible 是否显示.
51
52
  */
52
53
  setVisible(visible: boolean): void;
53
54
  /**
54
55
  * 设置当前仓库.
56
+ *
55
57
  * @param warehouse 当前仓库.
56
58
  */
57
59
  setWarehouse(warehouse?: WhDTO | null): void;
@@ -1,10 +1,12 @@
1
1
  export * from './KgAppSelect';
2
+ export * from './KgCanvas';
2
3
  export * from './KgImage';
3
4
  export * from './KgLayoutHeader';
4
5
  export * from './KgModal';
5
6
  export * from './KgProgressA';
6
7
  export * from './KgResizable';
7
8
  export * from './KgSearch';
9
+ export * from './KgStation';
8
10
  export * from './KgSubmit';
9
11
  export * from './KgTable';
10
12
  export * from './KgVar';
@@ -16,3 +18,4 @@ export { default as KgButton } from './KgButton';
16
18
  export * from './KgForm';
17
19
  export { default as KgForm } from './KgForm';
18
20
  export * from './KgForm.Item';
21
+ export { Q } from '@thymine/xunee';
@@ -1,7 +1,7 @@
1
1
  import { StoreDefinition } from 'pinia';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { Router } from 'vue-router';
4
- import { Description, SysUserWarehouseDTO } from '../apis/WMS/models';
4
+ import { DescriptionDTO, SysUserWarehouseDTO } from '../apis/WMS/models';
5
5
  import { KG_APP, Menu } from '../consts';
6
6
  import { LocaleType } from '../project/types/config';
7
7
  import { UserInfo } from '../project/types/store';
@@ -121,6 +121,14 @@ export declare type IKgOption = {
121
121
  /** 默认的仓库编码, 只有在 {@link IKgOption.KgWarehouse.on} 为 false 时才生效. */
122
122
  defaultWarehouseID?: string;
123
123
  };
124
+ /** 工作站选择. */
125
+ KgStation?: {
126
+ /**
127
+ * 是否启用功能.
128
+ * @default true
129
+ */
130
+ isOn?: boolean;
131
+ };
124
132
  /** 模块首页地址. */
125
133
  appIndex?: {
126
134
  /** 默认为 '/wms/data-manager/index'. */
@@ -205,7 +213,7 @@ export interface IUseKgStoreState {
205
213
  * <p>系统描述.</p>
206
214
  * <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
207
215
  */
208
- descriptionMap: Map<string, Map<string, Description>>;
216
+ descriptionMap: Map<string, Map<string, DescriptionDTO>>;
209
217
  i18n: any;
210
218
  /**
211
219
  * <p>某个系统描述是否正在查询.</p>
@@ -233,13 +241,13 @@ export interface IUseKgStoreGetters {
233
241
  getDescription(): (param: {
234
242
  codeName: string | null | undefined;
235
243
  codeValue: string | null | undefined;
236
- }) => Description | null;
244
+ }) => DescriptionDTO | null;
237
245
  /**
238
246
  * 根据 codeName 获取当前语言下的它的所有描述.
239
247
  */
240
248
  getDescriptions(): (param: {
241
249
  codeName: string | null | undefined;
242
- }) => Array<Description>;
250
+ }) => Array<DescriptionDTO>;
243
251
  getI18N(): Record<string, any>;
244
252
  getI18n(): any;
245
253
  /**
@@ -288,7 +296,7 @@ export interface IUseKgStoreActions {
288
296
  */
289
297
  setDescriptions(param: {
290
298
  codeName: string | null | undefined;
291
- descriptions: Array<Description>;
299
+ descriptions: Array<DescriptionDTO>;
292
300
  }): void;
293
301
  setI18N(I18N: Record<string, any>): void;
294
302
  setI18n(i18n: any): void;
@@ -96,6 +96,14 @@ declare const _default: {
96
96
  formTitle: string;
97
97
  pleaseSelectVarProfileMaster: string;
98
98
  };
99
+ KgStation: {
100
+ reloadMessage: string;
101
+ selectStation: string;
102
+ station: string;
103
+ title: string;
104
+ workArea: string;
105
+ workStation: string;
106
+ };
99
107
  KgTable: {
100
108
  apiNotSupportDynamicQuery: string;
101
109
  column: string;
@@ -96,6 +96,14 @@ declare const _default: {
96
96
  formTitle: string;
97
97
  pleaseSelectVarProfileMaster: string;
98
98
  };
99
+ KgStation: {
100
+ reloadMessage: string;
101
+ selectStation: string;
102
+ station: string;
103
+ title: string;
104
+ workArea: string;
105
+ workStation: string;
106
+ };
99
107
  KgTable: {
100
108
  apiNotSupportDynamicQuery: string;
101
109
  column: string;