@ningboyz/types 1.6.89 → 1.6.91

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.6.89",
4
+ "version": "1.6.91",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
package/src/index.ts CHANGED
@@ -51,6 +51,7 @@ import * as TZbhd from "./zbhd";
51
51
  import * as TZbzd from "./zbzd";
52
52
  import * as TZfht from "./zfht";
53
53
  import * as TZfsq from "./zfsq";
54
+ import * as TYzcq from "./yzcq";
54
55
 
55
56
  export {
56
57
  Const,
@@ -104,6 +105,7 @@ export {
104
105
  TZbzd,
105
106
  TZfht,
106
107
  TZfsq,
108
+ TYzcq,
107
109
  type IAboutConfig,
108
110
  type IBaseConfig,
109
111
  type IBaseResponse,
@@ -113,3 +115,4 @@ export {
113
115
  type IToolDownLoadData,
114
116
  type IWtuiConfig
115
117
  };
118
+
@@ -1,5 +1,7 @@
1
1
  import { IPathResponse } from "../core/IPathResponse";
2
2
  import { IUserLiteResponse } from "../core/IUserLiteResponse";
3
+ import { TFlowDataResponse } from "../flow";
4
+ import _ from "lodash";
3
5
 
4
6
  export interface IYzcqMainResponse {
5
7
  whoBuild: number;
@@ -44,8 +46,16 @@ export interface IYzcqMainResponse {
44
46
  matchVal: string;
45
47
  billMain: number;
46
48
  hashText: string;
49
+ cqbzText: string;
50
+ hzcbName: string;
51
+ outMoney: number;
52
+ jsdwText: string;
53
+ flowMain: number;
54
+ flowNode: number;
55
+ menuUUID: string;
47
56
 
48
57
  listPath: IPathResponse[];
58
+ listDDDW: IUserLiteResponse[];
49
59
  listZBDW: IUserLiteResponse[];
50
60
  }
51
61
 
@@ -94,27 +104,47 @@ export class TYzcqMainResponse implements IYzcqMainResponse {
94
104
  billMain: number = 0;
95
105
  hashText: string = "";
96
106
 
107
+ cqbzText: string = "";
108
+ hzcbName: string = "";
109
+ outMoney: number = 0;
110
+ jsdwText: string = "";
111
+ flowMain: number = 0;
112
+ flowNode: number = 0;
113
+ menuUUID: string = "";
114
+
97
115
  listPath: IPathResponse[] = [];
116
+ listDDDW: IUserLiteResponse[] = [];
98
117
  listZBDW: IUserLiteResponse[] = [];
99
118
 
100
- // static toFlowData(yzcg: TYzcqMainResponse): TFlowDataResponse {
101
- // let result = new TFlowDataResponse();
102
- // result.whoBuild = yzcg.whoBuild;
103
- // result.userIndx = yzcg.userIndx;
104
- // result.flowMain = yzcg.flowMain;
105
- // result.flowNode = yzcg.flowNode;
106
- // result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_YZCG_WAIT;
107
- // result.entityID = yzcg.entityID;
108
- // result.billMain = yzcg.yzcgIndx;
109
- // result.billCode = yzcg.yzcgCode;
110
- // result.billMemo = yzcg.yzcgMemo;
111
- // result.ysxmText = yzcg.yzcgCgxm;
112
- // result.outMoney = yzcg.outMoney;
113
- // result.createAt = yzcg.createAt;
114
- // result.mastName = yzcg.mastName;
115
- // result.createBy = yzcg.createBy;
116
- // result.unitMain = yzcg.unitMain;
117
- // result.deptMain = yzcg.deptMain;
118
- // return result;
119
- // }
119
+ constructor(ntio: any = {}) {
120
+ if (ntio) {
121
+ _.merge(this, _.pick(ntio, Object.keys(this)));
122
+ }
123
+ }
124
+
125
+ static toFlowDatas(yzcqs: TYzcqMainResponse[]): TFlowDataResponse[] {
126
+ return yzcqs.map((u) => this.toFlowData(u));
127
+ }
128
+
129
+ static toFlowData(yzcq: TYzcqMainResponse): TFlowDataResponse {
130
+ let result = new TFlowDataResponse();
131
+ result.whoBuild = yzcq.whoBuild;
132
+ result.userIndx = yzcq.userIndx;
133
+ result.flowMain = yzcq.flowMain;
134
+ result.flowNode = yzcq.flowNode;
135
+ result.flowStat = yzcq.yzcqStat;
136
+ result.notified = "";
137
+ result.entityID = yzcq.entityID;
138
+ result.billMain = yzcq.yzcqIndx;
139
+ result.billCode = yzcq.yzcqCode;
140
+ result.billMemo = yzcq.yzcqMemo;
141
+ result.outMoney = yzcq.outMoney;
142
+ result.createAt = yzcq.createAt;
143
+ result.mastName = yzcq.mastName;
144
+ result.createBy = yzcq.createBy;
145
+ result.unitMain = yzcq.unitMain;
146
+ result.deptMain = yzcq.deptMain;
147
+ result.menuUUID = yzcq.menuUUID;
148
+ return result;
149
+ }
120
150
  }