@kengic/uni 0.6.3-beta.3 → 0.6.3-beta.31

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.
Files changed (32) hide show
  1. package/dist/api/WMS/Controllers/CommonController/GetLatestApkVersion.ts +21 -21
  2. package/dist/api/WMS/Controllers/LoginController/GetUserInfo.ts +21 -21
  3. package/dist/api/WMS/Controllers/LoginController/Logout.ts +21 -21
  4. package/dist/api/WMS/Controllers/LoginController/index.ts +2 -2
  5. package/dist/api/WMS/Controllers/WhController/ListVO.ts +88 -88
  6. package/dist/api/WMS/Controllers/WorkstationController/List.ts +45 -45
  7. package/dist/api/WMS/Controllers/WorkstationController/index.ts +1 -1
  8. package/dist/api/WMS/Controllers/index.ts +4 -4
  9. package/dist/api/WMS/models.ts +342 -318
  10. package/dist/component/KgStation/KgStation.vue +120 -9
  11. package/dist/const/index.vm.ts +10 -0
  12. package/dist/index.css +21 -2
  13. package/dist/service/http-client.ts +106 -62
  14. package/dist/uni/uni-ui/uni-data-select/uni-data-select.vue +5 -4
  15. package/dist/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +4 -4
  16. package/dist/uni/uni-ui/uni-easyinput/common.js +1 -0
  17. package/dist/uni/uni-ui/uni-easyinput/uni-easyinput.vue +23 -70
  18. package/dist/uni/uni-ui/uni-pagination/uni-pagination.vue +8 -4
  19. package/dist/uni/uni-ui/uni-segmented-control/uni-segmented-control.vue +4 -4
  20. package/dist/util/kg.ts +62 -14
  21. package/package.json +22 -22
  22. package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
  23. package/script/bump-to.luotao.smartfactory.product.wms.wms--project-kengic-factory.ts +3 -0
  24. package/script/bump-to.ts +38 -0
  25. package/script/bump.ts +35 -0
  26. package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
  27. package/script/copy-to.luotao.smartfactory.product.wms.wms--project-kengic-factory.ts +3 -0
  28. package/script/copy-to.ts +23 -0
  29. package/script/publish.ts +20 -0
  30. package/dist/src/index.d.ts +0 -1
  31. package/dist/uni/uni-ui/README.md +0 -1
  32. package/dist/uni/uni-ui/uni-scss/readme.md +0 -4
@@ -1,318 +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 hmewrkare?: string | null;
270
- /** 主键 */
271
- public id?: string | null;
272
- /** 创建日期 */
273
- public insDt?: string | null;
274
- /** 创建用户 */
275
- public insUsrId?: string | null;
276
- /** 修改日期 */
277
- public modUsrId?: string | null;
278
- /** 修改用户 */
279
- public moddte?: string | null;
280
- /** 仓库 */
281
- public whId?: string | null;
282
- /** 工作站与工作区域关系 */
283
- public workstationAreas?: Array<WorkstationAreaDTO> | null;
284
-
285
- public constructor(obj?: WorkstationDTO) {
286
- keys(obj ?? {}).forEach((key: PropertyKey) => {
287
- switch (key) {
288
- case 'devcod':
289
- case 'hmewrkare':
290
- case 'id':
291
- case 'insDt':
292
- case 'insUsrId':
293
- case 'modUsrId':
294
- case 'moddte':
295
- case 'whId':
296
- case 'workstationAreas':
297
- Reflect.set(this, key, Reflect.get(obj ?? {}, key));
298
- break;
299
- default:
300
- break;
301
- }
302
- });
303
- }
304
- }
305
-
306
- /**
307
- * 获取对象的属性名数组.
308
- * @param obj 对象.
309
- */
310
- export function keys<C extends object>(obj: C): Array<keyof C> {
311
- const type = typeof obj;
312
-
313
- if (!(obj != null && (type === 'object' || type === 'function'))) {
314
- return [];
315
- }
316
-
317
- return Reflect.ownKeys(obj) as Array<keyof C>;
318
- }
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
+ }