@ningboyz/types 1.2.164 → 1.2.166

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.2.164",
4
+ "version": "1.2.166",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -167,29 +167,29 @@ export class TCardFwczResponse implements ICardFwczResponse {
167
167
  listRoom: ICardRoomResponse[] = [];
168
168
  listPath: IPathResponse[] = [];
169
169
 
170
- static toFlowDatas(card: TCardFwczResponse[]): TFlowDataResponse[] {
171
- return card.map((u) => this.toFlowData(u));
170
+ static toFlowDatas(fwczs: TCardFwczResponse[]): TFlowDataResponse[] {
171
+ return fwczs.map((u) => this.toFlowData(u));
172
172
  }
173
173
 
174
- static toFlowData(xmtz: TCardFwczResponse): TFlowDataResponse {
174
+ static toFlowData(fwcz: TCardFwczResponse): TFlowDataResponse {
175
175
  let result = new TFlowDataResponse();
176
- result.whoBuild = xmtz.whoBuild;
177
- result.userIndx = xmtz.userIndx;
178
- result.flowMain = xmtz.flowMain;
179
- result.flowNode = xmtz.flowNode;
180
- result.flowStat = xmtz.fwczStat;
176
+ result.whoBuild = fwcz.whoBuild;
177
+ result.userIndx = fwcz.userIndx;
178
+ result.flowMain = fwcz.flowMain;
179
+ result.flowNode = fwcz.flowNode;
180
+ result.flowStat = fwcz.fwczStat;
181
181
  // result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HZCB_XMTZ_WAIT;
182
- result.entityID = xmtz.entityID;
183
- result.billMain = xmtz.fwczIndx;
184
- result.billCode = xmtz.fwczCode;
185
- result.billMemo = xmtz.fwczMemo;
182
+ result.entityID = fwcz.entityID;
183
+ result.billMain = fwcz.fwczIndx;
184
+ result.billCode = fwcz.fwczCode;
185
+ result.billMemo = fwcz.fwczMemo;
186
186
  result.outMoney = 0;
187
- result.createAt = xmtz.createAt;
188
- result.mastName = xmtz.mastName;
189
- result.createBy = xmtz.createBy;
190
- result.unitMain = xmtz.unitMain;
191
- result.deptMain = xmtz.deptMain;
192
- result.menuUUID = xmtz.menuUUID;
187
+ result.createAt = fwcz.createAt;
188
+ result.mastName = fwcz.mastName;
189
+ result.createBy = fwcz.createBy;
190
+ result.unitMain = fwcz.unitMain;
191
+ result.deptMain = fwcz.deptMain;
192
+ result.menuUUID = fwcz.menuUUID;
193
193
  return result;
194
194
  }
195
195
  }
@@ -1,8 +1,8 @@
1
+ import _ from "lodash";
1
2
  import { Const, TCore } from "..";
2
3
  import { IPathResponse } from "../core";
3
4
  import { TFlowDataResponse } from "../flow";
4
5
  import { ICardMainResponse } from "./ICardMainResponse";
5
- import _ from "lodash";
6
6
 
7
7
  export interface IZcbdResponse {
8
8
  whoBuild: number;
@@ -176,30 +176,30 @@ export class TZcbdResponse implements IZcbdResponse {
176
176
  return zcbds.map((u) => this.toFlowData(u));
177
177
  }
178
178
 
179
- static toTravel(card: TZcbdResponse): TCore.ISysTravelResponse {
179
+ static toTravel(zcbd: TZcbdResponse): TCore.ISysTravelResponse {
180
180
  const travel = new TCore.TSysTravelResponse();
181
- travel.whoBuild = card.whoBuild;
182
- travel.flowMain = card.flowMain;
183
- travel.flowNode = card.flowNode;
184
- travel.billUUID = card.entityID;
185
- travel.billMain = card.zcbdIndx;
186
- travel.billCode = card.zcbdCode;
187
- travel.mastName = card.mastName;
188
- travel.createBy = card.createBy;
189
- travel.menuUUID = card.menuUUID;
181
+ travel.whoBuild = zcbd.whoBuild;
182
+ travel.flowMain = zcbd.flowMain;
183
+ travel.flowNode = zcbd.flowNode;
184
+ travel.billUUID = zcbd.entityID;
185
+ travel.billMain = zcbd.zcbdIndx;
186
+ travel.billCode = zcbd.zcbdCode;
187
+ travel.mastName = zcbd.mastName;
188
+ travel.createBy = zcbd.createBy;
189
+ travel.menuUUID = zcbd.menuUUID;
190
190
  return travel;
191
191
  }
192
192
 
193
193
  /** 转换成记录日志需要的数据(第一层,不包含菜单) */
194
- static toTravelData(card?: TZcbdResponse | TZcbdResponse[]): TCore.ISysTravelResponse[] {
195
- if (_.isNil(card)) {
194
+ static toTravelData(data?: TZcbdResponse | TZcbdResponse[]): TCore.ISysTravelResponse[] {
195
+ if (_.isNil(data)) {
196
196
  return [];
197
197
  }
198
- if (_.isArray(card)) {
199
- return card.map((u) => {
198
+ if (_.isArray(data)) {
199
+ return data.map((u) => {
200
200
  return this.toTravel(u);
201
201
  });
202
202
  }
203
- return [this.toTravel(card)];
203
+ return [this.toTravel(data)];
204
204
  }
205
205
  }
@@ -1,8 +1,8 @@
1
+ import _ from "lodash";
1
2
  import { Const, TCore } from "..";
2
3
  import { IPathResponse } from "../core";
3
4
  import { TFlowDataResponse } from "../flow";
4
5
  import { ICardMainResponse } from "./ICardMainResponse";
5
- import _ from "lodash";
6
6
 
7
7
  export interface IZccfResponse {
8
8
  whoBuild: number;
@@ -203,30 +203,30 @@ export class TZccfResponse implements IZccfResponse {
203
203
  return zccfs.map((u) => this.toFlowData(u));
204
204
  }
205
205
 
206
- static toTravel(card: TZccfResponse): TCore.ISysTravelResponse {
206
+ static toTravel(zccf: TZccfResponse): TCore.ISysTravelResponse {
207
207
  const travel = new TCore.TSysTravelResponse();
208
- travel.whoBuild = card.whoBuild;
209
- travel.flowMain = card.flowMain;
210
- travel.flowNode = card.flowNode;
211
- travel.billUUID = card.entityID;
212
- travel.billMain = card.zccfIndx;
213
- travel.billCode = card.zccfCode;
214
- travel.mastName = card.mastName;
215
- travel.createBy = card.createBy;
216
- travel.menuUUID = card.menuUUID;
208
+ travel.whoBuild = zccf.whoBuild;
209
+ travel.flowMain = zccf.flowMain;
210
+ travel.flowNode = zccf.flowNode;
211
+ travel.billUUID = zccf.entityID;
212
+ travel.billMain = zccf.zccfIndx;
213
+ travel.billCode = zccf.zccfCode;
214
+ travel.mastName = zccf.mastName;
215
+ travel.createBy = zccf.createBy;
216
+ travel.menuUUID = zccf.menuUUID;
217
217
  return travel;
218
218
  }
219
219
 
220
220
  /** 转换成记录日志需要的数据(第一层,不包含菜单) */
221
- static toTravelData(card?: TZccfResponse | TZccfResponse[]): TCore.ISysTravelResponse[] {
222
- if (_.isNil(card)) {
221
+ static toTravelData(data?: TZccfResponse | TZccfResponse[]): TCore.ISysTravelResponse[] {
222
+ if (_.isNil(data)) {
223
223
  return [];
224
224
  }
225
- if (_.isArray(card)) {
226
- return card.map((u) => {
225
+ if (_.isArray(data)) {
226
+ return data.map((u) => {
227
227
  return this.toTravel(u);
228
228
  });
229
229
  }
230
- return [this.toTravel(card)];
230
+ return [this.toTravel(data)];
231
231
  }
232
232
  }
@@ -183,9 +183,9 @@ export class TZcczResponse implements IZcczResponse {
183
183
  return result;
184
184
  }
185
185
 
186
- constructor(card: any = {}) {
187
- if (card) {
188
- _.merge(this, _.pick(card, Object.keys(this)));
186
+ constructor(zccz: Partial<IZcczResponse> = {}) {
187
+ if (zccz) {
188
+ _.merge(this, _.pick(zccz, Object.keys(this)));
189
189
  }
190
190
  }
191
191
 
@@ -193,30 +193,30 @@ export class TZcczResponse implements IZcczResponse {
193
193
  return zcczs.map((u) => this.toFlowData(u));
194
194
  }
195
195
 
196
- static toTravel(card: TZcczResponse): TCore.ISysTravelResponse {
196
+ static toTravel(zccz: TZcczResponse): TCore.ISysTravelResponse {
197
197
  const travel = new TCore.TSysTravelResponse();
198
- travel.whoBuild = card.whoBuild;
199
- travel.flowMain = card.flowMain;
200
- travel.flowNode = card.flowNode;
201
- travel.billUUID = card.entityID;
202
- travel.billMain = card.zcczIndx;
203
- travel.billCode = card.zcczCode;
204
- travel.mastName = card.mastName;
205
- travel.createBy = card.createBy;
206
- travel.menuUUID = card.menuUUID;
198
+ travel.whoBuild = zccz.whoBuild;
199
+ travel.flowMain = zccz.flowMain;
200
+ travel.flowNode = zccz.flowNode;
201
+ travel.billUUID = zccz.entityID;
202
+ travel.billMain = zccz.zcczIndx;
203
+ travel.billCode = zccz.zcczCode;
204
+ travel.mastName = zccz.mastName;
205
+ travel.createBy = zccz.createBy;
206
+ travel.menuUUID = zccz.menuUUID;
207
207
  return travel;
208
208
  }
209
209
 
210
210
  /** 转换成记录日志需要的数据(第一层,不包含菜单) */
211
- static toTravelData(card?: TZcczResponse | TZcczResponse[]): TCore.ISysTravelResponse[] {
212
- if (_.isNil(card)) {
211
+ static toTravelData(data?: TZcczResponse | TZcczResponse[]): TCore.ISysTravelResponse[] {
212
+ if (_.isNil(data)) {
213
213
  return [];
214
214
  }
215
- if (_.isArray(card)) {
216
- return card.map((u) => {
215
+ if (_.isArray(data)) {
216
+ return data.map((u) => {
217
217
  return this.toTravel(u);
218
218
  });
219
219
  }
220
- return [this.toTravel(card)];
220
+ return [this.toTravel(data)];
221
221
  }
222
222
  }
@@ -198,9 +198,9 @@ export class TZcdbResponse implements IZcdbResponse {
198
198
  return result;
199
199
  }
200
200
 
201
- constructor(card: Partial<IZcdbResponse> = {}) {
202
- if (card) {
203
- _.merge(this, _.pick(card, Object.keys(this)));
201
+ constructor(zcdb: Partial<IZcdbResponse> = {}) {
202
+ if (zcdb) {
203
+ _.merge(this, _.pick(zcdb, Object.keys(this)));
204
204
  }
205
205
  }
206
206
 
@@ -208,30 +208,30 @@ export class TZcdbResponse implements IZcdbResponse {
208
208
  return zcdbs.map((u) => this.toFlowData(u));
209
209
  }
210
210
 
211
- static toTravel(card: TZcdbResponse): TCore.ISysTravelResponse {
211
+ static toTravel(zcdb: TZcdbResponse): TCore.ISysTravelResponse {
212
212
  const travel = new TCore.TSysTravelResponse();
213
- travel.whoBuild = card.whoBuild;
214
- travel.flowMain = card.flowMain;
215
- travel.flowNode = card.flowNode;
216
- travel.billUUID = card.entityID;
217
- travel.billMain = card.zcdbIndx;
218
- travel.billCode = card.zcdbCode;
219
- travel.mastName = card.mastName;
220
- travel.createBy = card.createBy;
221
- travel.menuUUID = card.menuUUID;
213
+ travel.whoBuild = zcdb.whoBuild;
214
+ travel.flowMain = zcdb.flowMain;
215
+ travel.flowNode = zcdb.flowNode;
216
+ travel.billUUID = zcdb.entityID;
217
+ travel.billMain = zcdb.zcdbIndx;
218
+ travel.billCode = zcdb.zcdbCode;
219
+ travel.mastName = zcdb.mastName;
220
+ travel.createBy = zcdb.createBy;
221
+ travel.menuUUID = zcdb.menuUUID;
222
222
  return travel;
223
223
  }
224
224
 
225
225
  /** 转换成记录日志需要的数据(第一层,不包含菜单) */
226
- static toTravelData(card?: TZcdbResponse | TZcdbResponse[]): TCore.ISysTravelResponse[] {
227
- if (_.isNil(card)) {
226
+ static toTravelData(data?: TZcdbResponse | TZcdbResponse[]): TCore.ISysTravelResponse[] {
227
+ if (_.isNil(data)) {
228
228
  return [];
229
229
  }
230
- if (_.isArray(card)) {
231
- return card.map((u) => {
230
+ if (_.isArray(data)) {
231
+ return data.map((u) => {
232
232
  return this.toTravel(u);
233
233
  });
234
234
  }
235
- return [this.toTravel(card)];
235
+ return [this.toTravel(data)];
236
236
  }
237
237
  }
@@ -229,6 +229,10 @@ export const CONST_SYS_TYPEU_XSJL_XSLX = "学术交流-学术类型";
229
229
  export const CONST_SYS_TYPEU_XSJL_XSJB = "学术交流-学术级别";
230
230
  export const CONST_SYS_TYPEU_CXTD_KHDC = "创新团队-考核等次";
231
231
 
232
+ export const CONST_SYS_TYPEU_JDGL_KYJXZT = "基地管理-科研绩效状态";
233
+ export const CONST_SYS_TYPEU_JDGL_SQLX = "基地管理-申请类型";
234
+ export const CONST_SYS_TYPEU_JDGL_TDSSLX = "基地管理-土地设施类型";
235
+
232
236
  /** 票据打印系统 */
233
237
  export const CONST_SYS_TYPEU_PGDY_YT = "票据列表-用途";
234
238
 
@@ -181,14 +181,14 @@ export class TGzzdMainResponse implements IGzzdMainResponse {
181
181
  readUnit: IUnitResponse[] = [];
182
182
  cellEdit: ICellEditResponse[] = [];
183
183
 
184
- constructor(card: keyof IGzzdMainResponse | object) {
185
- if (card) {
186
- _.merge(this, _.pick(card, Object.keys(this)));
184
+ constructor(gzzd: keyof IGzzdMainResponse | object) {
185
+ if (gzzd) {
186
+ _.merge(this, _.pick(gzzd, Object.keys(this)));
187
187
  }
188
188
  }
189
189
 
190
- static toFlowDatas(card: IGzzdMainResponse[]): TFlowDataResponse[] {
191
- return card.map((u) => this.toFlowData(u));
190
+ static toFlowDatas(gzzds: IGzzdMainResponse[]): TFlowDataResponse[] {
191
+ return gzzds.map((u) => this.toFlowData(u));
192
192
  }
193
193
 
194
194
  //#进入流程
@@ -167,8 +167,8 @@ export class THzcbXmtzResponse implements IHzcbXmtzResponse {
167
167
  listBill: IHzcbXmtzBillResponse[] = [];
168
168
  listPath: IPathResponse[] = [];
169
169
 
170
- static toFlowDatas(card: THzcbXmtzResponse[]): TFlowDataResponse[] {
171
- return card.map((u) => this.toFlowData(u));
170
+ static toFlowDatas(xmtzs: THzcbXmtzResponse[]): TFlowDataResponse[] {
171
+ return xmtzs.map((u) => this.toFlowData(u));
172
172
  }
173
173
 
174
174
  static toFlowData(xmtz: THzcbXmtzResponse): TFlowDataResponse {
package/src/hznj/index.ts CHANGED
@@ -2,4 +2,24 @@ import { IHznjBaseResponse, THznjBaseResponse } from "./IHznjBaseResponse";
2
2
  import { IHznjBasePathResponse, THznjBasePathResponse } from "./IHznjBasePathResponse";
3
3
  import { IHznjBaseItemResponse, THznjBaseItemResponse } from "./IHznjBaseItemResponse";
4
4
 
5
- export { THznjBaseResponse, THznjBasePathResponse, THznjBaseItemResponse, type IHznjBaseResponse, type IHznjBasePathResponse, type IHznjBaseItemResponse };
5
+ import { IHznjXmsyResponse, THznjXmsyResponse } from "./IHznjXmsyResponse";
6
+ import { IHznjXmsyItemResponse, THznjXmsyItemResponse } from "./IHznjXmsyItemResponse";
7
+ import { IHznjXmsyCjdwResponse, THznjXmsyCjdwResponse } from "./IHznjXmsyCjdwResponse";
8
+ import { IHznjXmsyWtdwResponse, THznjXmsyWtdwResponse } from "./IHznjXmsyWtdwResponse";
9
+
10
+ export {
11
+ THznjBaseResponse,
12
+ THznjBasePathResponse,
13
+ THznjBaseItemResponse,
14
+ THznjXmsyResponse,
15
+ THznjXmsyItemResponse,
16
+ THznjXmsyCjdwResponse,
17
+ THznjXmsyWtdwResponse,
18
+ type IHznjBaseResponse,
19
+ type IHznjBasePathResponse,
20
+ type IHznjBaseItemResponse,
21
+ type IHznjXmsyResponse,
22
+ type IHznjXmsyItemResponse,
23
+ type IHznjXmsyCjdwResponse,
24
+ type IHznjXmsyWtdwResponse,
25
+ };
@@ -1,19 +1,19 @@
1
+ import _ from "lodash";
1
2
  import * as Const from "../const";
2
3
  import { IDeptResponse } from "../core/IDeptResponse";
3
4
  import { IPathResponse } from "../core/IPathResponse";
4
5
  import { IUserLiteResponse } from "../core/IUserLiteResponse";
5
6
  import { IUserResponse } from "../core/IUserResponse";
7
+ import { IExpdMainResponse } from "../expd/IExpdMainResponse";
6
8
  import { TFlowDataResponse } from "../flow/IFlowDataResponse";
7
9
  import { IGamsBillResponse } from "../gams/IGamsBillResponse";
8
10
  import { IYzcbMainResponse } from "../yzcb/IYzcbMainResponse";
9
11
  import { IYzcqMainResponse } from "../yzcq/IYzcqMainResponse";
12
+ import { IYzhtMainResponse } from "../yzht/IYzhtMainResponse";
13
+ import { IZbhdMainResponse } from "../zbhd";
10
14
  import { IYzcgBillResponse, TYzcgBillResponse } from "./IYzcgBillResponse";
11
15
  import { IYzcgGshdResponse } from "./IYzcgGshdResponse";
12
16
  import { IYzcgLockResponse } from "./IYzcgLockResponse";
13
- import { IExpdMainResponse } from "../expd/IExpdMainResponse";
14
- import { IYzhtMainResponse } from "../yzht/IYzhtMainResponse";
15
- import _ from "lodash";
16
- import { IZbhdMainResponse } from "../zbhd";
17
17
 
18
18
  export interface IYzcgMainResponse {
19
19
  typeName: string;
@@ -272,14 +272,15 @@ export class TYzcgMainResponse implements IYzcgMainResponse {
272
272
  lockExpd: IExpdMainResponse[] = [];
273
273
  listYzht: IYzhtMainResponse[] = [];
274
274
 
275
- constructor(card: any = {}) {
276
- if (card) {
277
- _.merge(this, _.pick(card, Object.keys(this)));
275
+
276
+ constructor(yzcg: Partial<IYzcgMainResponse> = {}) {
277
+ if (yzcg) {
278
+ _.merge(this, _.pick(yzcg, Object.keys(this)));
278
279
  }
279
280
  }
280
281
 
281
- static toFlowDatas(card: TYzcgMainResponse[]): TFlowDataResponse[] {
282
- return card.map((u) => this.toFlowData(u));
282
+ static toFlowDatas(yzcgs: TYzcgMainResponse[]): TFlowDataResponse[] {
283
+ return yzcgs.map((u) => this.toFlowData(u));
283
284
  }
284
285
 
285
286
  static toFlowData(yzcg: TYzcgMainResponse): TFlowDataResponse {
@@ -1,5 +1,6 @@
1
1
  import { ICardFwczResponse, ICardHyhbResponse, ICardRoomResponse } from "../card";
2
2
  import { IPathResponse, IUserResponse } from "../core";
3
+ import { TFlowDataResponse } from "../flow";
3
4
  import { IHzcbMainResponse } from "../hzcb";
4
5
  import { IYzhtBillResponse } from "./IYzhtBillResponse";
5
6
  import { IYzhtDzmxResponse } from "./IYzhtDzmxResponse";
@@ -674,4 +675,31 @@ export class TYzhtMainResponse implements IYzhtMainResponse {
674
675
  listFwcz: ICardFwczResponse[] = [];
675
676
  listRoom: ICardRoomResponse[] = [];
676
677
  listPath: IPathResponse[] = [];
678
+ static toFlowDatas(notis: IYzhtMainResponse[]): TFlowDataResponse[] {
679
+ return notis.map((u) => this.toFlowData(u));
680
+ }
681
+
682
+ static toFlowData(bill: IYzhtMainResponse): TFlowDataResponse {
683
+ const result = new TFlowDataResponse();
684
+ result.whoBuild = bill.whoBuild;
685
+ result.userIndx = bill.userIndx;
686
+ result.flowMain = bill.flowMain;
687
+ result.flowNode = bill.flowNode;
688
+ result.notified = "";
689
+ result.entityID = bill.entityID;
690
+ result.billMain = bill.billIndx;
691
+ result.billCode = bill.yzhtCode;
692
+ result.billMemo = bill.yzhtMemo;
693
+ result.billUses = "";
694
+ result.ysxmText = "";
695
+ result.outMoney = bill.outMoney;
696
+ result.createAt = bill.createAt;
697
+ result.mastName = bill.mastName;
698
+ result.createBy = bill.createBy;
699
+ result.unitMain = bill.unitMain;
700
+ result.menuUUID = bill.menuUUID;
701
+ result.deptMain = bill.deptMain;
702
+ result.flowStat = bill.yzhtStat;
703
+ return result;
704
+ }
677
705
  }