@ningboyz/types 1.0.92 → 1.0.94

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.0.92",
3
+ "version": "1.0.94",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -48,6 +48,7 @@ export interface ILaidResponse extends IBaseResponse<ILaidResponse> {
48
48
  autoCpbh: string; // #车牌号
49
49
 
50
50
  takeType: number; // , 默认0, -1:出库, 1:入库;
51
+ isPublic: number; // #1:公务仓;0:普通存放地点
51
52
  sysclasc: number; // , 模块大类
52
53
  }
53
54
 
@@ -95,6 +96,7 @@ export class TLaidResponse extends TBaseResponse<ILaidResponse> implements ILaid
95
96
  coverURL: string = "";
96
97
  autoCpbh: string = "";
97
98
  takeType: number = 0;
99
+ isPublic: number = 0;
98
100
  sysclasc: number = 0;
99
101
 
100
102
  public static toTree(listLaid: ILaidResponse[]) {
@@ -72,6 +72,7 @@ export interface IUserPartResponse extends IBaseResponse<IUserPartResponse[]> {
72
72
 
73
73
  fromUserMain: number;
74
74
  fromUserName: string;
75
+ displayText: string;
75
76
  }
76
77
 
77
78
  export class TUserPartResponse extends TBaseResponse<IUserPartResponse[]> implements IUserPartResponse {
@@ -151,6 +152,7 @@ export class TUserPartResponse extends TBaseResponse<IUserPartResponse[]> implem
151
152
  takeType: number = 0;
152
153
  uniqueID: number = 0;
153
154
  vitualID: number = 0;
155
+ displayText: string = "";
154
156
 
155
157
  public static toTree(listUser: IUserPartResponse[]) {
156
158
  return construct(listUser, { id: "fromLaidIndx", pid: "parentID", children: "children" }) as IUserPartResponse[];
@@ -1,139 +0,0 @@
1
- import { construct, destruct } from "@aximario/json-tree";
2
- import type { IBaseResponse } from "../base/IBaseResponse";
3
- import { TBaseResponse } from "../base/IBaseResponse";
4
- import _ from "lodash";
5
- import { TCore } from "../../index.ts";
6
-
7
- export interface ILaidResponse extends IBaseResponse<ILaidResponse> {
8
- whoBuild: number;
9
- userIndx: number;
10
- laidIndx: number;
11
- parentID: number;
12
- hashCode: number;
13
- dataLevl: number;
14
- dataStat: number;
15
- dataOrdr: number;
16
- dataDate: number;
17
- dataTime: number;
18
- dataHide: number;
19
- dataFrom: number;
20
- kjndKJQJ: number;
21
- dataGUID: string;
22
- mastName: string;
23
- mastGUID: string;
24
- createBy: string;
25
- createAt: number;
26
- updateBy: string;
27
- updateAt: number;
28
- deleteBy: string;
29
- deleteAt: number;
30
- entityID: string; // #唯一标识{xx-xx-xx-xx-xx}
31
- laidCode: string; // #存放地点.编码
32
- codeFull: string;
33
- laidName: string; // #存放地点.名称
34
- nameFull: string;
35
- laidMemo: string; // #存放地点.备注
36
-
37
- unitMain: number; // #单位标识
38
- unitText: string;
39
- wldyMain: number; // #网络终端.标识{1号柜,2号柜...}
40
- wldyName: string; // #网络终端.名称
41
- matchKey: string; // #匹配标识
42
- laidStat: number; // #储物格状态{0:空格;1:满格}
43
- readerID: string; // #1,2,3,
44
-
45
- cardName: string; // #资产名称
46
- cardCode: string; // #资产编码
47
- coverURL: string; // #资产封面
48
- autoCpbh: string; // #车牌号
49
-
50
- takeType: number; // , 默认0, -1:出库, 1:入库;
51
- }
52
-
53
- export class TLaidResponse extends TBaseResponse<ILaidResponse> implements ILaidResponse {
54
- whoBuild: number = 0;
55
- userIndx: number = 0;
56
- laidIndx: number = 0;
57
- parentID: number = 0;
58
- hashCode: number = 0;
59
- dataLevl: number = 0;
60
- dataStat: number = 0;
61
- dataOrdr: number = 0;
62
- dataDate: number = 0;
63
- dataTime: number = 0;
64
- dataHide: number = 0;
65
- dataFrom: number = 0;
66
- kjndKJQJ: number = 0;
67
- dataGUID: string = "";
68
- mastName: string = "";
69
- mastGUID: string = "";
70
- createBy: string = "";
71
- createAt: number = 0;
72
- updateBy: string = "";
73
- updateAt: number = 0;
74
- deleteBy: string = "";
75
- deleteAt: number = 0;
76
- entityID: string = "";
77
- laidCode: string = "";
78
- codeFull: string = "";
79
- laidName: string = "";
80
- nameFull: string = "";
81
- laidMemo: string = "";
82
-
83
- unitMain: number = 0;
84
- unitText: string = "";
85
- wldyMain: number = 0;
86
- wldyName: string = "";
87
- matchKey: string = "";
88
- laidStat: number = 0;
89
-
90
- readerID: string = "";
91
-
92
- cardName: string = "";
93
- cardCode: string = "";
94
- coverURL: string = "";
95
- autoCpbh: string = "";
96
- takeType: number = 0;
97
-
98
- public static toTree(listLaid: ILaidResponse[]) {
99
- return construct(listLaid, { id: "laidIndx", pid: "parentID", children: "children" }) as ILaidResponse[];
100
- }
101
-
102
- public static toList(treeLaid: ILaidResponse[]) {
103
- return destruct(treeLaid, { id: "laidIndx", pid: "parentID", children: "children" }) as ILaidResponse[];
104
- }
105
-
106
- constructor(response?: any) {
107
- super();
108
- if (response) {
109
- _.merge(this, _.pick(response, Object.keys(this)));
110
- }
111
- }
112
-
113
- static toTravel(laid: ILaidResponse, whatDone: string): TCore.ISysTravelResponse {
114
- const travel = new TCore.TSysTravelResponse();
115
- travel.whoBuild = laid.whoBuild;
116
- travel.flowMain = 0;
117
- travel.flowNode = 0;
118
- travel.billUUID = laid.entityID;
119
- travel.billMain = laid.laidIndx;
120
- travel.billCode = laid.laidCode;
121
- travel.mastName = laid.mastName;
122
- travel.createBy = laid.createBy;
123
- travel.whatDone = `${whatDone}${laid.laidName}`;
124
- return travel;
125
- }
126
-
127
- /** 转换成记录日志需要的数据(第一层,不包含菜单) */
128
- static toTravelData(card?: ILaidResponse | ILaidResponse[], whatDone: string = ""): TCore.ISysTravelResponse[] {
129
- if (_.isNil(card)) {
130
- return [];
131
- }
132
- if (_.isArray(card)) {
133
- return card.map((u) => {
134
- return this.toTravel(u, whatDone);
135
- });
136
- }
137
- return [this.toTravel(card, whatDone)];
138
- }
139
- }