@ningboyz/types 1.2.83 → 1.2.84

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.83",
4
+ "version": "1.2.84",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,3 +1,5 @@
1
+ import _ from "lodash";
2
+
1
3
  export interface IBillCnfgResponse {
2
4
  whoBuild: number;
3
5
  userIndx: number;
@@ -38,8 +40,6 @@ export interface IBillCnfgResponse {
38
40
  cnfgUses: string;
39
41
  cnfgMemo: string;
40
42
 
41
-
42
-
43
43
  /** 票号长度 */
44
44
  codeSize: number;
45
45
  /** 票据张数 */
@@ -101,4 +101,10 @@ export class TBillCnfgResponse implements IBillCnfgResponse {
101
101
  sysPathc: number = 0;
102
102
 
103
103
  children: IBillCnfgResponse[] = [];
104
+
105
+ constructor(response: any = {}) {
106
+ if (response) {
107
+ _.merge(this, _.pick(response, Object.keys(this)));
108
+ }
109
+ }
104
110
  }
package/src/bill/index.ts CHANGED
@@ -1,9 +1,4 @@
1
- import { IBillMainResponse, TBillMainResponse} from "./IBillMainResponse";
1
+ import { IBillMainResponse, TBillMainResponse } from "./IBillMainResponse";
2
2
  import { IBillCnfgResponse, TBillCnfgResponse } from "./IBillCnfgResponse";
3
3
 
4
- export {
5
- type IBillMainResponse,
6
- type IBillCnfgResponse,
7
- TBillMainResponse,
8
- TBillCnfgResponse,
9
- };
4
+ export { type IBillMainResponse, type IBillCnfgResponse, TBillMainResponse, TBillCnfgResponse };
@@ -52,20 +52,20 @@ export class TCardHyhbBillResponse implements ICardHyhbBillResponse {
52
52
  dataDate: number = 0;
53
53
  dataTime: number = 0;
54
54
  userMain: number = 0;
55
- createBy: string = '';
55
+ createBy: string = "";
56
56
  createAt: number = 0;
57
- updateBy: string = '';
57
+ updateBy: string = "";
58
58
  updateAt: number = 0;
59
- deleteBy: string = '';
59
+ deleteBy: string = "";
60
60
  deleteAt: number = 0;
61
61
  queuesBy: number = 0;
62
62
  pgMoney1: number = 0;
63
63
  /** 评估基准日 */
64
64
  pgdwDate: number = 0;
65
65
  /** 评估单位名称 */
66
- pgdwText: string = '';
66
+ pgdwText: string = "";
67
67
  /** 评估单位统一信用代码 */
68
- pgdwUsci: string = '';
68
+ pgdwUsci: string = "";
69
69
  /** 是否分次 */
70
70
  useBatch: number = 0;
71
71
  /** 租赁模式 */
@@ -74,8 +74,8 @@ export class TCardHyhbBillResponse implements ICardHyhbBillResponse {
74
74
  shchMode: number = 0;
75
75
  /** 租赁时长 */
76
76
  duraTion: number = 0;
77
- acnoYhzh: string = '';
78
- billMemo: string = '';
77
+ acnoYhzh: string = "";
78
+ billMemo: string = "";
79
79
 
80
80
  listRoom: ICardRoomResponse[] = [];
81
81
  }
@@ -52,26 +52,26 @@ export class TCardHyhbResponse implements ICardHyhbResponse {
52
52
  dataDate: number = 0;
53
53
  dataTime: number = 0;
54
54
  userMain: number = 0;
55
- createBy: string = '';
55
+ createBy: string = "";
56
56
  createAt: number = 0;
57
- updateBy: string = '';
57
+ updateBy: string = "";
58
58
  updateAt: number = 0;
59
- deleteBy: string = '';
59
+ deleteBy: string = "";
60
60
  deleteAt: number = 0;
61
61
  queuesBy: number = 0;
62
- entityID: string = '';
62
+ entityID: string = "";
63
63
  unitMain: number = 0;
64
64
  deptMain: number = 0;
65
65
  menuMain: number = 0;
66
- menuUUID: string = '';
67
- hyhbCode: string = '';
66
+ menuUUID: string = "";
67
+ hyhbCode: string = "";
68
68
  /** 决策名称 */
69
- hyhbName: string = '';
69
+ hyhbName: string = "";
70
70
  /** 决策时间 */
71
71
  hyhbDate: number = 0;
72
72
  /** 决策人数 */
73
73
  userSize: number = 0;
74
- hyhbMemo: string = '';
74
+ hyhbMemo: string = "";
75
75
 
76
76
  unitText: string = "";
77
77
 
package/src/card/index.ts CHANGED
@@ -48,4 +48,3 @@ export {
48
48
  type IZczjPropResponse,
49
49
  type IZczjResponse
50
50
  };
51
-
@@ -179,8 +179,6 @@ export const CONST_SYS_TYPEU_房产管理_土地性质 = "房产管理-土地性
179
179
  export const CONST_SYS_TYPEU_房产管理_房屋类别 = "房产管理-房屋类别";
180
180
  export const CONST_SYS_TYPEU_房产管理_房屋来源 = "房产管理-房屋来源";
181
181
 
182
-
183
-
184
182
  export const CONST_SYS_TYPEU_公章管理_公章类型 = "公章管理-公章类型";
185
183
  export const CONST_SYS_TYPEU_公章管理_文件类型 = "公章管理-文件类型";
186
184
  export const CONST_SYS_TYPEU_资产调拨_单据类型 = "资产调拨-单据类型";
@@ -201,4 +199,3 @@ export const CONST_SYS_TYPEU_RYGL_ZZMM = "人员管理-政治面貌";
201
199
 
202
200
  /** 票据打印系统 */
203
201
  export const CONST_SYS_TYPEU_PGDY_YT = "票据列表-用途";
204
-
@@ -1,3 +1,3 @@
1
1
  export const USER_ACNO_DATA_TYPE_收款单位 = 0;
2
2
  export const USER_ACNO_DATA_TYPE_师资单位 = 1;
3
- export const USER_ACNO_DATA_TYPE_付款单位 = 2;
3
+ export const USER_ACNO_DATA_TYPE_付款单位 = 2;
@@ -57,7 +57,7 @@ export interface IUserAcnoResponse extends IBaseResponse<IUserAcnoResponse> {
57
57
  userCode: string;
58
58
  heavyVal: number;
59
59
  mobileID: string;
60
- dataType: number;// 0:收款单位 2:付款单位
60
+ dataType: number; // 0:收款单位 2:付款单位
61
61
 
62
62
  userAddr: string;
63
63
  creditOf: number;
@@ -163,7 +163,7 @@ export class TUserAcnoResponse extends TBaseResponse<IUserAcnoResponse> implemen
163
163
  wbField1: string = ""; // 区域
164
164
  wbField2: string = ""; // 开票地址
165
165
  wbField3: string = ""; // 开票电话
166
- acnoYhmc: string = ""
166
+ acnoYhmc: string = "";
167
167
 
168
168
  constructor(response?: any) {
169
169
  super();
@@ -170,7 +170,6 @@ export class THzcbXmtzResponse implements IHzcbXmtzResponse {
170
170
  static toFlowDatas(card: THzcbXmtzResponse[]): TFlowDataResponse[] {
171
171
  return card.map((u) => this.toFlowData(u));
172
172
  }
173
-
174
173
 
175
174
  static toFlowData(xmtz: THzcbXmtzResponse): TFlowDataResponse {
176
175
  let result = new TFlowDataResponse();
package/src/hzcb/index.ts CHANGED
@@ -4,8 +4,15 @@ import { IHzcbXmtzResponse, THzcbXmtzResponse } from "./IHzcbXmtzResponse";
4
4
  import { IHzcbXmykResponse, THzcbXmykResponse } from "./IHzcbXmykResponse";
5
5
  import { IHzcbZjlyResponse, THzcbZjlyResponse } from "./IHzcbZjlyResponse";
6
6
 
7
- export {
8
- THzcbMainResponse, THzcbRypqResponse,
9
- THzcbXmtzResponse, THzcbXmykResponse,
10
- THzcbZjlyResponse,
11
- type IHzcbMainResponse, type IHzcbRypqResponse, type IHzcbXmtzResponse, type IHzcbXmykResponse , type IHzcbZjlyResponse};
7
+ export {
8
+ THzcbMainResponse,
9
+ THzcbRypqResponse,
10
+ THzcbXmtzResponse,
11
+ THzcbXmykResponse,
12
+ THzcbZjlyResponse,
13
+ type IHzcbMainResponse,
14
+ type IHzcbRypqResponse,
15
+ type IHzcbXmtzResponse,
16
+ type IHzcbXmykResponse,
17
+ type IHzcbZjlyResponse
18
+ };
@@ -31,7 +31,7 @@ export interface IJapzK8kmResponse {
31
31
 
32
32
  /** 样品编码 */
33
33
  k8kmKmbm: string;
34
- /** 样品名称 */
34
+ /** 样品名称 */
35
35
  k8kmKmmc: string;
36
36
  /** 样品分类 */
37
37
  k0kmText: string;
@@ -27,7 +27,6 @@ export interface IJapzK9kmResponse {
27
27
  queuesBy: number;
28
28
  entityID: string;
29
29
 
30
-
31
30
  k9kmKmbm: string;
32
31
  /** 方法依据 */
33
32
  k9kmKmmc: string;
@@ -75,15 +75,15 @@ export interface IPzptCnfgResponse {
75
75
  fromSourceDW: string;
76
76
  fromSourceID: number;
77
77
  fromSourceND: number;
78
-
78
+
79
79
  sourceNC: string;
80
80
  sourceNF: string;
81
81
 
82
82
  // 单位类型
83
- listType:TCore.IDictResponse[]
84
- cnfgFormText:string
85
- cnfgPara:string
86
- deptText:string
83
+ listType: TCore.IDictResponse[];
84
+ cnfgFormText: string;
85
+ cnfgPara: string;
86
+ deptText: string;
87
87
  }
88
88
 
89
89
  export class TPzptCnfgResponse implements IPzptCnfgResponse {
@@ -164,8 +164,8 @@ export class TPzptCnfgResponse implements IPzptCnfgResponse {
164
164
  sourceNF: string = "";
165
165
 
166
166
  // 单位类型
167
- listType:TCore.IDictResponse[] = []
168
- cnfgFormText:string = ""
169
- cnfgPara:string = ""
170
- deptText:string = ""
167
+ listType: TCore.IDictResponse[] = [];
168
+ cnfgFormText: string = "";
169
+ cnfgPara: string = "";
170
+ deptText: string = "";
171
171
  }