@ningboyz/types 1.2.0 → 1.2.2
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
|
@@ -18,23 +18,27 @@ export interface IHzcbXmtzBillResponse {
|
|
|
18
18
|
queuesBy: number;
|
|
19
19
|
/** 年度 */
|
|
20
20
|
yearFrom: number;
|
|
21
|
-
/**
|
|
21
|
+
/** 合同计划支付金额 */
|
|
22
22
|
payMoney: number;
|
|
23
|
-
/**
|
|
23
|
+
/** 合同实际支付金额 */
|
|
24
24
|
expMoney: number;
|
|
25
|
-
|
|
25
|
+
/** 合计 */
|
|
26
|
+
hjMoney1: number;
|
|
27
|
+
hjMoney2: number;
|
|
28
|
+
hjMoney3: number;
|
|
29
|
+
/** 一般公共预算资金 */
|
|
26
30
|
ybMoney1: number;
|
|
27
31
|
ybMoney2: number;
|
|
28
32
|
ybMoney3: number;
|
|
29
|
-
|
|
33
|
+
/** 政府性基金 */
|
|
30
34
|
zfMoney1: number;
|
|
31
35
|
zfMoney2: number;
|
|
32
36
|
zfMoney3: number;
|
|
33
|
-
|
|
37
|
+
/** 财政专户 */
|
|
34
38
|
czMoney1: number;
|
|
35
39
|
czMoney2: number;
|
|
36
40
|
czMoney3: number;
|
|
37
|
-
|
|
41
|
+
/** 其他本级 */
|
|
38
42
|
qtMoney1: number;
|
|
39
43
|
qtMoney2: number;
|
|
40
44
|
qtMoney3: number;
|
|
@@ -60,23 +64,27 @@ export class THzcbXmtzBillResponse implements IHzcbXmtzBillResponse {
|
|
|
60
64
|
queuesBy: number = 0;
|
|
61
65
|
/** 年度 */
|
|
62
66
|
yearFrom: number = 0;
|
|
63
|
-
/**
|
|
67
|
+
/** 合同计划支付金额 */
|
|
64
68
|
payMoney: number = 0;
|
|
65
|
-
/**
|
|
69
|
+
/** 合同实际支付金额 */
|
|
66
70
|
expMoney: number = 0;
|
|
67
|
-
|
|
71
|
+
/** 合计 */
|
|
72
|
+
hjMoney1: number = 0;
|
|
73
|
+
hjMoney2: number = 0;
|
|
74
|
+
hjMoney3: number = 0;
|
|
75
|
+
/** 一般公共预算资金 */
|
|
68
76
|
ybMoney1: number = 0;
|
|
69
77
|
ybMoney2: number = 0;
|
|
70
78
|
ybMoney3: number = 0;
|
|
71
|
-
|
|
79
|
+
/** 政府性基金 */
|
|
72
80
|
zfMoney1: number = 0;
|
|
73
81
|
zfMoney2: number = 0;
|
|
74
82
|
zfMoney3: number = 0;
|
|
75
|
-
|
|
83
|
+
/** 财政专户 */
|
|
76
84
|
czMoney1: number = 0;
|
|
77
85
|
czMoney2: number = 0;
|
|
78
86
|
czMoney3: number = 0;
|
|
79
|
-
|
|
87
|
+
/** 其他本级 */
|
|
80
88
|
qtMoney1: number = 0;
|
|
81
89
|
qtMoney2: number = 0;
|
|
82
90
|
qtMoney3: number = 0;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Const } from "../..";
|
|
2
2
|
import { IPathResponse } from "../core";
|
|
3
3
|
import { TFlowDataResponse } from "../flow";
|
|
4
|
+
import { IHzcbMainResponse } from "./IHzcbMainResponse";
|
|
4
5
|
import { IHzcbXmtzBillResponse } from "./IHzcbXmtzBillResponse";
|
|
5
6
|
|
|
6
7
|
export interface IHzcbXmtzResponse {
|
|
7
8
|
whoBuild: number;
|
|
8
9
|
userIndx: number;
|
|
9
10
|
xmtzIndx: number;
|
|
11
|
+
hzcbMain: number;
|
|
10
12
|
parentID: number;
|
|
11
13
|
hashCode: number;
|
|
12
14
|
dataLevl: number;
|
|
@@ -63,6 +65,9 @@ export interface IHzcbXmtzResponse {
|
|
|
63
65
|
userName: string;
|
|
64
66
|
userGUID: string;
|
|
65
67
|
|
|
68
|
+
hzcbName: string;
|
|
69
|
+
|
|
70
|
+
listFrom: IHzcbMainResponse[];
|
|
66
71
|
listBill: IHzcbXmtzBillResponse[];
|
|
67
72
|
listPath: IPathResponse[];
|
|
68
73
|
}
|
|
@@ -71,6 +76,7 @@ export class THzcbXmtzResponse implements IHzcbXmtzResponse {
|
|
|
71
76
|
whoBuild: number = 0;
|
|
72
77
|
userIndx: number = 0;
|
|
73
78
|
xmtzIndx: number = 0;
|
|
79
|
+
hzcbMain: number = 0;
|
|
74
80
|
parentID: number = 0;
|
|
75
81
|
hashCode: number = 0;
|
|
76
82
|
dataLevl: number = 0;
|
|
@@ -127,6 +133,9 @@ export class THzcbXmtzResponse implements IHzcbXmtzResponse {
|
|
|
127
133
|
userName: string = "";
|
|
128
134
|
userGUID: string = "";
|
|
129
135
|
|
|
136
|
+
hzcbName: string = "";
|
|
137
|
+
|
|
138
|
+
listFrom: IHzcbMainResponse[] = [];
|
|
130
139
|
listBill: IHzcbXmtzBillResponse[] = [];
|
|
131
140
|
listPath: IPathResponse[] = [];
|
|
132
141
|
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Const } from "../..";
|
|
2
|
-
import { IPathResponse } from "../core";
|
|
2
|
+
import { IPathResponse, IUnitResponse } from "../core";
|
|
3
3
|
import { TFlowDataResponse } from "../flow";
|
|
4
4
|
import { IYzhtBillResponse } from "../yzht";
|
|
5
|
+
import _ from "lodash";
|
|
6
|
+
import { IHzcbMainResponse } from "./IHzcbMainResponse";
|
|
5
7
|
|
|
6
8
|
export interface IHzcbXmykResponse {
|
|
7
9
|
whoBuild: number;
|
|
8
10
|
userIndx: number;
|
|
9
11
|
xmykIndx: number;
|
|
12
|
+
hzcbMain: number;
|
|
10
13
|
parentID: number;
|
|
11
14
|
hashCode: number;
|
|
12
15
|
dataLevl: number;
|
|
@@ -62,7 +65,10 @@ export interface IHzcbXmykResponse {
|
|
|
62
65
|
lastMemo: string;
|
|
63
66
|
userName: string;
|
|
64
67
|
userGUID: string;
|
|
65
|
-
|
|
68
|
+
hzcbName: string;
|
|
69
|
+
|
|
70
|
+
listFrom: IHzcbMainResponse[];
|
|
71
|
+
listUnit: IUnitResponse[];
|
|
66
72
|
listBill: IYzhtBillResponse[];
|
|
67
73
|
listPath: IPathResponse[];
|
|
68
74
|
}
|
|
@@ -71,6 +77,7 @@ export class THzcbXmykResponse implements IHzcbXmykResponse {
|
|
|
71
77
|
whoBuild: number = 0;
|
|
72
78
|
userIndx: number = 0;
|
|
73
79
|
xmykIndx: number = 0;
|
|
80
|
+
hzcbMain: number = 0;
|
|
74
81
|
parentID: number = 0;
|
|
75
82
|
hashCode: number = 0;
|
|
76
83
|
dataLevl: number = 0;
|
|
@@ -82,34 +89,34 @@ export class THzcbXmykResponse implements IHzcbXmykResponse {
|
|
|
82
89
|
dataType: number = 0;
|
|
83
90
|
dataDate: number = 0;
|
|
84
91
|
dataTime: number = 0;
|
|
85
|
-
dataGUID: string =
|
|
86
|
-
mastName: string =
|
|
87
|
-
mastGUID: string =
|
|
92
|
+
dataGUID: string = "";
|
|
93
|
+
mastName: string = "";
|
|
94
|
+
mastGUID: string = "";
|
|
88
95
|
userMain: number = 0;
|
|
89
|
-
createBy: string =
|
|
96
|
+
createBy: string = "";
|
|
90
97
|
createAt: number = 0;
|
|
91
|
-
updateBy: string =
|
|
98
|
+
updateBy: string = "";
|
|
92
99
|
updateAt: number = 0;
|
|
93
|
-
deleteBy: string =
|
|
100
|
+
deleteBy: string = "";
|
|
94
101
|
deleteAt: number = 0;
|
|
95
102
|
queuesBy: number = 0;
|
|
96
|
-
entityID: string =
|
|
103
|
+
entityID: string = "";
|
|
97
104
|
sourceND: number = 0;
|
|
98
105
|
unitMain: number = 0;
|
|
99
106
|
deptMain: number = 0;
|
|
100
107
|
flowUndo: number = 0;
|
|
101
|
-
flowUser: string =
|
|
102
|
-
flowText: string =
|
|
108
|
+
flowUser: string = "";
|
|
109
|
+
flowText: string = "";
|
|
103
110
|
menuMain: number = 0;
|
|
104
|
-
menuUUID: string =
|
|
105
|
-
sqbmText: string =
|
|
106
|
-
sqyhText: string =
|
|
107
|
-
xmykCode: string =
|
|
108
|
-
xmykName: string =
|
|
111
|
+
menuUUID: string = "";
|
|
112
|
+
sqbmText: string = "";
|
|
113
|
+
sqyhText: string = "";
|
|
114
|
+
xmykCode: string = "";
|
|
115
|
+
xmykName: string = "";
|
|
109
116
|
xmykDate: number = 0;
|
|
110
117
|
xmykStat: number = 0;
|
|
111
|
-
xmykUses: string =
|
|
112
|
-
xmykMemo: string =
|
|
118
|
+
xmykUses: string = "";
|
|
119
|
+
xmykMemo: string = "";
|
|
113
120
|
|
|
114
121
|
coverURL: string = "";
|
|
115
122
|
touchURL: string = "";
|
|
@@ -127,26 +134,40 @@ export class THzcbXmykResponse implements IHzcbXmykResponse {
|
|
|
127
134
|
userName: string = "";
|
|
128
135
|
userGUID: string = "";
|
|
129
136
|
|
|
137
|
+
hzcbName: string = "";
|
|
138
|
+
|
|
139
|
+
listFrom: IHzcbMainResponse[] = [];
|
|
130
140
|
listBill: IYzhtBillResponse[] = [];
|
|
131
141
|
listPath: IPathResponse[] = [];
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
result.flowMain = xmyk.flowMain;
|
|
138
|
-
result.flowNode = xmyk.flowNode;
|
|
139
|
-
result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HZCB_XMYK_WAIT;
|
|
140
|
-
result.entityID = xmyk.entityID;
|
|
141
|
-
result.billMain = xmyk.xmykIndx;
|
|
142
|
-
result.billCode = xmyk.xmykCode;
|
|
143
|
-
result.billMemo = xmyk.xmykMemo;
|
|
144
|
-
result.outMoney =0;
|
|
145
|
-
result.createAt = xmyk.createAt;
|
|
146
|
-
result.mastName = xmyk.mastName;
|
|
147
|
-
result.createBy = xmyk.createBy;
|
|
148
|
-
result.unitMain = xmyk.unitMain;
|
|
149
|
-
result.deptMain = xmyk.deptMain;
|
|
150
|
-
return result;
|
|
142
|
+
listUnit: IUnitResponse[] = [];
|
|
143
|
+
|
|
144
|
+
constructor(card: any = {}) {
|
|
145
|
+
if (card) {
|
|
146
|
+
_.merge(this, _.pick(card, Object.keys(this)));
|
|
151
147
|
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
static toFlowDatas(card: THzcbXmykResponse[]): TFlowDataResponse[] {
|
|
151
|
+
return card.map((u) => this.toFlowData(u));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
static toFlowData(xmyk: THzcbXmykResponse): TFlowDataResponse {
|
|
155
|
+
let result = new TFlowDataResponse();
|
|
156
|
+
result.whoBuild = xmyk.whoBuild;
|
|
157
|
+
result.userIndx = xmyk.userIndx;
|
|
158
|
+
result.flowMain = xmyk.flowMain;
|
|
159
|
+
result.flowNode = xmyk.flowNode;
|
|
160
|
+
result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HZCB_XMYK_WAIT;
|
|
161
|
+
result.entityID = xmyk.entityID;
|
|
162
|
+
result.billMain = xmyk.xmykIndx;
|
|
163
|
+
result.billCode = xmyk.xmykCode;
|
|
164
|
+
result.billMemo = xmyk.xmykMemo;
|
|
165
|
+
result.outMoney = 0;
|
|
166
|
+
result.createAt = xmyk.createAt;
|
|
167
|
+
result.mastName = xmyk.mastName;
|
|
168
|
+
result.createBy = xmyk.createBy;
|
|
169
|
+
result.unitMain = xmyk.unitMain;
|
|
170
|
+
result.deptMain = xmyk.deptMain;
|
|
171
|
+
return result;
|
|
172
|
+
}
|
|
152
173
|
}
|
|
@@ -65,6 +65,10 @@ export interface IYzhtBillResponse {
|
|
|
65
65
|
|
|
66
66
|
/** 项目名称 */
|
|
67
67
|
hzcbName: string;
|
|
68
|
+
/** 支付方式名称 */
|
|
69
|
+
yzhtZffsText: string;
|
|
70
|
+
/** 用款计划 */
|
|
71
|
+
xmykIndx: number;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
export class TYzhtBillResponse implements IYzhtBillResponse {
|
|
@@ -133,4 +137,8 @@ export class TYzhtBillResponse implements IYzhtBillResponse {
|
|
|
133
137
|
|
|
134
138
|
/** 项目名称 */
|
|
135
139
|
hzcbName: string = "";
|
|
140
|
+
/** 支付方式名称 */
|
|
141
|
+
yzhtZffsText: string = "";
|
|
142
|
+
/** 用款计划 */
|
|
143
|
+
xmykIndx: number = 0;
|
|
136
144
|
}
|
|
@@ -149,6 +149,7 @@ export interface IYzhtMainResponse {
|
|
|
149
149
|
periodOn: number; //是否按期控制支付
|
|
150
150
|
|
|
151
151
|
yzhtZffs: number; //支付方式
|
|
152
|
+
yzhtZffsText: string;//支付方式名称
|
|
152
153
|
|
|
153
154
|
userMain: number;
|
|
154
155
|
coverURL: string;
|
|
@@ -299,6 +300,7 @@ export class TYzhtMainResponse implements IYzhtMainResponse {
|
|
|
299
300
|
periodOn: number = 0;
|
|
300
301
|
|
|
301
302
|
yzhtZffs: number = 0; //支付方式
|
|
303
|
+
yzhtZffsText: string = "";//支付方式名称
|
|
302
304
|
|
|
303
305
|
yzhtType: number = 0;
|
|
304
306
|
yzhtTypeText: string = "";
|