@kengic/uni 0.7.9 → 0.7.12
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/api/WMS/Controllers/CommonController/GetLatestApkVersion.ts +21 -21
- package/api/WMS/Controllers/CommonController/index.ts +1 -1
- package/api/WMS/Controllers/LoginController/GetUserInfo.ts +21 -21
- package/api/WMS/Controllers/LoginController/Logout.ts +21 -21
- package/api/WMS/Controllers/LoginController/index.ts +2 -2
- package/api/WMS/Controllers/WarehouseController/ListVO.ts +45 -0
- package/api/WMS/Controllers/{WhController → WarehouseController}/index.ts +1 -1
- package/api/WMS/Controllers/WorkstationController/List.ts +45 -45
- package/api/WMS/Controllers/WorkstationController/index.ts +1 -1
- package/api/WMS/Controllers/index.ts +4 -4
- package/api/WMS/index.ts +2 -2
- package/api/WMS/models.ts +351 -342
- package/api/api.ts +1 -1
- package/api/def.ts +1 -1
- package/api/index.ts +2 -2
- package/component/KgWarehouse/KgWarehouse.vue +4 -4
- package/component/KgWarehouse/index.hooks.ts +3 -3
- package/component/KgWarehouse/index.store.ts +6 -6
- package/package.json +2 -3
- package/script/cmd.mjs +8 -2
- package/api/WMS/Controllers/WhController/ListVO.ts +0 -88
|
@@ -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 +1 @@
|
|
|
1
|
-
export { GetLatestApkVersion, GetLatestApkVersionQuery } from './GetLatestApkVersion';
|
|
1
|
+
export { GetLatestApkVersion, GetLatestApkVersionQuery } from './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';
|
|
@@ -0,0 +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 ListVOQuery {
|
|
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?: ListVOQuery) {
|
|
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 ListVO(config?: IRequestConfig<ListVOQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WarehouseDTO>> {
|
|
41
|
+
return httpClient().request({ method: ListVO.method, url: ListVO.url, ...(config ?? {}) }, option);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
ListVO.method = 'GET' as const;
|
|
45
|
+
ListVO.url = '/wh/wh/listVO';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ListVO, ListVOQuery } from './ListVO';
|
|
1
|
+
export { ListVO, ListVOQuery } from './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
|
|
4
|
-
export * as WorkstationController from './WorkstationController';
|
|
1
|
+
export * as CommonController from './CommonController';
|
|
2
|
+
export * as LoginController from './LoginController';
|
|
3
|
+
export * as WarehouseController from './WarehouseController';
|
|
4
|
+
export * as WorkstationController from './WorkstationController';
|
package/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/api/WMS/models.ts
CHANGED
|
@@ -1,342 +1,351 @@
|
|
|
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
|
|
170
|
-
/** 是否可用. */
|
|
171
|
-
public activeFlg?: number | null;
|
|
172
|
-
/** 地址编号. */
|
|
173
|
-
public adrId?: string | null;
|
|
174
|
-
/** 地址名. */
|
|
175
|
-
public adrnam?: string | null;
|
|
176
|
-
/**
|
|
177
|
-
public
|
|
178
|
-
/**
|
|
179
|
-
public
|
|
180
|
-
/**
|
|
181
|
-
public
|
|
182
|
-
/**
|
|
183
|
-
public
|
|
184
|
-
/**
|
|
185
|
-
public
|
|
186
|
-
/**
|
|
187
|
-
public
|
|
188
|
-
/**
|
|
189
|
-
public
|
|
190
|
-
/**
|
|
191
|
-
public
|
|
192
|
-
/**
|
|
193
|
-
public
|
|
194
|
-
/**
|
|
195
|
-
public
|
|
196
|
-
/**
|
|
197
|
-
public
|
|
198
|
-
|
|
199
|
-
public
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
case '
|
|
209
|
-
case '
|
|
210
|
-
case '
|
|
211
|
-
case '
|
|
212
|
-
case '
|
|
213
|
-
case '
|
|
214
|
-
case '
|
|
215
|
-
case '
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
case '
|
|
314
|
-
case '
|
|
315
|
-
case '
|
|
316
|
-
case '
|
|
317
|
-
case '
|
|
318
|
-
case '
|
|
319
|
-
case '
|
|
320
|
-
case '
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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 WarehouseDTO {
|
|
170
|
+
/** 是否可用. */
|
|
171
|
+
public activeFlg?: number | null;
|
|
172
|
+
/** 地址编号. */
|
|
173
|
+
public adrId?: string | null;
|
|
174
|
+
/** 地址名. */
|
|
175
|
+
public adrnam?: string | null;
|
|
176
|
+
/** 默认仓库. */
|
|
177
|
+
public defWhFlg?: number | null;
|
|
178
|
+
/** 主键. */
|
|
179
|
+
public id?: string | null;
|
|
180
|
+
/** 创建日期. */
|
|
181
|
+
public insDt?: string | null;
|
|
182
|
+
/** 创建人. */
|
|
183
|
+
public insUsrId?: string | null;
|
|
184
|
+
/** 修改用户编号. */
|
|
185
|
+
public modUsrId?: string | null;
|
|
186
|
+
/** 更新日期. */
|
|
187
|
+
public moddte?: string | null;
|
|
188
|
+
/** 所属地/国编号. */
|
|
189
|
+
public orgcod?: string | null;
|
|
190
|
+
/** 永久调整托盘. */
|
|
191
|
+
public permAdjLod?: string | null;
|
|
192
|
+
/** 永久调整箱. */
|
|
193
|
+
public permAdjSub?: string | null;
|
|
194
|
+
/** 永久创建托盘. */
|
|
195
|
+
public permCreLod?: string | null;
|
|
196
|
+
/** 永久创建箱. */
|
|
197
|
+
public permCreSub?: string | null;
|
|
198
|
+
/** 版本. */
|
|
199
|
+
public version?: number | null;
|
|
200
|
+
/** 仓库名称. */
|
|
201
|
+
public whDsc?: string | null;
|
|
202
|
+
/** 仓库编号(WarehouseId). */
|
|
203
|
+
public whId?: string | null;
|
|
204
|
+
|
|
205
|
+
public constructor(obj?: WarehouseDTO) {
|
|
206
|
+
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
207
|
+
switch (key) {
|
|
208
|
+
case 'activeFlg':
|
|
209
|
+
case 'adrId':
|
|
210
|
+
case 'adrnam':
|
|
211
|
+
case 'defWhFlg':
|
|
212
|
+
case 'id':
|
|
213
|
+
case 'insDt':
|
|
214
|
+
case 'insUsrId':
|
|
215
|
+
case 'modUsrId':
|
|
216
|
+
case 'moddte':
|
|
217
|
+
case 'orgcod':
|
|
218
|
+
case 'permAdjLod':
|
|
219
|
+
case 'permAdjSub':
|
|
220
|
+
case 'permCreLod':
|
|
221
|
+
case 'permCreSub':
|
|
222
|
+
case 'version':
|
|
223
|
+
case 'whDsc':
|
|
224
|
+
case 'whId':
|
|
225
|
+
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
226
|
+
break;
|
|
227
|
+
default:
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** 工作站区域数据传输对象. */
|
|
235
|
+
export class WorkstationAreaDTO {
|
|
236
|
+
/** 主键. */
|
|
237
|
+
public id?: string | null;
|
|
238
|
+
/** 创建日期. */
|
|
239
|
+
public insDt?: string | null;
|
|
240
|
+
/** 创建用户. */
|
|
241
|
+
public insUsrId?: string | null;
|
|
242
|
+
/** 修改日期. */
|
|
243
|
+
public modUsrId?: string | null;
|
|
244
|
+
/** 修改用户. */
|
|
245
|
+
public moddte?: string | null;
|
|
246
|
+
/** 仓库. */
|
|
247
|
+
public whId?: string | null;
|
|
248
|
+
/** 工作区. */
|
|
249
|
+
public wrkare?: string | null;
|
|
250
|
+
/** 工作区描述. */
|
|
251
|
+
public wrkareDsc?: string | null;
|
|
252
|
+
|
|
253
|
+
public constructor(obj?: WorkstationAreaDTO) {
|
|
254
|
+
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
255
|
+
switch (key) {
|
|
256
|
+
case 'id':
|
|
257
|
+
case 'insDt':
|
|
258
|
+
case 'insUsrId':
|
|
259
|
+
case 'modUsrId':
|
|
260
|
+
case 'moddte':
|
|
261
|
+
case 'whId':
|
|
262
|
+
case 'wrkare':
|
|
263
|
+
case 'wrkareDsc':
|
|
264
|
+
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
265
|
+
break;
|
|
266
|
+
default:
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/** 工作站数据传输对象. */
|
|
274
|
+
export class WorkstationDTO {
|
|
275
|
+
/** 工作站. */
|
|
276
|
+
public devcod?: string | null;
|
|
277
|
+
/** 工作站描述. */
|
|
278
|
+
public devcodDsc?: string | null;
|
|
279
|
+
/** 主工作区. */
|
|
280
|
+
public hmewrkare?: string | null;
|
|
281
|
+
/** 主工作区描述. */
|
|
282
|
+
public hmewrkareDsc?: string | null;
|
|
283
|
+
/** 主键. */
|
|
284
|
+
public id?: string | null;
|
|
285
|
+
/** 创建日期. */
|
|
286
|
+
public insDt?: string | null;
|
|
287
|
+
/** 创建用户. */
|
|
288
|
+
public insUsrId?: string | null;
|
|
289
|
+
/** 标签打印机(Label Printer Address). */
|
|
290
|
+
public lblPrtadr?: string | null;
|
|
291
|
+
/** 标签打印机名称. */
|
|
292
|
+
public lblPrtadrDsc?: string | null;
|
|
293
|
+
/** 便携标签打印机(Mobile Printer Address). */
|
|
294
|
+
public mobPrtadr?: string | null;
|
|
295
|
+
/** 便携标签打印机名称. */
|
|
296
|
+
public mobPrtadrDsc?: string | null;
|
|
297
|
+
/** 修改日期. */
|
|
298
|
+
public modUsrId?: string | null;
|
|
299
|
+
/** 修改用户. */
|
|
300
|
+
public moddte?: string | null;
|
|
301
|
+
/** 纸张打印机(Paper Printer Address). */
|
|
302
|
+
public papPrtadr?: string | null;
|
|
303
|
+
/** 纸张打印机名称. */
|
|
304
|
+
public papPrtadrDsc?: string | null;
|
|
305
|
+
/** 仓库. */
|
|
306
|
+
public whId?: string | null;
|
|
307
|
+
/** 工作站与工作区域关系. */
|
|
308
|
+
public workstationAndAreaRelationshipDTOList?: Array<WorkstationAreaDTO> | null;
|
|
309
|
+
|
|
310
|
+
public constructor(obj?: WorkstationDTO) {
|
|
311
|
+
keys(obj ?? {}).forEach((key: PropertyKey) => {
|
|
312
|
+
switch (key) {
|
|
313
|
+
case 'devcod':
|
|
314
|
+
case 'devcodDsc':
|
|
315
|
+
case 'hmewrkare':
|
|
316
|
+
case 'hmewrkareDsc':
|
|
317
|
+
case 'id':
|
|
318
|
+
case 'insDt':
|
|
319
|
+
case 'insUsrId':
|
|
320
|
+
case 'lblPrtadr':
|
|
321
|
+
case 'lblPrtadrDsc':
|
|
322
|
+
case 'mobPrtadr':
|
|
323
|
+
case 'mobPrtadrDsc':
|
|
324
|
+
case 'modUsrId':
|
|
325
|
+
case 'moddte':
|
|
326
|
+
case 'papPrtadr':
|
|
327
|
+
case 'papPrtadrDsc':
|
|
328
|
+
case 'whId':
|
|
329
|
+
case 'workstationAndAreaRelationshipDTOList':
|
|
330
|
+
Reflect.set(this, key, Reflect.get(obj ?? {}, key));
|
|
331
|
+
break;
|
|
332
|
+
default:
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* 获取对象的属性名数组.
|
|
341
|
+
* @param obj 对象.
|
|
342
|
+
*/
|
|
343
|
+
export function keys<C extends object>(obj: C): Array<keyof C> {
|
|
344
|
+
const type = typeof obj;
|
|
345
|
+
|
|
346
|
+
if (!(obj != null && (type === 'object' || type === 'function'))) {
|
|
347
|
+
return [];
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
return Reflect.ownKeys(obj) as Array<keyof C>;
|
|
351
|
+
}
|
package/api/api.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { WMSAPI as WMS } from './WMS';
|
|
1
|
+
export { WMSAPI as WMS } from './WMS';
|
package/api/def.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { WMSDEF as WMS } from './WMS';
|
|
1
|
+
export { WMSDEF as WMS } from './WMS';
|
package/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';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { UniDataCheckbox, UniPopup, UniPopupDialog } from '../../uni-ui';
|
|
11
11
|
import { API } from '../../api';
|
|
12
12
|
import { computed, ref } from 'vue';
|
|
13
|
-
import { SysUserWarehouseDTO,
|
|
13
|
+
import { SysUserWarehouseDTO, WarehouseDTO } from '../../api/WMS/models';
|
|
14
14
|
import { useKgWarehouse } from './index.hooks';
|
|
15
15
|
import { useAppStore } from '../../store/app.store';
|
|
16
16
|
import { Kg } from '../../util';
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/** 当前选择的仓库编号. */
|
|
25
25
|
const currentWhId = ref<string>('');
|
|
26
26
|
/** 仓库列表. */
|
|
27
|
-
const warehouses = ref<Array<
|
|
27
|
+
const warehouses = ref<Array<WarehouseDTO>>([]);
|
|
28
28
|
/** 选项列表. */
|
|
29
29
|
const warehouseDatas = ref<Array<{ text: string; value: string }>>([]);
|
|
30
30
|
/** 用户仓库列表. */
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
/** 查询仓库列表. */
|
|
47
47
|
async function requestWarehouses(): Promise<void> {
|
|
48
48
|
try {
|
|
49
|
-
const { records } = await API.WMS.
|
|
49
|
+
const { records } = await API.WMS.WarehouseController.ListVO({ params: { pageNo: 1, pageSize: 999 } });
|
|
50
50
|
warehouses.value = (records ?? []).filter((i) => {
|
|
51
51
|
// 管理员拥有所有仓库
|
|
52
52
|
if (Kg.isAdminUser()) {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
return userWarehouses.value?.find((j) => j.wh_id === i.whId);
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
warehouseDatas.value = warehouses.value.map((i:
|
|
59
|
+
warehouseDatas.value = warehouses.value.map((i: WarehouseDTO) => ({
|
|
60
60
|
text: `${i.whDsc ?? ' '} - ${i.whId ?? ' '}`,
|
|
61
61
|
value: i.whId ?? '',
|
|
62
62
|
}));
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { computed, ComputedRef } from 'vue';
|
|
2
2
|
import { IKgWarehouseStore, useKgWarehouseStore } from './index.store';
|
|
3
|
-
import {
|
|
3
|
+
import { WarehouseDTO } from '../../api/WMS/models';
|
|
4
4
|
import { useAppStore } from '../../store/app.store';
|
|
5
5
|
|
|
6
6
|
export type IUseKgWarehouse = {
|
|
7
7
|
store: IKgWarehouseStore;
|
|
8
8
|
/** 当前仓库. */
|
|
9
|
-
warehouse: ComputedRef<
|
|
9
|
+
warehouse: ComputedRef<WarehouseDTO | null>;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export function useKgWarehouse(): IUseKgWarehouse {
|
|
13
13
|
const store = useKgWarehouseStore();
|
|
14
14
|
const appStore = useAppStore();
|
|
15
15
|
|
|
16
|
-
const warehouse = computed<
|
|
16
|
+
const warehouse = computed<WarehouseDTO | null>(() => {
|
|
17
17
|
if (!store.getWarehouse) {
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineStore, StoreDefinition } from 'pinia';
|
|
2
2
|
import { toRaw, unref } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { WarehouseDTO } from '../../api/WMS/models';
|
|
4
4
|
|
|
5
5
|
const LOCAL_STORAGE_KEY = 'KgWarehouse.warehouse';
|
|
6
6
|
|
|
7
7
|
export interface IKgWarehouseState {
|
|
8
8
|
/** 仓库对象. */
|
|
9
|
-
warehouse:
|
|
9
|
+
warehouse: WarehouseDTO | null;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export type IUseKgWarehouseStore = StoreDefinition<
|
|
13
13
|
'KgWarehouse',
|
|
14
14
|
IKgWarehouseState,
|
|
15
15
|
{
|
|
16
|
-
getWarehouse:
|
|
16
|
+
getWarehouse: WarehouseDTO | null;
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
setWarehouse(warehouse?:
|
|
19
|
+
setWarehouse(warehouse?: WarehouseDTO | null): void;
|
|
20
20
|
}
|
|
21
21
|
>;
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ export type IKgWarehouseStore = ReturnType<IUseKgWarehouseStore>;
|
|
|
24
24
|
|
|
25
25
|
export const useKgWarehouseStore = defineStore('KgWarehouse', {
|
|
26
26
|
actions: {
|
|
27
|
-
setWarehouse(warehouse?:
|
|
27
|
+
setWarehouse(warehouse?: WarehouseDTO | null): void {
|
|
28
28
|
if (!warehouse) {
|
|
29
29
|
this.warehouse = null;
|
|
30
30
|
uni.setStorageSync(LOCAL_STORAGE_KEY, null);
|
|
@@ -36,7 +36,7 @@ export const useKgWarehouseStore = defineStore('KgWarehouse', {
|
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
getters: {
|
|
39
|
-
getWarehouse():
|
|
39
|
+
getWarehouse(): WarehouseDTO | null {
|
|
40
40
|
return this.warehouse || null;
|
|
41
41
|
},
|
|
42
42
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/uni",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"postinstall": "node ./script/postinstall.mjs"
|
|
6
6
|
},
|
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
"@dcloudio/uni-i18n": "3.0.0-alpha-3080220230428001",
|
|
19
19
|
"@dcloudio/uni-stacktracey": "3.0.0-alpha-3080220230428001",
|
|
20
20
|
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-3080220230428001",
|
|
21
|
-
"@kengic/pont": "1.2
|
|
21
|
+
"@kengic/pont": "2.1.2",
|
|
22
22
|
"@types/lodash-es": "4.17.12",
|
|
23
23
|
"@types/node": "18.16.3",
|
|
24
24
|
"@types/semver": "7.3.13",
|
|
25
|
-
"@types/uuid": "11.0.0",
|
|
26
25
|
"@vitejs/plugin-vue": "4.2.1",
|
|
27
26
|
"@vueuse/core": "8.9.4",
|
|
28
27
|
"@vueuse/shared": "8.9.4",
|
package/script/cmd.mjs
CHANGED
|
@@ -24,16 +24,22 @@ async function cmd() {
|
|
|
24
24
|
log(`当前目录 | ${process.cwd()}`);
|
|
25
25
|
|
|
26
26
|
if (!args.appid) {
|
|
27
|
-
log(
|
|
27
|
+
log(`参数不能为空 | appid`);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
const sourceDir = process.cwd() + '/dist/build/app';
|
|
31
32
|
const targetDir = process.cwd() + '/android/app/src/main/assets/apps/__UNI__8B6E231/www';
|
|
33
|
+
|
|
34
|
+
if (!fs.existsSync(sourceDir)) {
|
|
35
|
+
log(`起始目录尚不存在 | ${sourceDir}`);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
log(`开始删除旧的目录 | ${targetDir}`);
|
|
33
40
|
fs.rmSync(targetDir, { force: true, recursive: true });
|
|
34
41
|
log(`完成删除旧的目录 | ${targetDir}`);
|
|
35
42
|
|
|
36
|
-
const sourceDir = process.cwd() + '/dist/build/app';
|
|
37
43
|
log(`开始复制新的文件 | ${sourceDir}`);
|
|
38
44
|
fs.cpSync(sourceDir, targetDir, { recursive: true });
|
|
39
45
|
log(`完成复制新的文件 | ${sourceDir}`);
|
|
@@ -1,88 +0,0 @@
|
|
|
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';
|