@kengic/vue 0.15.2-beta.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +1861 -1728
- package/dist/src/apis/WMS/models.d.ts +20 -0
- package/dist/src/components/KgVar/index.store.d.ts +1 -1
- package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +9 -3
- package/dist/src/components/KgWarehouse/index.store.d.ts +8 -0
- package/dist/src/config/index.store.d.ts +15 -1
- package/dist/src/consts/index.d.ts +11 -1
- package/dist/src/consts/index.vm.d.ts +2 -2
- package/dist/src/utils/kg-route.util.d.ts +8 -2
- package/package.json +12 -15
@@ -49,6 +49,26 @@ export declare class IPage<T0> {
|
|
49
49
|
total?: number | null;
|
50
50
|
constructor(obj?: IPage<T0>);
|
51
51
|
}
|
52
|
+
/** 用户仓库. */
|
53
|
+
export declare class SysUserWarehouseDTO {
|
54
|
+
/** 是否是默认的仓库. */
|
55
|
+
default_flag?: number | null;
|
56
|
+
/** 主键. */
|
57
|
+
id?: string | null;
|
58
|
+
/** 创建日期. */
|
59
|
+
ins_dt?: string | null;
|
60
|
+
/** 创建用户. */
|
61
|
+
ins_usr_id?: string | null;
|
62
|
+
/** 更新用户. */
|
63
|
+
mod_usr_id?: string | null;
|
64
|
+
/** 更新日期. */
|
65
|
+
moddte?: string | null;
|
66
|
+
/** 用户ID. */
|
67
|
+
user_id?: string | null;
|
68
|
+
/** 仓库编号. */
|
69
|
+
wh_id?: string | null;
|
70
|
+
constructor(obj?: SysUserWarehouseDTO);
|
71
|
+
}
|
52
72
|
/** 更新表格视图. */
|
53
73
|
export declare class UpdateVarGridMasterQuery {
|
54
74
|
/** 定制级别(CustomLevel). */
|
@@ -240,7 +240,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
240
240
|
setIsUpdatingRequesting(frm_id: string, value: boolean): void;
|
241
241
|
setIsCopyingRequesting(frm_id: string, value: boolean): void;
|
242
242
|
setIsDeletingRequesting(frm_id: string, deleting: boolean): void;
|
243
|
-
setIsOtherRequesting(frm_id: string,
|
243
|
+
setIsOtherRequesting(frm_id: string, value: boolean): void;
|
244
244
|
/**
|
245
245
|
* 设置当前选择的查询条件的 ID.
|
246
246
|
* @param frm_id 界面标识.
|
@@ -3,7 +3,9 @@ import './KgWarehouse.less';
|
|
3
3
|
export declare const getProps: () => {
|
4
4
|
/**
|
5
5
|
* 是否隐藏.
|
6
|
-
* 该组件需要在不同的地方使用,
|
6
|
+
* 该组件需要在不同的地方使用,
|
7
|
+
* 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
|
8
|
+
* 在有的地方, 不需要显示该组件, 用户通过参数控制是否打开弹窗, 比如登录页,
|
7
9
|
* @default undefined
|
8
10
|
*/
|
9
11
|
kgInvisible: PropType<boolean>;
|
@@ -13,7 +15,9 @@ export declare type IKgWarehouseProps = Partial<ExtractPropTypes<ReturnType<type
|
|
13
15
|
declare const _default: import("vue").DefineComponent<{
|
14
16
|
/**
|
15
17
|
* 是否隐藏.
|
16
|
-
* 该组件需要在不同的地方使用,
|
18
|
+
* 该组件需要在不同的地方使用,
|
19
|
+
* 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
|
20
|
+
* 在有的地方, 不需要显示该组件, 用户通过参数控制是否打开弹窗, 比如登录页,
|
17
21
|
* @default undefined
|
18
22
|
*/
|
19
23
|
kgInvisible: PropType<boolean>;
|
@@ -21,7 +25,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
25
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
22
26
|
/**
|
23
27
|
* 是否隐藏.
|
24
|
-
* 该组件需要在不同的地方使用,
|
28
|
+
* 该组件需要在不同的地方使用,
|
29
|
+
* 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
|
30
|
+
* 在有的地方, 不需要显示该组件, 用户通过参数控制是否打开弹窗, 比如登录页,
|
25
31
|
* @default undefined
|
26
32
|
*/
|
27
33
|
kgInvisible: PropType<boolean>;
|
@@ -38,7 +38,15 @@ export declare type IKgWarehouseStoreDefinition = StoreDefinition<'KgWarehouse',
|
|
38
38
|
* @param args 数据.
|
39
39
|
*/
|
40
40
|
emit(event: IKgWarehouseEvent, args?: any | null): void;
|
41
|
+
/**
|
42
|
+
* 显示或者隐藏弹窗.
|
43
|
+
* @param visible 是否显示.
|
44
|
+
*/
|
41
45
|
setVisible(visible: boolean): void;
|
46
|
+
/**
|
47
|
+
* 设置选择的仓库.
|
48
|
+
* @param warehouse 选择的仓库.
|
49
|
+
*/
|
42
50
|
setWarehouse(warehouse?: WhDTO | null): void;
|
43
51
|
}>;
|
44
52
|
export declare type IKgWarehouseStore = ReturnType<IKgWarehouseStoreDefinition>;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { Pinia, StoreDefinition } from 'pinia';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
3
|
import { Router } from 'vue-router';
|
4
|
+
import { SysUserWarehouseDTO } from '../apis/WMS/models';
|
4
5
|
import { IKgLocale, KG_APP, Menu } from '../consts';
|
5
6
|
export declare type IKgStateOption = {
|
6
|
-
/**
|
7
|
+
/** 模块首页地址. */
|
7
8
|
appIndex?: {
|
8
9
|
/** 默认为 '/wms/data-manager/index'. */
|
9
10
|
[KG_APP.WMS_DATA_MANAGER]?: string;
|
@@ -14,6 +15,17 @@ export declare type IKgStateOption = {
|
|
14
15
|
/** 默认为 '/sys/index'. */
|
15
16
|
[KG_APP.SYS]?: string;
|
16
17
|
};
|
18
|
+
/** 模块标题. */
|
19
|
+
appTitle?: {
|
20
|
+
/** 默认为 '数据管理'. */
|
21
|
+
[KG_APP.WMS_DATA_MANAGER]?: string;
|
22
|
+
/** 默认为 '仓库管理'. */
|
23
|
+
[KG_APP.WMS_BUSINESS_MANAGER]?: string;
|
24
|
+
/** 默认为 'WCS'. */
|
25
|
+
[KG_APP.WCS]?: string;
|
26
|
+
/** 默认为 '系统配置'. */
|
27
|
+
[KG_APP.SYS]?: string;
|
28
|
+
};
|
17
29
|
KgModal?: {
|
18
30
|
/** 拖拽移动. */
|
19
31
|
drag?: {
|
@@ -99,6 +111,7 @@ interface UserState {
|
|
99
111
|
userInfo: UserInfo | null;
|
100
112
|
token?: string;
|
101
113
|
roleList: any[];
|
114
|
+
userWarehouses: SysUserWarehouseDTO[];
|
102
115
|
sessionTimeout?: boolean;
|
103
116
|
}
|
104
117
|
interface AuthItem {
|
@@ -143,6 +156,7 @@ export declare type IKgStoreDefinition = StoreDefinition<'Kg', IKgState, {
|
|
143
156
|
getUseUserStore(): StoreDefinition<string, UserState, {
|
144
157
|
getToken(): string;
|
145
158
|
getRoleList(): any[];
|
159
|
+
getUserWarehouses(): SysUserWarehouseDTO[];
|
146
160
|
getSessionTimeout(): boolean;
|
147
161
|
getUserInfo(): UserInfo;
|
148
162
|
}, {}> | null;
|
@@ -230,5 +230,15 @@ export declare enum KG_HTTP_HEADERS {
|
|
230
230
|
/** 拼接后的查询 SQL: ORDER BY. */
|
231
231
|
KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql"
|
232
232
|
}
|
233
|
-
/**
|
233
|
+
/** 特殊属性:请求返回的原始响应数据. */
|
234
234
|
export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
|
235
|
+
/** 模块菜单的临时ID:数据管理. */
|
236
|
+
export declare const KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER";
|
237
|
+
/** 模块菜单的临时ID:仓库管理. */
|
238
|
+
export declare const KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER";
|
239
|
+
/** 模块菜单的临时ID:WCS. */
|
240
|
+
export declare const KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS";
|
241
|
+
/** 模块菜单的临时ID:系统配置. */
|
242
|
+
export declare const KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS";
|
243
|
+
/** 模块菜单的临时ID:PDA. */
|
244
|
+
export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
|
@@ -10,10 +10,10 @@ export declare type IKgEventCb = {
|
|
10
10
|
/** 菜单. */
|
11
11
|
export interface Menu {
|
12
12
|
id: string;
|
13
|
-
app: string;
|
13
|
+
app: string | null;
|
14
14
|
name: string;
|
15
15
|
title: string;
|
16
|
-
path
|
16
|
+
path?: string;
|
17
17
|
icon?: string;
|
18
18
|
hideMenu?: boolean;
|
19
19
|
children?: Menu[];
|
@@ -14,10 +14,16 @@ export declare class KgRouteUtil {
|
|
14
14
|
static getMenuByPath(menus: Array<Menu>, path: string): Menu | null;
|
15
15
|
/**
|
16
16
|
* 翻译菜单标题.
|
17
|
-
* @param menus 菜单列表,
|
17
|
+
* @param menus 菜单列表, 树形结构.
|
18
18
|
* @param titleKey 标题的属性名, 即要将哪个属性作为菜单的标题.
|
19
19
|
*/
|
20
|
-
static translateMenus(menus
|
20
|
+
static translateMenus(menus: Array<Menu> | null | undefined, titleKey?: string): Array<Menu>;
|
21
|
+
/**
|
22
|
+
* 转换菜单列表.
|
23
|
+
* 1. 根据模块分组,
|
24
|
+
* @param menus 菜单列表, 树形结构.
|
25
|
+
*/
|
26
|
+
static transformMenus(menus: Array<Menu> | null | undefined): Array<Menu>;
|
21
27
|
/**
|
22
28
|
* 判断某个路径是否属于某个模块.
|
23
29
|
* @param path 路径.
|
package/package.json
CHANGED
@@ -1,31 +1,28 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.16.1",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
|
-
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
7
6
|
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
8
7
|
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
9
8
|
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
10
9
|
"publish:all:major": "npm run bump-version:major && npm run publish:all",
|
11
|
-
"
|
12
|
-
"bump-to:luotao.c.wms-vue3": "npm run switch-node-version && tsx scripts/bump-to.luotao.c.wms-vue3.ts",
|
13
|
-
"copy-to:luotao.c.wms-vue3": "npm run build:dev && tsx scripts/copy-to.luotao.c.wms-vue3.ts",
|
14
|
-
"bump-to:luotao.c.wms-vue3:focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.c.wms-vue3.focus.ts",
|
15
|
-
"copy-to:luotao.c.wms-vue3:focus": "npm run build:dev && tsx scripts/copy-to.luotao.c.wms-vue3.focus.ts",
|
16
|
-
"--------------------- D": "",
|
17
|
-
"bump-to:luotao.wms-vue3": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
|
18
|
-
"copy-to:luotao.wms-vue3": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
|
19
|
-
"bump-to:luotao.wms-vue3:focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
|
20
|
-
"copy-to:luotao.wms-vue3:focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
|
21
|
-
"--------------------": "",
|
22
|
-
"switch-node-version": "node scripts/switch-node-version.mjs --experimental-default-type=module",
|
23
|
-
"cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
|
10
|
+
"--------------------------------------------------": "",
|
24
11
|
"gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
12
|
+
"--- ----------------------------------------------": "",
|
13
|
+
"bump-to:luotao.wms-vue3--dev-1.0": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
|
14
|
+
"copy-to:luotao.wms-vue3--dev-1.0": "npm run build && tsx scripts/copy-to.luotao.wms-vue3.ts",
|
15
|
+
"bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
|
16
|
+
"copy-to:luotao.wms-vue3--focus": "npm run build && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
|
17
|
+
"- ------------------------------------------------": "",
|
18
|
+
"cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
|
19
|
+
"switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
|
20
|
+
"-- -----------------------------------------------": "",
|
25
21
|
"bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
|
26
22
|
"bump-version:major": "npm run switch-node-version && tsx scripts/bump.ts major",
|
27
23
|
"bump-version:minor": "npm run switch-node-version && tsx scripts/bump.ts minor",
|
28
24
|
"bump-version:patch": "npm run switch-node-version && tsx scripts/bump.ts patch",
|
25
|
+
"---- ---------------------------------------------": "",
|
29
26
|
"publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
|
30
27
|
"publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
31
28
|
},
|