@ningboyz/types 1.0.167 → 1.0.169

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.167",
3
+ "version": "1.0.169",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -1,8 +1,11 @@
1
1
  //#固定资产事项登记
2
2
 
3
+ import _ from "lodash";
3
4
  import { IPathResponse } from "../core/IPathResponse";
4
5
  import { TFlowDataResponse } from "../flow/IFlowDataResponse";
5
6
  import * as Const from "../const";
7
+ import {TCore} from "../../index.ts";
8
+ import {ICardMainResponse} from "./ICardMainResponse.ts";
6
9
  /**
7
10
  车辆保险:dataType=1加001,使用单位(unitDict),投保单位(dddwText),生效日期(handleAt),到期日期(autoBxrq)
8
11
  车辆加油:dataType=1002,加油日期(handleAt),油油号(字典)(autoJyyh),加油容量(nowCount)
@@ -197,4 +200,37 @@ export class TDataResponse implements IDataResponse {
197
200
  result.menuUUID = card.menuUUID;
198
201
  return result;
199
202
  }
203
+
204
+ static toTravel(card: ICardMainResponse): TCore.ISysTravelResponse {
205
+ const travel = new TCore.TSysTravelResponse();
206
+ travel.whoBuild = card.whoBuild;
207
+ travel.flowMain = card.flowMain;
208
+ travel.flowNode = card.flowNode;
209
+ travel.billUUID = card.entityID;
210
+ travel.billMain = card.cardIndx;
211
+ travel.billCode = card.cardCode;
212
+ travel.mastName = card.mastName;
213
+ travel.createBy = card.createBy;
214
+ travel.menuUUID = card.menuUUID;
215
+ return travel;
216
+ }
217
+
218
+ /** 转换成记录日志需要的数据(第一层,不包含菜单) */
219
+ static toTravelData(card?: ICardMainResponse | ICardMainResponse[]): TCore.ISysTravelResponse[] {
220
+ if (_.isNil(card)) {
221
+ return [];
222
+ }
223
+ if (_.isArray(card)) {
224
+ return card.map((u) => {
225
+ return this.toTravel(u);
226
+ });
227
+ }
228
+ return [this.toTravel(card)];
229
+ }
230
+
231
+ constructor(card: Partial<IDataResponse> = {}) {
232
+ if (card) {
233
+ _.merge(this, _.pick(card, Object.keys(this)));
234
+ }
235
+ }
200
236
  }
@@ -95,3 +95,8 @@ export const CONST_MODULE_WARE_HOUSE_LYSH = "CONST_MODULE_WARE_HOUSE_LYSH";
95
95
  * 公务仓管理-领用确认
96
96
  */
97
97
  export const CONST_MODULE_WARE_HOUSE_LYQR = "CONST_MODULE_WARE_HOUSE_LYQR";
98
+
99
+ /**
100
+ * 资产维修-维修登记
101
+ */
102
+ export const CONST_MODULE_DATA_DJSQ = "CONST_MODULE_DATA_DJSQ";
@@ -8,7 +8,7 @@ import { IGamsBillResponse } from "../gams/IGamsBillResponse";
8
8
  import { IExpdCallResponse } from "./IExpdCallResponse";
9
9
  import { IUserLiteResponse } from "../core/IUserLiteResponse";
10
10
  import { IExpdCardResponse } from "./IExpdCardResponse";
11
- import { IZbhdMainResponese } from "../zbhd";
11
+ import { IZbhdMainResponse } from "../zbhd";
12
12
  import { IGamsMainResponse } from "../gams";
13
13
  import { ICggzMainResponse } from "../cggz/ICggzMainResponse";
14
14
  import { IYzcgMainResponse } from "../yzcg";
