@ningboyz/types 1.6.89 → 1.6.91
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/index.ts +3 -0
- package/src/yzcq/IYzcqMainResponse.ts +50 -20
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -51,6 +51,7 @@ import * as TZbhd from "./zbhd";
|
|
|
51
51
|
import * as TZbzd from "./zbzd";
|
|
52
52
|
import * as TZfht from "./zfht";
|
|
53
53
|
import * as TZfsq from "./zfsq";
|
|
54
|
+
import * as TYzcq from "./yzcq";
|
|
54
55
|
|
|
55
56
|
export {
|
|
56
57
|
Const,
|
|
@@ -104,6 +105,7 @@ export {
|
|
|
104
105
|
TZbzd,
|
|
105
106
|
TZfht,
|
|
106
107
|
TZfsq,
|
|
108
|
+
TYzcq,
|
|
107
109
|
type IAboutConfig,
|
|
108
110
|
type IBaseConfig,
|
|
109
111
|
type IBaseResponse,
|
|
@@ -113,3 +115,4 @@ export {
|
|
|
113
115
|
type IToolDownLoadData,
|
|
114
116
|
type IWtuiConfig
|
|
115
117
|
};
|
|
118
|
+
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IPathResponse } from "../core/IPathResponse";
|
|
2
2
|
import { IUserLiteResponse } from "../core/IUserLiteResponse";
|
|
3
|
+
import { TFlowDataResponse } from "../flow";
|
|
4
|
+
import _ from "lodash";
|
|
3
5
|
|
|
4
6
|
export interface IYzcqMainResponse {
|
|
5
7
|
whoBuild: number;
|
|
@@ -44,8 +46,16 @@ export interface IYzcqMainResponse {
|
|
|
44
46
|
matchVal: string;
|
|
45
47
|
billMain: number;
|
|
46
48
|
hashText: string;
|
|
49
|
+
cqbzText: string;
|
|
50
|
+
hzcbName: string;
|
|
51
|
+
outMoney: number;
|
|
52
|
+
jsdwText: string;
|
|
53
|
+
flowMain: number;
|
|
54
|
+
flowNode: number;
|
|
55
|
+
menuUUID: string;
|
|
47
56
|
|
|
48
57
|
listPath: IPathResponse[];
|
|
58
|
+
listDDDW: IUserLiteResponse[];
|
|
49
59
|
listZBDW: IUserLiteResponse[];
|
|
50
60
|
}
|
|
51
61
|
|
|
@@ -94,27 +104,47 @@ export class TYzcqMainResponse implements IYzcqMainResponse {
|
|
|
94
104
|
billMain: number = 0;
|
|
95
105
|
hashText: string = "";
|
|
96
106
|
|
|
107
|
+
cqbzText: string = "";
|
|
108
|
+
hzcbName: string = "";
|
|
109
|
+
outMoney: number = 0;
|
|
110
|
+
jsdwText: string = "";
|
|
111
|
+
flowMain: number = 0;
|
|
112
|
+
flowNode: number = 0;
|
|
113
|
+
menuUUID: string = "";
|
|
114
|
+
|
|
97
115
|
listPath: IPathResponse[] = [];
|
|
116
|
+
listDDDW: IUserLiteResponse[] = [];
|
|
98
117
|
listZBDW: IUserLiteResponse[] = [];
|
|
99
118
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
constructor(ntio: any = {}) {
|
|
120
|
+
if (ntio) {
|
|
121
|
+
_.merge(this, _.pick(ntio, Object.keys(this)));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
static toFlowDatas(yzcqs: TYzcqMainResponse[]): TFlowDataResponse[] {
|
|
126
|
+
return yzcqs.map((u) => this.toFlowData(u));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
static toFlowData(yzcq: TYzcqMainResponse): TFlowDataResponse {
|
|
130
|
+
let result = new TFlowDataResponse();
|
|
131
|
+
result.whoBuild = yzcq.whoBuild;
|
|
132
|
+
result.userIndx = yzcq.userIndx;
|
|
133
|
+
result.flowMain = yzcq.flowMain;
|
|
134
|
+
result.flowNode = yzcq.flowNode;
|
|
135
|
+
result.flowStat = yzcq.yzcqStat;
|
|
136
|
+
result.notified = "";
|
|
137
|
+
result.entityID = yzcq.entityID;
|
|
138
|
+
result.billMain = yzcq.yzcqIndx;
|
|
139
|
+
result.billCode = yzcq.yzcqCode;
|
|
140
|
+
result.billMemo = yzcq.yzcqMemo;
|
|
141
|
+
result.outMoney = yzcq.outMoney;
|
|
142
|
+
result.createAt = yzcq.createAt;
|
|
143
|
+
result.mastName = yzcq.mastName;
|
|
144
|
+
result.createBy = yzcq.createBy;
|
|
145
|
+
result.unitMain = yzcq.unitMain;
|
|
146
|
+
result.deptMain = yzcq.deptMain;
|
|
147
|
+
result.menuUUID = yzcq.menuUUID;
|
|
148
|
+
return result;
|
|
149
|
+
}
|
|
120
150
|
}
|