@kengic/vue 0.26.5-beta.1 → 0.26.5-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +1493 -1539
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +3 -1
- package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +25 -0
- package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +72 -0
- package/dist/src/components/KgStation/index.hooks.d.ts +2 -1
- package/dist/src/components/KgStation/index.store.d.ts +1 -14
- package/dist/src/config/index.store.d.ts +5 -5
- package/dist/src/services/http-client.d.ts +54 -19
- package/package.json +3 -6
@@ -20,6 +20,8 @@ export declare class ListQuery {
|
|
20
20
|
moddte?: string | null;
|
21
21
|
/** 短描述(ShortDescription). */
|
22
22
|
shortDsc?: string | null;
|
23
|
+
/** 短描述含列值(ShortDescriptionWithCodeValue). */
|
24
|
+
shortDscWithCodval?: string | null;
|
23
25
|
/** 顺序号(Sequence). */
|
24
26
|
srtseq?: number | null;
|
25
27
|
/** 系统定义. */
|
@@ -42,7 +44,7 @@ export declare class ListQuery {
|
|
42
44
|
* @param config 请求配置.
|
43
45
|
* @param option 请求选项.
|
44
46
|
*/
|
45
|
-
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.
|
47
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.DescriptionDTO>>;
|
46
48
|
export declare namespace List {
|
47
49
|
var method: "GET";
|
48
50
|
var url: string;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ListQuery {
|
5
|
+
/** 排序字段. */
|
6
|
+
column?: string | null;
|
7
|
+
/** 排序方式. */
|
8
|
+
order?: 'asc' | 'desc' | null;
|
9
|
+
/** 当前页数. */
|
10
|
+
pageNo?: number | null;
|
11
|
+
/** 每页条数. */
|
12
|
+
pageSize?: number | null;
|
13
|
+
constructor(obj?: ListQuery);
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* 工作站-分页列表查询
|
17
|
+
*
|
18
|
+
* @param config 请求配置.
|
19
|
+
* @param option 请求选项.
|
20
|
+
*/
|
21
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WorkstationDTO>>;
|
22
|
+
export declare namespace List {
|
23
|
+
var method: "GET";
|
24
|
+
var url: string;
|
25
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { List, ListQuery } from './List';
|
@@ -8,3 +8,4 @@ export * as VarGridMasterController from './VarGridMasterController';
|
|
8
8
|
export * as VarProfileMasterController from './VarProfileMasterController';
|
9
9
|
export * as VarVariableController from './VarVariableController';
|
10
10
|
export * as WhController from './WhController';
|
11
|
+
export * as WorkstationController from './WorkstationController';
|
@@ -104,6 +104,36 @@ export declare class DescriptionBatchQuery {
|
|
104
104
|
codeValues?: Array<string> | null;
|
105
105
|
constructor(obj?: DescriptionBatchQuery);
|
106
106
|
}
|
107
|
+
/** 描述数据传输对象(DescriptionDTO). */
|
108
|
+
export declare class DescriptionDTO {
|
109
|
+
/** 列名(CodeName). */
|
110
|
+
codnam?: string | null;
|
111
|
+
/** 列值(CodeValue). */
|
112
|
+
codval?: string | null;
|
113
|
+
/** 模块(ProjectName). */
|
114
|
+
grpNam?: string | null;
|
115
|
+
/** id */
|
116
|
+
id?: string | null;
|
117
|
+
/** 长描述(LongDescription). */
|
118
|
+
lngDsc?: string | null;
|
119
|
+
/** 语言(LocaleId). */
|
120
|
+
localeId?: string | null;
|
121
|
+
/** 修改用户编号 */
|
122
|
+
modUsrCod?: string | null;
|
123
|
+
/** 修改日期 */
|
124
|
+
moddte?: string | null;
|
125
|
+
/** 短描述(ShortDescription). */
|
126
|
+
shortDsc?: string | null;
|
127
|
+
/** 短描述含列值(ShortDescriptionWithCodeValue). */
|
128
|
+
shortDscWithCodval?: string | null;
|
129
|
+
/** 顺序号(Sequence). */
|
130
|
+
srtseq?: number | null;
|
131
|
+
/** 系统定义. */
|
132
|
+
sysDefFlg?: number | null;
|
133
|
+
/** 版本 */
|
134
|
+
version?: number | null;
|
135
|
+
constructor(obj?: DescriptionDTO);
|
136
|
+
}
|
107
137
|
/** 获取 SQL 查询结果的元数据. */
|
108
138
|
export declare class GetResultSetMetadataFromSqlQuery {
|
109
139
|
/** SQL. */
|
@@ -933,6 +963,48 @@ export declare class WhDTO {
|
|
933
963
|
whId?: string | null;
|
934
964
|
constructor(obj?: WhDTO);
|
935
965
|
}
|
966
|
+
/** 工作站区域数据传输对象 */
|
967
|
+
export declare class WorkstationAreaDTO {
|
968
|
+
/** 主键 */
|
969
|
+
id?: string | null;
|
970
|
+
/** 创建日期 */
|
971
|
+
insDt?: string | null;
|
972
|
+
/** 创建用户 */
|
973
|
+
insUsrId?: string | null;
|
974
|
+
/** 修改日期 */
|
975
|
+
modUsrId?: string | null;
|
976
|
+
/** 修改用户 */
|
977
|
+
moddte?: string | null;
|
978
|
+
/** 仓库 */
|
979
|
+
whId?: string | null;
|
980
|
+
/** 工作区 */
|
981
|
+
wrkare?: string | null;
|
982
|
+
/** 工作区描述 */
|
983
|
+
wrkareDsc?: string | null;
|
984
|
+
constructor(obj?: WorkstationAreaDTO);
|
985
|
+
}
|
986
|
+
/** 工作站数据传输对象 */
|
987
|
+
export declare class WorkstationDTO {
|
988
|
+
/** 工作站 */
|
989
|
+
devcod?: string | null;
|
990
|
+
/** 主工作区 */
|
991
|
+
hmewrkare?: string | null;
|
992
|
+
/** 主键 */
|
993
|
+
id?: string | null;
|
994
|
+
/** 创建日期 */
|
995
|
+
insDt?: string | null;
|
996
|
+
/** 创建用户 */
|
997
|
+
insUsrId?: string | null;
|
998
|
+
/** 修改日期 */
|
999
|
+
modUsrId?: string | null;
|
1000
|
+
/** 修改用户 */
|
1001
|
+
moddte?: string | null;
|
1002
|
+
/** 仓库 */
|
1003
|
+
whId?: string | null;
|
1004
|
+
/** 工作站与工作区域关系 */
|
1005
|
+
workstationAreas?: Array<WorkstationAreaDTO> | null;
|
1006
|
+
constructor(obj?: WorkstationDTO);
|
1007
|
+
}
|
936
1008
|
/**
|
937
1009
|
* 获取对象的属性名数组.
|
938
1010
|
* @param obj 对象.
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Pinia } from 'pinia';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
|
-
import {
|
3
|
+
import { WorkstationAreaDTO, WorkstationDTO } from '../../apis/WMS/models';
|
4
|
+
import { IKgStationStore } from './index.store';
|
4
5
|
export declare type IUseKgStation = {
|
5
6
|
/**
|
6
7
|
* 当前工作区.
|
@@ -1,18 +1,5 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
|
3
|
-
id?: string;
|
4
|
-
whId?: string;
|
5
|
-
devcod?: string;
|
6
|
-
devcodDsc?: string;
|
7
|
-
hmewrkare?: string;
|
8
|
-
workstationAreas?: Array<WorkstationAreaDTO>;
|
9
|
-
};
|
10
|
-
export declare type WorkstationAreaDTO = {
|
11
|
-
id?: string;
|
12
|
-
whId?: string;
|
13
|
-
wrkare?: string;
|
14
|
-
wrkareDsc?: string;
|
15
|
-
};
|
2
|
+
import { WorkstationDTO } from '../../apis/WMS/models';
|
16
3
|
export interface IUseKgStationStoreState {
|
17
4
|
/**
|
18
5
|
* 当前工作站.
|
@@ -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 {
|
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';
|
@@ -213,7 +213,7 @@ export interface IUseKgStoreState {
|
|
213
213
|
* <p>系统描述.</p>
|
214
214
|
* <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
|
215
215
|
*/
|
216
|
-
descriptionMap: Map<string, Map<string,
|
216
|
+
descriptionMap: Map<string, Map<string, DescriptionDTO>>;
|
217
217
|
i18n: any;
|
218
218
|
/**
|
219
219
|
* <p>某个系统描述是否正在查询.</p>
|
@@ -241,13 +241,13 @@ export interface IUseKgStoreGetters {
|
|
241
241
|
getDescription(): (param: {
|
242
242
|
codeName: string | null | undefined;
|
243
243
|
codeValue: string | null | undefined;
|
244
|
-
}) =>
|
244
|
+
}) => DescriptionDTO | null;
|
245
245
|
/**
|
246
246
|
* 根据 codeName 获取当前语言下的它的所有描述.
|
247
247
|
*/
|
248
248
|
getDescriptions(): (param: {
|
249
249
|
codeName: string | null | undefined;
|
250
|
-
}) => Array<
|
250
|
+
}) => Array<DescriptionDTO>;
|
251
251
|
getI18N(): Record<string, any>;
|
252
252
|
getI18n(): any;
|
253
253
|
/**
|
@@ -296,7 +296,7 @@ export interface IUseKgStoreActions {
|
|
296
296
|
*/
|
297
297
|
setDescriptions(param: {
|
298
298
|
codeName: string | null | undefined;
|
299
|
-
descriptions: Array<
|
299
|
+
descriptions: Array<DescriptionDTO>;
|
300
300
|
}): void;
|
301
301
|
setI18N(I18N: Record<string, any>): void;
|
302
302
|
setI18n(i18n: any): void;
|
@@ -22,26 +22,14 @@ interface IRequestConfig<P = {}, D = {}> extends AxiosRequestConfig<D> {
|
|
22
22
|
params?: P;
|
23
23
|
}
|
24
24
|
interface IRequestOptions {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
isReturnNativeResponse?: boolean;
|
29
|
-
joinPrefix?: boolean;
|
25
|
+
/**
|
26
|
+
* 接口地址,如果保留为空,则使用默认值
|
27
|
+
*/
|
30
28
|
apiUrl?: string;
|
31
|
-
urlPrefix?: string;
|
32
|
-
errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
|
33
|
-
successMessageMode?: 'none' | 'success' | 'error' | undefined;
|
34
|
-
joinTime?: boolean;
|
35
|
-
ignoreCancelToken?: boolean;
|
36
|
-
withToken?: boolean;
|
37
|
-
/** 是否使用模拟数据. */
|
38
|
-
mock?: boolean;
|
39
29
|
/**
|
40
|
-
*
|
41
|
-
* <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
|
42
|
-
* <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
|
30
|
+
* dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperatorModel} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperatorModel} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
|
43
31
|
*/
|
44
|
-
|
32
|
+
dayjs?: typeof dayjs;
|
45
33
|
/**
|
46
34
|
* <p>高级查询时, 对应的界面标识.</p>
|
47
35
|
*/
|
@@ -51,8 +39,55 @@ interface IRequestOptions {
|
|
51
39
|
*/
|
52
40
|
dynamicQueryKgSearchFormID?: string;
|
53
41
|
/**
|
54
|
-
*
|
42
|
+
* <p>高级查询时, 各个请求参数的高级查询操作符.</p>
|
43
|
+
* <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
|
44
|
+
* <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
|
55
45
|
*/
|
56
|
-
|
46
|
+
dynamicQueryOperatorModel?: Record<string, KG_DYNAMIC_QUERY_OPERATOR>;
|
47
|
+
/**
|
48
|
+
* 错误消息提示类型
|
49
|
+
*/
|
50
|
+
errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
|
51
|
+
/**
|
52
|
+
* 格式化请求参数时间
|
53
|
+
*/
|
54
|
+
formatDate?: boolean;
|
55
|
+
ignoreCancelToken?: boolean;
|
56
|
+
/**
|
57
|
+
* 是否返回本地响应头,需要获取响应头时使用此属性
|
58
|
+
*/
|
59
|
+
isReturnNativeResponse?: boolean;
|
60
|
+
/**
|
61
|
+
* 是否处理请求结果
|
62
|
+
*/
|
63
|
+
isTransformResponse?: boolean;
|
64
|
+
/**
|
65
|
+
* 将请求参数拼接到url
|
66
|
+
*/
|
67
|
+
joinParamsToUrl?: boolean;
|
68
|
+
/**
|
69
|
+
* Whether to join url
|
70
|
+
*/
|
71
|
+
joinPrefix?: boolean;
|
72
|
+
/**
|
73
|
+
* 是否添加时间戳
|
74
|
+
*/
|
75
|
+
joinTime?: boolean;
|
76
|
+
/**
|
77
|
+
* <p>模拟数据. 如果不为 undefined 则不会发起请求, 而是直接返回该模拟数据.</p>
|
78
|
+
*/
|
79
|
+
mock?: any;
|
80
|
+
/**
|
81
|
+
* 成功消息提示类型
|
82
|
+
*/
|
83
|
+
successMessageMode?: 'none' | 'success' | 'error' | undefined;
|
84
|
+
/**
|
85
|
+
* 请求拼接路径
|
86
|
+
*/
|
87
|
+
urlPrefix?: string;
|
88
|
+
/**
|
89
|
+
* 是否在标头中发送令牌
|
90
|
+
*/
|
91
|
+
withToken?: boolean;
|
57
92
|
}
|
58
93
|
export { setupHttpClient, kgSetupHttpClient, httpClient, type IRequestConfig, type IRequestOptions };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.26.5-beta.
|
3
|
+
"version": "0.26.5-beta.2",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
@@ -24,11 +24,8 @@
|
|
24
24
|
"publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
|
25
25
|
"------- ------------------------------------------": "",
|
26
26
|
"copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
|
27
|
-
"copy-to:luotao:smartfactory.product.wms.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts",
|
28
|
-
"copy-to:luotao:smartfactory.tyre.haohua.gantry.was-java--main": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts",
|
29
27
|
"--- ----------------------------------------------": "",
|
30
|
-
"bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
|
31
|
-
"bump-to:luotao:smartfactory.product.wms.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts"
|
28
|
+
"bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
|
32
29
|
},
|
33
30
|
"peerDependencies": {
|
34
31
|
"vue": "3.2.43"
|
@@ -43,7 +40,7 @@
|
|
43
40
|
"@iconify-icons/mdi": "1.2.48",
|
44
41
|
"@iconify-icons/ph": "1.2.5",
|
45
42
|
"@iconify/vue": "4.1.1",
|
46
|
-
"@kengic/pont": "1.2.
|
43
|
+
"@kengic/pont": "1.2.15",
|
47
44
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|
48
45
|
"@types/crypto-js": "4.1.1",
|
49
46
|
"@types/fs-extra": "9.0.13",
|