@kengic/uni 0.3.3-beta.0 → 0.3.3
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.
- package/dist/api/WMS/Controllers/LoginController/Logout.ts +28 -28
- package/dist/api/WMS/Controllers/LoginController/index.ts +1 -1
- package/dist/api/WMS/Controllers/WhController/ListVO.ts +89 -89
- package/dist/api/WMS/Controllers/WhController/index.ts +1 -1
- package/dist/api/WMS/Controllers/index.ts +2 -2
- package/dist/api/WMS/index.ts +2 -2
- package/dist/api/WMS/models.ts +189 -189
- package/dist/api/api.ts +1 -1
- package/dist/api/def.ts +1 -1
- package/dist/api/index.ts +2 -2
- package/dist/component/KgWarehouse/KgWarehouse.vue +83 -0
- package/dist/component/KgWarehouse/index.hooks.ts +20 -0
- package/dist/component/KgWarehouse/index.store.ts +46 -0
- package/dist/component/KgWarehouse/index.ts +4 -0
- package/dist/component/index.ts +1 -0
- package/dist/index.ts +2 -0
- package/dist/service/http-client.ts +6 -1
- package/dist/store/app.store.ts +62 -62
- package/dist/uni/uni-ui/README.md +1 -0
- package/dist/uni/uni-ui/uni-popup/popup.js +1 -1
- package/dist/uni/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +249 -252
- package/dist/util/index.ts +1 -0
- package/dist/util/kg.util.ts +72 -0
- package/package.json +4 -5
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
// noinspection ES6UnusedImports
|
|
2
|
-
|
|
3
|
-
import { httpClient, IRequestConfig, IRequestOptions } from '../../../../service';
|
|
4
|
-
import * as DEF from '../../../def';
|
|
5
|
-
import { keys } from '../../models';
|
|
6
|
-
|
|
7
|
-
/** 请求参数. */
|
|
8
|
-
export class LogoutQuery {}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* 退出登录.
|
|
12
|
-
*
|
|
13
|
-
* @param config 请求配置.
|
|
14
|
-
* @param option 请求选项.
|
|
15
|
-
*/
|
|
16
|
-
export function Logout(config?: IRequestConfig<LogoutQuery, {}>, option?: IRequestOptions): Promise<Record<any, any>> {
|
|
17
|
-
return httpClient().request(
|
|
18
|
-
{
|
|
19
|
-
method: Logout.method,
|
|
20
|
-
url: `${option?.mock ? '/mock' : ''}${Logout.url}`,
|
|
21
|
-
...(config ?? {}),
|
|
22
|
-
},
|
|
23
|
-
option,
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
Logout.method = 'GET' as const;
|
|
28
|
-
Logout.url = '/sys/logout';
|
|
1
|
+
// noinspection ES6UnusedImports
|
|
2
|
+
|
|
3
|
+
import { httpClient, IRequestConfig, IRequestOptions } from '../../../../service';
|
|
4
|
+
import * as DEF from '../../../def';
|
|
5
|
+
import { keys } from '../../models';
|
|
6
|
+
|
|
7
|
+
/** 请求参数. */
|
|
8
|
+
export class LogoutQuery {}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 退出登录.
|
|
12
|
+
*
|
|
13
|
+
* @param config 请求配置.
|
|
14
|
+
* @param option 请求选项.
|
|
15
|
+
*/
|
|
16
|
+
export function Logout(config?: IRequestConfig<LogoutQuery, {}>, option?: IRequestOptions): Promise<Record<any, any>> {
|
|
17
|
+
return httpClient().request(
|
|
18
|
+
{
|
|
19
|
+
method: Logout.method,
|
|
20
|
+
url: `${option?.mock ? '/mock' : ''}${Logout.url}`,
|
|
21
|
+
...(config ?? {}),
|
|
22
|
+
},
|
|
23
|
+
option,
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
Logout.method = 'GET' as const;
|
|
28
|
+
Logout.url = '/sys/logout';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Logout, LogoutQuery } from './Logout';
|
|
1
|
+
export { Logout, LogoutQuery } from './Logout';
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
// noinspection ES6UnusedImports
|
|
2
|
-
|
|
3
|
-
import { httpClient, IRequestConfig, IRequestOptions } from '../../../../service';
|
|
4
|
-
import * as DEF from '../../../def';
|
|
5
|
-
import { keys } from '../../models';
|
|
6
|
-
|
|
7
|
-
/** 请求参数. */
|
|
8
|
-
export class ListVOQuery {
|
|
9
|
-
/** 是否活动 */
|
|
10
|
-
public activeFlg?: number | null;
|
|
11
|
-
/** 地址编号 */
|
|
12
|
-
public adrId?: string | null;
|
|
13
|
-
/** adrnam */
|
|
14
|
-
public adrnam?: string | null;
|
|
15
|
-
/** 默认仓库 */
|
|
16
|
-
public defWhFlg?: number | null;
|
|
17
|
-
/** 主键. */
|
|
18
|
-
public id?: string | null;
|
|
19
|
-
/** 所属地/国编号 */
|
|
20
|
-
public orgcod?: string | null;
|
|
21
|
-
/** 永久调整托盘 */
|
|
22
|
-
public permAdjLod?: string | null;
|
|
23
|
-
/** 永久调整箱 */
|
|
24
|
-
public permAdjSub?: string | null;
|
|
25
|
-
/** 永久创建托盘 */
|
|
26
|
-
public permCreLod?: string | null;
|
|
27
|
-
/** 永久创建箱 */
|
|
28
|
-
public permCreSub?: string | null;
|
|
29
|
-
/** 仓库名称. */
|
|
30
|
-
public whDsc?: string | null;
|
|
31
|
-
/** 仓库编号 */
|
|
32
|
-
public whId?: string | null;
|
|
33
|
-
/** 排序字段. */
|
|
34
|
-
public column?: string | null;
|
|
35
|
-
/** 排序方式. */
|
|
36
|
-
public order?: 'asc' | 'desc' | null;
|
|
37
|
-
/** 当前页数. */
|
|
38
|
-
public pageNo?: number | null;
|
|
39
|
-
/** 每页条数. */
|
|
40
|
-
public pageSize?: number | null;
|
|
41
|
-
|
|
42
|
-
public constructor(obj?: ListVOQuery) {
|
|
43
|
-
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
44
|
-
switch (key) {
|
|
45
|
-
case 'activeFlg':
|
|
46
|
-
case 'adrId':
|
|
47
|
-
case 'adrnam':
|
|
48
|
-
case 'defWhFlg':
|
|
49
|
-
case 'id':
|
|
50
|
-
case 'orgcod':
|
|
51
|
-
case 'permAdjLod':
|
|
52
|
-
case 'permAdjSub':
|
|
53
|
-
case 'permCreLod':
|
|
54
|
-
case 'permCreSub':
|
|
55
|
-
case 'whDsc':
|
|
56
|
-
case 'whId':
|
|
57
|
-
case 'column':
|
|
58
|
-
case 'order':
|
|
59
|
-
case 'pageNo':
|
|
60
|
-
case 'pageSize':
|
|
61
|
-
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
62
|
-
break;
|
|
63
|
-
default:
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* wh-分页列表查询VO
|
|
72
|
-
wh-分页列表查询VO
|
|
73
|
-
*
|
|
74
|
-
* @param config 请求配置.
|
|
75
|
-
* @param option 请求选项.
|
|
76
|
-
*/
|
|
77
|
-
export function ListVO(config?: IRequestConfig<ListVOQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WhDTO>> {
|
|
78
|
-
return httpClient().request(
|
|
79
|
-
{
|
|
80
|
-
method: ListVO.method,
|
|
81
|
-
url: `${option?.mock ? '/mock' : ''}${ListVO.url}`,
|
|
82
|
-
...(config ?? {}),
|
|
83
|
-
},
|
|
84
|
-
option,
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
ListVO.method = 'GET' as const;
|
|
89
|
-
ListVO.url = '/wh/wh/listVO';
|
|
1
|
+
// noinspection ES6UnusedImports
|
|
2
|
+
|
|
3
|
+
import { httpClient, IRequestConfig, IRequestOptions } from '../../../../service';
|
|
4
|
+
import * as DEF from '../../../def';
|
|
5
|
+
import { keys } from '../../models';
|
|
6
|
+
|
|
7
|
+
/** 请求参数. */
|
|
8
|
+
export class ListVOQuery {
|
|
9
|
+
/** 是否活动 */
|
|
10
|
+
public activeFlg?: number | null;
|
|
11
|
+
/** 地址编号 */
|
|
12
|
+
public adrId?: string | null;
|
|
13
|
+
/** adrnam */
|
|
14
|
+
public adrnam?: string | null;
|
|
15
|
+
/** 默认仓库 */
|
|
16
|
+
public defWhFlg?: number | null;
|
|
17
|
+
/** 主键. */
|
|
18
|
+
public id?: string | null;
|
|
19
|
+
/** 所属地/国编号 */
|
|
20
|
+
public orgcod?: string | null;
|
|
21
|
+
/** 永久调整托盘 */
|
|
22
|
+
public permAdjLod?: string | null;
|
|
23
|
+
/** 永久调整箱 */
|
|
24
|
+
public permAdjSub?: string | null;
|
|
25
|
+
/** 永久创建托盘 */
|
|
26
|
+
public permCreLod?: string | null;
|
|
27
|
+
/** 永久创建箱 */
|
|
28
|
+
public permCreSub?: string | null;
|
|
29
|
+
/** 仓库名称. */
|
|
30
|
+
public whDsc?: string | null;
|
|
31
|
+
/** 仓库编号 */
|
|
32
|
+
public whId?: string | null;
|
|
33
|
+
/** 排序字段. */
|
|
34
|
+
public column?: string | null;
|
|
35
|
+
/** 排序方式. */
|
|
36
|
+
public order?: 'asc' | 'desc' | null;
|
|
37
|
+
/** 当前页数. */
|
|
38
|
+
public pageNo?: number | null;
|
|
39
|
+
/** 每页条数. */
|
|
40
|
+
public pageSize?: number | null;
|
|
41
|
+
|
|
42
|
+
public constructor(obj?: ListVOQuery) {
|
|
43
|
+
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
44
|
+
switch (key) {
|
|
45
|
+
case 'activeFlg':
|
|
46
|
+
case 'adrId':
|
|
47
|
+
case 'adrnam':
|
|
48
|
+
case 'defWhFlg':
|
|
49
|
+
case 'id':
|
|
50
|
+
case 'orgcod':
|
|
51
|
+
case 'permAdjLod':
|
|
52
|
+
case 'permAdjSub':
|
|
53
|
+
case 'permCreLod':
|
|
54
|
+
case 'permCreSub':
|
|
55
|
+
case 'whDsc':
|
|
56
|
+
case 'whId':
|
|
57
|
+
case 'column':
|
|
58
|
+
case 'order':
|
|
59
|
+
case 'pageNo':
|
|
60
|
+
case 'pageSize':
|
|
61
|
+
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
62
|
+
break;
|
|
63
|
+
default:
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* wh-分页列表查询VO
|
|
72
|
+
wh-分页列表查询VO
|
|
73
|
+
*
|
|
74
|
+
* @param config 请求配置.
|
|
75
|
+
* @param option 请求选项.
|
|
76
|
+
*/
|
|
77
|
+
export function ListVO(config?: IRequestConfig<ListVOQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WhDTO>> {
|
|
78
|
+
return httpClient().request(
|
|
79
|
+
{
|
|
80
|
+
method: ListVO.method,
|
|
81
|
+
url: `${option?.mock ? '/mock' : ''}${ListVO.url}`,
|
|
82
|
+
...(config ?? {}),
|
|
83
|
+
},
|
|
84
|
+
option,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
ListVO.method = 'GET' as const;
|
|
89
|
+
ListVO.url = '/wh/wh/listVO';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ListVO, ListVOQuery } from './ListVO';
|
|
1
|
+
export { ListVO, ListVOQuery } from './ListVO';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as LoginController from './LoginController';
|
|
2
|
-
export * as WhController from './WhController';
|
|
1
|
+
export * as LoginController from './LoginController';
|
|
2
|
+
export * as WhController from './WhController';
|
package/dist/api/WMS/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as WMSAPI from './Controllers';
|
|
2
|
-
export * as WMSDEF from './models';
|
|
1
|
+
export * as WMSAPI from './Controllers';
|
|
2
|
+
export * as WMSDEF from './models';
|
package/dist/api/WMS/models.ts
CHANGED
|
@@ -1,189 +1,189 @@
|
|
|
1
|
-
export class IPage<T0> {
|
|
2
|
-
/** Current. */
|
|
3
|
-
public current?: number | null;
|
|
4
|
-
/** Pages. */
|
|
5
|
-
public pages?: number | null;
|
|
6
|
-
/** Records. */
|
|
7
|
-
public records?: Array<T0> | null;
|
|
8
|
-
/** Size. */
|
|
9
|
-
public size?: number | null;
|
|
10
|
-
/** Total. */
|
|
11
|
-
public total?: number | null;
|
|
12
|
-
|
|
13
|
-
public constructor(obj?: IPage<T0>) {
|
|
14
|
-
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
15
|
-
switch (key) {
|
|
16
|
-
case 'current':
|
|
17
|
-
case 'pages':
|
|
18
|
-
case 'records':
|
|
19
|
-
case 'size':
|
|
20
|
-
case 'total':
|
|
21
|
-
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
22
|
-
break;
|
|
23
|
-
default:
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/** 用户. */
|
|
31
|
-
export class SysUser {
|
|
32
|
-
/** Activiti Sync. */
|
|
33
|
-
public activitiSync?: number | null;
|
|
34
|
-
/** 头像. */
|
|
35
|
-
public avatar?: string | null;
|
|
36
|
-
/** Birthday. */
|
|
37
|
-
public birthday?: string | null;
|
|
38
|
-
/** Client Id. */
|
|
39
|
-
public clientId?: string | null;
|
|
40
|
-
/** Create By. */
|
|
41
|
-
public createBy?: string | null;
|
|
42
|
-
/** Create Time. */
|
|
43
|
-
public createTime?: string | null;
|
|
44
|
-
/** Del Flag. */
|
|
45
|
-
public delFlag?: number | null;
|
|
46
|
-
/** Depart Ids. */
|
|
47
|
-
public departIds?: string | null;
|
|
48
|
-
/** 邮件. */
|
|
49
|
-
public email?: string | null;
|
|
50
|
-
/** Home Path. */
|
|
51
|
-
public homePath?: string | null;
|
|
52
|
-
/** Id. */
|
|
53
|
-
public id?: string | null;
|
|
54
|
-
/** Org Code. */
|
|
55
|
-
public orgCode?: string | null;
|
|
56
|
-
/** Org Code Txt. */
|
|
57
|
-
public orgCodeTxt?: string | null;
|
|
58
|
-
/** Password. */
|
|
59
|
-
public password?: string | null;
|
|
60
|
-
/** 电话. */
|
|
61
|
-
public phone?: string | null;
|
|
62
|
-
/** Post. */
|
|
63
|
-
public post?: string | null;
|
|
64
|
-
/** 姓名. */
|
|
65
|
-
public realname?: string | null;
|
|
66
|
-
/** Rel Tenant Ids. */
|
|
67
|
-
public relTenantIds?: string | null;
|
|
68
|
-
/** Salt. */
|
|
69
|
-
public salt?: string | null;
|
|
70
|
-
/** Sex. */
|
|
71
|
-
public sex?: number | null;
|
|
72
|
-
/** 状态. */
|
|
73
|
-
public status?: number | null;
|
|
74
|
-
/** Telephone. */
|
|
75
|
-
public telephone?: string | null;
|
|
76
|
-
/** Update By. */
|
|
77
|
-
public updateBy?: string | null;
|
|
78
|
-
/** Update Time. */
|
|
79
|
-
public updateTime?: string | null;
|
|
80
|
-
/** User Identity. */
|
|
81
|
-
public userIdentity?: number | null;
|
|
82
|
-
/** 账号. */
|
|
83
|
-
public username?: string | null;
|
|
84
|
-
/** 工号. */
|
|
85
|
-
public workNo?: string | null;
|
|
86
|
-
|
|
87
|
-
public constructor(obj?: SysUser) {
|
|
88
|
-
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
89
|
-
switch (key) {
|
|
90
|
-
case 'activitiSync':
|
|
91
|
-
case 'avatar':
|
|
92
|
-
case 'birthday':
|
|
93
|
-
case 'clientId':
|
|
94
|
-
case 'createBy':
|
|
95
|
-
case 'createTime':
|
|
96
|
-
case 'delFlag':
|
|
97
|
-
case 'departIds':
|
|
98
|
-
case 'email':
|
|
99
|
-
case 'homePath':
|
|
100
|
-
case 'id':
|
|
101
|
-
case 'orgCode':
|
|
102
|
-
case 'orgCodeTxt':
|
|
103
|
-
case 'password':
|
|
104
|
-
case 'phone':
|
|
105
|
-
case 'post':
|
|
106
|
-
case 'realname':
|
|
107
|
-
case 'relTenantIds':
|
|
108
|
-
case 'salt':
|
|
109
|
-
case 'sex':
|
|
110
|
-
case 'status':
|
|
111
|
-
case 'telephone':
|
|
112
|
-
case 'updateBy':
|
|
113
|
-
case 'updateTime':
|
|
114
|
-
case 'userIdentity':
|
|
115
|
-
case 'username':
|
|
116
|
-
case 'workNo':
|
|
117
|
-
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
118
|
-
break;
|
|
119
|
-
default:
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/** 仓库(Warehouse). */
|
|
127
|
-
export class WhDTO {
|
|
128
|
-
/** 是否活动 */
|
|
129
|
-
public activeFlg?: number | null;
|
|
130
|
-
/** 地址编号 */
|
|
131
|
-
public adrId?: string | null;
|
|
132
|
-
/** adrnam */
|
|
133
|
-
public adrnam?: string | null;
|
|
134
|
-
/** 默认仓库 */
|
|
135
|
-
public defWhFlg?: number | null;
|
|
136
|
-
/** 主键. */
|
|
137
|
-
public id?: string | null;
|
|
138
|
-
/** 所属地/国编号 */
|
|
139
|
-
public orgcod?: string | null;
|
|
140
|
-
/** 永久调整托盘 */
|
|
141
|
-
public permAdjLod?: string | null;
|
|
142
|
-
/** 永久调整箱 */
|
|
143
|
-
public permAdjSub?: string | null;
|
|
144
|
-
/** 永久创建托盘 */
|
|
145
|
-
public permCreLod?: string | null;
|
|
146
|
-
/** 永久创建箱 */
|
|
147
|
-
public permCreSub?: string | null;
|
|
148
|
-
/** 仓库名称. */
|
|
149
|
-
public whDsc?: string | null;
|
|
150
|
-
/** 仓库编号 */
|
|
151
|
-
public whId?: string | null;
|
|
152
|
-
|
|
153
|
-
public constructor(obj?: WhDTO) {
|
|
154
|
-
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
155
|
-
switch (key) {
|
|
156
|
-
case 'activeFlg':
|
|
157
|
-
case 'adrId':
|
|
158
|
-
case 'adrnam':
|
|
159
|
-
case 'defWhFlg':
|
|
160
|
-
case 'id':
|
|
161
|
-
case 'orgcod':
|
|
162
|
-
case 'permAdjLod':
|
|
163
|
-
case 'permAdjSub':
|
|
164
|
-
case 'permCreLod':
|
|
165
|
-
case 'permCreSub':
|
|
166
|
-
case 'whDsc':
|
|
167
|
-
case 'whId':
|
|
168
|
-
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
169
|
-
break;
|
|
170
|
-
default:
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* 获取对象的属性名数组.
|
|
179
|
-
* @param obj 对象.
|
|
180
|
-
*/
|
|
181
|
-
export function keys<C extends object>(obj: C): Array<keyof C> {
|
|
182
|
-
const type = typeof obj;
|
|
183
|
-
|
|
184
|
-
if (!(obj != null && (type === 'object' || type === 'function'))) {
|
|
185
|
-
return [];
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return Reflect.ownKeys(obj) as Array<keyof C>;
|
|
189
|
-
}
|
|
1
|
+
export class IPage<T0> {
|
|
2
|
+
/** Current. */
|
|
3
|
+
public current?: number | null;
|
|
4
|
+
/** Pages. */
|
|
5
|
+
public pages?: number | null;
|
|
6
|
+
/** Records. */
|
|
7
|
+
public records?: Array<T0> | null;
|
|
8
|
+
/** Size. */
|
|
9
|
+
public size?: number | null;
|
|
10
|
+
/** Total. */
|
|
11
|
+
public total?: number | null;
|
|
12
|
+
|
|
13
|
+
public constructor(obj?: IPage<T0>) {
|
|
14
|
+
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
15
|
+
switch (key) {
|
|
16
|
+
case 'current':
|
|
17
|
+
case 'pages':
|
|
18
|
+
case 'records':
|
|
19
|
+
case 'size':
|
|
20
|
+
case 'total':
|
|
21
|
+
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
22
|
+
break;
|
|
23
|
+
default:
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** 用户. */
|
|
31
|
+
export class SysUser {
|
|
32
|
+
/** Activiti Sync. */
|
|
33
|
+
public activitiSync?: number | null;
|
|
34
|
+
/** 头像. */
|
|
35
|
+
public avatar?: string | null;
|
|
36
|
+
/** Birthday. */
|
|
37
|
+
public birthday?: string | null;
|
|
38
|
+
/** Client Id. */
|
|
39
|
+
public clientId?: string | null;
|
|
40
|
+
/** Create By. */
|
|
41
|
+
public createBy?: string | null;
|
|
42
|
+
/** Create Time. */
|
|
43
|
+
public createTime?: string | null;
|
|
44
|
+
/** Del Flag. */
|
|
45
|
+
public delFlag?: number | null;
|
|
46
|
+
/** Depart Ids. */
|
|
47
|
+
public departIds?: string | null;
|
|
48
|
+
/** 邮件. */
|
|
49
|
+
public email?: string | null;
|
|
50
|
+
/** Home Path. */
|
|
51
|
+
public homePath?: string | null;
|
|
52
|
+
/** Id. */
|
|
53
|
+
public id?: string | null;
|
|
54
|
+
/** Org Code. */
|
|
55
|
+
public orgCode?: string | null;
|
|
56
|
+
/** Org Code Txt. */
|
|
57
|
+
public orgCodeTxt?: string | null;
|
|
58
|
+
/** Password. */
|
|
59
|
+
public password?: string | null;
|
|
60
|
+
/** 电话. */
|
|
61
|
+
public phone?: string | null;
|
|
62
|
+
/** Post. */
|
|
63
|
+
public post?: string | null;
|
|
64
|
+
/** 姓名. */
|
|
65
|
+
public realname?: string | null;
|
|
66
|
+
/** Rel Tenant Ids. */
|
|
67
|
+
public relTenantIds?: string | null;
|
|
68
|
+
/** Salt. */
|
|
69
|
+
public salt?: string | null;
|
|
70
|
+
/** Sex. */
|
|
71
|
+
public sex?: number | null;
|
|
72
|
+
/** 状态. */
|
|
73
|
+
public status?: number | null;
|
|
74
|
+
/** Telephone. */
|
|
75
|
+
public telephone?: string | null;
|
|
76
|
+
/** Update By. */
|
|
77
|
+
public updateBy?: string | null;
|
|
78
|
+
/** Update Time. */
|
|
79
|
+
public updateTime?: string | null;
|
|
80
|
+
/** User Identity. */
|
|
81
|
+
public userIdentity?: number | null;
|
|
82
|
+
/** 账号. */
|
|
83
|
+
public username?: string | null;
|
|
84
|
+
/** 工号. */
|
|
85
|
+
public workNo?: string | null;
|
|
86
|
+
|
|
87
|
+
public constructor(obj?: SysUser) {
|
|
88
|
+
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
89
|
+
switch (key) {
|
|
90
|
+
case 'activitiSync':
|
|
91
|
+
case 'avatar':
|
|
92
|
+
case 'birthday':
|
|
93
|
+
case 'clientId':
|
|
94
|
+
case 'createBy':
|
|
95
|
+
case 'createTime':
|
|
96
|
+
case 'delFlag':
|
|
97
|
+
case 'departIds':
|
|
98
|
+
case 'email':
|
|
99
|
+
case 'homePath':
|
|
100
|
+
case 'id':
|
|
101
|
+
case 'orgCode':
|
|
102
|
+
case 'orgCodeTxt':
|
|
103
|
+
case 'password':
|
|
104
|
+
case 'phone':
|
|
105
|
+
case 'post':
|
|
106
|
+
case 'realname':
|
|
107
|
+
case 'relTenantIds':
|
|
108
|
+
case 'salt':
|
|
109
|
+
case 'sex':
|
|
110
|
+
case 'status':
|
|
111
|
+
case 'telephone':
|
|
112
|
+
case 'updateBy':
|
|
113
|
+
case 'updateTime':
|
|
114
|
+
case 'userIdentity':
|
|
115
|
+
case 'username':
|
|
116
|
+
case 'workNo':
|
|
117
|
+
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
118
|
+
break;
|
|
119
|
+
default:
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** 仓库(Warehouse). */
|
|
127
|
+
export class WhDTO {
|
|
128
|
+
/** 是否活动 */
|
|
129
|
+
public activeFlg?: number | null;
|
|
130
|
+
/** 地址编号 */
|
|
131
|
+
public adrId?: string | null;
|
|
132
|
+
/** adrnam */
|
|
133
|
+
public adrnam?: string | null;
|
|
134
|
+
/** 默认仓库 */
|
|
135
|
+
public defWhFlg?: number | null;
|
|
136
|
+
/** 主键. */
|
|
137
|
+
public id?: string | null;
|
|
138
|
+
/** 所属地/国编号 */
|
|
139
|
+
public orgcod?: string | null;
|
|
140
|
+
/** 永久调整托盘 */
|
|
141
|
+
public permAdjLod?: string | null;
|
|
142
|
+
/** 永久调整箱 */
|
|
143
|
+
public permAdjSub?: string | null;
|
|
144
|
+
/** 永久创建托盘 */
|
|
145
|
+
public permCreLod?: string | null;
|
|
146
|
+
/** 永久创建箱 */
|
|
147
|
+
public permCreSub?: string | null;
|
|
148
|
+
/** 仓库名称. */
|
|
149
|
+
public whDsc?: string | null;
|
|
150
|
+
/** 仓库编号 */
|
|
151
|
+
public whId?: string | null;
|
|
152
|
+
|
|
153
|
+
public constructor(obj?: WhDTO) {
|
|
154
|
+
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
155
|
+
switch (key) {
|
|
156
|
+
case 'activeFlg':
|
|
157
|
+
case 'adrId':
|
|
158
|
+
case 'adrnam':
|
|
159
|
+
case 'defWhFlg':
|
|
160
|
+
case 'id':
|
|
161
|
+
case 'orgcod':
|
|
162
|
+
case 'permAdjLod':
|
|
163
|
+
case 'permAdjSub':
|
|
164
|
+
case 'permCreLod':
|
|
165
|
+
case 'permCreSub':
|
|
166
|
+
case 'whDsc':
|
|
167
|
+
case 'whId':
|
|
168
|
+
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
169
|
+
break;
|
|
170
|
+
default:
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* 获取对象的属性名数组.
|
|
179
|
+
* @param obj 对象.
|
|
180
|
+
*/
|
|
181
|
+
export function keys<C extends object>(obj: C): Array<keyof C> {
|
|
182
|
+
const type = typeof obj;
|
|
183
|
+
|
|
184
|
+
if (!(obj != null && (type === 'object' || type === 'function'))) {
|
|
185
|
+
return [];
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return Reflect.ownKeys(obj) as Array<keyof C>;
|
|
189
|
+
}
|
package/dist/api/api.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { WMSAPI as WMS } from './WMS';
|
|
1
|
+
export { WMSAPI as WMS } from './WMS';
|
package/dist/api/def.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { WMSDEF as WMS } from './WMS';
|
|
1
|
+
export { WMSDEF as WMS } from './WMS';
|
package/dist/api/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as API from './api';
|
|
2
|
-
export * as DEF from './def';
|
|
1
|
+
export * as API from './api';
|
|
2
|
+
export * as DEF from './def';
|