@@ -231,7 +231,7 @@ export interface IExpdMainResponse {
231
231
  listWLDY: IPathResponse[];
232
232
  listYSBM: IDeptResponse[];
233
233
  listYSDW: IUnitResponse[];
234
- listZBHD: IZbhdMainResponese[];
234
+ listZBHD: IZbhdMainResponse[];
235
235
  listZFLX: any; //支付类型
236
236
  listZNKS: any;
237
237
  listGAMS: IGamsMainResponse[];
@@ -490,7 +490,7 @@ export class TExpdMainResponse implements IExpdMainResponse {
490
490
  listWLDY: IPathResponse[] = [];
491
491
  listYSBM: IDeptResponse[] = [];
492
492
  listYSDW: IUnitResponse[] = [];
493
- listZBHD: IZbhdMainResponese[] = [];
493
+ listZBHD: IZbhdMainResponse[] = [];
494
494
  listZFLX: any[] = [];
495
495
  listZNKS: any = [];
496
496
  listGAMS: IGamsMainResponse[] = [];
@@ -1,7 +1,7 @@
1
- import { IUserLiteResponse } from "../core/IUserLiteResponse";
2
- import { IDictResponse } from "./../core/IDictResponse";
1
+ import { IUserLiteResponse } from "../core";
2
+ import { IZbhdMainResponse } from "../zbhd";
3
+ import { IDictResponse } from "../core";
3
4
  import { IGamsEachResponse } from "./IGamsEachResponse";
4
- import { IZbhdMainResponese } from "./IZbhdMainResponese";
5
5
 
6
6
  export interface IGamsBillResponse {
7
7
  whoBuild: number;
@@ -127,7 +127,7 @@ export interface IGamsBillResponse {
127
127
  listEach: IGamsEachResponse[]; //#标准要素
128
128
  listType: IGamsEachResponse[];
129
129
  listCLYH: IUserLiteResponse[];
130
- listZBHD: IZbhdMainResponese[];
130
+ listZBHD: IZbhdMainResponse[];
131
131
 
132
132
  bField01: number;
133
133
  bField02: number;
@@ -298,7 +298,7 @@ export class TGamsBillResponse implements IGamsBillResponse {
298
298
  listEach: IGamsEachResponse[] = [];
299
299
  listType: IGamsEachResponse[] = [];
300
300
  listCLYH: IUserLiteResponse[] = [];
301
- listZBHD: IZbhdMainResponese[] = [];
301
+ listZBHD: IZbhdMainResponse[] = [];
302
302
 
303
303
  bField01: number = 0; //是否单位自理 出差
304
304
  bField02: number = 0; //是否定额补贴 出差
@@ -5,7 +5,6 @@ import { IUserLiteResponse } from "../core/IUserLiteResponse";
5
5
  import { IUserResponse } from "../core/IUserResponse";
6
6
  import { TFlowDataResponse } from "../flow/IFlowDataResponse";
7
7
  import { IGamsBillResponse } from "../gams/IGamsBillResponse";
8
- import { IZbhdMainResponese } from "../gams/IZbhdMainResponese";
9
8
  import { IYzcbMainResponse } from "../yzcb/IYzcbMainResponse";
10
9
  import { IYzcqMainResponse } from "../yzcq/IYzcqMainResponse";
11
10
  import { IYzcgBillResponse, TYzcgBillResponse } from "./IYzcgBillResponse";
@@ -14,6 +13,7 @@ import { IYzcgLockResponse } from "./IYzcgLockResponse";
14
13
  import { IExpdMainResponse } from "../expd/IExpdMainResponse";
15
14
  import { IYzhtMainResponse } from "../yzht/IYzhtMainResponse";
16
15
  import _ from "lodash";
16
+ import { IZbhdMainResponse } from "../zbhd";
17
17
 
18
18
  export interface IYzcgMainResponse {
19
19
  typeName: string;
@@ -132,7 +132,7 @@ export interface IYzcgMainResponse {
132
132
  listSQBM: IDeptResponse[];
133
133
  listSQYH: IUserResponse[] | IUserLiteResponse[];
134
134
  yzcgBill: TYzcgBillResponse[];
135
- listZBHD: IZbhdMainResponese[];
135
+ listZBHD: IZbhdMainResponse[];
136
136
  listYzcb: IYzcbMainResponse[];
137
137
  listGams: IGamsBillResponse[];
138
138
  listGshd: IYzcgGshdResponse[];
@@ -260,7 +260,7 @@ export class TYzcgMainResponse implements IYzcgMainResponse {
260
260
  listSQBM: IDeptResponse[] = [];
261
261
  listSQYH: IUserResponse[] | IUserLiteResponse[] = [];
262
262
  yzcgBill: IYzcgBillResponse[] = [];
263
- listZBHD: IZbhdMainResponese[] = [];
263
+ listZBHD: IZbhdMainResponse[] = [];
264
264
  listYzcb: IYzcbMainResponse[] = [];
265
265
  listGams: IGamsBillResponse[] = [];
266
266
  listGshd: IYzcgGshdResponse[] = [];