@ningboyz/types 1.2.110 → 1.2.112

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.110",
4
+ "version": "1.2.112",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,4 +1,6 @@
1
+ import { Const } from "../..";
1
2
  import { IPathResponse } from "../core";
3
+ import { TFlowDataResponse } from "../flow";
2
4
  import { ICardRoomResponse } from "./ICardRoomResponse";
3
5
 
4
6
  export interface ICardFwczResponse {
@@ -165,4 +167,31 @@ export class TCardFwczResponse implements ICardFwczResponse {
165
167
 
166
168
  listRoom: ICardRoomResponse[] = [];
167
169
  listPath: IPathResponse[] = [];
170
+
171
+
172
+ static toFlowDatas(card: TCardFwczResponse[]): TFlowDataResponse[] {
173
+ return card.map((u) => this.toFlowData(u));
174
+ }
175
+
176
+ static toFlowData(xmtz: TCardFwczResponse): TFlowDataResponse {
177
+ let result = new TFlowDataResponse();
178
+ result.whoBuild = xmtz.whoBuild;
179
+ result.userIndx = xmtz.userIndx;
180
+ result.flowMain = xmtz.flowMain;
181
+ result.flowNode = xmtz.flowNode;
182
+ result.flowStat = xmtz.fwczStat;
183
+ // result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HZCB_XMTZ_WAIT;
184
+ result.entityID = xmtz.entityID;
185
+ result.billMain = xmtz.fwczIndx;
186
+ result.billCode = xmtz.fwczCode;
187
+ result.billMemo = xmtz.fwczMemo;
188
+ result.outMoney = 0;
189
+ result.createAt = xmtz.createAt;
190
+ result.mastName = xmtz.mastName;
191
+ result.createBy = xmtz.createBy;
192
+ result.unitMain = xmtz.unitMain;
193
+ result.deptMain = xmtz.deptMain;
194
+ result.menuUUID = xmtz.menuUUID;
195
+ return result;
196
+ }
168
197
  }