@ningboyz/types 1.2.132 → 1.2.134
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
|
@@ -4,6 +4,7 @@ import { IHznkDataItemResponse } from "./IHznkDataItemResponse";
|
|
|
4
4
|
import _ from "lodash";
|
|
5
5
|
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
6
6
|
import { IUserLiteResponse } from "../core";
|
|
7
|
+
import { IHznkMainResponse } from "./IHznkMainResponse";
|
|
7
8
|
|
|
8
9
|
export interface IHznkDataResponse {
|
|
9
10
|
whoBuild: number;
|
|
@@ -147,6 +148,8 @@ export interface IHznkDataResponse {
|
|
|
147
148
|
listItem: IHznkDataItemResponse[];
|
|
148
149
|
listNBYH: IUserLiteResponse[];
|
|
149
150
|
listLock: IHznkDataResponse[];
|
|
151
|
+
/** 关联项目 */
|
|
152
|
+
listFrom: IHznkMainResponse[]
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
export class THznkDataResponse implements IHznkDataResponse {
|
|
@@ -251,6 +254,8 @@ export class THznkDataResponse implements IHznkDataResponse {
|
|
|
251
254
|
listItem: IHznkDataItemResponse[] = [];
|
|
252
255
|
listNBYH: IUserLiteResponse[] = [];
|
|
253
256
|
listLock: IHznkDataResponse[] = [];
|
|
257
|
+
/** 关联项目 */
|
|
258
|
+
listFrom: IHznkMainResponse[] = []
|
|
254
259
|
|
|
255
260
|
constructor(response?: any) {
|
|
256
261
|
if (response) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IPathResponse } from "../core/IPathResponse";
|
|
2
|
+
import { TFlowDataResponse } from "../flow";
|
|
2
3
|
import { IHznkFydwBillResponse } from "./IHznkFydwBillResponse";
|
|
3
4
|
import { IHznkFydwFromResponse } from "./IHznkFydwFromResponse";
|
|
4
5
|
import { IHznkFydwItemResponse } from "./IHznkFydwItemResponse";
|
|
@@ -138,4 +139,34 @@ export class THznkFydwResponse implements IHznkFydwResponse {
|
|
|
138
139
|
listITEM: IHznkFydwItemResponse[] = [];
|
|
139
140
|
listBILL: IHznkFydwBillResponse[] = [];
|
|
140
141
|
listFROM: IHznkFydwFromResponse[] = [];
|
|
142
|
+
|
|
143
|
+
static toFlowDatas(card: IHznkFydwResponse[]): TFlowDataResponse[] {
|
|
144
|
+
return card.map((u) => this.toFlowData(u));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
//#进入流程
|
|
148
|
+
static toFlowData(myoa: IHznkFydwResponse): TFlowDataResponse {
|
|
149
|
+
const result = new TFlowDataResponse();
|
|
150
|
+
result.whoBuild = myoa.whoBuild;
|
|
151
|
+
result.userIndx = myoa.userIndx;
|
|
152
|
+
result.flowMain = myoa.flowMain;
|
|
153
|
+
result.flowNode = myoa.flowNode;
|
|
154
|
+
// result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HTQD_WAIT;
|
|
155
|
+
result.entityID = myoa.entityID;
|
|
156
|
+
result.billMain = myoa.fydwIndx;
|
|
157
|
+
result.billCode = myoa.baseCode;
|
|
158
|
+
result.billMemo = myoa.baseMemo;
|
|
159
|
+
result.billUses = "";
|
|
160
|
+
result.ysxmText = "";
|
|
161
|
+
result.outMoney = 0;
|
|
162
|
+
result.createAt = myoa.createAt;
|
|
163
|
+
result.mastName = myoa.mastName;
|
|
164
|
+
result.createBy = myoa.createBy;
|
|
165
|
+
result.unitMain = myoa.unitMain;
|
|
166
|
+
result.menuUUID = myoa.menuUUID;
|
|
167
|
+
result.deptMain = myoa.deptMain;
|
|
168
|
+
result.flowStat = myoa.fydwStat;
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
|
|
141
172
|
}
|
|
@@ -19,6 +19,7 @@ export interface IHznkMainRwzbResponse {
|
|
|
19
19
|
deleteAt: number;
|
|
20
20
|
queuesBy: number;
|
|
21
21
|
billFrom: number;
|
|
22
|
+
rwzbMain: number;
|
|
22
23
|
rwzbText: string;
|
|
23
24
|
limitVal: number;
|
|
24
25
|
rwzbMemo: string;
|
|
@@ -43,6 +44,7 @@ export class THznkMainRwzbResponse implements IHznkMainRwzbResponse {
|
|
|
43
44
|
deleteAt: number = 0;
|
|
44
45
|
queuesBy: number = 0;
|
|
45
46
|
billFrom: number = 0;
|
|
47
|
+
rwzbMain: number = 0;
|
|
46
48
|
rwzbText: string = "";
|
|
47
49
|
limitVal: number = 0;
|
|
48
50
|
rwzbMemo: string = "";
|