@kengic/uni 0.6.3-beta.6 → 0.6.3-beta.7

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,21 +1,21 @@
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 GetLatestApkVersionQuery {}
9
-
10
- /**
11
- * 获取 APK 最新的版本号.
12
- *
13
- * @param config 请求配置.
14
- * @param option 请求选项.
15
- */
16
- export function GetLatestApkVersion(config?: IRequestConfig<GetLatestApkVersionQuery, {}>, option?: IRequestOptions): Promise<string> {
17
- return httpClient().request({ method: GetLatestApkVersion.method, url: GetLatestApkVersion.url, ...(config ?? {}) }, option);
18
- }
19
-
20
- GetLatestApkVersion.method = 'GET' as const;
21
- GetLatestApkVersion.url = '/sys/common/getLatestApkVersion';
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 GetLatestApkVersionQuery {}
9
+
10
+ /**
11
+ * 获取 APK 最新的版本号.
12
+ *
13
+ * @param config 请求配置.
14
+ * @param option 请求选项.
15
+ */
16
+ export function GetLatestApkVersion(config?: IRequestConfig<GetLatestApkVersionQuery, {}>, option?: IRequestOptions): Promise<string> {
17
+ return httpClient().request({ method: GetLatestApkVersion.method, url: GetLatestApkVersion.url, ...(config ?? {}) }, option);
18
+ }
19
+
20
+ GetLatestApkVersion.method = 'GET' as const;
21
+ GetLatestApkVersion.url = '/sys/common/getLatestApkVersion';
@@ -1,21 +1,21 @@
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 GetUserInfoQuery {}
9
-
10
- /**
11
- * 获取用户信息.
12
- *
13
- * @param config 请求配置.
14
- * @param option 请求选项.
15
- */
16
- export function GetUserInfo(config?: IRequestConfig<GetUserInfoQuery, {}>, option?: IRequestOptions): Promise<Record<any, any>> {
17
- return httpClient().request({ method: GetUserInfo.method, url: GetUserInfo.url, ...(config ?? {}) }, option);
18
- }
19
-
20
- GetUserInfo.method = 'GET' as const;
21
- GetUserInfo.url = '/sys/getUserInfo';
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 GetUserInfoQuery {}
9
+
10
+ /**
11
+ * 获取用户信息.
12
+ *
13
+ * @param config 请求配置.
14
+ * @param option 请求选项.
15
+ */
16
+ export function GetUserInfo(config?: IRequestConfig<GetUserInfoQuery, {}>, option?: IRequestOptions): Promise<Record<any, any>> {
17
+ return httpClient().request({ method: GetUserInfo.method, url: GetUserInfo.url, ...(config ?? {}) }, option);
18
+ }
19
+
20
+ GetUserInfo.method = 'GET' as const;
21
+ GetUserInfo.url = '/sys/getUserInfo';
@@ -1,21 +1,21 @@
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({ method: Logout.method, url: Logout.url, ...(config ?? {}) }, option);
18
- }
19
-
20
- Logout.method = 'GET' as const;
21
- 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({ method: Logout.method, url: Logout.url, ...(config ?? {}) }, option);
18
+ }
19
+
20
+ Logout.method = 'GET' as const;
21
+ Logout.url = '/sys/logout';
@@ -1,2 +1,2 @@
1
- export { GetUserInfo, GetUserInfoQuery } from './GetUserInfo';
2
- export { Logout, LogoutQuery } from './Logout';
1
+ export { GetUserInfo, GetUserInfoQuery } from './GetUserInfo';
2
+ export { Logout, LogoutQuery } from './Logout';
@@ -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 +1 @@
1
- export { List, ListQuery } from './List';
1
+ export { List, ListQuery } from './List';
@@ -1,4 +1,4 @@
1
- export * as CommonController from './CommonController';
2
- export * as LoginController from './LoginController';
3
- export * as WhController from './WhController';
4
- export * as WorkstationController from './WorkstationController';
1
+ export * as CommonController from './CommonController';
2
+ export * as LoginController from './LoginController';
3
+ export * as WhController from './WhController';
4
+ export * as WorkstationController from './WorkstationController';
@@ -1,318 +1,321 @@
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 id?: string | null;
274
+ /** 创建日期 */
275
+ public insDt?: string | null;
276
+ /** 创建用户 */
277
+ public insUsrId?: string | null;
278
+ /** 修改日期 */
279
+ public modUsrId?: string | null;
280
+ /** 修改用户 */
281
+ public moddte?: string | null;
282
+ /** 仓库 */
283
+ public whId?: string | null;
284
+ /** 工作站与工作区域关系 */
285
+ public workstationAreas?: Array<WorkstationAreaDTO> | null;
286
+
287
+ public constructor(obj?: WorkstationDTO) {
288
+ keys(obj ?? {}).forEach((key: PropertyKey) => {
289
+ switch (key) {
290
+ case 'devcod':
291
+ case 'devcodDsc':
292
+ case 'hmewrkare':
293
+ case 'id':
294
+ case 'insDt':
295
+ case 'insUsrId':
296
+ case 'modUsrId':
297
+ case 'moddte':
298
+ case 'whId':
299
+ case 'workstationAreas':
300
+ Reflect.set(this, key, Reflect.get(obj ?? {}, key));
301
+ break;
302
+ default:
303
+ break;
304
+ }
305
+ });
306
+ }
307
+ }
308
+
309
+ /**
310
+ * 获取对象的属性名数组.
311
+ * @param obj 对象.
312
+ */
313
+ export function keys<C extends object>(obj: C): Array<keyof C> {
314
+ const type = typeof obj;
315
+
316
+ if (!(obj != null && (type === 'object' || type === 'function'))) {
317
+ return [];
318
+ }
319
+
320
+ return Reflect.ownKeys(obj) as Array<keyof C>;
321
+ }
@@ -18,13 +18,13 @@
18
18
  </template>
