@ningboyz/types 1.4.110 → 1.4.112

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.4.110",
4
+ "version": "1.4.112",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,5 +1,5 @@
1
1
  import _ from "lodash";
2
- import { TCore } from "..";
2
+ import { TCore, TStim } from "..";
3
3
  import { IDictResponse, IPartResponse, IUnitResponse, IUserLiteResponse } from "../core";
4
4
  import { IPathResponse } from "../core/IPathResponse";
5
5
  import { TFlowDataResponse } from "../flow/IFlowDataResponse";
@@ -414,12 +414,23 @@ export class TNotiMainResponse implements INotiMainResponse {
414
414
  notiUses: string = "";
415
415
  listDept: TCore.IDeptResponse[] = [];
416
416
 
417
- constructor(card: any = {}) {
418
- if (card) {
419
- _.merge(this, _.pick(card, Object.keys(this)));
417
+ constructor(ntio: any = {}) {
418
+ if (ntio) {
419
+ _.merge(this, _.pick(ntio, Object.keys(this)));
420
420
  }
421
421
  }
422
422
 
423
+ static toWldyPrintData(noti: INotiMainResponse) {
424
+ const data = new TStim.TStimulsoftPrintData();
425
+ data.billMain = noti.notiIndx;
426
+ data.menuUUID = noti.menuUUID;
427
+ return data;
428
+ }
429
+
430
+ static toWldyPrintDatas(listNoti: INotiMainResponse[]) {
431
+ return listNoti.map((u) => this.toWldyPrintData(u));
432
+ }
433
+
423
434
  static toFlowDatas(notis: TNotiMainResponse[]): TFlowDataResponse[] {
424
435
  return notis.map((u) => this.toFlowData(u));
425
436
  }