@ningboyz/types 1.5.157 → 1.5.159

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.157",
4
+ "version": "1.5.159",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -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
  }
@@ -177,5 +177,9 @@ export enum TButtonType {
177
177
  /** 终审导出 */
178
178
  finalReviewExport = "finalReviewExport",
179
179
  /** 非租赁转租赁 */
180
- nonLeaseToLease = "nonLeaseToLease"
180
+ nonLeaseToLease = "nonLeaseToLease",
181
+ /**重置密码 */
182
+ resetPassword = "resetPassword",
183
+
184
+
181
185
  }