@ningboyz/types 1.0.140 → 1.0.142
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
|
@@ -10,6 +10,7 @@ import { IYzcgMainResponse } from "../yzcg/IYzcgMainResponse";
|
|
|
10
10
|
import { IMyoaCashResponse } from "./IMyoaCashResponse";
|
|
11
11
|
import { IMyoaPGDWResponse } from "./IMyoaPGDWResponse";
|
|
12
12
|
import _ from "lodash";
|
|
13
|
+
import {TCore} from "../../index.ts";
|
|
13
14
|
|
|
14
15
|
export interface IMyoaMainResponse {
|
|
15
16
|
typeName: string;
|
|
@@ -142,7 +143,7 @@ export interface IMyoaMainResponse {
|
|
|
142
143
|
/**
|
|
143
144
|
* 领用标志
|
|
144
145
|
* */
|
|
145
|
-
mrokStat:
|
|
146
|
+
mrokStat: number;
|
|
146
147
|
/**
|
|
147
148
|
* 入仓/领用原卡片
|
|
148
149
|
* */
|
|
@@ -288,7 +289,7 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
|
|
|
288
289
|
cardSize: number = 0;
|
|
289
290
|
totalVal: number = 0;
|
|
290
291
|
reasonBy: string = "";
|
|
291
|
-
mrokStat:
|
|
292
|
+
mrokStat: number = 0;
|
|
292
293
|
listBeforeAsset: ICardMainResponse[] = [];
|
|
293
294
|
listAfterAsset: ICardMainResponse[] = [];
|
|
294
295
|
|
|
@@ -399,4 +400,34 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
|
|
|
399
400
|
|
|
400
401
|
return result;
|
|
401
402
|
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* 用来记录操作
|
|
406
|
+
* */
|
|
407
|
+
static toTravel(card: IMyoaMainResponse): TCore.ISysTravelResponse {
|
|
408
|
+
const travel = new TCore.TSysTravelResponse();
|
|
409
|
+
travel.whoBuild = card.whoBuild;
|
|
410
|
+
travel.flowMain = card.flowMain;
|
|
411
|
+
travel.flowNode = card.flowNode;
|
|
412
|
+
travel.billUUID = card.entityID;
|
|
413
|
+
travel.billMain = card.myoaIndx;
|
|
414
|
+
travel.billCode = card.myoaCode;
|
|
415
|
+
travel.mastName = card.mastName;
|
|
416
|
+
travel.createBy = card.createBy;
|
|
417
|
+
travel.menuUUID = card.menuUUID;
|
|
418
|
+
return travel;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/** 转换成记录日志需要的数据(第一层,不包含菜单) */
|
|
422
|
+
static toTravelData(card?: IMyoaMainResponse | IMyoaMainResponse[]): TCore.ISysTravelResponse[] {
|
|
423
|
+
if (_.isNil(card)) {
|
|
424
|
+
return [];
|
|
425
|
+
}
|
|
426
|
+
if (_.isArray(card)) {
|
|
427
|
+
return card.map((u) => {
|
|
428
|
+
return this.toTravel(u);
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
return [this.toTravel(card)];
|
|
432
|
+
}
|
|
402
433
|
}
|
|
@@ -286,6 +286,7 @@ export class TYzcgMainResponse implements IYzcgMainResponse {
|
|
|
286
286
|
const result = new TFlowDataResponse();
|
|
287
287
|
result.whoBuild = yzcg.whoBuild;
|
|
288
288
|
result.userIndx = yzcg.userIndx;
|
|
289
|
+
result.userMain = yzcg.userMain;
|
|
289
290
|
result.flowMain = yzcg.flowMain;
|
|
290
291
|
result.flowNode = yzcg.flowNode;
|
|
291
292
|
result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_YZCG_WAIT;
|