@ningboyz/types 1.1.135 → 1.1.137

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
- "version": "1.1.135",
3
+ "version": "1.1.137",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -1,5 +1,6 @@
1
1
  import { TCore } from "../../index.ts";
2
2
  import _ from "lodash";
3
+ import { TWithEXPDS, TWithMYOA, WithEXPDS, WithMYOA } from "./IUserResponse.ts";
3
4
 
4
5
  export interface IPartResponse {
5
6
  whoBuild: number;
@@ -34,6 +35,17 @@ export interface IPartResponse {
34
35
  queuesBy: number;
35
36
  usesZbhd: number;
36
37
  usesFlow: number;
38
+
39
+ withMYOA: WithMYOA;
40
+ withEXPD: WithEXPDS;
41
+ /** 单据加载 */
42
+ listExpdDoPeriod: number;
43
+ /** 用户角色 */
44
+ listUserGet4Part: string;
45
+ /** 支出管理:显示以下角色的用户 */
46
+ listUserWhenExpd: number;
47
+ /** 内部管理:允许查看请假统计 */
48
+ asLeaderWhenMYOA: number;
37
49
  }
38
50
 
39
51
  export class TPartResponse implements IPartResponse {
@@ -70,6 +82,13 @@ export class TPartResponse implements IPartResponse {
70
82
  usesZbhd: number = 0;
71
83
  usesFlow: number = 0;
72
84
 
85
+ withMYOA: WithMYOA = new TWithMYOA();
86
+ withEXPD: WithEXPDS = new TWithEXPDS();
87
+ listExpdDoPeriod: number = 0;
88
+ listUserGet4Part: string = "";
89
+ listUserWhenExpd: number = 0;
90
+ asLeaderWhenMYOA: number = 0;
91
+
73
92
  static toTravel(part: IPartResponse, buttonType: string): TCore.ISysTravelResponse {
74
93
  const travel = new TCore.TSysTravelResponse();
75
94
  travel.whoBuild = part.whoBuild;
@@ -357,6 +357,22 @@ export interface WithEXPD {
357
357
  whoBuild: number;
358
358
  }
359
359
 
360
+ export interface WithMYOA {
361
+ asLeaderWhenMYOA: number;
362
+ usrPartc: number;
363
+ userIndx: number;
364
+ whoBuild: number;
365
+ }
366
+
367
+ export interface WithEXPDS {
368
+ listExpdDoPeriod: number;
369
+ listUserGet4Part: string;
370
+ listUserWhenExpd: number;
371
+ usrPartc: number;
372
+ userIndx: number;
373
+ whoBuild: number;
374
+ }
375
+
360
376
  export interface WithGZTB {
361
377
  asLeaderWhenGZTB: number;
362
378
  asLockerWhenGZTB: number;
@@ -373,6 +389,22 @@ export class TWithEXPD implements WithEXPD {
373
389
  whoBuild: number = 0;
374
390
  }
375
391
 
392
+ export class TWithMYOA implements WithMYOA {
393
+ asLeaderWhenMYOA: number = 0;
394
+ usrPartc: number = 0;
395
+ userIndx: number = 0;
396
+ whoBuild: number = 0;
397
+ }
398
+
399
+ export class TWithEXPDS implements WithEXPDS {
400
+ listExpdDoPeriod: number = 0;
401
+ listUserGet4Part: string = "";
402
+ listUserWhenExpd: number = 0;
403
+ usrPartc: number = 0;
404
+ userIndx: number = 0;
405
+ whoBuild: number = 0;
406
+ }
407
+
376
408
  export interface WithGZTB {
377
409
  asLeaderWhenGZTB: number;
378
410
  asLockerWhenGZTB: number;