@ningboyz/types 1.5.29 → 1.5.31

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.29",
4
+ "version": "1.5.31",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -5,6 +5,7 @@ import { TFlowDataResponse } from "../flow";
5
5
  import { ICardBookResponse } from "./ICardBookResponse";
6
6
  import { ICardFromResponse } from "./ICardFromResponse";
7
7
  import { ICardRoomResponse } from "./ICardRoomResponse";
8
+ import { IDataResponse } from "./ICardDataResponse";
8
9
 
9
10
  export interface ICardMainResponse {
10
11
  whoBuild: number;
@@ -441,7 +442,7 @@ export interface ICardMainResponse {
441
442
 
442
443
  listPropDict: IDictResponse[];
443
444
  listPropDept: IDeptResponse[];
444
-
445
+ listData: IDataResponse[];
445
446
  listType: IDictResponse[];
446
447
 
447
448
  // 虚拟字段
@@ -710,6 +711,7 @@ export class TCardMainResponse implements Type {
710
711
  listPropDict: IDictResponse[] = [];
711
712
  listPropDept: IDeptResponse[] = [];
712
713
  listType: IDictResponse[] = [];
714
+ listData: IDataResponse[] = [];
713
715
 
714
716
  // 虚拟字段
715
717
  cardZjff: string = "";
@@ -1,3 +1,5 @@
1
+ import _ from "lodash";
2
+
1
3
  export interface IYzhtFymxResponse {
2
4
  whoBuild: number;
3
5
  userIndx: number;
@@ -96,4 +98,10 @@ export class TYzhtFymxResponse implements IYzhtFymxResponse {
96
98
  stField2: number = 0;
97
99
  /** 备注 */
98
100
  billMemo: string = "";
101
+
102
+ constructor(card: any = {}) {
103
+ if (card) {
104
+ _.merge(this, _.pick(card, Object.keys(this)));
105
+ }
106
+ }
99
107
  }