@kengic/uni 0.6.3-beta.13 → 0.6.3-beta.14

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.
@@ -1,88 +1,88 @@
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
- /** 地址名. */
14
- public adrnam?: string | null;
15
- /** 公司代码. */
16
- public comCod?: string | null;
17
- /** 默认仓库. */
18
- public defWhFlg?: number | null;
19
- /** 主键. */
20
- public id?: string | null;
21
- /** 所属地/国编号. */
22
- public orgcod?: string | null;
23
- /** 永久调整托盘. */
24
- public permAdjLod?: string | null;
25
- /** 永久调整箱. */
26
- public permAdjSub?: string | null;
27
- /** 永久创建托盘. */
28
- public permCreLod?: string | null;
29
- /** 永久创建箱. */
30
- public permCreSub?: string | null;
31
- /** 版本. */
32
- public version?: number | null;
33
- /** 仓库名称. */
34
- public whDsc?: string | null;
35
- /** 仓库编号. */
36
- public whId?: string | null;
37
- /** 排序字段. */
38
- public column?: string | null;
39
- /** 排序方式. */
40
- public order?: 'asc' | 'desc' | null;
41
- /** 当前页数. */
42
- public pageNo?: number | null;
43
- /** 每页条数. */
44
- public pageSize?: number | null;
45
-
46
- public constructor(obj?: ListVOQuery) {
47
- keys(obj ?? {}).forEach((key: PropertyKey) => {
48
- switch (key) {
49
- case 'activeFlg':
50
- case 'adrId':
51
- case 'adrnam':
52
- case 'comCod':
53
- case 'defWhFlg':
54
- case 'id':
55
- case 'orgcod':
56
- case 'permAdjLod':
57
- case 'permAdjSub':
58
- case 'permCreLod':
59
- case 'permCreSub':
60
- case 'version':
61
- case 'whDsc':
62
- case 'whId':
63
- case 'column':
64
- case 'order':
65
- case 'pageNo':
66
- case 'pageSize':
67
- Reflect.set(this, key, Reflect.get(obj ?? {}, key));
68
- break;
69
- default:
70
- break;
71
- }
72
- });
73
- }
74
- }
75
-
76
- /**
77
- * wh-分页列表查询VO
78
- wh-分页列表查询VO.
79
- *
80
- * @param config 请求配置.
81
- * @param option 请求选项.
82
- */
83
- export function ListVO(config?: IRequestConfig<ListVOQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WhDTO>> {
84
- return httpClient().request({ method: ListVO.method, url: ListVO.url, ...(config ?? {}) }, option);
85
- }
86
-
87
- ListVO.method = 'GET' as const;
88
- 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
+ /** 地址名. */
14
+ public adrnam?: string | null;
15
+ /** 公司代码. */
16
+ public comCod?: string | null;
17
+ /** 默认仓库. */
18
+ public defWhFlg?: number | null;
19
+ /** 主键. */
20
+ public id?: string | null;
21
+ /** 所属地/国编号. */
22
+ public orgcod?: string | null;
23
+ /** 永久调整托盘. */
24
+ public permAdjLod?: string | null;
25
+ /** 永久调整箱. */
26
+ public permAdjSub?: string | null;
27
+ /** 永久创建托盘. */
28
+ public permCreLod?: string | null;
29
+ /** 永久创建箱. */
30
+ public permCreSub?: string | null;
31
+ /** 版本. */
32
+ public version?: number | null;
33
+ /** 仓库名称. */
34
+ public whDsc?: string | null;
35
+ /** 仓库编号. */
36
+ public whId?: string | null;
37
+ /** 排序字段. */
38
+ public column?: string | null;
39
+ /** 排序方式. */
40
+ public order?: 'asc' | 'desc' | null;
41
+ /** 当前页数. */
42
+ public pageNo?: number | null;
43
+ /** 每页条数. */
44
+ public pageSize?: number | null;
45
+
46
+ public constructor(obj?: ListVOQuery) {
47
+ keys(obj ?? {}).forEach((key: PropertyKey) => {
48
+ switch (key) {
49
+ case 'activeFlg':
50
+ case 'adrId':
51
+ case 'adrnam':
52
+ case 'comCod':
53
+ case 'defWhFlg':
54
+ case 'id':
55
+ case 'orgcod':
56
+ case 'permAdjLod':
57
+ case 'permAdjSub':
58
+ case 'permCreLod':
59
+ case 'permCreSub':
60
+ case 'version':
61
+ case 'whDsc':
62
+ case 'whId':
63
+ case 'column':
64
+ case 'order':
65
+ case 'pageNo':
66
+ case 'pageSize':
67
+ Reflect.set(this, key, Reflect.get(obj ?? {}, key));
68
+ break;
69
+ default:
70
+ break;
71
+ }
72
+ });
73
+ }
74
+ }
75
+
76
+ /**
77
+ * wh-分页列表查询VO
78
+ wh-分页列表查询VO.
79
+ *
80
+ * @param config 请求配置.
81
+ * @param option 请求选项.
82
+ */
83
+ export function ListVO(config?: IRequestConfig<ListVOQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WhDTO>> {
84
+ return httpClient().request({ method: ListVO.method, url: ListVO.url, ...(config ?? {}) }, option);
85
+ }
86
+
87
+ ListVO.method = 'GET' as const;
88
+ ListVO.url = '/wh/wh/listVO';
@@ -1,45 +1,45 @@
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 ListQuery {
9
- /** 排序字段. */
10
- public column?: string | null;
11
- /** 排序方式. */
12
- public order?: 'asc' | 'desc' | null;
13
- /** 当前页数. */
14
- public pageNo?: number | null;
15
- /** 每页条数. */
16
- public pageSize?: number | null;
17
-
18
- public constructor(obj?: ListQuery) {
19
- keys(obj ?? {}).forEach((key: PropertyKey) => {
20
- switch (key) {
21
- case 'column':
22
- case 'order':
23
- case 'pageNo':
24
- case 'pageSize':
25
- Reflect.set(this, key, Reflect.get(obj ?? {}, key));
26
- break;
27
- default:
28
- break;
29
- }
30
- });
31
- }
32
- }
33
-
34
- /**
35
- * 工作站-分页列表查询.
36
- *
37
- * @param config 请求配置.
38
- * @param option 请求选项.
39
- */
40
- export function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WorkstationDTO>> {
41
- return httpClient().request({ method: List.method, url: List.url, ...(config ?? {}) }, option);
42
- }
43
-
44
- List.method = 'GET' as const;
45
- List.url = '/workstation/workstation/list';
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 ListQuery {
9
+ /** 排序字段. */
10
+ public column?: string | null;
11
+ /** 排序方式. */
12
+ public order?: 'asc' | 'desc' | null;
13
+ /** 当前页数. */
14
+ public pageNo?: number | null;
15
+ /** 每页条数. */
16
+ public pageSize?: number | null;
17
+
18
+ public constructor(obj?: ListQuery) {
19
+ keys(obj ?? {}).forEach((key: PropertyKey) => {
20
+ switch (key) {
21
+ case 'column':
22
+ case 'order':
23
+ case 'pageNo':
24
+ case 'pageSize':
25
+ Reflect.set(this, key, Reflect.get(obj ?? {}, key));
26
+ break;
27
+ default:
28
+ break;
29
+ }
30
+ });
31
+ }
32
+ }
33
+
34
+ /**
35
+ * 工作站-分页列表查询.
36
+ *
37
+ * @param config 请求配置.
38
+ * @param option 请求选项.
39
+ */
40
+ export function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WorkstationDTO>> {
41
+ return httpClient().request({ method: List.method, url: List.url, ...(config ?? {}) }, option);
42
+ }
43
+
44
+ List.method = 'GET' as const;
45
+ List.url = '/workstation/workstation/list';
@@ -1,342 +1,342 @@
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
- /** 用户仓库. */
127
- export class SysUserWarehouseDTO {
128
- /** 是否是默认的仓库. */
129
- public default_flag?: number | null;
130
- /** 主键. */
131
- public id?: string | null;
132
- /** 创建日期. */
133
- public ins_dt?: string | null;
134
- /** 创建用户. */
135
- public ins_usr_id?: string | null;
136
- /** 更新用户. */
137
- public mod_usr_id?: string | null;
138
- /** 更新日期. */
139
- public moddte?: string | null;
140
- /** 用户ID. */
141
- public user_id?: string | null;
142
- /** 仓库描述. */
143
- public wh_dsc?: string | null;
144
- /** 仓库编号. */
145
- public wh_id?: string | null;
146
-
147
- public constructor(obj?: SysUserWarehouseDTO) {
148
- keys(obj ?? {}).forEach((key: PropertyKey) => {
149
- switch (key) {
150
- case 'default_flag':
151
- case 'id':
152
- case 'ins_dt':
153
- case 'ins_usr_id':
154
- case 'mod_usr_id':
155
- case 'moddte':
156
- case 'user_id':
157
- case 'wh_dsc':
158
- case 'wh_id':
159
- Reflect.set(this, key, Reflect.get(obj ?? {}, key));
160
- break;
161
- default:
162
- break;
163
- }
164
- });
165
- }
166
- }
167
-
168
- /** 仓库数据传输对象. */
169
- export class WhDTO {
170
- /** 是否可用. */
171
- public activeFlg?: number | null;
172
- /** 地址编号. */
173
- public adrId?: string | null;
174
- /** 地址名. */
175
- public adrnam?: string | null;
176
- /** 公司代码. */
177
- public comCod?: string | null;
178
- /** 默认仓库. */
179
- public defWhFlg?: number | null;
180
- /** 主键. */
181
- public id?: string | null;
182
- /** 所属地/国编号. */
183
- public orgcod?: string | null;
184
- /** 永久调整托盘. */
185
- public permAdjLod?: string | null;
186
- /** 永久调整箱. */
187
- public permAdjSub?: string | null;
188
- /** 永久创建托盘. */
189
- public permCreLod?: string | null;
190
- /** 永久创建箱. */
191
- public permCreSub?: string | null;
192
- /** 版本. */
193
- public version?: number | null;
194
- /** 仓库名称. */
195
- public whDsc?: string | null;
196
- /** 仓库编号. */
197
- public whId?: string | null;
198
-
199
- public constructor(obj?: WhDTO) {
200
- keys(obj ?? {}).forEach((key: PropertyKey) => {
201
- switch (key) {
202
- case 'activeFlg':
203
- case 'adrId':
204
- case 'adrnam':
205
- case 'comCod':
206
- case 'defWhFlg':
207
- case 'id':
208
- case 'orgcod':
209
- case 'permAdjLod':
210
- case 'permAdjSub':
211
- case 'permCreLod':
212
- case 'permCreSub':
213
- case 'version':
214
- case 'whDsc':
215
- case 'whId':
216
- Reflect.set(this, key, Reflect.get(obj ?? {}, key));
217
- break;
218
- default:
219
- break;
220
- }
221
- });
222
- }
223
- }
224
-
225
- /** 工作站区域数据传输对象. */
226
- export class WorkstationAreaDTO {
227
- /** 主键. */
228
- public id?: string | null;
229
- /** 创建日期. */
230
- public insDt?: string | null;
231
- /** 创建用户. */
232
- public insUsrId?: string | null;
233
- /** 修改日期. */
234
- public modUsrId?: string | null;
235
- /** 修改用户. */
236
- public moddte?: string | null;
237
- /** 仓库. */
238
- public whId?: string | null;
239
- /** 工作区. */
240
- public wrkare?: string | null;
241
- /** 工作区描述. */
242
- public wrkareDsc?: string | null;
243
-
244
- public constructor(obj?: WorkstationAreaDTO) {
245
- keys(obj ?? {}).forEach((key: PropertyKey) => {
246
- switch (key) {
247
- case 'id':
248
- case 'insDt':
249
- case 'insUsrId':
250
- case 'modUsrId':
251
- case 'moddte':
252
- case 'whId':
253
- case 'wrkare':
254
- case 'wrkareDsc':
255
- Reflect.set(this, key, Reflect.get(obj ?? {}, key));
256
- break;
257
- default:
258
- break;
259
- }
260
- });
261
- }
262
- }
263
-
264
- /** 工作站数据传输对象. */
265
- export class WorkstationDTO {
266
- /** 工作站. */
267
- public devcod?: string | null;
268
- /** 工作站描述. */
269
- public devcodDsc?: string | null;
270
- /** 主工作区. */
271
- public hmewrkare?: string | null;
272
- /** 主工作区描述. */
273
- public hmewrkareDsc?: string | null;
274
- /** 主键. */
275
- public id?: string | null;
276
- /** 创建日期. */
277
- public insDt?: string | null;
278
- /** 创建用户. */
279
- public insUsrId?: string | null;
280
- /** 标签打印机(Label Printer Address). */
281
- public lblPrtadr?: string | null;
282
- /** 标签打印机名称. */
283
- public lblPrtadrDsc?: string | null;
284
- /** 便携标签打印机(Mobile Printer Address). */
285
- public mobPrtadr?: string | null;
286
- /** 便携标签打印机名称. */
287
- public mobPrtadrDsc?: string | null;
288
- /** 修改日期. */
289
- public modUsrId?: string | null;
290
- /** 修改用户. */
291
- public moddte?: string | null;
292
- /** 纸张打印机(Paper Printer Address). */
293
- public papPrtadr?: string | null;
294
- /** 纸张打印机名称. */
295
- public papPrtadrDsc?: string | null;
296
- /** 仓库. */
297
- public whId?: string | null;
298
- /** 工作站与工作区域关系. */
299
- public workstationAndAreaRelationshipDTOList?: Array<WorkstationAreaDTO> | null;
300
-
301
- public constructor(obj?: WorkstationDTO) {
302
- keys(obj ?? {}).forEach((key: PropertyKey) => {
303
- switch (key) {
304
- case 'devcod':
305
- case 'devcodDsc':
306
- case 'hmewrkare':
307
- case 'hmewrkareDsc':
308
- case 'id':
309
- case 'insDt':
310
- case 'insUsrId':
311
- case 'lblPrtadr':
312
- case 'lblPrtadrDsc':
313
- case 'mobPrtadr':
314
- case 'mobPrtadrDsc':
315
- case 'modUsrId':
316
- case 'moddte':
317
- case 'papPrtadr':
318
- case 'papPrtadrDsc':
319
- case 'whId':
320
- case 'workstationAndAreaRelationshipDTOList':
321
- Reflect.set(this, key, Reflect.get(obj ?? {}, key));
322
- break;
323
- default:
324
- break;
325
- }
326
- });
327
- }
328
- }
329
-
330
- /**
331
- * 获取对象的属性名数组.
332
- * @param obj 对象.
333
- */
334
- export function keys<C extends object>(obj: C): Array<keyof C> {
335
- const type = typeof obj;
336
-
337
- if (!(obj != null && (type === 'object' || type === 'function'))) {
338
- return [];
339
- }
340
-
341
- return Reflect.ownKeys(obj) as Array<keyof C>;
342
- }
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
+ /** 用户仓库. */
127
+ export class SysUserWarehouseDTO {
128
+ /** 是否是默认的仓库. */
129
+ public default_flag?: number | null;
130
+ /** 主键. */
131
+ public id?: string | null;
132
+ /** 创建日期. */
133
+ public ins_dt?: string | null;
134
+ /** 创建用户. */
135
+ public ins_usr_id?: string | null;
136
+ /** 更新用户. */
137
+ public mod_usr_id?: string | null;
138
+ /** 更新日期. */
139
+ public moddte?: string | null;
140
+ /** 用户ID. */
141
+ public user_id?: string | null;
142
+ /** 仓库描述. */
143
+ public wh_dsc?: string | null;
144
+ /** 仓库编号. */
145
+ public wh_id?: string | null;
146
+
147
+ public constructor(obj?: SysUserWarehouseDTO) {
148
+ keys(obj ?? {}).forEach((key: PropertyKey) => {
149
+ switch (key) {
150
+ case 'default_flag':
151
+ case 'id':
152
+ case 'ins_dt':
153
+ case 'ins_usr_id':
154
+ case 'mod_usr_id':
155
+ case 'moddte':
156
+ case 'user_id':
157
+ case 'wh_dsc':
158
+ case 'wh_id':
159
+ Reflect.set(this, key, Reflect.get(obj ?? {}, key));
160
+ break;
161
+ default:
162
+ break;
163
+ }
164
+ });
165
+ }
166
+ }
167
+
168
+ /** 仓库数据传输对象. */
169
+ export class WhDTO {
170
+ /** 是否可用. */
171
+ public activeFlg?: number | null;
172
+ /** 地址编号. */
173
+ public adrId?: string | null;
174
+ /** 地址名. */
175
+ public adrnam?: string | null;
176
+ /** 公司代码. */
177
+ public comCod?: string | null;
178
+ /** 默认仓库. */
179
+ public defWhFlg?: number | null;
180
+ /** 主键. */
181
+ public id?: string | null;
182
+ /** 所属地/国编号. */
183
+ public orgcod?: string | null;
184
+ /** 永久调整托盘. */
185
+ public permAdjLod?: string | null;
186
+ /** 永久调整箱. */
187
+ public permAdjSub?: string | null;
188
+ /** 永久创建托盘. */
189
+ public permCreLod?: string | null;
190
+ /** 永久创建箱. */
191
+ public permCreSub?: string | null;
192
+ /** 版本. */
193
+ public version?: number | null;
194
+ /** 仓库名称. */
195
+ public whDsc?: string | null;
196
+ /** 仓库编号. */
197
+ public whId?: string | null;
198
+
199
+ public constructor(obj?: WhDTO) {
200
+ keys(obj ?? {}).forEach((key: PropertyKey) => {
201
+ switch (key) {
202
+ case 'activeFlg':
203
+ case 'adrId':
204
+ case 'adrnam':
205
+ case 'comCod':
206
+ case 'defWhFlg':
207
+ case 'id':
208
+ case 'orgcod':
209
+ case 'permAdjLod':
210
+ case 'permAdjSub':
211
+ case 'permCreLod':
212
+ case 'permCreSub':
213
+ case 'version':
214
+ case 'whDsc':
215
+ case 'whId':
216
+ Reflect.set(this, key, Reflect.get(obj ?? {}, key));
217
+ break;
218
+ default:
219
+ break;
220
+ }
221
+ });
222
+ }
223
+ }
224
+
225
+ /** 工作站区域数据传输对象. */
226
+ export class WorkstationAreaDTO {
227
+ /** 主键. */
228
+ public id?: string | null;
229
+ /** 创建日期. */
230
+ public insDt?: string | null;
231
+ /** 创建用户. */
232
+ public insUsrId?: string | null;
233
+ /** 修改日期. */
234
+ public modUsrId?: string | null;
235
+ /** 修改用户. */
236
+ public moddte?: string | null;
237
+ /** 仓库. */
238
+ public whId?: string | null;
239
+ /** 工作区. */
240
+ public wrkare?: string | null;
241
+ /** 工作区描述. */
242
+ public wrkareDsc?: string | null;
243
+
244
+ public constructor(obj?: WorkstationAreaDTO) {
245
+ keys(obj ?? {}).forEach((key: PropertyKey) => {
246
+ switch (key) {
247
+ case 'id':
248
+ case 'insDt':
249
+ case 'insUsrId':
250
+ case 'modUsrId':
251
+ case 'moddte':
252
+ case 'whId':
253
+ case 'wrkare':
254
+ case 'wrkareDsc':
255
+ Reflect.set(this, key, Reflect.get(obj ?? {}, key));
256
+ break;
257
+ default:
258
+ break;
259
+ }
260
+ });
261
+ }
262
+ }
263
+
264
+ /** 工作站数据传输对象. */
265
+ export class WorkstationDTO {
266
+ /** 工作站. */
267
+ public devcod?: string | null;
268
+ /** 工作站描述. */
269
+ public devcodDsc?: string | null;
270
+ /** 主工作区. */
271
+ public hmewrkare?: string | null;
272
+ /** 主工作区描述. */
273
+ public hmewrkareDsc?: string | null;
274
+ /** 主键. */
275
+ public id?: string | null;
276
+ /** 创建日期. */
277
+ public insDt?: string | null;
278
+ /** 创建用户. */
279
+ public insUsrId?: string | null;
280
+ /** 标签打印机(Label Printer Address). */
281
+ public lblPrtadr?: string | null;
282
+ /** 标签打印机名称. */
283
+ public lblPrtadrDsc?: string | null;
284
+ /** 便携标签打印机(Mobile Printer Address). */
285
+ public mobPrtadr?: string | null;
286
+ /** 便携标签打印机名称. */
287
+ public mobPrtadrDsc?: string | null;
288
+ /** 修改日期. */
289
+ public modUsrId?: string | null;
290
+ /** 修改用户. */
291
+ public moddte?: string | null;
292
+ /** 纸张打印机(Paper Printer Address). */
293
+ public papPrtadr?: string | null;
294
+ /** 纸张打印机名称. */
295
+ public papPrtadrDsc?: string | null;
296
+ /** 仓库. */
297
+ public whId?: string | null;
298
+ /** 工作站与工作区域关系. */
299
+ public workstationAndAreaRelationshipDTOList?: Array<WorkstationAreaDTO> | null;
300
+
301
+ public constructor(obj?: WorkstationDTO) {
302
+ keys(obj ?? {}).forEach((key: PropertyKey) => {
303
+ switch (key) {
304
+ case 'devcod':
305
+ case 'devcodDsc':
306
+ case 'hmewrkare':
307
+ case 'hmewrkareDsc':
308
+ case 'id':
309
+ case 'insDt':
310
+ case 'insUsrId':
311
+ case 'lblPrtadr':
312
+ case 'lblPrtadrDsc':
313
+ case 'mobPrtadr':
314
+ case 'mobPrtadrDsc':
315
+ case 'modUsrId':
316
+ case 'moddte':
317
+ case 'papPrtadr':
318
+ case 'papPrtadrDsc':
319
+ case 'whId':
320
+ case 'workstationAndAreaRelationshipDTOList':
321
+ Reflect.set(this, key, Reflect.get(obj ?? {}, key));
322
+ break;
323
+ default:
324
+ break;
325
+ }
326
+ });
327
+ }
328
+ }
329
+
330
+ /**
331
+ * 获取对象的属性名数组.
332
+ * @param obj 对象.
333
+ */
334
+ export function keys<C extends object>(obj: C): Array<keyof C> {
335
+ const type = typeof obj;
336
+
337
+ if (!(obj != null && (type === 'object' || type === 'function'))) {
338
+ return [];
339
+ }
340
+
341
+ return Reflect.ownKeys(obj) as Array<keyof C>;
342
+ }
package/dist/util/kg.ts CHANGED
@@ -128,7 +128,7 @@ export class Kg {
128
128
  const patch: number = Number(oldVersionSegments[2]);
129
129
 
130
130
  try {
131
- const newVersion = await API.WMS.CommonController.GetLatestApkVersion({}, { timeout: 5 * 1000 });
131
+ const newVersion = await API.WMS.CommonController.GetLatestApkVersion({}, { timeout: 5 * 1000, isSuppressSuccess: true });
132
132
 
133
133
  // 最新版本
134
134
  const newVersionSegments = newVersion.split('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/uni",
3
- "version": "0.6.3-beta.13",
3
+ "version": "0.6.3-beta.14",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "------ -------------------------------------------": "",