@ningboyz/types 1.4.119 → 1.4.120
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {THznk, TCore, TStim} from "..";
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import { TFlowDataResponse } from "../flow";
|
|
4
4
|
|
|
@@ -106,7 +106,8 @@ export interface IHznkBaseResponse {
|
|
|
106
106
|
listWBDW: THznk.IHznkBaseWbdwResponse[];
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
type Type = IHznkBaseResponse
|
|
110
|
+
export class THznkBaseResponse implements Type {
|
|
110
111
|
whoBuild: number = 0;
|
|
111
112
|
userIndx: number = 0;
|
|
112
113
|
baseIndx: number = 0;
|
|
@@ -188,13 +189,13 @@ export class THznkBaseResponse implements IHznkBaseResponse {
|
|
|
188
189
|
listWBYH: TCore.IUserLiteResponse[] = [];
|
|
189
190
|
listWBDW: THznk.IHznkBaseWbdwResponse[] = [];
|
|
190
191
|
|
|
191
|
-
constructor(data: Partial<
|
|
192
|
+
constructor(data: Partial<Type> = {}) {
|
|
192
193
|
if (data) {
|
|
193
194
|
_.merge(this, _.pick(data, Object.keys(this)));
|
|
194
195
|
}
|
|
195
196
|
}
|
|
196
197
|
|
|
197
|
-
static toFlowData(data:
|
|
198
|
+
static toFlowData(data: Type): TFlowDataResponse {
|
|
198
199
|
const result = new TFlowDataResponse();
|
|
199
200
|
result.whoBuild = data.whoBuild;
|
|
200
201
|
result.flowMain = data.flowMain;
|
|
@@ -214,7 +215,18 @@ export class THznkBaseResponse implements IHznkBaseResponse {
|
|
|
214
215
|
return result;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
|
-
static toFlowDatas(data:
|
|
218
|
+
static toFlowDatas(data: Type[]): TFlowDataResponse[] {
|
|
218
219
|
return data.map((u) => this.toFlowData(u));
|
|
219
220
|
}
|
|
221
|
+
|
|
222
|
+
static toWldyPrintData(noti: Type) {
|
|
223
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
224
|
+
data.billMain = noti.baseIndx;
|
|
225
|
+
data.menuUUID = noti.menuUUID;
|
|
226
|
+
return data;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
static toWldyPrintDatas(listNoti: Type[]) {
|
|
230
|
+
return listNoti.map((u) => this.toWldyPrintData(u));
|
|
231
|
+
}
|
|
220
232
|
}
|
|
@@ -47,7 +47,9 @@ export interface IMyoaMainResponse {
|
|
|
47
47
|
unitMain: number;
|
|
48
48
|
unitNamf: string;
|
|
49
49
|
deptMain: number;
|
|
50
|
-
dictMain: number
|
|
50
|
+
dictMain: number
|
|
51
|
+
/** 会议室间歇时间 */
|
|
52
|
+
interval: number;
|
|
51
53
|
startOut: number; //#用车申请.出车时间 YYYYMMDDHHMM
|
|
52
54
|
endedOut: number; //#用车申请.结束时间 YYYYMMDDHHMM
|
|
53
55
|
totalOut: number;
|
|
@@ -253,6 +255,8 @@ export class TMyoaMainResponse implements Type {
|
|
|
253
255
|
unitNamf: string = "";
|
|
254
256
|
deptMain: number = 0;
|
|
255
257
|
dictMain: number = 0;
|
|
258
|
+
/** 会议室间歇时间 */
|
|
259
|
+
interval: number = 0;
|
|
256
260
|
/** 拟公告时间 */
|
|
257
261
|
startOut: number = 0;
|
|
258
262
|
endedOut: number = 0;
|