@ningboyz/types 1.2.151 → 1.2.152

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.151",
4
+ "version": "1.2.152",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,4 +1,5 @@
1
1
  import { IPathResponse } from "../core/IPathResponse";
2
+ import { TFlowDataResponse } from "../flow";
2
3
  import { IHznkMainResponse } from "./IHznkMainResponse";
3
4
 
4
5
  export interface IHznkNoteResponse {
@@ -31,6 +32,9 @@ export interface IHznkNoteResponse {
31
32
  sourceND: number;
32
33
  menuMain: number;
33
34
  menuUUID: string;
35
+ flowMain: number;
36
+ flowNode: number;
37
+ flowStat: number;
34
38
  unitMain: number;
35
39
  deptMain: number;
36
40
  sqyhMain: number;
@@ -103,7 +107,37 @@ export class THznkNoteResponse implements IHznkNoteResponse {
103
107
  baseUses: string = "";
104
108
  /**备注信息 */
105
109
  baseMemo: string = "";
110
+ flowMain: number = 0;
111
+ flowNode: number = 0;
112
+ flowStat: number = 0;
106
113
 
107
114
  listPath: IPathResponse[] = [];
108
115
  listFrom: IHznkMainResponse[] = [];
116
+
117
+
118
+ static toFlowDatas(card: IHznkNoteResponse[]): TFlowDataResponse[] {
119
+ return card.map((u) => this.toFlowData(u));
120
+ }
121
+
122
+ static toFlowData(xmtz: IHznkNoteResponse): TFlowDataResponse {
123
+ let result = new TFlowDataResponse();
124
+ result.whoBuild = xmtz.whoBuild;
125
+ result.userIndx = xmtz.userIndx;
126
+ result.flowMain = xmtz.flowMain;
127
+ result.flowNode = xmtz.flowNode;
128
+ result.flowStat = xmtz.noteStat;
129
+ // result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HZCB_XMTZ_WAIT;
130
+ result.entityID = xmtz.entityID;
131
+ result.billMain = xmtz.noteIndx;
132
+ result.billCode = xmtz.baseCode;
133
+ result.billMemo = xmtz.baseMemo;
134
+ result.outMoney = 0;
135
+ result.createAt = xmtz.createAt;
136
+ result.mastName = xmtz.mastName;
137
+ result.createBy = xmtz.createBy;
138
+ result.unitMain = xmtz.unitMain;
139
+ result.deptMain = xmtz.deptMain;
140
+ result.menuUUID = xmtz.menuUUID;
141
+ return result;
142
+ }
109
143
  }