@ningboyz/types 1.6.53 → 1.6.54

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.6.53",
4
+ "version": "1.6.54",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,5 +1,6 @@
1
1
  import _ from "lodash";
2
2
  import { TFlowDataResponse } from "../flow";
3
+ import { TStim } from "..";
3
4
 
4
5
  export interface IBillMainResponse {
5
6
  whoBuild: number;
@@ -355,4 +356,15 @@ export class TBillMainResponse implements IBillMainResponse {
355
356
  result.flowStat = bill.billStat;
356
357
  return result;
357
358
  }
359
+
360
+ static toWldyPrintData(bill : IBillMainResponse) {
361
+ const data = new TStim.TStimulsoftPrintData();
362
+ data.billMain = String(bill.billIndx);
363
+ data.menuUUID = bill.menuUUID;
364
+ return data;
365
+ }
366
+
367
+ static toWldyPrintDatas(listBill: IBillMainResponse[]) {
368
+ return listBill.map((u) => this.toWldyPrintData(u));
369
+ }
358
370
  }