19
19
 
20
20
  <script lang="ts" setup>
21
- import { UniDataSelect, UniPopup, UniPopupDialog } from '../../uni';
22
- import { computed, ref, watch } from 'vue';
23
- import { useKgStation } from './index.hooks';
24
- import { WorkstationDTO } from '../../api/WMS/models';
25
- import { API } from '../../api';
21
+ import { UniDataSelect, UniPopup, UniPopupDialog } from '../../uni';
22
+ import { computed, ref, watch } from 'vue';
23
+ import { useKgStation } from './index.hooks';
24
+ import { WorkstationDTO } from '../../api/WMS/models';
25
+ import { API } from '../../api';
26
26
 
27
- const emit = defineEmits(['ok']);
27
+ const emit = defineEmits(['ok']);
28
28
 
29
29
  const kgStation = useKgStation();
30
30
 
@@ -44,7 +44,9 @@
44
44
  /**
45
45
  * 工作站下拉列表.
46
46
  */
47
- const stationDatas = computed<Array<{ value: string; text: string }>>(() => stations.value.map((i) => ({ text: i.devcod ?? '', value: i.devcod ?? '' })));
47
+ const stationDatas = computed<Array<{ value: string; text: string }>>(() =>
48
+ stations.value.map((i) => ({ text: i.devcodDsc ?? i.devcod ?? '', value: i.devcod ?? '' })),
49
+ );
48
50
 
