@ningboyz/types 1.5.16 → 1.5.17

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.5.16",
4
+ "version": "1.5.17",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -83,6 +83,7 @@ export interface IBillMainResponse {
83
83
  /** 开票账号 */
84
84
  aczfMain: number;
85
85
  aczfZhmc: string;
86
+ lastTime: string;
86
87
  aczfKhyh: string;
87
88
  aczfYhzh: string;
88
89
  /** 收款单位 */
@@ -229,6 +230,7 @@ export class TBillMainResponse implements IBillMainResponse {
229
230
  /** 开票账号 */
230
231
  aczfMain: number = 0;
231
232
  aczfZhmc: string = "";
233
+ lastTime: string = "";
232
234
  aczfKhyh: string = "";
233
235
  aczfYhzh: string = "";
234
236
  /** 收款单位 */
@@ -227,8 +227,7 @@ export interface IMyoaMainResponse {
227
227
  dzyzQife: number;
228
228
  }
229
229
 
230
- type Type = IMyoaMainResponse;
231
- export class TMyoaMainResponse implements Type {
230
+ export class TMyoaMainResponse implements IMyoaMainResponse {
232
231
  typeName: string = "TMyoaMainResponse";
233
232
  whoBuild: number = 0;
234
233
  userIndx: number = 0;
@@ -426,18 +425,18 @@ export class TMyoaMainResponse implements Type {
426
425
  bField03: number = 0;
427
426
  bField04: number = 0;
428
427
  bField05: number = 0;
429
- constructor(card: keyof Type | object) {
428
+ constructor(card: keyof IMyoaMainResponse | object) {
430
429
  if (card) {
431
430
  _.merge(this, _.pick(card, Object.keys(this)));
432
431
  }
433
432
  }
434
433
 
435
- static toFlowDatas(card: Type[]): TFlowDataResponse[] {
434
+ static toFlowDatas(card: IMyoaMainResponse[]): TFlowDataResponse[] {
436
435
  return card.map((u) => this.toFlowData(u));
437
436
  }
438
437
 
439
438
  //#进入流程
440
- static toFlowData(myoa: Type): TFlowDataResponse {
439
+ static toFlowData(myoa: IMyoaMainResponse): TFlowDataResponse {
441
440
  const result = new TFlowDataResponse();
442
441
  result.whoBuild = myoa.whoBuild;
443
442
  result.userIndx = myoa.userIndx;
@@ -462,7 +461,7 @@ export class TMyoaMainResponse implements Type {
462
461
  }
463
462
 
464
463
  //#取车状态
465
- static getAuthStat(myoa: Type): string {
464
+ static getAuthStat(myoa: IMyoaMainResponse): string {
466
465
  let result: string = "";
467
466
 
468
467
  if (myoa.myoaStat !== Const.Flow.CONST_FLOW_NODE_STAT_VOID) {
@@ -487,7 +486,7 @@ export class TMyoaMainResponse implements Type {
487
486
  }
488
487
 
489
488
  //#流程状态
490
- static getMyoaStat(myoa: Type): string {
489
+ static getMyoaStat(myoa: IMyoaMainResponse): string {
491
490
  let result: string = "";
492
491
 
493
492
  if (myoa.dataHide === 1) {
@@ -520,7 +519,7 @@ export class TMyoaMainResponse implements Type {
520
519
  /**
521
520
  * 用来记录操作
522
521
  * */
523
- static toTravel(card: Type): TCore.ISysTravelResponse {
522
+ static toTravel(card: IMyoaMainResponse): TCore.ISysTravelResponse {
524
523
  const travel = new TCore.TSysTravelResponse();
525
524
  travel.whoBuild = card.whoBuild;
526
525
  travel.flowMain = card.flowMain;
@@ -535,7 +534,7 @@ export class TMyoaMainResponse implements Type {
535
534
  }
536
535
 
537
536
  /** 转换成记录日志需要的数据(第一层,不包含菜单) */
538
- static toTravelData(card?: Type | Type[]): TCore.ISysTravelResponse[] {
537
+ static toTravelData(card?: IMyoaMainResponse | IMyoaMainResponse[]): TCore.ISysTravelResponse[] {
539
538
  if (_.isNil(card)) {
540
539
  return [];
541
540
  }
@@ -547,14 +546,14 @@ export class TMyoaMainResponse implements Type {
547
546
  return [this.toTravel(card)];
548
547
  }
549
548
 
550
- static toWldyPrintData(noti: Type) {
549
+ static toWldyPrintData(noti: IMyoaMainResponse) {
551
550
  const data = new TStim.TStimulsoftPrintData();
552
551
  data.billMain = noti.myoaIndx;
553
552
  data.menuUUID = noti.menuUUID;
554
553
  return data;
555
554
  }
556
555
 
557
- static toWldyPrintDatas(listNoti: Type[]) {
556
+ static toWldyPrintDatas(listNoti: IMyoaMainResponse[]) {
558
557
  return listNoti.map((u) => this.toWldyPrintData(u));
559
558
  }
560
559
  }