@ningboyz/types 1.2.184 → 1.2.186

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.184",
4
+ "version": "1.2.186",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -145,27 +145,27 @@ export class THzcbNdjhResponse implements IHzcbNdjhResponse {
145
145
  return notis.map((u) => this.toFlowData(u));
146
146
  }
147
147
 
148
- static toFlowData(bill: THzcbNdjhResponse): TFlowDataResponse {
148
+ static toFlowData(ndjh: THzcbNdjhResponse): TFlowDataResponse {
149
149
  const result = new TFlowDataResponse();
150
- result.whoBuild = bill.whoBuild;
151
- result.userIndx = bill.userIndx;
152
- result.flowMain = bill.flowMain;
153
- result.flowNode = bill.flowNode;
150
+ result.whoBuild = ndjh.whoBuild;
151
+ result.userIndx = ndjh.userIndx;
152
+ result.flowMain = ndjh.flowMain;
153
+ result.flowNode = ndjh.flowNode;
154
154
  result.notified = "";
155
- result.entityID = bill.entityID;
156
- result.billMain = bill.ndjhIndx;
157
- result.billCode = bill.ndjhCode;
158
- result.billMemo = bill.ndjhMemo;
155
+ result.entityID = ndjh.entityID;
156
+ result.billMain = ndjh.ndjhIndx;
157
+ result.billCode = ndjh.ndjhCode;
158
+ result.billMemo = ndjh.ndjhMemo;
159
159
  result.billUses = "";
160
160
  result.ysxmText = "";
161
161
  result.outMoney = 0;
162
- result.createAt = bill.createAt;
163
- result.mastName = bill.mastName;
164
- result.createBy = bill.createBy;
165
- result.unitMain = bill.unitMain;
166
- result.menuUUID = bill.menuUUID;
167
- result.deptMain = bill.deptMain;
168
- result.flowStat = bill.ndjhStat;
162
+ result.createAt = ndjh.createAt;
163
+ result.mastName = ndjh.mastName;
164
+ result.createBy = ndjh.createBy;
165
+ result.unitMain = ndjh.unitMain;
166
+ result.menuUUID = ndjh.menuUUID;
167
+ result.deptMain = ndjh.deptMain;
168
+ result.flowStat = ndjh.ndjhStat;
169
169
  return result;
170
170
  }
171
171
  }
@@ -1,4 +1,6 @@
1
1
  import { THzcb, TCore } from "..";
2
+ import { TFlowDataResponse } from "../flow";
3
+ import _ from "lodash";
2
4
 