49
51
  /**
50
52
  * 工作区下拉列表.
@@ -115,7 +115,7 @@ function handleSuccess<T = any>(
115
115
  // 显示后端成功消息
116
116
  if (!options?.isSuppressSuccess) {
117
117
  if ((response.data as any).message) {
118
- uni.showToast({ icon: 'none', title: (response.data as any).message });
118
+ uni.showToast({ duration: 1000 * 3, icon: 'none', title: (response.data as any).message });
119
119
  }
120
120
  }
121
121
 
@@ -148,7 +148,7 @@
148
148
 
149
149
  export default {
150
150
  name: 'UniEasyinput',
151
- emits: ['click', 'iconClick', 'update:modelValue', 'input', 'focus', 'blur', 'confirm', 'clear', 'eyes', 'change', 'keyboardheightchange'],
151
+ emits: ['click', 'iconClick', 'update:modelValue', 'focus', 'blur', 'confirm', 'clear', 'eyes', 'change', 'keyboardheightchange'],
152
152
  model: {
153
153
  prop: 'modelValue',
154
154
  event: 'update:modelValue',
@@ -419,9 +419,6 @@
419
419
  }
420
420
  if (this.errMsg) this.errMsg = '';
421
421
  this.val = value;
422
- // TODO 兼容 vue2
423
- this.$emit('input', value);
424
- // TODO 兼容 vue3
425
422
  this.$emit('update:modelValue', value);
426
423
  },
427
424
 
package/package.json CHANGED
@@ -1,30 +1,28 @@
1
1
  {
2
2
  "name": "@kengic/uni",
3
- "version": "0.6.3-beta.6",
3
+ "version": "0.6.3-beta.7",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "------ -------------------------------------------": "",
7
- "publish:all:major": "npm run bump-version:major && npm run publish:all",
8
- "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
9
- "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
10
- "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
7
+ "publish:all:major": "npm run bump:major && npm run publish:all",
8
+ "publish:all:minor": "npm run bump:minor && npm run publish:all",
9
+ "publish:all:patch": "npm run bump:patch && npm run publish:all",
10
+ "publish:all:beta": "npm run bump:beta && npm run publish:all",
11
11
  "--------------------------------------------------": "",
12
12
  "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
13
13
  "- ------------------------------------------------": "",
14
14
  "copy-to:luotao.smartfactory.product.wms.wms--dev-3.2": "npm run build && node scripts/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.mjs --experimental-default-type=module",
15
- "copy-to:luotao.wms-pda--focus": "npm run build && node scripts/copy-to.luotao.wms-pda--focus.mjs --experimental-default-type=module",
16
15
  "----------- --------------------------------------": "",
17
16
  "bump-to:luotao.smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && node scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.mjs --experimental-default-type=module",
18
- "bump-to:luotao.wms-pda--focus": "npm run switch-node-version && node scripts/bump-to.luotao.wms-pda--focus.mjs --experimental-default-type=module",
19
17
  "-- -----------------------------------------------": "",
20
18
  "cnpm:sync": "npx cnpm --yes sync @kengic/uni",
21
19
  "--- ----------------------------------------------": "",
22
20
  "switch-node-version": "nvm use 20.11.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
23
21
  "---- ---------------------------------------------": "",
24
- "bump-version:major": "npm run switch-node-version && node scripts/bump.mjs major --experimental-default-type=module",
25
- "bump-version:minor": "npm run switch-node-version && node scripts/bump.mjs minor --experimental-default-type=module",
26
- "bump-version:patch": "npm run switch-node-version && node scripts/bump.mjs patch --experimental-default-type=module",
27
- "bump-version:beta": "npm run switch-node-version && node scripts/bump.mjs beta --experimental-default-type=module",
22
+ "bump:major": "npm run switch-node-version && node scripts/bump.mjs major --experimental-default-type=module",
23
+ "bump:minor": "npm run switch-node-version && node scripts/bump.mjs minor --experimental-default-type=module",
24
+ "bump:patch": "npm run switch-node-version && node scripts/bump.mjs patch --experimental-default-type=module",
25
+ "bump:beta": "npm run switch-node-version && node scripts/bump.mjs beta --experimental-default-type=module",
28
26
  "----- --------------------------------------------": "",
29
27
  "publish:all": "npm run switch-node-version && node scripts/publish.mjs --experimental-default-type=module",
30
28
  "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- ## 最近一次同步的提交是 196a983af765287f539c071c0fbf6919e68a6a94
@@ -1,4 +0,0 @@
1
- `uni-sass` 是 `uni-ui`提供的一套全局样式 ,通过一些简单的类名和`sass`变量,实现简单的页面布局操作,比如颜色、边距、圆角等。
2
-
3
- ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-sass)
4
- #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839