@ningboyz/types 1.0.141 → 1.0.143
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
|
@@ -143,7 +143,7 @@ export interface IMyoaMainResponse {
|
|
|
143
143
|
/**
|
|
144
144
|
* 领用标志
|
|
145
145
|
* */
|
|
146
|
-
mrokStat:
|
|
146
|
+
mrokStat: number;
|
|
147
147
|
/**
|
|
148
148
|
* 入仓/领用原卡片
|
|
149
149
|
* */
|
|
@@ -289,7 +289,7 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
|
|
|
289
289
|
cardSize: number = 0;
|
|
290
290
|
totalVal: number = 0;
|
|
291
291
|
reasonBy: string = "";
|
|
292
|
-
mrokStat:
|
|
292
|
+
mrokStat: number = 0;
|
|
293
293
|
listBeforeAsset: ICardMainResponse[] = [];
|
|
294
294
|
listAfterAsset: ICardMainResponse[] = [];
|
|
295
295
|
|
|
@@ -417,4 +417,17 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
|
|
|
417
417
|
travel.menuUUID = card.menuUUID;
|
|
418
418
|
return travel;
|
|
419
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
|
+
}
|
|
420
433
|
}
|