@ningboyz/types 1.5.158 → 1.5.160

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.158",
4
+ "version": "1.5.160",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -39,6 +39,7 @@ export interface IDictResponse extends IBaseResponse<IDictResponse> {
39
39
  kjndKJQJ: number; // 会计期间YYYYMM
40
40
  listUnit: IUnitResponse[]; // 单位列表
41
41
  listPart: TPartResponse[]; // 部门列表
42
+ listDict: IDictResponse[]; // 字典列表
42
43
  mastGUID: string; // UUID格式
43
44
  mastName: string; // 创建者名称,如"管理员"
44
45
  menuMain: number;
@@ -106,6 +107,7 @@ export class TDictResponse extends TBaseResponse<IDictResponse> implements IDict
106
107
  kjndKJQJ: number = 0;
107
108
  listUnit: IUnitResponse[] = [];
108
109
  listPart: TPartResponse[] = [];
110
+ listDict: IDictResponse[] = [];
109
111
  mastGUID: string = "";
110
112
  mastName: string = "";
111
113
  menuMain: number = 0;
@@ -10,6 +10,7 @@ import type { IUnitResponse } from "./IUnitResponse";
10
10
  import type { IUserAcnoResponse } from "./IUserAcnoResponse";
11
11
  import { IUserBodyResponse } from "./IUserBodyResponse.ts";
12
12
  import { IUserPartResponse } from "./IUserPartResponse.ts";
13
+ import { TFlowDataResponse } from "../flow/IFlowDataResponse.ts";
13
14
 
14
15
  export interface IUserResponse extends IBaseResponse<IUserResponse> {
15
16
  whoBuild: number; // #PK
@@ -21,6 +22,8 @@ export interface IUserResponse extends IBaseResponse<IUserResponse> {
21
22
  createAt: number;
22
23
  createBy: string;
23
24
  dContact: string;
25
+ flowMain: number;
26
+ flowNode: number;
24
27
  dataDate: number;
25
28
  dataFrom: number;
26
29
  dataGUID: string;
@@ -90,6 +93,9 @@ export interface IUserResponse extends IBaseResponse<IUserResponse> {
90
93
  nodeName: string;
91
94
  nickName: string;
92
95
 
96
+
97
+ fromUserStat: number;
98
+ menuUUID: string;
93
99
  creditOf: number; // 信用等级
94
100
  creditBy: string;
95
101
  wbField0: string; // 性质
@@ -211,6 +217,8 @@ export class TUserResponse extends TBaseResponse<IUserResponse> implements IUser
211
217
  dataLevl: number = 0;
212
218
  dataOrdr: number = 0;
213
219
  dataStat: number = 0;
220
+ flowMain: number = 0;
221
+ flowNode: number = 0;
214
222
  dataTime: number = 0;
215
223
  deleteAt: number = 0;
216
224
  deleteBy: string = "";
@@ -314,6 +322,8 @@ export class TUserResponse extends TBaseResponse<IUserResponse> implements IUser
314
322
  userAcnoText: string = "";
315
323
  sysPartnText: string = "";
316
324
  fromSourceND: number = 0;
325
+ fromUserStat: number = 0;
326
+ menuUUID: string = "";
317
327
  fromUserIndx: number = 0;
318
328
  fromWhoBuild: number = 0;
319
329
  get4deptText: string = "";
@@ -368,6 +378,40 @@ export class TUserResponse extends TBaseResponse<IUserResponse> implements IUser
368
378
  }
369
379
  }
370
380
 
381
+
382
+
383
+
384
+ static toFlowData(user: IUserResponse): TFlowDataResponse {
385
+ const result = new TFlowDataResponse();
386
+ result.whoBuild = user.whoBuild;
387
+ result.flowMain = user.flowMain;
388
+ result.flowNode = user.flowNode;
389
+
390
+ result.entityID = user.entityID;
391
+ result.billMain = user.userIndx;
392
+
393
+ result.billMemo = user.userMemo;
394
+ result.createAt = user.createAt;
395
+ result.mastName = user.mastName;
396
+ result.createBy = user.createBy;
397
+ result.unitMain = user.unitMain;
398
+ result.deptMain = user.deptMain;
399
+ result.menuUUID = user.menuUUID;
400
+ result.flowStat = user.fromUserStat;
401
+ return result;
402
+ }
403
+
404
+ static toFlowDatas(user: IUserResponse[]): TFlowDataResponse[] {
405
+ return user.map((u) => this.toFlowData(u));
406
+ }
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
371
415
  public static toTree(listUser: IUserResponse[]) {
372
416
  return construct(listUser, { id: "userIndx", pid: "parentID", children: "children" }) as IUserResponse[];
373
417
  }