@ningboyz/types 1.2.151 → 1.2.153
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 +1 -1
- package/src/const/const_hznk.ts +15 -16
- package/src/hznk/IHznkDataItemResponse.ts +7 -0
- package/src/hznk/IHznkFydwResponse.ts +9 -5
- package/src/hznk/IHznkFydwWbdwResponse.ts +57 -0
- package/src/hznk/IHznkFytqResponse.ts +1 -0
- package/src/hznk/IHznkNoteResponse.ts +39 -0
- package/src/hznk/index.ts +4 -0
- package/src/tabl/ITablMainResponse.ts +4 -1
package/package.json
CHANGED
package/src/const/const_hznk.ts
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
export const CONST_HZNK_DATA_DATA_TYPE_TO_个人荣誉 = 1001;
|
|
2
2
|
export const CONST_HZNK_DATA_DATA_TYPE_TO_人才称号 = 1002;
|
|
3
3
|
|
|
4
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_知识产权 = 1003;
|
|
5
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_论文著作 = 1004;
|
|
6
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_软著专利 = 1005;
|
|
7
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_品种技术 = 1017;
|
|
8
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_发布标准 = 1006;
|
|
9
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_获奖申请 = 1007;
|
|
10
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_获奖成果 = 1008;
|
|
11
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_领导批示 = 1009;
|
|
4
12
|
// #Note
|
|
5
13
|
export const CONST_HZNK_DATA_DATA_TYPE_TO_实施方案 = 1001; //#实施方案
|
|
6
14
|
export const CONST_HZNK_DATA_DATA_TYPE_TO_工作计划 = 1002; //#工作计划
|
|
7
15
|
export const CONST_HZNK_DATA_DATA_TYPE_TO_工作总结 = 1003; //#工作总结
|
|
8
16
|
export const CONST_HZNK_DATA_DATA_TYPE_TO_年终汇报 = 1004; //#年终汇报
|
|
9
17
|
|
|
10
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_
|
|
11
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_
|
|
12
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_
|
|
13
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_
|
|
14
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_
|
|
15
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_
|
|
16
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_
|
|
17
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_领导批示 = 1009
|
|
18
|
-
|
|
19
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_信息宣传 = 1010
|
|
20
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_对口帮扶 = 1011
|
|
21
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_对外培训 = 1012
|
|
22
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_科技特派 = 1013
|
|
23
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_学术交流 = 1014
|
|
24
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_平台创建 = 1015
|
|
25
|
-
export const CONST_HZNK_DATA_DATA_TYPE_TO_创建团队 = 1016
|
|
18
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_信息宣传 = 1010;
|
|
19
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_对口帮扶 = 1011;
|
|
20
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_对外培训 = 1012;
|
|
21
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_科技特派 = 1013;
|
|
22
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_学术交流 = 1014;
|
|
23
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_平台创建 = 1015;
|
|
24
|
+
export const CONST_HZNK_DATA_DATA_TYPE_TO_创建团队 = 1016;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IUserLiteResponse } from "../core";
|
|
2
|
+
import _ from "lodash";
|
|
2
3
|
|
|
3
4
|
export interface IHznkDataItemResponse {
|
|
4
5
|
whoBuild: number;
|
|
@@ -57,4 +58,10 @@ export class THznkDataItemResponse implements IHznkDataItemResponse {
|
|
|
57
58
|
dictName: string = "";
|
|
58
59
|
|
|
59
60
|
listUser: IUserLiteResponse[] = [];
|
|
61
|
+
|
|
62
|
+
constructor(data: Partial<IHznkDataItemResponse> = {}) {
|
|
63
|
+
if (data) {
|
|
64
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
60
67
|
}
|
|
@@ -2,6 +2,7 @@ import { IPathResponse } from "../core/IPathResponse";
|
|
|
2
2
|
import { TFlowDataResponse } from "../flow";
|
|
3
3
|
import { IHznkFydwBillResponse } from "./IHznkFydwBillResponse";
|
|
4
4
|
import { IHznkFydwItemResponse } from "./IHznkFydwItemResponse";
|
|
5
|
+
import { IHznkFydwWbdwResponse } from "./IHznkFydwWbdwResponse";
|
|
5
6
|
import { IHznkMainResponse } from "./IHznkMainResponse";
|
|
6
7
|
|
|
7
8
|
export interface IHznkFydwResponse {
|
|
@@ -67,18 +68,20 @@ export interface IHznkFydwResponse {
|
|
|
67
68
|
lastMemo: string;
|
|
68
69
|
userName: string;
|
|
69
70
|
userGUID: string;
|
|
70
|
-
|
|
71
|
+
/**联系方式 */
|
|
71
72
|
dContact: string;
|
|
72
|
-
|
|
73
|
+
/**联系人 */
|
|
73
74
|
wContact: string;
|
|
74
75
|
/**附件 */
|
|
75
76
|
listPath: IPathResponse[];
|
|
76
|
-
|
|
77
|
+
/**赋分信息区 */
|
|
77
78
|
listItem: IHznkFydwItemResponse[];
|
|
78
|
-
|
|
79
|
+
/**到位经费信息区 */
|
|
79
80
|
listBill: IHznkFydwBillResponse[];
|
|
80
|
-
|
|
81
|
+
/**项目信息区 */
|
|
81
82
|
listFrom: IHznkMainResponse[];
|
|
83
|
+
/**当年外拨经费 */
|
|
84
|
+
listWBDW: IHznkFydwWbdwResponse[];
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
export class THznkFydwResponse implements IHznkFydwResponse {
|
|
@@ -147,6 +150,7 @@ export class THznkFydwResponse implements IHznkFydwResponse {
|
|
|
147
150
|
listItem: IHznkFydwItemResponse[] = [];
|
|
148
151
|
listBill: IHznkFydwBillResponse[] = [];
|
|
149
152
|
listFrom: IHznkMainResponse[] = [];
|
|
153
|
+
listWBDW: IHznkFydwWbdwResponse[] = [];
|
|
150
154
|
|
|
151
155
|
static toFlowDatas(card: IHznkFydwResponse[]): TFlowDataResponse[] {
|
|
152
156
|
return card.map((u) => this.toFlowData(u));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface IHznkFydwWbdwResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
fydwIndx: number;
|
|
5
|
+
idEntity: number;
|
|
6
|
+
wbdwMain: number;
|
|
7
|
+
dataStat: number;
|
|
8
|
+
dataHide: number;
|
|
9
|
+
dataOrdr: number;
|
|
10
|
+
dataFrom: number;
|
|
11
|
+
dataType: number;
|
|
12
|
+
dataDate: number;
|
|
13
|
+
dataTime: number;
|
|
14
|
+
createBy: string;
|
|
15
|
+
createAt: number;
|
|
16
|
+
updateBy: string;
|
|
17
|
+
updateAt: number;
|
|
18
|
+
deleteBy: string;
|
|
19
|
+
deleteAt: number;
|
|
20
|
+
queuesBy: number;
|
|
21
|
+
fydwDate: number;
|
|
22
|
+
totalVal: number;
|
|
23
|
+
innerVal: number;
|
|
24
|
+
outerVal: number;
|
|
25
|
+
nowMoney: number;
|
|
26
|
+
ratioVal: number;
|
|
27
|
+
limitVal: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class THznkFydwWbdwResponse implements IHznkFydwWbdwResponse {
|
|
31
|
+
whoBuild: number = 0;
|
|
32
|
+
userIndx: number = 0;
|
|
33
|
+
fydwIndx: number = 0;
|
|
34
|
+
idEntity: number = 0;
|
|
35
|
+
wbdwMain: number = 0;
|
|
36
|
+
dataStat: number = 0;
|
|
37
|
+
dataHide: number = 0;
|
|
38
|
+
dataOrdr: number = 0;
|
|
39
|
+
dataFrom: number = 0;
|
|
40
|
+
dataType: number = 0;
|
|
41
|
+
dataDate: number = 0;
|
|
42
|
+
dataTime: number = 0;
|
|
43
|
+
createBy: string = "";
|
|
44
|
+
createAt: number = 0;
|
|
45
|
+
updateBy: string = "";
|
|
46
|
+
updateAt: number = 0;
|
|
47
|
+
deleteBy: string = "";
|
|
48
|
+
deleteAt: number = 0;
|
|
49
|
+
queuesBy: number = 0;
|
|
50
|
+
fydwDate: number = 0;
|
|
51
|
+
totalVal: number = 0;
|
|
52
|
+
innerVal: number = 0;
|
|
53
|
+
outerVal: number = 0;
|
|
54
|
+
nowMoney: number = 0;
|
|
55
|
+
ratioVal: number = 0;
|
|
56
|
+
limitVal: number = 0;
|
|
57
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IUserAcnoResponse } from "../core";
|
|
2
2
|
import { IPathResponse } from "../core/IPathResponse";
|
|
3
3
|
import { IHznkFytqBillResponse } from "./IHznkFytqBillResponse";
|
|
4
|
+
import { IHznkFytqWbdwResponse } from "./IHznkFytqWbdwResponse";
|
|
4
5
|
import { IHznkMainResponse } from "./IHznkMainResponse";
|
|
5
6
|
|
|
6
7
|
export interface IHznkFytqResponse {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IPathResponse } from "../core/IPathResponse";
|
|
2
|
+
import { TFlowDataResponse } from "../flow";
|
|
2
3
|
import { IHznkMainResponse } from "./IHznkMainResponse";
|
|
3
4
|
|
|
4
5
|
export interface IHznkNoteResponse {
|
|
@@ -31,6 +32,9 @@ export interface IHznkNoteResponse {
|
|
|
31
32
|
sourceND: number;
|
|
32
33
|
menuMain: number;
|
|
33
34
|
menuUUID: string;
|
|
35
|
+
flowMain: number;
|
|
36
|
+
flowNode: number;
|
|
37
|
+
flowStat: number;
|
|
34
38
|
unitMain: number;
|
|
35
39
|
deptMain: number;
|
|
36
40
|
sqyhMain: number;
|
|
@@ -49,6 +53,10 @@ export interface IHznkNoteResponse {
|
|
|
49
53
|
baseUses: string;
|
|
50
54
|
/**备注信息 */
|
|
51
55
|
baseMemo: string;
|
|
56
|
+
/**联系人 */
|
|
57
|
+
wContact: string;
|
|
58
|
+
/**联系方式 */
|
|
59
|
+
dContact: string;
|
|
52
60
|
|
|
53
61
|
/**附件 */
|
|
54
62
|
listPath: IPathResponse[];
|
|
@@ -103,7 +111,38 @@ export class THznkNoteResponse implements IHznkNoteResponse {
|
|
|
103
111
|
baseUses: string = "";
|
|
104
112
|
/**备注信息 */
|
|
105
113
|
baseMemo: string = "";
|
|
114
|
+
flowMain: number = 0;
|
|
115
|
+
flowNode: number = 0;
|
|
116
|
+
flowStat: number = 0;
|
|
117
|
+
wContact: string = "";
|
|
118
|
+
dContact: string = "";
|
|
106
119
|
|
|
107
120
|
listPath: IPathResponse[] = [];
|
|
108
121
|
listFrom: IHznkMainResponse[] = [];
|
|
122
|
+
|
|
123
|
+
static toFlowDatas(card: IHznkNoteResponse[]): TFlowDataResponse[] {
|
|
124
|
+
return card.map((u) => this.toFlowData(u));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
static toFlowData(xmtz: IHznkNoteResponse): TFlowDataResponse {
|
|
128
|
+
let result = new TFlowDataResponse();
|
|
129
|
+
result.whoBuild = xmtz.whoBuild;
|
|
130
|
+
result.userIndx = xmtz.userIndx;
|
|
131
|
+
result.flowMain = xmtz.flowMain;
|
|
132
|
+
result.flowNode = xmtz.flowNode;
|
|
133
|
+
result.flowStat = xmtz.noteStat;
|
|
134
|
+
// result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HZCB_XMTZ_WAIT;
|
|
135
|
+
result.entityID = xmtz.entityID;
|
|
136
|
+
result.billMain = xmtz.noteIndx;
|
|
137
|
+
result.billCode = xmtz.baseCode;
|
|
138
|
+
result.billMemo = xmtz.baseMemo;
|
|
139
|
+
result.outMoney = 0;
|
|
140
|
+
result.createAt = xmtz.createAt;
|
|
141
|
+
result.mastName = xmtz.mastName;
|
|
142
|
+
result.createBy = xmtz.createBy;
|
|
143
|
+
result.unitMain = xmtz.unitMain;
|
|
144
|
+
result.deptMain = xmtz.deptMain;
|
|
145
|
+
result.menuUUID = xmtz.menuUUID;
|
|
146
|
+
return result;
|
|
147
|
+
}
|
|
109
148
|
}
|
package/src/hznk/index.ts
CHANGED
|
@@ -10,10 +10,12 @@ import { IHznkBaseWbdwResponse, THznkBaseWbdwResponse } from "./IHznkBaseWbdwRes
|
|
|
10
10
|
import { IHznkBasePathResponse, THznkBasePathResponse } from "./IHznkBasePathResponse";
|
|
11
11
|
|
|
12
12
|
import { IHznkFydwResponse, THznkFydwResponse } from "./IHznkFydwResponse";
|
|
13
|
+
import { IHznkFydwWbdwResponse, THznkFydwWbdwResponse } from "./IHznkFydwWbdwResponse";
|
|
13
14
|
import { IHznkFydwBillResponse, THznkFydwBillResponse } from "./IHznkFydwBillResponse";
|
|
14
15
|
import { IHznkFydwFromResponse, THznkFydwFromResponse } from "./IHznkFydwFromResponse";
|
|
15
16
|
import { IHznkFydwItemResponse, THznkFydwItemResponse } from "./IHznkFydwItemResponse";
|
|
16
17
|
import { IHznkFydwPathResponse, THznkFydwPathResponse } from "./IHznkFydwPathResponse";
|
|
18
|
+
|
|
17
19
|
import { IHznkDataNbyhResponse, THznkDataNbyhResponse } from "./IHznkDataNbyhResponse";
|
|
18
20
|
import { IHznkMainResponse, THznkMainResponse } from "./IHznkMainResponse";
|
|
19
21
|
|
|
@@ -46,6 +48,7 @@ export {
|
|
|
46
48
|
THznkFydwFromResponse,
|
|
47
49
|
THznkFydwItemResponse,
|
|
48
50
|
THznkFydwPathResponse,
|
|
51
|
+
THznkFydwWbdwResponse,
|
|
49
52
|
THznkDataNbyhResponse,
|
|
50
53
|
THznkMainResponse,
|
|
51
54
|
THznkNoteResponse,
|
|
@@ -71,6 +74,7 @@ export {
|
|
|
71
74
|
type IHznkFydwFromResponse,
|
|
72
75
|
type IHznkFydwItemResponse,
|
|
73
76
|
type IHznkFydwPathResponse,
|
|
77
|
+
type IHznkFydwWbdwResponse,
|
|
74
78
|
type IHznkDataNbyhResponse,
|
|
75
79
|
type IHznkMainResponse,
|
|
76
80
|
type IHznkNoteResponse,
|
|
@@ -145,7 +145,6 @@ export class TTablMainResponse implements ITablMainResponse {
|
|
|
145
145
|
unitType: number = 0;
|
|
146
146
|
unitTypeText: string = "";
|
|
147
147
|
taskMain: number = 0;
|
|
148
|
-
|
|
149
148
|
listData: Array<ITablDataResponse> = [];
|
|
150
149
|
|
|
151
150
|
constructor(card: keyof ITablMainResponse | object) {
|
|
@@ -154,6 +153,10 @@ export class TTablMainResponse implements ITablMainResponse {
|
|
|
154
153
|
}
|
|
155
154
|
}
|
|
156
155
|
|
|
156
|
+
static merge = (slef: ITablMainResponse, tabl: TTablMainResponse | object) => {
|
|
157
|
+
_.merge(slef, _.pick(tabl, Object.keys(slef)));
|
|
158
|
+
};
|
|
159
|
+
|
|
157
160
|
static toFlowDatas(card: ITablMainResponse[]): TFlowDataResponse[] {
|
|
158
161
|
return card.map((u) => this.toFlowData(u));
|
|
159
162
|
}
|