@ningboyz/types 1.2.111 → 1.2.113

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.
@@ -1,3 +1,4 @@
1
+ import { construct, destruct } from "@aximario/json-tree";
1
2
  import _ from "lodash";
2
3
 
3
4
  export interface IBillCnfgResponse {
@@ -102,9 +103,11 @@ export class TBillCnfgResponse implements IBillCnfgResponse {
102
103
 
103
104
  children: IBillCnfgResponse[] = [];
104
105
 
105
- constructor(response: any = {}) {
106
- if (response) {
107
- _.merge(this, _.pick(response, Object.keys(this)));
108
- }
106
+ static toTree(listCnfg: IBillCnfgResponse[]) {
107
+ return construct(_.cloneDeep(listCnfg), { id: "cnfgIndx", pid: "parentID", children: "children" }) as IBillCnfgResponse[];
108
+ }
109
+
110
+ static toList(treeCnfg: IBillCnfgResponse[]) {
111
+ return destruct(_.cloneDeep(treeCnfg), { id: "cnfgIndx", pid: "parentID", children: "children" }) as IBillCnfgResponse[];
109
112
  }
110
113
  }
@@ -98,10 +98,23 @@ export interface IBillMainResponse {
98
98
  /** 会计主管 */
99
99
  finaMast: string;
100
100
 
101
+ /** 收支方向:0:收入;1:支出 */
102
+ isExpend: number;
103
+ /** 支付方式(字典) */
104
+ billZffs: number;
105
+ /** 支付方式(文本) */
106
+ billZffsText: string;
107
+ /** 付款方式(字典) */
108
+ billFkfs: number;
109
+ /** 付款方式(文本) */
110
+ billFkfsText: string;
111
+
101
112
  /** 票据类型.名称 */
102
113
  typeText: string;
103
114
  /** 银行类型.名称 */
104
115
  bankText: string;
116
+
117
+ listLock: IBillMainResponse[];
105
118
  }
106
119
 
107
120
  export class TBillMainResponse implements IBillMainResponse {
@@ -132,8 +145,11 @@ export class TBillMainResponse implements IBillMainResponse {
132
145
  queuesBy: number = 0;
133
146
  entityID: string = "";
134
147
  sourceND: number = 0;
148
+ /** 功能菜单 */
135
149
  menuMain: number = 0;
150
+ /** 功能菜单 */
136
151
  menuUUID: string = "";
152
+ /** 单位标识 */
137
153
  unitMain: number = 0;
138
154
  deptMain: number = 0;
139
155
  sqyhText: string = "";
@@ -141,11 +157,14 @@ export class TBillMainResponse implements IBillMainResponse {
141
157
  flowUndo: number = 0;
142
158
  flowUser: string = "";
143
159
  flowText: string = "";
144
- billCnfg: number = 0;
145
160
  billStat: number = 0;
161
+ /** 票据号码 */
146
162
  billCode: string = "";
163
+ /** 开票日期 */
147
164
  billDate: number = 0;
165
+ /** 开票用途 */
148
166
  billUses: string = "";
167
+ /** 备注信息 */
149
168
  billMemo: string = "";
150
169
  yzhtCode: string = "";
151
170
  yzhtMain: number = 0;
@@ -156,6 +175,9 @@ export class TBillMainResponse implements IBillMainResponse {
156
175
  finalOut: number = 0;
157
176
  payMoney: number = 0;
158
177
  nowMoney: number = 0;
178
+ /** 票据配置 */
179
+ billCnfg: number = 0;
180
+ /** 票据类型 */
159
181
  billType: number = 0;
160
182
  billRate: number = 0;
161
183
  imokSize: number = 0;
@@ -168,25 +190,47 @@ export class TBillMainResponse implements IBillMainResponse {
168
190
  printCnt: number = 0;
169
191
  billFrom: number = 0;
170
192
 
193
+ /** 银行类型 */
171
194
  bankType: number = 0;
195
+ /** 开票账号 */
172
196
  aczfMain: number = 0;
173
197
  aczfZhmc: string = "";
174
198
  aczfKhyh: string = "";
175
199
  aczfYhzh: string = "";
200
+ /** 收款单位 */
176
201
  acnoMain: number = 0;
177
202
  acnoZhmc: string = "";
178
203
  acnoKhyh: string = "";
179
204
  acnoYhzh: string = "";
205
+ /** 票据密码 */
180
206
  billPswd: string = "";
207
+ /** 附言一 */
181
208
  memoTxt1: string = "";
209
+ /** 附言二 */
182
210
  memoTxt2: string = "";
211
+ /** 附言三 */
183
212
  memoTxt3: string = "";
213
+ /** 单位主管 */
184
214
  unitMast: string = "";
215
+ /** 会计主管 */
185
216
  finaMast: string = "";
186
217
 
218
+ /** 收支方向:0:收入;1:支出 */
219
+ isExpend: number = 0;
220
+ /** 支付方式(字典) */
221
+ billZffs: number = 0;
222
+ /** 支付方式(文本) */
223
+ billZffsText: string = "";
224
+ /** 付款方式(字典) */
225
+ billFkfs: number = 0;
226
+ /** 付款方式(文本) */
227
+ billFkfsText: string = "";
228
+
187
229
  typeText: string = "";
188
230
  bankText: string = "";
189
231
 
232
+ listLock: IBillMainResponse[] = [];
233
+
190
234
  constructor(response: any = {}) {
191
235
  if (response) {
192
236
  _.merge(this, _.pick(response, Object.keys(this)));
@@ -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
  }
@@ -0,0 +1,61 @@
1
+ export interface IHznjBaseItemResponse {
2
+ whoBuild: number;
3
+ userIndx: number;
4
+ idEntity: number;
5
+ hznjBase: number;
6
+ dataStat: number;
7
+ dataHide: number;
8
+ dataOrdr: number;
9
+ dataFrom: number;
10
+ dataDate: number;
11
+ dataTime: number;
12
+ createBy: string;
13
+ createAt: number;
14
+ updateBy: string;
15
+ updateAt: number;
16
+ deleteBy: string;
17
+ deleteAt: number;
18
+ queuesBy: number;
19
+ itemMain: number;
20
+ itemName: string;
21
+ k9kmKmid: number;
22
+ k9kmKmmc: string;
23
+ limitVal: number;
24
+ levelVal: number;
25
+ jldwText: string;
26
+ useTotal: number;
27
+ totalVal: number;
28
+ isActive: number;
29
+ itemMemo: string;
30
+ }
31
+
32
+ export class THznjBaseItemResponse implements IHznjBaseItemResponse {
33
+ whoBuild: number = 0;
34
+ userIndx: number = 0;
35
+ idEntity: number = 0;
36
+ hznjBase: number = 0;
37
+ dataStat: number = 0;
38
+ dataHide: number = 0;
39
+ dataOrdr: number = 0;
40
+ dataFrom: number = 0;
41
+ dataDate: number = 0;
42
+ dataTime: number = 0;
43
+ createBy: string = "";
44
+ createAt: number = 0;
45
+ updateBy: string = "";
46
+ updateAt: number = 0;
47
+ deleteBy: string = "";
48
+ deleteAt: number = 0;
49
+ queuesBy: number = 0;
50
+ itemMain: number = 0;
51
+ itemName: string = "";
52
+ k9kmKmid: number = 0;
53
+ k9kmKmmc: string = "";
54
+ limitVal: number = 0;
55
+ levelVal: number = 0;
56
+ jldwText: string = "";
57
+ useTotal: number = 0;
58
+ totalVal: number = 0;
59
+ isActive: number = 0;
60
+ itemMemo: string = "";
61
+ }
@@ -0,0 +1,45 @@
1
+ export interface IHznjBasePathResponse {
2
+ whoBuild: number;
3
+ userIndx: number;
4
+ baseIndx: number;
5
+ dataStat: number;
6
+ dataHide: number;
7
+ dataOrdr: number;
8
+ dataFrom: number;
9
+ dataDate: number;
10
+ dataTime: number;
11
+ createBy: string;
12
+ createAt: number;
13
+ updateBy: string;
14
+ updateAt: number;
15
+ deleteBy: string;
16
+ deleteAt: number;
17
+ queuesBy: number;
18
+ fromWhoBuild: number;
19
+ fromUserIndx: number;
20
+ fromSysPathc: number;
21
+ fromPathUUID: string;
22
+ }
23
+
24
+ export class THznjBasePathResponse implements IHznjBasePathResponse {
25
+ whoBuild: number = 0;
26
+ userIndx: number = 0;
27
+ baseIndx: number = 0;
28
+ dataStat: number = 0;
29
+ dataHide: number = 0;
30
+ dataOrdr: number = 0;
31
+ dataFrom: number = 0;
32
+ dataDate: number = 0;
33
+ dataTime: number = 0;
34
+ createBy: string = "";
35
+ createAt: number = 0;
36
+ updateBy: string = "";
37
+ updateAt: number = 0;
38
+ deleteBy: string = "";
39
+ deleteAt: number = 0;
40
+ queuesBy: number = 0;
41
+ fromWhoBuild: number = 0;
42
+ fromUserIndx: number = 0;
43
+ fromSysPathc: number = 0;
44
+ fromPathUUID: string = "";
45
+ }
@@ -0,0 +1,120 @@
1
+ import { IPathResponse } from "../core";
2
+ import { IHznjBaseItemResponse } from "./IHznjBaseItemResponse";
3
+
4
+ export interface IHznjBaseResponse {
5
+ whoBuild: number;
6
+ userIndx: number;
7
+ baseIndx: number;
8
+ sourceID: number;
9
+ parentID: number;
10
+ hashCode: number;
11
+ dataLevl: number;
12
+ dataFrom: number;
13
+ kjndKJQJ: number;
14
+ dataStat: number;
15
+ dataOrdr: number;
16
+ dataDate: number;
17
+ dataTime: number;
18
+ dataHide: number;
19
+ dataGUID: string;
20
+ mastName: string;
21
+ mastGUID: string;
22
+ createBy: string;
23
+ createAt: number;
24
+ updateBy: string;
25
+ updateAt: number;
26
+ deleteBy: string;
27
+ deleteAt: number;
28
+ queuesBy: number;
29
+ entityID: string;
30
+ sourceND: number;
31
+ menuMain: number;
32
+ menuUUID: string;
33
+ unitMain: number;
34
+ deptMain: number;
35
+ sqyhText: string;
36
+ sqbmText: string;
37
+ flowUndo: number;
38
+ flowUser: string;
39
+ flowText: string;
40
+ /**申请日期 */
41
+ baseDate: number;
42
+ /**流程状态:(0:制单;1:送审;2:终审) */
43
+ baseStat: number;
44
+ /**单据类型 */
45
+ baseType: number;
46
+ /**单据编号 */
47
+ baseCode: string;
48
+ /**项目名称 */
49
+ baseName: string;
50
+ /**申请用途 */
51
+ baseUses: string;
52
+ /**备注说明 */
53
+ baseMemo: string;
54
+ k0kmKmid: number;
55
+ k0kmKmmc: string;
56
+ k7kmKmid: number;
57
+ k7kmKmmc: string;
58
+ k8kmKmid: number;
59
+ k8kmKmmc: string;
60
+ userMain: number;
61
+
62
+ /**附件 */
63
+ listPath: IPathResponse[];
64
+ listItem: IHznjBaseItemResponse[];
65
+ }
66
+
67
+ export class THznjBaseResponse implements IHznjBaseResponse {
68
+ whoBuild: number = 0;
69
+ userIndx: number = 0;
70
+ baseIndx: number = 0;
71
+ sourceID: number = 0;
72
+ parentID: number = 0;
73
+ hashCode: number = 0;
74
+ dataLevl: number = 0;
75
+ dataFrom: number = 0;
76
+ kjndKJQJ: number = 0;
77
+ dataStat: number = 0;
78
+ dataOrdr: number = 0;
79
+ dataDate: number = 0;
80
+ dataTime: number = 0;
81
+ dataHide: number = 0;
82
+ dataGUID: string = "";
83
+ mastName: string = "";
84
+ mastGUID: string = "";
85
+ createBy: string = "";
86
+ createAt: number = 0;
87
+ updateBy: string = "";
88
+ updateAt: number = 0;
89
+ deleteBy: string = "";
90
+ deleteAt: number = 0;
91
+ queuesBy: number = 0;
92
+ entityID: string = "";
93
+ sourceND: number = 0;
94
+ menuMain: number = 0;
95
+ menuUUID: string = "";
96
+ unitMain: number = 0;
97
+ deptMain: number = 0;
98
+ sqyhText: string = "";
99
+ sqbmText: string = "";
100
+ flowUndo: number = 0;
101
+ flowUser: string = "";
102
+ flowText: string = "";
103
+ baseDate: number = 0;
104
+ baseStat: number = 0;
105
+ baseType: number = 0;
106
+ baseCode: string = "";
107
+ baseName: string = "";
108
+ baseUses: string = "";
109
+ baseMemo: string = "";
110
+ k0kmKmid: number = 0;
111
+ k0kmKmmc: string = "";
112
+ k7kmKmid: number = 0;
113
+ k7kmKmmc: string = "";
114
+ k8kmKmid: number = 0;
115
+ k8kmKmmc: string = "";
116
+ userMain: number = 0;
117
+
118
+ listPath: IPathResponse[] = [];
119
+ listItem: IHznjBaseItemResponse[] = [];
120
+ }
@@ -4,6 +4,7 @@ import { IHznkMainWbdwResponse } from "./IHznkMainWbdwResponse";
4
4
  import { IHznkMainWbyhResponse } from "./IHznkMainWbyhResponse";
5
5
  import _ from "lodash";
6
6
  import { TFlowDataResponse } from "../flow";
7
+ import { IHznkMainRwzbResponse } from "./IHznkMainRwzbResponse";
7
8
 
8
9
  export interface IHznkMainResponse {
9
10
  whoBuild: number;
@@ -97,6 +98,8 @@ export interface IHznkMainResponse {
97
98
  listWBYH: IHznkMainWbyhResponse[];
98
99
  /**外部单位 */
99
100
  listWBDW: IHznkMainWbdwResponse[];
101
+ /**任务指标 */
102
+ listRWZB: IHznkMainRwzbResponse[];
100
103
  }
101
104
 
102
105
  export class THznkMainResponse implements IHznkMainResponse {
@@ -167,6 +170,7 @@ export class THznkMainResponse implements IHznkMainResponse {
167
170
  listNBYH: IHznkMainNbyhResponse[] = [];
168
171
  listWBYH: IHznkMainWbyhResponse[] = [];
169
172
  listWBDW: IHznkMainWbdwResponse[] = [];
173
+ listRWZB: IHznkMainRwzbResponse[] = [];
170
174
 
171
175
  constructor(data: Partial<IHznkMainResponse> = {}) {
172
176
  if (data) {
@@ -0,0 +1,47 @@
1
+ export interface IHznkMainRwzbResponse {
2
+ whoBuild: number;
3
+ userIndx: number;
4
+ hznkIndx: number;
5
+ idEntity: number;
6
+ dataStat: number;
7
+ dataHide: number;
8
+ dataOrdr: number;
9
+ dataFrom: number;
10
+ dataDate: number;
11
+ dataTime: number;
12
+ createBy: string;
13
+ createAt: number;
14
+ updateBy: string;
15
+ updateAt: number;
16
+ deleteBy: string;
17
+ deleteAt: number;
18
+ queuesBy: number;
19
+ billFrom: number;
20
+ rwzbText: string;
21
+ limitVal: number;
22
+ rwzbMemo: string;
23
+ }
24
+
25
+ export class THznkMainRwzbResponse implements IHznkMainRwzbResponse {
26
+ whoBuild: number = 0;
27
+ userIndx: number = 0;
28
+ hznkIndx: number = 0;
29
+ idEntity: number = 0;
30
+ dataStat: number = 0;
31
+ dataHide: number = 0;
32
+ dataOrdr: number = 0;
33
+ dataFrom: number = 0;
34
+ dataDate: number = 0;
35
+ dataTime: number = 0;
36
+ createBy: string = "";
37
+ createAt: number = 0;
38
+ updateBy: string = "";
39
+ updateAt: number = 0;
40
+ deleteBy: string = "";
41
+ deleteAt: number = 0;
42
+ queuesBy: number = 0;
43
+ billFrom: number = 0;
44
+ rwzbText: string = "";
45
+ limitVal: number = 0;
46
+ rwzbMemo: string = "";
47
+ }