@kengic/vue 0.16.0 → 0.16.2-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +1215 -1182
- 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 +3 -0
- package/dist/src/consts/index.d.ts +6 -1
- package/dist/src/utils/kg.util.d.ts +1 -0
- 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,6 +1,7 @@
|
|
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
|
/** 模块首页地址. */
|
@@ -110,6 +111,7 @@ interface UserState {
|
|
110
111
|
userInfo: UserInfo | null;
|
111
112
|
token?: string;
|
112
113
|
roleList: any[];
|
114
|
+
userWarehouses: SysUserWarehouseDTO[];
|
113
115
|
sessionTimeout?: boolean;
|
114
116
|
}
|
115
117
|
interface AuthItem {
|
@@ -154,6 +156,7 @@ export declare type IKgStoreDefinition = StoreDefinition<'Kg', IKgState, {
|
|
154
156
|
getUseUserStore(): StoreDefinition<string, UserState, {
|
155
157
|
getToken(): string;
|
156
158
|
getRoleList(): any[];
|
159
|
+
getUserWarehouses(): SysUserWarehouseDTO[];
|
157
160
|
getSessionTimeout(): boolean;
|
158
161
|
getUserInfo(): UserInfo;
|
159
162
|
}, {}> | null;
|
@@ -228,7 +228,12 @@ export declare enum KG_HTTP_HEADERS {
|
|
228
228
|
/** 拼接后的查询 SQL: WHERE. */
|
229
229
|
KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql",
|
230
230
|
/** 拼接后的查询 SQL: ORDER BY. */
|
231
|
-
KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql"
|
231
|
+
KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql",
|
232
|
+
/**
|
233
|
+
* 高级查询时, 每个查询字段的操作符(=,>,<...).
|
234
|
+
* 是一个 JSON 字符串, 由后端进行解析.
|
235
|
+
*/
|
236
|
+
KG_QUERY_OPERATOR = "Kg-Query-Operator"
|
232
237
|
}
|
233
238
|
/** 特殊属性:请求返回的原始响应数据. */
|
234
239
|
export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
|
@@ -39,6 +39,7 @@ export declare class KgUtil {
|
|
39
39
|
*/
|
40
40
|
static parseParams(params: Record<string, any> | null | undefined, formID?: string | null, $dayjs?: typeof dayjs): Record<string, any>;
|
41
41
|
/**
|
42
|
+
* <p>获取高级查询的各个请求头的值.</p>
|
42
43
|
* <p>处理查询参数, 最终拼接为一个 SQL 格式如下: `WHERE ... ORDER BY ...`.</p>
|
43
44
|
* <p>
|
44
45
|
* 参数 formID 和 operators 只能其中一个传值.
|
package/package.json
CHANGED
@@ -1,31 +1,28 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.16.0",
|
3
|
+
"version": "0.16.2-beta.0",
|
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
|
-
"cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
|
23
|
-
"switch-node-version": "node scripts/switch-node-version.mjs --experimental-default-type=module",
|
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
|
},
|