@ningboyz/types 1.2.187 → 1.2.188
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
|
@@ -53,6 +53,8 @@ export interface IHzcbNdjhResponse {
|
|
|
53
53
|
ndjhName: string;
|
|
54
54
|
/**申请用途 */
|
|
55
55
|
ndjhUses: string;
|
|
56
|
+
/**基地ID */
|
|
57
|
+
hzcbMain: number;
|
|
56
58
|
/**基地名称 */
|
|
57
59
|
hzcbName: string;
|
|
58
60
|
/**备注说明 */
|
|
@@ -123,6 +125,7 @@ export class THzcbNdjhResponse implements IHzcbNdjhResponse {
|
|
|
123
125
|
ndjhCode: string = "";
|
|
124
126
|
ndjhName: string = "";
|
|
125
127
|
ndjhUses: string = "";
|
|
128
|
+
hzcbMain: number = 0;
|
|
126
129
|
hzcbName: string = "";
|
|
127
130
|
ndjhMemo: string = "";
|
|
128
131
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
|
|
1
3
|
export interface IHznjBillResponse {
|
|
2
4
|
whoBuild: number;
|
|
3
5
|
userIndx: number;
|
|
@@ -64,4 +66,10 @@ export class THznjBillResponse implements IHznjBillResponse {
|
|
|
64
66
|
fromWhoBuild: number = 0;
|
|
65
67
|
fromUserIndx: number = 0;
|
|
66
68
|
fromNotiBill: number = 0;
|
|
69
|
+
|
|
70
|
+
constructor(data: Partial<IHznjBillResponse> = {}) {
|
|
71
|
+
if (data) {
|
|
72
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
67
75
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { THznj, TCore } from "..";
|
|
2
|
+
import _ from "lodash";
|
|
3
|
+
import {TFlowDataResponse} from "../flow";
|
|
2
4
|
|
|
3
5
|
export interface IHznjMainResponse {
|
|
4
6
|
whoBuild: number;
|
|
@@ -63,6 +65,8 @@ export interface IHznjMainResponse {
|
|
|
63
65
|
lastMemo: string;
|
|
64
66
|
userName: string;
|
|
65
67
|
userGUID: string;
|
|
68
|
+
flowMain: number;
|
|
69
|
+
flowNode: number;
|
|
66
70
|
|
|
67
71
|
/**附件 */
|
|
68
72
|
listPath: TCore.IPathResponse[];
|
|
@@ -133,8 +137,42 @@ export class THznjMainResponse implements IHznjMainResponse {
|
|
|
133
137
|
lastMemo: string = "";
|
|
134
138
|
userName: string = "";
|
|
135
139
|
userGUID: string = "";
|
|
140
|
+
flowMain: number = 0;
|
|
141
|
+
flowNode: number = 0;
|
|
142
|
+
|
|
136
143
|
|
|
137
144
|
listPath: TCore.IPathResponse[] = [];
|
|
138
145
|
listBill: THznj.IHznjBillResponse[] = [];
|
|
139
146
|
listFrom: THznj.IHznjNotiResponse[] = [];
|
|
147
|
+
|
|
148
|
+
constructor(data: Partial<IHznjMainResponse> = {}) {
|
|
149
|
+
if (data) {
|
|
150
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
static toFlowData(data: IHznjMainResponse): TFlowDataResponse {
|
|
155
|
+
const result = new TFlowDataResponse();
|
|
156
|
+
result.whoBuild = data.whoBuild;
|
|
157
|
+
result.userIndx = data.userIndx;
|
|
158
|
+
result.flowMain = data.flowMain;
|
|
159
|
+
result.flowNode = data.flowNode;
|
|
160
|
+
result.notified = "";
|
|
161
|
+
result.entityID = data.entityID;
|
|
162
|
+
result.billMain = data.hznjIndx;
|
|
163
|
+
result.billCode = data.hznjCode;
|
|
164
|
+
result.billMemo = data.hznjMemo;
|
|
165
|
+
result.flowStat = data.hznjStat;
|
|
166
|
+
result.createAt = data.createAt;
|
|
167
|
+
result.mastName = data.mastName;
|
|
168
|
+
result.createBy = data.createBy;
|
|
169
|
+
result.unitMain = data.unitMain;
|
|
170
|
+
result.deptMain = data.deptMain;
|
|
171
|
+
result.menuUUID = data.menuUUID;
|
|
172
|
+
return result;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
static toFlowDatas(list: IHznjMainResponse[]): TFlowDataResponse[] {
|
|
176
|
+
return list.map((data) => this.toFlowData(data));
|
|
177
|
+
}
|
|
140
178
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { THznj, TCore } from "..";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import {TFlowDataResponse} from "../flow";
|
|
3
|
+
import { TFlowDataResponse } from "../flow";
|
|
4
4
|
|
|
5
5
|
export interface IHznjZbthResponse {
|
|
6
6
|
whoBuild: number;
|
|
@@ -73,8 +73,8 @@ export interface IHznjZbthResponse {
|
|
|
73
73
|
/**附件 */
|
|
74
74
|
listPath: TCore.IPathResponse[];
|
|
75
75
|
listBill: THznj.IHznjZbthBillResponse[];
|
|
76
|
-
/**
|
|
77
|
-
listFrom: THznj.
|
|
76
|
+
/** 关联领用 */
|
|
77
|
+
listFrom: THznj.IHznjZblyResponse[];
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
export class THznjZbthResponse implements IHznjZbthResponse {
|
|
@@ -140,7 +140,7 @@ export class THznjZbthResponse implements IHznjZbthResponse {
|
|
|
140
140
|
|
|
141
141
|
listPath: TCore.IPathResponse[] = [];
|
|
142
142
|
listBill: THznj.IHznjZbthBillResponse[] = [];
|
|
143
|
-
listFrom: THznj.
|
|
143
|
+
listFrom: THznj.IHznjZblyResponse[] = [];
|
|
144
144
|
|
|
145
145
|
constructor(data: Partial<IHznjZbthResponse> = {}) {
|
|
146
146
|
if (data) {
|