@ningboyz/types 1.6.89 → 1.6.90
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 +5 -0
- package/src/yzcq/IYzcqMainResponse.ts +50 -20
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -45,12 +45,14 @@ import * as TWtui from "./wtui";
|
|
|
45
45
|
import * as TWzpz from "./wzpz";
|
|
46
46
|
import * as TYzcb from "./yzcb";
|
|
47
47
|
import * as TYzcg from "./yzcg";
|
|
48
|
+
import * as TYzcq from "./yzcq";
|
|
48
49
|
import * as TYzht from "./yzht";
|
|
49
50
|
import * as TYzpz from "./yzpz";
|
|
50
51
|
import * as TZbhd from "./zbhd";
|
|
51
52
|
import * as TZbzd from "./zbzd";
|
|
52
53
|
import * as TZfht from "./zfht";
|
|
53
54
|
import * as TZfsq from "./zfsq";
|
|
55
|
+
import * as TYzcq from "./yzcq";
|
|
54
56
|
|
|
55
57
|
export {
|
|
56
58
|
Const,
|
|
@@ -98,12 +100,14 @@ export {
|
|
|
98
100
|
TWzpz,
|
|
99
101
|
TYzcb,
|
|
100
102
|
TYzcg,
|
|
103
|
+
TYzcq,
|
|
101
104
|
TYzht,
|
|
102
105
|
TYzpz,
|
|
103
106
|
TZbhd,
|
|
104
107
|
TZbzd,
|
|
105
108
|
TZfht,
|
|
106
109
|
TZfsq,
|
|
110
|
+
TYzcq,
|
|
107
111
|
type IAboutConfig,
|
|
108
112
|
type IBaseConfig,
|
|
109
113
|
type IBaseResponse,
|
|
@@ -113,3 +117,4 @@ export {
|
|
|
113
117
|
type IToolDownLoadData,
|
|
114
118
|
type IWtuiConfig
|
|
115
119
|
};
|
|
120
|
+
|
|
@@ -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
|
}
|