@ningboyz/types 1.0.38 → 1.0.39
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/package.json
CHANGED
|
@@ -1,63 +1,68 @@
|
|
|
1
1
|
import { construct, destruct } from "@aximario/json-tree";
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import { type IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
4
|
-
import
|
|
4
|
+
import { IUnitResponse } from "./IUnitResponse.ts";
|
|
5
5
|
import { TDictResponseDictPara } from "./IDictResponseDictPara";
|
|
6
6
|
import { TCore } from "../../index.ts";
|
|
7
7
|
|
|
8
8
|
export interface IDictResponse extends IBaseResponse<IDictResponse[]> {
|
|
9
9
|
asParent: number;
|
|
10
|
+
cardExid: number;
|
|
11
|
+
cardIndx: number;
|
|
12
|
+
cardZcyz: number; //固定资产-资金明细-金额
|
|
10
13
|
codeFull: string;
|
|
11
|
-
createAt: number;
|
|
12
|
-
createBy: string;
|
|
13
|
-
dataDate: number;
|
|
14
|
+
createAt: number; // 时间戳格式YYYYMMDDHHmmss
|
|
15
|
+
createBy: string; // UUID格式
|
|
16
|
+
dataDate: number; // YYYYMMDD格式
|
|
14
17
|
dataFrom: number;
|
|
15
|
-
dataGUID: string;
|
|
18
|
+
dataGUID: string; // UUID格式
|
|
16
19
|
dataHide: number;
|
|
17
20
|
dataLevl: number;
|
|
21
|
+
dataMemo: string;
|
|
18
22
|
dataOrdr: number;
|
|
19
|
-
dataStat: number;
|
|
20
|
-
dataTime: number;
|
|
23
|
+
dataStat: number; // 1表示有效
|
|
24
|
+
dataTime: number; // 时间戳格式YYYYMMDDHHmmss
|
|
21
25
|
deleteAt: number;
|
|
22
26
|
deleteBy: string;
|
|
23
27
|
dictCode: string;
|
|
28
|
+
dictFrom: number;
|
|
24
29
|
dictIndx: number;
|
|
30
|
+
dictMain: number;
|
|
25
31
|
dictMemo: string;
|
|
26
|
-
dictName: string;
|
|
32
|
+
dictName: string; // 字典项名称,如"其他"
|
|
27
33
|
dictPara: string;
|
|
28
|
-
entityID: string;
|
|
29
|
-
fromType: number;
|
|
34
|
+
entityID: string; // UUID格式
|
|
35
|
+
fromType: number; // 1003表示类型
|
|
30
36
|
hashCode: number;
|
|
31
|
-
isLasted: number;
|
|
32
|
-
kjndKJQJ: number;
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
isLasted: number; // 1表示最新
|
|
38
|
+
kjndKJQJ: number; // 会计期间YYYYMM
|
|
39
|
+
listUnit: IUnitResponse[]; // 单位列表
|
|
40
|
+
mastGUID: string; // UUID格式
|
|
41
|
+
mastName: string; // 创建者名称,如"管理员"
|
|
35
42
|
menuMain: number;
|
|
36
|
-
metaData: string;
|
|
37
|
-
nameFull: string;
|
|
43
|
+
metaData: string; // 元数据描述
|
|
44
|
+
nameFull: string; // 全名,如"其他"
|
|
38
45
|
nsdwText: string;
|
|
39
46
|
parentID: number;
|
|
40
47
|
queuesBy: number;
|
|
48
|
+
ratioVal: number; //固定资产-资金明细-占比
|
|
41
49
|
sysPartc: number;
|
|
42
|
-
sysTypec: number;
|
|
50
|
+
sysTypec: number; // 1003表示系统类型
|
|
43
51
|
typeIndx: number;
|
|
44
52
|
typeName: string;
|
|
45
53
|
typeUses: string;
|
|
46
54
|
unitText: string;
|
|
47
|
-
updateAt: number;
|
|
48
|
-
updateBy: string;
|
|
49
|
-
dataMemo: string;
|
|
55
|
+
updateAt: number; // 时间戳格式YYYYMMDDHHmmss
|
|
56
|
+
updateBy: string; // UUID格式
|
|
50
57
|
userIndx: number;
|
|
51
|
-
whoBuild: number;
|
|
52
|
-
readOnly: boolean;
|
|
53
|
-
dictParaConv: IDictResponseDictPara;
|
|
54
|
-
|
|
55
|
-
ratioVal: number; //固定资产-资金明细-占比
|
|
56
|
-
cardZcyz: number; //固定资产-资金明细-金额
|
|
58
|
+
whoBuild: number; // 创建者ID
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
export class TDictResponse extends TBaseResponse<IDictResponse[]> implements IDictResponse {
|
|
60
62
|
asParent: number = 0;
|
|
63
|
+
cardExid: number = 0;
|
|
64
|
+
cardIndx: number = 0;
|
|
65
|
+
cardZcyz: number = 0;
|
|
61
66
|
codeFull: string = "";
|
|
62
67
|
createAt: number = 0;
|
|
63
68
|
createBy: string = "";
|
|
@@ -66,13 +71,16 @@ export class TDictResponse extends TBaseResponse<IDictResponse[]> implements IDi
|
|
|
66
71
|
dataGUID: string = "";
|
|
67
72
|
dataHide: number = 0;
|
|
68
73
|
dataLevl: number = 0;
|
|
74
|
+
dataMemo: string = "";
|
|
69
75
|
dataOrdr: number = 0;
|
|
70
76
|
dataStat: number = 0;
|
|
71
77
|
dataTime: number = 0;
|
|
72
78
|
deleteAt: number = 0;
|
|
73
79
|
deleteBy: string = "";
|
|
74
80
|
dictCode: string = "";
|
|
81
|
+
dictFrom: number = 0;
|
|
75
82
|
dictIndx: number = 0;
|
|
83
|
+
dictMain: number = 0;
|
|
76
84
|
dictMemo: string = "";
|
|
77
85
|
dictName: string = "";
|
|
78
86
|
dictPara: string = "";
|
|
@@ -81,6 +89,7 @@ export class TDictResponse extends TBaseResponse<IDictResponse[]> implements IDi
|
|
|
81
89
|
hashCode: number = 0;
|
|
82
90
|
isLasted: number = 0;
|
|
83
91
|
kjndKJQJ: number = 0;
|
|
92
|
+
listUnit: IUnitResponse[] = [];
|
|
84
93
|
mastGUID: string = "";
|
|
85
94
|
mastName: string = "";
|
|
86
95
|
menuMain: number = 0;
|
|
@@ -89,21 +98,17 @@ export class TDictResponse extends TBaseResponse<IDictResponse[]> implements IDi
|
|
|
89
98
|
nsdwText: string = "";
|
|
90
99
|
parentID: number = 0;
|
|
91
100
|
queuesBy: number = 0;
|
|
101
|
+
ratioVal: number = 0;
|
|
92
102
|
sysPartc: number = 0;
|
|
93
103
|
sysTypec: number = 0;
|
|
94
104
|
typeIndx: number = 0;
|
|
95
105
|
typeName: string = "";
|
|
96
|
-
dataMemo: string = "";
|
|
97
106
|
typeUses: string = "";
|
|
98
107
|
unitText: string = "";
|
|
99
108
|
updateAt: number = 0;
|
|
100
109
|
updateBy: string = "";
|
|
101
110
|
userIndx: number = 0;
|
|
102
111
|
whoBuild: number = 0;
|
|
103
|
-
dictParaConv: IDictResponseDictPara = new TDictResponseDictPara();
|
|
104
|
-
|
|
105
|
-
ratioVal: number = 0;
|
|
106
|
-
cardZcyz: number = 0;
|
|
107
112
|
|
|
108
113
|
public static toTree(listDict: IDictResponse[]) {
|
|
109
114
|
return construct(listDict, { id: "dictIndx", pid: "parentID", children: "children" }) as IDictResponse[];
|
|
@@ -1,3 +1,57 @@
|
|
|
1
|
-
export interface ISysClasResponse {
|
|
1
|
+
export interface ISysClasResponse {
|
|
2
|
+
clasIcon: string;
|
|
3
|
+
createAt: number;
|
|
4
|
+
createBy: string;
|
|
5
|
+
dataDate: number;
|
|
6
|
+
dataFrom: number;
|
|
7
|
+
dataHide: number;
|
|
8
|
+
dataOrdr: number;
|
|
9
|
+
dataStat: number;
|
|
10
|
+
dataTime: number;
|
|
11
|
+
deleteAt: number;
|
|
12
|
+
deleteBy: string;
|
|
13
|
+
isCommon: number;
|
|
14
|
+
isPublic: number;
|
|
15
|
+
isSystem: number;
|
|
16
|
+
nickName: string;
|
|
17
|
+
queuesBy: number;
|
|
18
|
+
statFrom: string;
|
|
19
|
+
sysClasc: number;
|
|
20
|
+
sysClasd: string;
|
|
21
|
+
sysClasm: string;
|
|
22
|
+
sysClasn: string;
|
|
23
|
+
tablFrom: string;
|
|
24
|
+
updateAt: number;
|
|
25
|
+
updateBy: string;
|
|
26
|
+
userIndx: number;
|
|
27
|
+
whoBuild: number;
|
|
28
|
+
}
|
|
2
29
|
|
|
3
|
-
export class TSysClasResponse implements ISysClasResponse {
|
|
30
|
+
export class TSysClasResponse implements ISysClasResponse {
|
|
31
|
+
clasIcon: string = "";
|
|
32
|
+
createAt: number = 0;
|
|
33
|
+
createBy: string = "";
|
|
34
|
+
dataDate: number = 0;
|
|
35
|
+
dataFrom: number = 0;
|
|
36
|
+
dataHide: number = 0;
|
|
37
|
+
dataOrdr: number = 0;
|
|
38
|
+
dataStat: number = 0;
|
|
39
|
+
dataTime: number = 0;
|
|
40
|
+
deleteAt: number = 0;
|
|
41
|
+
deleteBy: string = "";
|
|
42
|
+
isCommon: number = 0;
|
|
43
|
+
isPublic: number = 0;
|
|
44
|
+
isSystem: number = 0;
|
|
45
|
+
nickName: string = "";
|
|
46
|
+
queuesBy: number = 0;
|
|
47
|
+
statFrom: string = "";
|
|
48
|
+
sysClasc: number = 0;
|
|
49
|
+
sysClasd: string = "";
|
|
50
|
+
sysClasm: string = "";
|
|
51
|
+
sysClasn: string = "";
|
|
52
|
+
tablFrom: string = "";
|
|
53
|
+
updateAt: number = 0;
|
|
54
|
+
updateBy: string = "";
|
|
55
|
+
userIndx: number = 0;
|
|
56
|
+
whoBuild: number = 0;
|
|
57
|
+
}
|
|
@@ -155,10 +155,7 @@ export class TGzjgGzlmResponse implements IGzjgGzlmResponse {
|
|
|
155
155
|
try {
|
|
156
156
|
const obj = JSON.parse(gzlmPara) as TGzjgGzlmResponseGzlmPara;
|
|
157
157
|
return _.merge(defaultGzlmPara, obj);
|
|
158
|
-
} catch (
|
|
159
|
-
const error = e as Error;
|
|
160
|
-
// console.error(error.message);
|
|
161
|
-
}
|
|
158
|
+
} catch (_e) {}
|
|
162
159
|
return defaultGzlmPara;
|
|
163
160
|
}
|
|
164
161
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IDictResponse } from "../core";
|
|
1
2
|
import type { IPartResponse } from "../core/IPartResponse";
|
|
2
|
-
import type { IUnitResponse } from "../core/IUnitResponse";
|
|
3
3
|
import type { IWtuiViewResponse } from "./IWtuiViewResponse";
|
|
4
4
|
import { IWtuiZoneResponse } from "./IWtuiZoneResponse";
|
|
5
5
|
|
|
@@ -55,7 +55,7 @@ export interface IWtuiMainResponse {
|
|
|
55
55
|
listView: IWtuiViewResponse[];
|
|
56
56
|
listPart: IPartResponse[];
|
|
57
57
|
listZone: IWtuiZoneResponse[];
|
|
58
|
-
unitType:
|
|
58
|
+
unitType: IDictResponse[]; // 单位类型树状图
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export class TWtuiMainResponse implements IWtuiMainResponse {
|
|
@@ -108,7 +108,7 @@ export class TWtuiMainResponse implements IWtuiMainResponse {
|
|
|
108
108
|
unitTypeText: string = "";
|
|
109
109
|
|
|
110
110
|
listPart: IPartResponse[] = [];
|
|
111
|
-
unitType:
|
|
111
|
+
unitType: IDictResponse[] = [];
|
|
112
112
|
listZone: IWtuiZoneResponse[] = [];
|
|
113
113
|
listView: IWtuiViewResponse[] = [];
|
|
114
114
|
}
|