3
5
  export interface IHzcbXmssResponse {
4
6
  whoBuild: number;
@@ -58,6 +60,8 @@ export interface IHzcbXmssResponse {
58
60
  lastMemo: string;
59
61
  userName: string;
60
62
  userGUID: string;
63
+ flowMain: number;
64
+ flowNode: number;
61
65
 
62
66
  /**附件 */
63
67
  listPath: TCore.IPathResponse[];
@@ -124,8 +128,44 @@ export class THzcbXmssResponse implements IHzcbXmssResponse {
124
128
  lastMemo: string = "";
125
129
  userName: string = "";
126
130
  userGUID: string = "";
131
+ flowMain: number = 0;
132
+ flowNode: number = 0;
127
133
 
128
134
  listPath: TCore.IPathResponse[] = [];
129
135
  listBill: THzcb.IHzcbXmssBillResponse[] = [];
130
136
  listFrom: THzcb.IHzcbNdjhResponse[] = [];
137
+
138
+ constructor(response: any = {}) {
139
+ if (response) {
140
+ _.merge(this, _.pick(response, Object.keys(this)));
141
+ }
142
+ }
143
+
144
+ static toFlowDatas(notis: THzcbXmssResponse[]): TFlowDataResponse[] {
145
+ return notis.map((u) => this.toFlowData(u));
146
+ }
147
+
148
+ static toFlowData(xmss: THzcbXmssResponse): TFlowDataResponse {
149
+ const result = new TFlowDataResponse();
150
+ result.whoBuild = xmss.whoBuild;
151
+ result.userIndx = xmss.userIndx;
152
+ result.flowMain = xmss.flowMain;
153
+ result.flowNode = xmss.flowNode;
154
+ result.notified = "";
155
+ result.entityID = xmss.entityID;
156
+ result.billMain = xmss.xmssIndx;
157
+ result.billCode = xmss.xmssCode;
158
+ result.billMemo = xmss.xmssMemo;
159
+ result.billUses = "";
160
+ result.ysxmText = "";
161
+ result.outMoney = 0;
162
+ result.createAt = xmss.createAt;
163
+ result.mastName = xmss.mastName;
164
+ result.createBy = xmss.createBy;
165
+ result.unitMain = xmss.unitMain;
166
+ result.menuUUID = xmss.menuUUID;
167
+ result.deptMain = xmss.deptMain;
168
+ result.flowStat = xmss.xmssStat;
169
+ return result;
170
+ }
131
171
  }
@@ -0,0 +1,67 @@
1
+ export interface IHznjBillResponse {
2
+ whoBuild: number;
3
+ userIndx: number;
4
+ hznjIndx: number;
5
+ idEntity: number;
6
+ dataStat: number;
7
+ dataHide: number;
8
+ dataOrdr: number;
9
+ dataFrom: number;
10
+ dataDate: number;
11
+ dataTime: number;
12
+ createBy: string;
13
+ createAt: number;
14
+ updateBy: string;
15
+ updateAt: number;
16
+ deleteBy: string;
17
+ deleteAt: number;
18
+ queuesBy: number;
19
+ itemMain: number;
20
+ itemName: string;
21
+ k9kmKmid: number;
22
+ k9kmKmmc: string;
23
+ limitVal: number;
24
+ levelVal: number;
25
+ jldwText: string;
26
+ actualAt: number;
27
+ actualAtText: string;
28
+ assessAt: number;
29
+ assessBy: string;
30
+ fromWhoBuild: number;
31
+ fromUserIndx: number;
32
+ fromNotiBill: number;
33
+ }
34
+
35
+ export class THznjBillResponse implements IHznjBillResponse {
36
+ whoBuild: number = 0;
37
+ userIndx: number = 0;
38
+ hznjIndx: number = 0;
39
+ idEntity: number = 0;
40
+ dataStat: number = 0;
41
+ dataHide: number = 0;
42
+ dataOrdr: number = 0;
43
+ dataFrom: number = 0;
44
+ dataDate: number = 0;
45
+ dataTime: number = 0;
46
+ createBy: string = "";
47
+ createAt: number = 0;
48
+ updateBy: string = "";
49
+ updateAt: number = 0;
50
+ deleteBy: string = "";
51
+ deleteAt: number = 0;
52
+ queuesBy: number = 0;
53
+ itemMain: number = 0;
54
+ itemName: string = "";
55
+ k9kmKmid: number = 0;
56
+ k9kmKmmc: string = "";
57
+ limitVal: number = 0;
58
+ levelVal: number = 0;
59
+ jldwText: string = "";
60
+ actualAt: number = 0;
61
+ actualAtText: string = "";
62
+ assessAt: number = 0;
63
+ assessBy: string = "";
64
+ fromWhoBuild: number = 0;
65
+ fromUserIndx: number = 0;
66
+ fromNotiBill: number = 0;
67
+ }
@@ -0,0 +1,140 @@
1
+ import { THznj, TCore } from "..";
2
+
3
+ export interface IHznjMainResponse {
4
+ whoBuild: number;
5
+ userIndx: number;
6
+ hznjIndx: number;
7
+ sourceID: number;
8
+ parentID: number;
9
+ hashCode: number;
10
+ dataLevl: number;
11
+ dataFrom: number;
12
+ kjndKJQJ: number;
13
+ dataStat: number;
14
+ dataOrdr: number;
15
+ dataDate: number;
16
+ dataType: number;
17
+ dataTime: number;
18
+ dataHide: number;
19
+ dataGUID: string;
20
+ userMain: number;
21
+ mastName: string;
22
+ mastGUID: string;
23
+ createBy: string;
24
+ createAt: number;
25
+ updateBy: string;
26
+ updateAt: number;
27
+ deleteBy: string;
28
+ deleteAt: number;
29
+ queuesBy: number;
30
+ entityID: string;
31
+ sourceND: number;
32
+ menuMain: number;
33
+ menuUUID: string;
34
+ unitMain: number;
35
+ deptMain: number;
36
+ sqyhText: string;
37
+ sqbmText: string;
38
+ flowUndo: number;
39
+ flowUser: string;
40
+ flowText: string;
41
+ hznjDate: number;
42
+ hznjStat: number;
43
+ hznjType: number;
44
+ hznjCode: string;
45
+ hznjName: string;
46
+ hznjUses: string;
47
+ hznjMemo: string;
48
+ hznjText: string;
49
+ envrText: string;
50
+ deviceBy: string;
51
+ k9kmKmmc: string;
52
+ itemText: string;
53
+
54
+ coverURL: string;
55
+ touchURL: string;
56
+ unitText: string;
57
+ sourceDW: string;
58
+
59
+ lastDate: number;
60
+ lastTime: number;
61
+ flowStat: number;
62
+ didFirst: number;
63
+ lastMemo: string;
64
+ userName: string;
65
+ userGUID: string;
66
+
67
+ /**附件 */
68
+ listPath: TCore.IPathResponse[];
69
+ listBill: THznj.IHznjBillResponse[];
70
+ listFrom: THznj.IHznjNotiResponse[];
71
+ }
72
+
73
+ export class THznjMainResponse implements IHznjMainResponse {
74
+ whoBuild: number = 0;
75
+ userIndx: number = 0;
76
+ hznjIndx: number = 0;
77
+ sourceID: number = 0;
78
+ parentID: number = 0;
79
+ hashCode: number = 0;
80
+ dataLevl: number = 0;
81
+ dataFrom: number = 0;
82
+ kjndKJQJ: number = 0;
83
+ dataStat: number = 0;
84
+ dataOrdr: number = 0;
85
+ dataDate: number = 0;
86
+ dataType: number = 0;
87
+ dataTime: number = 0;
88
+ dataHide: number = 0;
89
+ dataGUID: string = "";
90
+ userMain: number = 0;
91
+ mastName: string = "";
92
+ mastGUID: string = "";
93
+ createBy: string = "";
94
+ createAt: number = 0;
95
+ updateBy: string = "";
96
+ updateAt: number = 0;
97
+ deleteBy: string = "";
98
+ deleteAt: number = 0;
99
+ queuesBy: number = 0;
100
+ entityID: string = "";
101
+ sourceND: number = 0;
102
+ menuMain: number = 0;
103
+ menuUUID: string = "";
104
+ unitMain: number = 0;
105
+ deptMain: number = 0;
106
+ sqyhText: string = "";
107
+ sqbmText: string = "";
108
+ flowUndo: number = 0;
109
+ flowUser: string = "";
110
+ flowText: string = "";
111
+ hznjDate: number = 0;
112
+ hznjStat: number = 0;
113
+ hznjType: number = 0;
114
+ hznjCode: string = "";
115
+ hznjName: string = "";
116
+ hznjUses: string = "";
117
+ hznjMemo: string = "";
118
+ hznjText: string = "";
119
+ envrText: string = "";
120
+ deviceBy: string = "";
121
+ k9kmKmmc: string = "";
122
+ itemText: string = "";
123
+
124
+ coverURL: string = "";
125
+ touchURL: string = "";
126
+ unitText: string = "";
127
+ sourceDW: string = "";
128
+
129
+ lastDate: number = 0;
130
+ lastTime: number = 0;
131
+ flowStat: number = 0;
132
+ didFirst: number = 0;
133
+ lastMemo: string = "";
134
+ userName: string = "";
135
+ userGUID: string = "";
136
+
137
+ listPath: TCore.IPathResponse[] = [];
138
+ listBill: THznj.IHznjBillResponse[] = [];
139
+ listFrom: THznj.IHznjNotiResponse[] = [];
140
+ }
package/src/hznj/index.ts CHANGED
@@ -32,6 +32,9 @@ import { THznjZbthBillResponse, IHznjZbthBillResponse } from "./IHznjZbthBillRes
32
32
  //#zbcz
33
33
  import { THznjZbczResponse, IHznjZbczResponse } from "./IHznjZbczResponse";
34
34
  import { THznjZbczBillResponse, IHznjZbczBillResponse } from "./IHznjZbczBillResponse";
35
+ //#main
36
+ import { THznjMainResponse, IHznjMainResponse } from "./IHznjMainResponse";
37
+ import { THznjBillResponse, IHznjBillResponse } from "./IHznjBillResponse";
35
38
 
36
39
  export {
37
40
  THznjBaseResponse,
@@ -57,6 +60,8 @@ export {
57
60
  THznjZbthBillResponse,
58
61
  THznjZbczResponse,
59
62
  THznjZbczBillResponse,
63
+ THznjMainResponse,
64
+ THznjBillResponse,
60
65
  type IHznjBaseResponse,
61
66
  type IHznjBasePathResponse,
62
67
  type IHznjBaseItemResponse,
@@ -79,5 +84,7 @@ export {
79
84
  type IHznjZbthResponse,
80
85
  type IHznjZbthBillResponse,
81
86
  type IHznjZbczResponse,
82
- type IHznjZbczBillResponse
87
+ type IHznjZbczBillResponse,
88
+ type IHznjMainResponse,
89
+ type IHznjBillResponse
83
90
  };