@ningboyz/types 1.0.6 → 1.0.8
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/index.ts +27 -18
- package/package.json +1 -2
- package/src/app/ITab.ts +8 -0
- package/src/app/IUserData.ts +5 -0
- package/src/app/index.ts +3 -5
- package/src/base/IBaseResponse.ts +4 -2
- package/src/card/ICardMainResponse.ts +368 -0
- package/src/card/IGblbResponse.ts +74 -0
- package/src/card/IZcbdResponse.ts +106 -0
- package/src/card/IZccfResponse.ts +87 -0
- package/src/card/IZcczResponse.ts +83 -0
- package/src/card/IZcdbResponse.ts +83 -0
- package/src/card/index.ts +21 -0
- package/src/conf/ICnfgMainResponse.ts +83 -0
- package/src/conf/IConfig.ts +6 -0
- package/src/conf/index.ts +3 -0
- package/src/const/const_align.ts +0 -1
- package/src/const/const_stat.ts +1 -7
- package/src/const/const_type_name.ts +1 -0
- package/src/core/IDeptResponse.ts +4 -0
- package/src/core/IDictResponse.ts +14 -0
- package/src/core/IDictResponseDictPara.ts +10 -2
- package/src/core/ILaidResponse.ts +5 -0
- package/src/core/ITypeResponse.ts +12 -0
- package/src/core/IUnitResponse.ts +3 -0
- package/src/core/IUnitResponseElemPara.ts +2 -6
- package/src/core/IUserResponse.ts +2 -2
- package/src/core/index.ts +17 -17
- package/src/enums/btnMode.ts +19 -0
- package/src/enums/cardMode.ts +27 -0
- package/src/enums/index.ts +3 -1
- package/src/flow/IFlowDutyNodeParaConv.ts +1 -1
- package/src/flow/IFlowTypeResponse.ts +2 -6
- package/src/flow/index.ts +5 -6
- package/src/gams/index.ts +1 -5
- package/src/gzjg/IGzjgGzlmResponse.ts +7 -3
- package/src/gzjg/index.ts +5 -6
- package/src/load/IYqdwResponse.ts +65 -0
- package/src/load/IYqkbResponse.ts +65 -0
- package/src/load/IYqkmResponse.ts +49 -0
- package/src/load/index.ts +5 -0
- package/src/micro/appData.ts +29 -0
- package/src/micro/appName.ts +6 -0
- package/src/micro/appTab.ts +15 -0
- package/src/micro/index.ts +6 -0
- package/src/pzpt/IPzptCnfgResponse.ts +6 -0
- package/src/pzpt/IPzptK8kmResponse.ts +7 -4
- package/src/pzpt/IPzptTypeResponse.ts +4 -0
- package/src/pzpt/index.ts +7 -8
- package/src/store/index.ts +3 -1
- package/src/store/tabsState.ts +1 -1
- package/src/store/viewState.ts +5 -1
- package/src/tabl/index.ts +1 -9
- package/src/wldy/IWldyDataResponse.ts +6 -0
- package/src/wldy/IWldyPageParaResponse.ts +42 -0
- package/src/wldy/IWldyPageResponse.ts +22 -0
- package/src/wldy/index.ts +10 -5
- package/src/wlzf/index.ts +1 -5
- package/src/wtui/IViewCtrlResponse.ts +3 -2
- package/src/wtui/index.ts +1 -11
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { IPathResponse } from "../core";
|
|
2
|
+
|
|
3
|
+
export interface IZccfResponse {
|
|
4
|
+
whoBuild: number;
|
|
5
|
+
userIndx: number;
|
|
6
|
+
zccfIndx: number;
|
|
7
|
+
parentID: number;
|
|
8
|
+
hashCode: number;
|
|
9
|
+
dataLevl: number;
|
|
10
|
+
dataFrom: number;
|
|
11
|
+
kjndKJQJ: number;
|
|
12
|
+
dataStat: number;
|
|
13
|
+
dataOrdr: number;
|
|
14
|
+
dataHide: number;
|
|
15
|
+
dataType: number;
|
|
16
|
+
dataDate: number;
|
|
17
|
+
dataTime: number;
|
|
18
|
+
dataGUID: string;
|
|
19
|
+
userMain: number;
|
|
20
|
+
mastName: string;
|
|
21
|
+
mastGUID: string;
|
|
22
|
+
createBy: string;
|
|
23
|
+
createAt: number;
|
|
24
|
+
updateBy: string;
|
|
25
|
+
updateAt: number;
|
|
26
|
+
deleteBy: string;
|
|
27
|
+
deleteAt: number;
|
|
28
|
+
queuesBy: number;
|
|
29
|
+
entityID: string;
|
|
30
|
+
sourceND: number;
|
|
31
|
+
menuMain: number;
|
|
32
|
+
menuUUID: string;
|
|
33
|
+
unitMain: number;
|
|
34
|
+
deptMain: number;
|
|
35
|
+
sqyhText: string;
|
|
36
|
+
sqbmText: string;
|
|
37
|
+
flowUndo: number;
|
|
38
|
+
flowText: string;
|
|
39
|
+
flowUser: string;
|
|
40
|
+
cardMain: number;
|
|
41
|
+
cardExid: number;
|
|
42
|
+
|
|
43
|
+
listPath: IPathResponse[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class TZccfResponse implements IZccfResponse {
|
|
47
|
+
whoBuild: number = 0;
|
|
48
|
+
userIndx: number = 0;
|
|
49
|
+
zccfIndx: number = 0;
|
|
50
|
+
parentID: number = 0;
|
|
51
|
+
hashCode: number = 0;
|
|
52
|
+
dataLevl: number = 0;
|
|
53
|
+
dataFrom: number = 0;
|
|
54
|
+
kjndKJQJ: number = 0;
|
|
55
|
+
dataStat: number = 0;
|
|
56
|
+
dataOrdr: number = 0;
|
|
57
|
+
dataHide: number = 0;
|
|
58
|
+
dataType: number = 0;
|
|
59
|
+
dataDate: number = 0;
|
|
60
|
+
dataTime: number = 0;
|
|
61
|
+
dataGUID: string = "";
|
|
62
|
+
userMain: number = 0;
|
|
63
|
+
mastName: string = "";
|
|
64
|
+
mastGUID: string = "";
|
|
65
|
+
createBy: string = "";
|
|
66
|
+
createAt: number = 0;
|
|
67
|
+
updateBy: string = "";
|
|
68
|
+
updateAt: number = 0;
|
|
69
|
+
deleteBy: string = "";
|
|
70
|
+
deleteAt: number = 0;
|
|
71
|
+
queuesBy: number = 0;
|
|
72
|
+
entityID: string = "";
|
|
73
|
+
sourceND: number = 0;
|
|
74
|
+
menuMain: number = 0;
|
|
75
|
+
menuUUID: string = "";
|
|
76
|
+
unitMain: number = 0;
|
|
77
|
+
deptMain: number = 0;
|
|
78
|
+
sqyhText: string = "";
|
|
79
|
+
sqbmText: string = "";
|
|
80
|
+
flowUndo: number = 0;
|
|
81
|
+
flowText: string = "";
|
|
82
|
+
flowUser: string = "";
|
|
83
|
+
cardMain: number = 0;
|
|
84
|
+
cardExid: number = 0;
|
|
85
|
+
|
|
86
|
+
listPath: IPathResponse[] = [];
|
|
87
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { IPathResponse } from "../core";
|
|
2
|
+
|
|
3
|
+
export interface IZcczResponse {
|
|
4
|
+
whoBuild: number;
|
|
5
|
+
userIndx: number;
|
|
6
|
+
zcczIndx: number;
|
|
7
|
+
parentID: number;
|
|
8
|
+
hashCode: number;
|
|
9
|
+
dataLevl: number;
|
|
10
|
+
dataFrom: number;
|
|
11
|
+
kjndKJQJ: number;
|
|
12
|
+
dataStat: number;
|
|
13
|
+
dataOrdr: number;
|
|
14
|
+
dataHide: number;
|
|
15
|
+
dataType: number;
|
|
16
|
+
dataDate: number;
|
|
17
|
+
dataTime: number;
|
|
18
|
+
dataGUID: string;
|
|
19
|
+
userMain: number;
|
|
20
|
+
mastName: string;
|
|
21
|
+
mastGUID: string;
|
|
22
|
+
createBy: string;
|
|
23
|
+
createAt: number;
|
|
24
|
+
updateBy: string;
|
|
25
|
+
updateAt: number;
|
|
26
|
+
deleteBy: string;
|
|
27
|
+
deleteAt: number;
|
|
28
|
+
queuesBy: number;
|
|
29
|
+
entityID: string;
|
|
30
|
+
sourceND: number;
|
|
31
|
+
menuMain: number;
|
|
32
|
+
menuUUID: string;
|
|
33
|
+
unitMain: number;
|
|
34
|
+
deptMain: number;
|
|
35
|
+
sqyhText: string;
|
|
36
|
+
sqbmText: string;
|
|
37
|
+
flowUndo: number;
|
|
38
|
+
flowText: string;
|
|
39
|
+
flowUser: string;
|
|
40
|
+
|
|
41
|
+
listPath: IPathResponse[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export class TZcczResponse implements IZcczResponse {
|
|
45
|
+
whoBuild: number = 0;
|
|
46
|
+
userIndx: number = 0;
|
|
47
|
+
zcczIndx: number = 0;
|
|
48
|
+
parentID: number = 0;
|
|
49
|
+
hashCode: number = 0;
|
|
50
|
+
dataLevl: number = 0;
|
|
51
|
+
dataFrom: number = 0;
|
|
52
|
+
kjndKJQJ: number = 0;
|
|
53
|
+
dataStat: number = 0;
|
|
54
|
+
dataOrdr: number = 0;
|
|
55
|
+
dataHide: number = 0;
|
|
56
|
+
dataType: number = 0;
|
|
57
|
+
dataDate: number = 0;
|
|
58
|
+
dataTime: number = 0;
|
|
59
|
+
dataGUID: string = "";
|
|
60
|
+
userMain: number = 0;
|
|
61
|
+
mastName: string = "";
|
|
62
|
+
mastGUID: string = "";
|
|
63
|
+
createBy: string = "";
|
|
64
|
+
createAt: number = 0;
|
|
65
|
+
updateBy: string = "";
|
|
66
|
+
updateAt: number = 0;
|
|
67
|
+
deleteBy: string = "";
|
|
68
|
+
deleteAt: number = 0;
|
|
69
|
+
queuesBy: number = 0;
|
|
70
|
+
entityID: string = "";
|
|
71
|
+
sourceND: number = 0;
|
|
72
|
+
menuMain: number = 0;
|
|
73
|
+
menuUUID: string = "";
|
|
74
|
+
unitMain: number = 0;
|
|
75
|
+
deptMain: number = 0;
|
|
76
|
+
sqyhText: string = "";
|
|
77
|
+
sqbmText: string = "";
|
|
78
|
+
flowUndo: number = 0;
|
|
79
|
+
flowText: string = "";
|
|
80
|
+
flowUser: string = "";
|
|
81
|
+
|
|
82
|
+
listPath: IPathResponse[] = [];
|
|
83
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { IPathResponse } from "../core";
|
|
2
|
+
|
|
3
|
+
export interface IZcdbResponse {
|
|
4
|
+
whoBuild: number;
|
|
5
|
+
userIndx: number;
|
|
6
|
+
zcdbIndx: number;
|
|
7
|
+
parentID: number;
|
|
8
|
+
hashCode: number;
|
|
9
|
+
dataLevl: number;
|
|
10
|
+
dataFrom: number;
|
|
11
|
+
kjndKJQJ: number;
|
|
12
|
+
dataStat: number;
|
|
13
|
+
dataOrdr: number;
|
|
14
|
+
dataHide: number;
|
|
15
|
+
dataType: number;
|
|
16
|
+
dataDate: number;
|
|
17
|
+
dataTime: number;
|
|
18
|
+
dataGUID: string;
|
|
19
|
+
userMain: number;
|
|
20
|
+
mastName: string;
|
|
21
|
+
mastGUID: string;
|
|
22
|
+
createBy: string;
|
|
23
|
+
createAt: number;
|
|
24
|
+
updateBy: string;
|
|
25
|
+
updateAt: number;
|
|
26
|
+
deleteBy: string;
|
|
27
|
+
deleteAt: number;
|
|
28
|
+
queuesBy: number;
|
|
29
|
+
entityID: string;
|
|
30
|
+
sourceND: number;
|
|
31
|
+
menuMain: number;
|
|
32
|
+
menuUUID: string;
|
|
33
|
+
unitMain: number;
|
|
34
|
+
deptMain: number;
|
|
35
|
+
sqyhText: string;
|
|
36
|
+
sqbmText: string;
|
|
37
|
+
flowUndo: number;
|
|
38
|
+
flowText: string;
|
|
39
|
+
flowUser: string;
|
|
40
|
+
|
|
41
|
+
listPath: IPathResponse[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export class TZcdbResponse implements IZcdbResponse {
|
|
45
|
+
whoBuild: number = 0;
|
|
46
|
+
userIndx: number = 0;
|
|
47
|
+
zcdbIndx: number = 0;
|
|
48
|
+
parentID: number = 0;
|
|
49
|
+
hashCode: number = 0;
|
|
50
|
+
dataLevl: number = 0;
|
|
51
|
+
dataFrom: number = 0;
|
|
52
|
+
kjndKJQJ: number = 0;
|
|
53
|
+
dataStat: number = 0;
|
|
54
|
+
dataOrdr: number = 0;
|
|
55
|
+
dataHide: number = 0;
|
|
56
|
+
dataType: number = 0;
|
|
57
|
+
dataDate: number = 0;
|
|
58
|
+
dataTime: number = 0;
|
|
59
|
+
dataGUID: string = "";
|
|
60
|
+
userMain: number = 0;
|
|
61
|
+
mastName: string = "";
|
|
62
|
+
mastGUID: string = "";
|
|
63
|
+
createBy: string = "";
|
|
64
|
+
createAt: number = 0;
|
|
65
|
+
updateBy: string = "";
|
|
66
|
+
updateAt: number = 0;
|
|
67
|
+
deleteBy: string = "";
|
|
68
|
+
deleteAt: number = 0;
|
|
69
|
+
queuesBy: number = 0;
|
|
70
|
+
entityID: string = "";
|
|
71
|
+
sourceND: number = 0;
|
|
72
|
+
menuMain: number = 0;
|
|
73
|
+
menuUUID: string = "";
|
|
74
|
+
unitMain: number = 0;
|
|
75
|
+
deptMain: number = 0;
|
|
76
|
+
sqyhText: string = "";
|
|
77
|
+
sqbmText: string = "";
|
|
78
|
+
flowUndo: number = 0;
|
|
79
|
+
flowText: string = "";
|
|
80
|
+
flowUser: string = "";
|
|
81
|
+
|
|
82
|
+
listPath: IPathResponse[] = [];
|
|
83
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ICardMainResponse, TCardMainResponse } from "./ICardMainResponse";
|
|
2
|
+
import { IGblbResponse, TGblbResponse } from "./IGblbResponse";
|
|
3
|
+
import { IZcbdResponse, TZcbdResponse } from "./IZcbdResponse";
|
|
4
|
+
import { IZccfResponse, TZccfResponse } from "./IZccfResponse";
|
|
5
|
+
import { IZcczResponse, TZcczResponse } from "./IZcczResponse";
|
|
6
|
+
import { IZcdbResponse, TZcdbResponse } from "./IZcdbResponse";
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
TCardMainResponse,
|
|
10
|
+
TGblbResponse,
|
|
11
|
+
TZcbdResponse,
|
|
12
|
+
TZccfResponse,
|
|
13
|
+
TZcczResponse,
|
|
14
|
+
TZcdbResponse,
|
|
15
|
+
type ICardMainResponse,
|
|
16
|
+
type IGblbResponse,
|
|
17
|
+
type IZcbdResponse,
|
|
18
|
+
type IZccfResponse,
|
|
19
|
+
type IZcczResponse,
|
|
20
|
+
type IZcdbResponse
|
|
21
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export interface ICnfgMainResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
cnfgIndx: number;
|
|
5
|
+
cnfgMain: number;
|
|
6
|
+
|
|
7
|
+
parentID: number;
|
|
8
|
+
hashCode: number;
|
|
9
|
+
dataLevl: number;
|
|
10
|
+
dataFrom: number;
|
|
11
|
+
dataType: number;
|
|
12
|
+
kjndKJQJ: number;
|
|
13
|
+
isLasted: number;
|
|
14
|
+
dataStat: number;
|
|
15
|
+
dataOrdr: number;
|
|
16
|
+
dataHide: number;
|
|
17
|
+
dataDate: number;
|
|
18
|
+
dataTime: number;
|
|
19
|
+
dataGUID: string;
|
|
20
|
+
userMain: number;
|
|
21
|
+
mastName: string;
|
|
22
|
+
mastGUID: string;
|
|
23
|
+
createBy: string;
|
|
24
|
+
createAt: number;
|
|
25
|
+
updateBy: string;
|
|
26
|
+
updateAt: number;
|
|
27
|
+
deleteBy: string;
|
|
28
|
+
deleteAt: number;
|
|
29
|
+
entityID: string;
|
|
30
|
+
queuesBy: number;
|
|
31
|
+
|
|
32
|
+
isPublic: number; //#是否开放
|
|
33
|
+
cnfgCode: string; //#配置编码
|
|
34
|
+
cnfgName: string; //#配置名称
|
|
35
|
+
cnfgUses: string; //#配置用途
|
|
36
|
+
cnfgMemo: string; //#配置备注
|
|
37
|
+
cnfgPara: string; //#参数约定
|
|
38
|
+
|
|
39
|
+
cnfg4key: string; //#配置项键--唯一键值,不对外开放
|
|
40
|
+
cnfg4val: string; //#配置项值
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class TCnfgMainResponse implements ICnfgMainResponse {
|
|
44
|
+
whoBuild: number = 0;
|
|
45
|
+
userIndx: number = 0;
|
|
46
|
+
cnfgIndx: number = 0;
|
|
47
|
+
cnfgMain: number = 0; //#虚拟字段,回传后端
|
|
48
|
+
|
|
49
|
+
parentID: number = 0;
|
|
50
|
+
hashCode: number = 0;
|
|
51
|
+
dataLevl: number = 0;
|
|
52
|
+
dataFrom: number = 0;
|
|
53
|
+
dataType: number = 0;
|
|
54
|
+
kjndKJQJ: number = 0;
|
|
55
|
+
isLasted: number = 0;
|
|
56
|
+
dataStat: number = 0;
|
|
57
|
+
dataOrdr: number = 0;
|
|
58
|
+
dataHide: number = 0;
|
|
59
|
+
dataDate: number = 0;
|
|
60
|
+
dataTime: number = 0;
|
|
61
|
+
dataGUID: string = "";
|
|
62
|
+
userMain: number = 0;
|
|
63
|
+
mastName: string = "";
|
|
64
|
+
mastGUID: string = "";
|
|
65
|
+
createBy: string = "";
|
|
66
|
+
createAt: number = 0;
|
|
67
|
+
updateBy: string = "";
|
|
68
|
+
updateAt: number = 0;
|
|
69
|
+
deleteBy: string = "";
|
|
70
|
+
deleteAt: number = 0;
|
|
71
|
+
entityID: string = "";
|
|
72
|
+
queuesBy: number = 0;
|
|
73
|
+
|
|
74
|
+
isPublic: number = 0;
|
|
75
|
+
cnfgCode: string = "";
|
|
76
|
+
cnfgName: string = "";
|
|
77
|
+
cnfgUses: string = "";
|
|
78
|
+
cnfgMemo: string = "";
|
|
79
|
+
cnfgPara: string = "";
|
|
80
|
+
|
|
81
|
+
cnfg4key: string = "";
|
|
82
|
+
cnfg4val: string = "";
|
|
83
|
+
}
|
package/src/conf/IConfig.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface IBaseConfig {
|
|
|
11
11
|
baseURL: string;
|
|
12
12
|
wsURL: string;
|
|
13
13
|
previewURL: string;
|
|
14
|
+
invoiceUrl: string;
|
|
14
15
|
liunxCameraURL: string;
|
|
15
16
|
windowsCameraURL: string;
|
|
16
17
|
verification: boolean;
|
|
@@ -19,7 +20,12 @@ export interface IBaseConfig {
|
|
|
19
20
|
mobileCheck: boolean;
|
|
20
21
|
}
|
|
21
22
|
|
|
23
|
+
export interface IPathConfig {
|
|
24
|
+
usesRotatePdf: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
export interface IConfig {
|
|
23
28
|
baseConfig: IBaseConfig;
|
|
24
29
|
aboutConfig: IAboutConfig;
|
|
30
|
+
pathConfig: IPathConfig;
|
|
25
31
|
}
|
package/src/const/const_align.ts
CHANGED
package/src/const/const_stat.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
//审核状态
|
|
2
|
-
|
|
3
|
-
import { CONST_MODULE_HTGL_HTSQ } from "./const_module";
|
|
4
|
-
|
|
5
1
|
/**
|
|
6
2
|
* 终止/作废
|
|
7
3
|
*/
|
|
@@ -303,9 +299,7 @@ export type MenuType =
|
|
|
303
299
|
| typeof CONST_ZCGL_MENU_JFSY
|
|
304
300
|
| typeof CONST_ZCGL_MENU_HTQD
|
|
305
301
|
| typeof CONST_ZCGL_MENU_CJPX
|
|
306
|
-
| typeof CONST_ZCGL_MENU_ZXJF
|
|
307
|
-
| typeof CONST_MODULE_HTGL_HTSQ
|
|
308
|
-
| typeof CONST_MODULE_HTGL_HTSQ;
|
|
302
|
+
| typeof CONST_ZCGL_MENU_ZXJF;
|
|
309
303
|
|
|
310
304
|
/**
|
|
311
305
|
* 驾驶舱
|
|
@@ -135,3 +135,4 @@ export const CONST_SYS_TYPEU_其他费用_评审类型 = "其他费用-评审类
|
|
|
135
135
|
export const CONST_SYS_TYPEU_事项管理_就餐场所 = "事项管理-就餐场所";
|
|
136
136
|
export const CONST_SYS_TYPEU_举办会议_会议地点 = "举办会议-会议地点";
|
|
137
137
|
export const CONST_SYS_TYPEU_包干经费支出 = "包干经费支出";
|
|
138
|
+
export const CONST_SYS_TYPEU_用户类型 = "用户管理-用户类型";
|
|
@@ -18,11 +18,14 @@ export interface IDeptResponse extends IBaseResponse<IDeptResponse[]> {
|
|
|
18
18
|
dataType: number;
|
|
19
19
|
deleteAt: number;
|
|
20
20
|
deleteBy: string;
|
|
21
|
+
/**联系电话 */
|
|
21
22
|
deptCall: string;
|
|
22
23
|
deptCode: string;
|
|
23
24
|
deptGnkm: string;
|
|
24
25
|
deptIndx: number;
|
|
26
|
+
/** 负责人 */
|
|
25
27
|
deptMast: string;
|
|
28
|
+
/** 备注 */
|
|
26
29
|
deptMemo: string;
|
|
27
30
|
deptName: string;
|
|
28
31
|
deptTypeText: string;
|
|
@@ -43,6 +46,7 @@ export interface IDeptResponse extends IBaseResponse<IDeptResponse[]> {
|
|
|
43
46
|
whoBuild: number;
|
|
44
47
|
matchVal: string;
|
|
45
48
|
queuesBy: number;
|
|
49
|
+
/** 部门类型 */
|
|
46
50
|
listBMLX: Array<IDictResponse>;
|
|
47
51
|
}
|
|
48
52
|
|
|
@@ -103,4 +103,18 @@ export class TDictResponse extends TBaseResponse<IDictResponse[]> implements IDi
|
|
|
103
103
|
public static toList(listDict: IDictResponse[]) {
|
|
104
104
|
return destruct(listDict, { id: "dictIndx", pid: "parentID", children: "children" }) as IDictResponse[];
|
|
105
105
|
}
|
|
106
|
+
|
|
107
|
+
public static parseJson(dictPara: string) {
|
|
108
|
+
const defaultDictPara = new TDictResponseDictPara();
|
|
109
|
+
if (_.isEmpty(dictPara)) {
|
|
110
|
+
return defaultDictPara;
|
|
111
|
+
}
|
|
112
|
+
try {
|
|
113
|
+
const obj = JSON.parse(dictPara) as TDictResponseDictPara;
|
|
114
|
+
return _.merge(defaultDictPara, obj);
|
|
115
|
+
} catch (e: any) {
|
|
116
|
+
console.error(e.message);
|
|
117
|
+
}
|
|
118
|
+
return defaultDictPara;
|
|
119
|
+
}
|
|
106
120
|
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export interface IDictResponseDictPara {
|
|
2
|
-
|
|
2
|
+
step: number;
|
|
3
|
+
zb: boolean;
|
|
4
|
+
required: boolean;
|
|
5
|
+
hidden: boolean;
|
|
6
|
+
show: boolean;
|
|
3
7
|
}
|
|
4
8
|
|
|
5
9
|
export class TDictResponseDictPara implements IDictResponseDictPara {
|
|
6
|
-
|
|
10
|
+
step: number = 0;
|
|
11
|
+
zb: boolean = false;
|
|
12
|
+
required: boolean = false;
|
|
13
|
+
hidden: boolean = false;
|
|
14
|
+
show: boolean = false;
|
|
7
15
|
}
|
|
@@ -98,4 +98,9 @@ export class TLaidResponse extends TBaseResponse<ILaidResponse> implements ILaid
|
|
|
98
98
|
public static toList(treeLaid: ILaidResponse[]) {
|
|
99
99
|
return destruct(treeLaid, { id: "laidIndx", pid: "parentID", children: "children" }) as ILaidResponse[];
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
constructor(response?: any) {
|
|
103
|
+
super();
|
|
104
|
+
if (response) Object.assign(this, response);
|
|
105
|
+
}
|
|
101
106
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { construct, destruct } from "@aximario/json-tree";
|
|
1
2
|
import { type IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
3
|
+
import _ from "lodash";
|
|
2
4
|
|
|
3
5
|
export interface ITypeResponse extends IBaseResponse<ITypeResponse[]> {
|
|
4
6
|
whoBuild: number;
|
|
@@ -38,6 +40,7 @@ export interface ITypeResponse extends IBaseResponse<ITypeResponse[]> {
|
|
|
38
40
|
iCascade: number;
|
|
39
41
|
sysClasc: number;
|
|
40
42
|
sysClasn: string;
|
|
43
|
+
label: string;
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
export class TTypeResponse extends TBaseResponse<ITypeResponse[]> implements ITypeResponse {
|
|
@@ -78,4 +81,13 @@ export class TTypeResponse extends TBaseResponse<ITypeResponse[]> implements ITy
|
|
|
78
81
|
iCascade: number = 0;
|
|
79
82
|
sysClasc: number = 0;
|
|
80
83
|
sysClasn: string = "";
|
|
84
|
+
label: string = "";
|
|
85
|
+
|
|
86
|
+
static toTree(listType: ITypeResponse[]) {
|
|
87
|
+
return construct(listType, { id: "typeMain", pid: "parentID", children: "children" }) as ITypeResponse[];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static toList(treeType: ITypeResponse[]) {
|
|
91
|
+
return destruct(treeType, { id: "typeMain", pid: "parentID", children: "children" }) as ITypeResponse[];
|
|
92
|
+
}
|
|
81
93
|
}
|
|
@@ -4,6 +4,7 @@ import type { IPzptTypeResponse } from "../pzpt/IPzptTypeResponse";
|
|
|
4
4
|
import { type IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
5
5
|
import type { IUnitResponseElemPara } from "./IUnitResponseElemPara";
|
|
6
6
|
import { TUnitResponseElemPara } from "./IUnitResponseElemPara";
|
|
7
|
+
import { IPzptCnfgResponse } from "../pzpt";
|
|
7
8
|
|
|
8
9
|
export interface IUnitResponse extends IBaseResponse<IUnitResponse[]> {
|
|
9
10
|
viewIndx: any;
|
|
@@ -58,6 +59,7 @@ export interface IUnitResponse extends IBaseResponse<IUnitResponse[]> {
|
|
|
58
59
|
belongToText: string;
|
|
59
60
|
belongToUsci: string;
|
|
60
61
|
listType: IPzptTypeResponse[];
|
|
62
|
+
listCnfg: IPzptCnfgResponse[];
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
export class TUnitResponse extends TBaseResponse<IUnitResponse[]> implements IUnitResponse {
|
|
@@ -113,6 +115,7 @@ export class TUnitResponse extends TBaseResponse<IUnitResponse[]> implements IUn
|
|
|
113
115
|
belongToText: string = "";
|
|
114
116
|
belongToUsci: string = "";
|
|
115
117
|
listType: IPzptTypeResponse[] = [];
|
|
118
|
+
listCnfg: IPzptCnfgResponse[] = [];
|
|
116
119
|
|
|
117
120
|
static parseJson(unitPara: string) {
|
|
118
121
|
const defaultUnitPara = new TUnitResponseElemPara();
|
|
@@ -108,7 +108,7 @@ export interface IUserResponse extends IBaseResponse<IUserResponse[]> {
|
|
|
108
108
|
userXzlvText: string; // #薪资级别(字典.名称)
|
|
109
109
|
userGwlxText: string;
|
|
110
110
|
userAcnoText: string;
|
|
111
|
-
|
|
111
|
+
employeeCode: string; // 登录三方的时候的verifyID
|
|
112
112
|
fromSourceND: number;
|
|
113
113
|
fromUserIndx: number;
|
|
114
114
|
fromWhoBuild: number;
|
|
@@ -192,7 +192,7 @@ export class TUserResponse extends TBaseResponse<IUserResponse[]> implements IUs
|
|
|
192
192
|
|
|
193
193
|
userExid: number = 0;
|
|
194
194
|
userGnkm: string = "";
|
|
195
|
-
|
|
195
|
+
employeeCode: string = "";
|
|
196
196
|
userIdcd: string = "";
|
|
197
197
|
|
|
198
198
|
userKJND: number = 0;
|
package/src/core/index.ts
CHANGED
|
@@ -18,23 +18,23 @@ import { IEnvrResponse, TEnvrResponse } from "./IEnvrResponse";
|
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
20
|
// 接口
|
|
21
|
-
IDeptLiteResponse,
|
|
22
|
-
IDeptResponse,
|
|
23
|
-
IDictResponse,
|
|
24
|
-
ILaidResponse,
|
|
25
|
-
IPartResponse,
|
|
26
|
-
IPathResponse,
|
|
27
|
-
ISourceItem,
|
|
28
|
-
IStypResponse,
|
|
29
|
-
ISysClasResponse,
|
|
30
|
-
ISysMenuWithCoreResponse,
|
|
31
|
-
ISysMenuWithExpdResponse,
|
|
32
|
-
ITypeResponse,
|
|
33
|
-
IUnitResponse,
|
|
34
|
-
IUserAcnoResponse,
|
|
35
|
-
IUserFindResponse,
|
|
36
|
-
IUserResponse,
|
|
37
|
-
IEnvrResponse,
|
|
21
|
+
type IDeptLiteResponse,
|
|
22
|
+
type IDeptResponse,
|
|
23
|
+
type IDictResponse,
|
|
24
|
+
type ILaidResponse,
|
|
25
|
+
type IPartResponse,
|
|
26
|
+
type IPathResponse,
|
|
27
|
+
type ISourceItem,
|
|
28
|
+
type IStypResponse,
|
|
29
|
+
type ISysClasResponse,
|
|
30
|
+
type ISysMenuWithCoreResponse,
|
|
31
|
+
type ISysMenuWithExpdResponse,
|
|
32
|
+
type ITypeResponse,
|
|
33
|
+
type IUnitResponse,
|
|
34
|
+
type IUserAcnoResponse,
|
|
35
|
+
type IUserFindResponse,
|
|
36
|
+
type IUserResponse,
|
|
37
|
+
type IEnvrResponse,
|
|
38
38
|
|
|
39
39
|
// 类
|
|
40
40
|
TDeptLiteResponse,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** 新增、修改、审核、查询、确定---蓝色(primary)
|
|
2
|
+
*
|
|
3
|
+
* 导出、打印 ---黄色(warning)
|
|
4
|
+
*
|
|
5
|
+
* 导入、其他---绿色(success)
|
|
6
|
+
*
|
|
7
|
+
* 删除、退回---红色(error)
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export enum TBtnActive {
|
|
11
|
+
/** 新增、修改、审核、查询、确定---蓝色 */
|
|
12
|
+
primary = "primary",
|
|
13
|
+
/** 导出、打印 ---黄色*/
|
|
14
|
+
warning = "warning",
|
|
15
|
+
/** 导入、其他、角色---绿色 */
|
|
16
|
+
success = "success",
|
|
17
|
+
/** 删除、退回---红色 */
|
|
18
|
+
error = "error"
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// #资产卡片
|
|
2
|
+
export enum TabActive {
|
|
3
|
+
/** 全部 */
|
|
4
|
+
all = "all",
|
|
5
|
+
/** 制单 */
|
|
6
|
+
create = "create",
|
|
7
|
+
/** 已审 */
|
|
8
|
+
Reviewed = "Reviewed",
|
|
9
|
+
/** 出借 */
|
|
10
|
+
lend = "lend",
|
|
11
|
+
/** 归还 */
|
|
12
|
+
return = "return",
|
|
13
|
+
/** 退回 */
|
|
14
|
+
back = "back",
|
|
15
|
+
/** 完成 */
|
|
16
|
+
change = "change",
|
|
17
|
+
/** 送审 */
|
|
18
|
+
submit = "submit",
|
|
19
|
+
/** 审核 */
|
|
20
|
+
audit = "audit",
|
|
21
|
+
/** 确认 */
|
|
22
|
+
confirm = "confirm",
|
|
23
|
+
/** 初审 */
|
|
24
|
+
trial = "trial",
|
|
25
|
+
/** 终审 */
|
|
26
|
+
final = "final"
|
|
27
|
+
}
|
package/src/enums/index.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { TabActive } from "./cardMode";
|
|
1
2
|
import { TDoneMode } from "./doneMode";
|
|
2
3
|
import { TEditMode } from "./editMode";
|
|
3
4
|
import { TFormType } from "./formType";
|
|
4
5
|
import { TViewMode } from "./viewMode";
|
|
5
6
|
import { StoreId } from "./storeId";
|
|
7
|
+
import { TBtnActive } from "./btnMode";
|
|
6
8
|
|
|
7
|
-
export { TDoneMode, TEditMode, TFormType, TViewMode, StoreId };
|
|
9
|
+
export { TabActive, TDoneMode, TEditMode, TFormType, TViewMode, StoreId, TBtnActive };
|