@ningboyz/types 1.0.22 → 1.0.24
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/index.ts +8 -0
- package/package.json +1 -1
- package/src/antv/IAntvCnfgResponse.ts +69 -0
- package/src/antv/IAntvMainResponse.ts +67 -0
- package/src/antv/IAntvParaResponse.ts +48 -0
- package/src/antv/index.ts +5 -0
- package/src/card/ICardMainFindResponse.ts +21 -0
- package/src/card/ICardMainResponse.ts +265 -130
- package/src/card/IGblbResponse.ts +64 -5
- package/src/card/IP4pzResponse.ts +68 -0
- package/src/card/IZcbdResponse.ts +108 -9
- package/src/card/IZccfResponse.ts +145 -3
- package/src/card/IZcczResponse.ts +139 -0
- package/src/card/IZcdbResponse.ts +154 -0
- package/src/card/IZclbResponse.ts +138 -0
- package/src/card/IZczjPropResponse.ts +94 -0
- package/src/card/IZczjResponse.ts +121 -0
- package/src/card/index.ts +23 -6
- package/src/conf/IConfig.ts +2 -0
- package/src/conf/index.ts +1 -1
- package/src/const/const_bizCode.ts +3 -0
- package/src/const/const_module.ts +72 -0
- package/src/const/const_p4pt.ts +8 -0
- package/src/const/const_stat.ts +11 -2
- package/src/const/const_todo.ts +5 -0
- package/src/const/const_type_name.ts +10 -0
- package/src/const/const_wldy_item_type.ts +4 -0
- package/src/const/const_wtui_item_type.ts +20 -0
- package/src/const/index.ts +7 -1
- package/src/core/ICoreValidResponse.ts +21 -0
- package/src/core/IDeptLiteResponse.ts +0 -1
- package/src/core/IDeptResponse.ts +60 -0
- package/src/core/IDictResponse.ts +45 -2
- package/src/core/IDictResponseDictPara.ts +2 -0
- package/src/core/ILaidResponse.ts +34 -1
- package/src/core/IPartResponse.ts +30 -0
- package/src/core/ISysMenuWithCoreResponse.ts +3 -2
- package/src/core/ISysTravelResponse.ts +135 -0
- package/src/core/ITypeResponse.ts +27 -0
- package/src/core/IUnitResponse.ts +101 -6
- package/src/core/IUserLiteResponse.ts +2 -0
- package/src/core/IUserResponse.ts +30 -0
- package/src/core/index.ts +8 -0
- package/src/enums/btnMode.ts +84 -3
- package/src/enums/emitterType.ts +5 -0
- package/src/enums/index.ts +2 -2
- package/src/enums/storeId.ts +4 -1
- package/src/enums/usesStat.ts +13 -0
- package/src/enums/whatDone.ts +29 -0
- package/src/flow/IFlowCnfgResponse.ts +0 -2
- package/src/flow/IFlowDataResponse.ts +34 -0
- package/src/flow/IFlowDutyResponse.ts +3 -2
- package/src/flow/IFlowNodeResponse.ts +15 -1
- package/src/flow/index.ts +0 -1
- package/src/gzjg/IGzjgGzlmResponse.ts +3 -2
- package/src/gzjg/IGzjgGzlmResponseGzlmPara.ts +2 -0
- package/src/gzjg/IGzjgMainResponse.ts +5 -2
- package/src/gztb/IGztbMainResponse.ts +103 -0
- package/src/gztb/index.ts +3 -0
- package/src/load/index.ts +2 -2
- package/src/micro/appName.ts +2 -1
- package/src/noti/INotiMainResponse.ts +278 -0
- package/src/noti/index.ts +3 -0
- package/src/pzpt/IPzptItemResponse.ts +0 -2
- package/src/response/IResponse.ts +31 -0
- package/src/store/dateState.ts +48 -0
- package/src/store/index.ts +4 -2
- package/src/store/menuState.ts +9 -0
- package/src/store/userState.ts +3 -0
- package/src/tabl/ITablDataResponse.ts +2 -0
- package/src/tabl/ITablMainResponse.ts +2 -0
- package/src/task/ITaskMainResponse.ts +121 -0
- package/src/task/index.ts +3 -0
- package/src/wldy/IWldyPageResponse.ts +4 -3
- package/src/wldy/index.ts +5 -5
- package/src/wtui/ITodoResponse.ts +15 -0
- package/src/wtui/IViewCtrlResponse.ts +15 -7
- package/src/wtui/IWtuiColWidthResponse.ts +53 -0
- package/src/wtui/IWtuiFormParaResponse.ts +17 -0
- package/src/wtui/IWtuiFormResponse.ts +95 -0
- package/src/wtui/IWtuiItemCalc.ts +36 -0
- package/src/wtui/IWtuiItemEffect.ts +43 -0
- package/src/wtui/IWtuiItemParaResponse.ts +59 -0
- package/src/wtui/IWtuiItemResponse.ts +119 -0
- package/src/wtui/IWtuiMainResponse.ts +3 -0
- package/src/wtui/IWtuiNodeResponse.ts +71 -0
- package/src/wtui/IWtuiTodoResponse.ts +36 -0
- package/src/wtui/IWtuiTodoResponseTodoPara.ts +7 -0
- package/src/wtui/IWtuiTodoResponseWithPara.ts +32 -0
- package/src/wtui/IWtuiUserCnfgResponse.ts +100 -0
- package/src/wtui/IWtuiZoneResponse.ts +61 -0
- package/src/wtui/index.ts +46 -1
- package/src/enums/wldyItemType.ts +0 -5
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { IDeptResponse, ILaidResponse, IPathResponse, IUnitResponse } from "../core";
|
|
1
|
+
import { IDeptResponse, IDictResponse, ILaidResponse, IPathResponse, IUnitResponse } from "../core";
|
|
2
|
+
import _ from "lodash";
|
|
3
|
+
import { TFlowDataResponse } from "../flow";
|
|
4
|
+
import { Const, TCore } from "../..";
|
|
2
5
|
|
|
3
6
|
export interface ICardMainResponse {
|
|
4
7
|
whoBuild: number;
|
|
@@ -26,6 +29,7 @@ export interface ICardMainResponse {
|
|
|
26
29
|
deleteBy: string;
|
|
27
30
|
deleteAt: number;
|
|
28
31
|
queuesBy: number;
|
|
32
|
+
entityID: string;
|
|
29
33
|
sourceND: number;
|
|
30
34
|
unitMain: number;
|
|
31
35
|
deptMain: number;
|
|
@@ -66,6 +70,9 @@ export interface ICardMainResponse {
|
|
|
66
70
|
cardZcyz: number;
|
|
67
71
|
/** 累计折旧 */
|
|
68
72
|
cardLjzj: number;
|
|
73
|
+
|
|
74
|
+
/** 固定资产-累计折旧 */
|
|
75
|
+
fromCardLjzj: number;
|
|
69
76
|
/** 资产净值 */
|
|
70
77
|
cardZcjz: number;
|
|
71
78
|
/** 初始折旧 */
|
|
@@ -87,6 +94,15 @@ export interface ICardMainResponse {
|
|
|
87
94
|
/** 有多少层(楼宇租赁) */
|
|
88
95
|
floorCnt: number;
|
|
89
96
|
|
|
97
|
+
/** 购入日期 */
|
|
98
|
+
cardGrrq: number;
|
|
99
|
+
/** 折旧状态 */
|
|
100
|
+
cardZjzt: number;
|
|
101
|
+
/** 入库单号 */
|
|
102
|
+
takeText: string;
|
|
103
|
+
/** 凭证单号 */
|
|
104
|
+
pzptText: string;
|
|
105
|
+
|
|
90
106
|
/** 产权形式 */
|
|
91
107
|
cardCqxs: number;
|
|
92
108
|
/** 使用方向 */
|
|
@@ -95,7 +111,7 @@ export interface ICardMainResponse {
|
|
|
95
111
|
cardFzsj: number;
|
|
96
112
|
/** 证书号码 */
|
|
97
113
|
cardZshm: string;
|
|
98
|
-
/**
|
|
114
|
+
/** 坐落位置 */
|
|
99
115
|
cardZlwz: string;
|
|
100
116
|
/** 管理部门 */
|
|
101
117
|
cardGlbm: string;
|
|
@@ -133,6 +149,63 @@ export interface ICardMainResponse {
|
|
|
133
149
|
/** 其中:单位负担费用面积 */
|
|
134
150
|
buldFymj: number;
|
|
135
151
|
|
|
152
|
+
/** 允许拆分 */
|
|
153
|
+
canSplit: number;
|
|
154
|
+
/** 所属品牌 */
|
|
155
|
+
cardSspp: string;
|
|
156
|
+
/** 使用人.标识 */
|
|
157
|
+
cardUser: number;
|
|
158
|
+
/** 保管人.标识 */
|
|
159
|
+
cardKeep: number;
|
|
160
|
+
/** 保管人.文本 */
|
|
161
|
+
cardKeepText: string;
|
|
162
|
+
/** 供应商 */
|
|
163
|
+
cardDddw: string;
|
|
164
|
+
/** 使用年限 */
|
|
165
|
+
cardSynx: number;
|
|
166
|
+
/** 预计残值 */
|
|
167
|
+
cardYjcz: number;
|
|
168
|
+
/** 已补提折旧 */
|
|
169
|
+
cardYbzj: number;
|
|
170
|
+
/** 资产类别.标识 */
|
|
171
|
+
cardZclb: number;
|
|
172
|
+
/** 资产类别.文本 */
|
|
173
|
+
cardZclbText: string;
|
|
174
|
+
/** 自定义编码 */
|
|
175
|
+
cardCodeTxt1: string;
|
|
176
|
+
/** 资产云编码 */
|
|
177
|
+
cardCodeTxt2: string;
|
|
178
|
+
/** 财政编码 */
|
|
179
|
+
cardCodeTxt3: string;
|
|
180
|
+
/** 名称待见 */
|
|
181
|
+
cardCodeTxt4: string;
|
|
182
|
+
|
|
183
|
+
/** 保修截止日期 */
|
|
184
|
+
cardBxjz: number;
|
|
185
|
+
|
|
186
|
+
/** 土地来源.标识 */
|
|
187
|
+
landTdly: number;
|
|
188
|
+
/** 土地来源.文本 */
|
|
189
|
+
landTdlyText: string;
|
|
190
|
+
/** 权属单位/个人 */
|
|
191
|
+
cardQsdw: string;
|
|
192
|
+
/** 文物等级.标识 */
|
|
193
|
+
cardWwdj: number;
|
|
194
|
+
/** 文物等级.文本 */
|
|
195
|
+
cardWwdjText: string;
|
|
196
|
+
/** 车辆产地.标识 */
|
|
197
|
+
autoClcd: number;
|
|
198
|
+
/** 车辆产地.文本 */
|
|
199
|
+
autoClcdText: string;
|
|
200
|
+
/** 厂牌型号 */
|
|
201
|
+
autoCpxh: string;
|
|
202
|
+
/** 编制情况.标识 */
|
|
203
|
+
cardBzqk: number;
|
|
204
|
+
/** 编制情况.文本 */
|
|
205
|
+
cardBzqkText: string;
|
|
206
|
+
/** 产权标志(0:无,1:有) */
|
|
207
|
+
cardCqbz: number;
|
|
208
|
+
|
|
136
209
|
/** 汽车类型 */
|
|
137
210
|
autoType: number;
|
|
138
211
|
/** 汽车车牌 */
|
|
@@ -157,16 +230,16 @@ export interface ICardMainResponse {
|
|
|
157
230
|
/** 资产类型名称 */
|
|
158
231
|
cardTypeText: string;
|
|
159
232
|
/** 产权形式名称 */
|
|
160
|
-
|
|
233
|
+
cardCqxsText: string;
|
|
161
234
|
/** 使用方向名称 */
|
|
162
|
-
|
|
235
|
+
cardSyfxText: string;
|
|
163
236
|
/** 分类用途名称 */
|
|
164
237
|
cardUsesText: string;
|
|
165
238
|
/** 计量单位名称 */
|
|
166
239
|
cardJldwText: string;
|
|
167
240
|
/** 存放地点名称 */
|
|
168
241
|
cardLaidText: string;
|
|
169
|
-
/**
|
|
242
|
+
/** 使用人.名称 */
|
|
170
243
|
cardUserText: string;
|
|
171
244
|
/** 权属性质名称 */
|
|
172
245
|
landQsxzText: string;
|
|
@@ -226,11 +299,65 @@ export interface ICardMainResponse {
|
|
|
226
299
|
cardZcxl: string;
|
|
227
300
|
/** 录入时间 */
|
|
228
301
|
cardTime: number;
|
|
302
|
+
/** 使用状态 */
|
|
303
|
+
cardSyzt: number;
|
|
304
|
+
/** 常用编码 */
|
|
305
|
+
cardCybm: string;
|
|
306
|
+
/** 联系人 */
|
|
307
|
+
cardLxy: string;
|
|
308
|
+
/** 月折旧额 */
|
|
309
|
+
cardYzje: number;
|
|
310
|
+
/** 折旧年限 */
|
|
311
|
+
cardZjnx: number;
|
|
312
|
+
|
|
313
|
+
/** 挂起状态 */
|
|
314
|
+
hideStat: number;
|
|
315
|
+
|
|
316
|
+
/** 单据状态 */
|
|
317
|
+
fromCardStat: number;
|
|
318
|
+
|
|
319
|
+
/** 变动前cardExid */
|
|
320
|
+
fromCardExid: number;
|
|
321
|
+
|
|
322
|
+
/** 调拨后使用部门.标识 */
|
|
323
|
+
fromCardDept: number;
|
|
324
|
+
/** 调拨后存放地点.标识 */
|
|
325
|
+
fromCardLaid: number;
|
|
326
|
+
|
|
327
|
+
/** 调拨后使用部门.名称 */
|
|
328
|
+
fromDeptText: string;
|
|
329
|
+
/** 调拨后存放地点.名称 */
|
|
330
|
+
fromLaidText: string;
|
|
331
|
+
|
|
332
|
+
lastDate: number;
|
|
333
|
+
lastTime: number;
|
|
334
|
+
flowMain: number;
|
|
335
|
+
flowNode: number;
|
|
336
|
+
flowStat: number;
|
|
337
|
+
didFirst: number;
|
|
338
|
+
lastMemo: string;
|
|
339
|
+
userName: string;
|
|
340
|
+
userGUID: string;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* 前端字段
|
|
344
|
+
*/
|
|
345
|
+
/** 二维码 */
|
|
346
|
+
cardQrde: string;
|
|
229
347
|
|
|
230
348
|
listUnit: IUnitResponse[];
|
|
231
349
|
listDept: IDeptResponse[];
|
|
232
350
|
listLaid: ILaidResponse[];
|
|
351
|
+
listPropDict: IDictResponse[];
|
|
352
|
+
listPropDept: IDeptResponse[];
|
|
233
353
|
listPath: IPathResponse[];
|
|
354
|
+
|
|
355
|
+
// 虚拟字段
|
|
356
|
+
cardZjff: string;
|
|
357
|
+
|
|
358
|
+
tablFrom: string; //路由
|
|
359
|
+
|
|
360
|
+
ywdjIndx: number;
|
|
234
361
|
}
|
|
235
362
|
|
|
236
363
|
export class TCardMainResponse implements ICardMainResponse {
|
|
@@ -258,6 +385,7 @@ export class TCardMainResponse implements ICardMainResponse {
|
|
|
258
385
|
deleteBy: string = "";
|
|
259
386
|
deleteAt: number = 0;
|
|
260
387
|
queuesBy: number = 0;
|
|
388
|
+
entityID: string = "";
|
|
261
389
|
sourceND: number = 0;
|
|
262
390
|
unitMain: number = 0;
|
|
263
391
|
deptMain: number = 0;
|
|
@@ -284,6 +412,7 @@ export class TCardMainResponse implements ICardMainResponse {
|
|
|
284
412
|
cardCost: number = 0;
|
|
285
413
|
cardZcyz: number = 0;
|
|
286
414
|
cardLjzj: number = 0;
|
|
415
|
+
fromCardLjzj: number = 0;
|
|
287
416
|
cardZcjz: number = 0;
|
|
288
417
|
cardCszj: number = 0;
|
|
289
418
|
cardCode: string = "";
|
|
@@ -295,6 +424,11 @@ export class TCardMainResponse implements ICardMainResponse {
|
|
|
295
424
|
cardMemo: string = "";
|
|
296
425
|
floorCnt: number = 0;
|
|
297
426
|
|
|
427
|
+
cardGrrq: number = 0;
|
|
428
|
+
cardZjzt: number = 0;
|
|
429
|
+
takeText: string = "";
|
|
430
|
+
pzptText: string = "";
|
|
431
|
+
|
|
298
432
|
cardCqxs: number = 0;
|
|
299
433
|
cardSyfx: number = 0;
|
|
300
434
|
cardFzsj: number = 0;
|
|
@@ -320,6 +454,36 @@ export class TCardMainResponse implements ICardMainResponse {
|
|
|
320
454
|
buldJzmj: number = 0;
|
|
321
455
|
buldFymj: number = 0;
|
|
322
456
|
|
|
457
|
+
canSplit: number = 0;
|
|
458
|
+
cardSspp: string = "";
|
|
459
|
+
cardUser: number = 0;
|
|
460
|
+
cardKeep: number = 0;
|
|
461
|
+
cardKeepText: string = "";
|
|
462
|
+
cardDddw: string = "";
|
|
463
|
+
cardSynx: number = 0;
|
|
464
|
+
cardYjcz: number = 0;
|
|
465
|
+
cardYbzj: number = 0;
|
|
466
|
+
cardZclb: number = 0;
|
|
467
|
+
cardZclbText: string = "";
|
|
468
|
+
cardCodeTxt1: string = "";
|
|
469
|
+
cardCodeTxt2: string = "";
|
|
470
|
+
cardCodeTxt3: string = "";
|
|
471
|
+
cardCodeTxt4: string = "";
|
|
472
|
+
|
|
473
|
+
cardBxjz: number = 0;
|
|
474
|
+
|
|
475
|
+
landTdly: number = 0;
|
|
476
|
+
landTdlyText: string = "";
|
|
477
|
+
cardQsdw: string = "";
|
|
478
|
+
cardWwdj: number = 0;
|
|
479
|
+
cardWwdjText: string = "";
|
|
480
|
+
autoClcd: number = 0;
|
|
481
|
+
autoClcdText: string = "";
|
|
482
|
+
autoCpxh: string = "";
|
|
483
|
+
cardBzqk: number = 0;
|
|
484
|
+
cardBzqkText: string = "";
|
|
485
|
+
cardCqbz: number = 0;
|
|
486
|
+
|
|
323
487
|
autoType: number = 0;
|
|
324
488
|
autoCpbh: string = "";
|
|
325
489
|
autoBxrq: number = 0;
|
|
@@ -332,8 +496,8 @@ export class TCardMainResponse implements ICardMainResponse {
|
|
|
332
496
|
cardZjlyText: string = "";
|
|
333
497
|
cardDeptText: string = "";
|
|
334
498
|
cardTypeText: string = "";
|
|
335
|
-
|
|
336
|
-
|
|
499
|
+
cardCqxsText: string = "";
|
|
500
|
+
cardSyfxText: string = "";
|
|
337
501
|
cardUsesText: string = "";
|
|
338
502
|
cardJldwText: string = "";
|
|
339
503
|
cardLaidText: string = "";
|
|
@@ -368,134 +532,105 @@ export class TCardMainResponse implements ICardMainResponse {
|
|
|
368
532
|
cardSfzj: string = "";
|
|
369
533
|
cardZcxl: string = "";
|
|
370
534
|
cardTime: number = 0;
|
|
535
|
+
cardSyzt: number = 0;
|
|
536
|
+
cardCybm: string = "";
|
|
537
|
+
cardLxy: string = "";
|
|
538
|
+
cardYzje: number = 0;
|
|
539
|
+
cardZjnx: number = 0;
|
|
540
|
+
|
|
541
|
+
hideStat: number = 0;
|
|
542
|
+
|
|
543
|
+
lastDate: number = 0;
|
|
544
|
+
lastTime: number = 0;
|
|
545
|
+
flowMain: number = 0;
|
|
546
|
+
flowNode: number = 0;
|
|
547
|
+
flowStat: number = 0;
|
|
548
|
+
didFirst: number = 0;
|
|
549
|
+
lastMemo: string = "";
|
|
550
|
+
userName: string = "";
|
|
551
|
+
userGUID: string = "";
|
|
552
|
+
|
|
553
|
+
fromCardStat: number = 0;
|
|
554
|
+
|
|
555
|
+
fromCardExid: number = 0;
|
|
556
|
+
|
|
557
|
+
fromCardDept: number = 0;
|
|
558
|
+
fromCardLaid: number = 0;
|
|
559
|
+
|
|
560
|
+
fromDeptText: string = "";
|
|
561
|
+
fromLaidText: string = "";
|
|
562
|
+
|
|
563
|
+
/** 二维码 */
|
|
564
|
+
cardQrde: string = "";
|
|
371
565
|
|
|
372
566
|
listUnit: IUnitResponse[] = [];
|
|
373
567
|
listDept: IDeptResponse[] = [];
|
|
374
568
|
listLaid: ILaidResponse[] = [];
|
|
569
|
+
listPropDict: IDictResponse[] = [];
|
|
570
|
+
listPropDept: IDeptResponse[] = [];
|
|
375
571
|
listPath: IPathResponse[] = [];
|
|
572
|
+
|
|
573
|
+
// 虚拟字段
|
|
574
|
+
cardZjff: string = "";
|
|
575
|
+
|
|
576
|
+
tablFrom: string = "";
|
|
577
|
+
|
|
578
|
+
ywdjIndx: number = 0;
|
|
579
|
+
|
|
376
580
|
constructor(card: any = {}) {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
this.
|
|
431
|
-
|
|
432
|
-
this.cardZymj = card.cardZymj ?? this.cardZymj;
|
|
433
|
-
this.cardHqmj = card.cardHqmj ?? this.cardHqmj;
|
|
434
|
-
this.cardCzmj = card.cardCzmj ?? this.cardCzmj;
|
|
435
|
-
this.cardCjmj = card.cardCjmj ?? this.cardCjmj;
|
|
436
|
-
this.cardXzmj = card.cardXzmj ?? this.cardXzmj;
|
|
437
|
-
this.cardQtmj = card.cardQtmj ?? this.cardQtmj;
|
|
438
|
-
this.cardSymj = card.cardSymj ?? this.cardSymj;
|
|
439
|
-
|
|
440
|
-
this.landQsxz = card.landQsxz ?? this.landQsxz;
|
|
441
|
-
this.landTdmj = card.landTdmj ?? this.landTdmj;
|
|
442
|
-
this.landZmmj = card.landZmmj ?? this.landZmmj;
|
|
443
|
-
|
|
444
|
-
this.buldJgrq = card.buldJgrq ?? this.buldJgrq;
|
|
445
|
-
this.buldSyrq = card.buldSyrq ?? this.buldSyrq;
|
|
446
|
-
this.buldJzjg = card.buldJzjg ?? this.buldJzjg;
|
|
447
|
-
this.buldJzmj = card.buldJzmj ?? this.buldJzmj;
|
|
448
|
-
this.buldFymj = card.buldFymj ?? this.buldFymj;
|
|
449
|
-
|
|
450
|
-
this.autoType = card.autoType ?? this.autoType;
|
|
451
|
-
this.autoCpbh = card.autoCpbh ?? this.autoCpbh;
|
|
452
|
-
this.autoBxrq = card.autoBxrq ?? this.autoBxrq;
|
|
453
|
-
this.autoNjrq = card.autoNjrq ?? this.autoNjrq;
|
|
454
|
-
this.autoBfrq = card.autoBfrq ?? this.autoBfrq;
|
|
455
|
-
this.autoJykh = card.autoJykh ?? this.autoJykh;
|
|
456
|
-
|
|
457
|
-
this.cardUnitText = card.cardUnitText ?? this.cardUnitText;
|
|
458
|
-
this.cardGblbText = card.cardGblbText ?? this.cardGblbText;
|
|
459
|
-
this.cardZjlyText = card.cardZjlyText ?? this.cardZjlyText;
|
|
460
|
-
this.cardDeptText = card.cardDeptText ?? this.cardDeptText;
|
|
461
|
-
this.cardTypeText = card.cardTypeText ?? this.cardTypeText;
|
|
462
|
-
this.CardCqxsText = card.CardCqxsText ?? this.CardCqxsText;
|
|
463
|
-
this.CardSyfxText = card.CardSyfxText ?? this.CardSyfxText;
|
|
464
|
-
this.cardUsesText = card.cardUsesText ?? this.cardUsesText;
|
|
465
|
-
this.cardJldwText = card.cardJldwText ?? this.cardJldwText;
|
|
466
|
-
this.cardLaidText = card.cardLaidText ?? this.cardLaidText;
|
|
467
|
-
this.cardUserText = card.cardUserText ?? this.cardUserText;
|
|
468
|
-
this.landQsxzText = card.landQsxzText ?? this.landQsxzText;
|
|
469
|
-
this.buldJzjgText = card.buldJzjgText ?? this.buldJzjgText;
|
|
470
|
-
|
|
471
|
-
this.knockCnt = card.knockCnt ?? this.knockCnt;
|
|
472
|
-
this.userSize = card.userSize ?? this.userSize;
|
|
473
|
-
this.autoClno = card.autoClno ?? this.autoClno;
|
|
474
|
-
this.autoYqno = card.autoYqno ?? this.autoYqno;
|
|
475
|
-
this.matchKey = card.matchKey ?? this.matchKey;
|
|
476
|
-
this.autoCllc = card.autoCllc ?? this.autoCllc;
|
|
477
|
-
this.autoClyh = card.autoClyh ?? this.autoClyh;
|
|
478
|
-
this.autoYhrq = card.autoYhrq ?? this.autoYhrq;
|
|
479
|
-
this.autoLcrq = card.autoLcrq ?? this.autoLcrq;
|
|
480
|
-
this.cardLaid = card.cardLaid ?? this.cardLaid;
|
|
481
|
-
this.cardUses = card.cardUses ?? this.cardUses;
|
|
482
|
-
this.autoJyyh = card.autoJyyh ?? this.autoJyyh;
|
|
483
|
-
this.unitDict = card.unitDict ?? this.unitDict;
|
|
484
|
-
this.autoClxz = card.autoClxz ?? this.autoClxz;
|
|
485
|
-
this.autoTbdw = card.autoTbdw ?? this.autoTbdw;
|
|
486
|
-
this.autoCode = card.autoCode ?? this.autoCode;
|
|
487
|
-
this.syncStat = card.syncStat ?? this.syncStat;
|
|
488
|
-
this.cardFrom = card.cardFrom ?? this.cardFrom;
|
|
489
|
-
this.cardWppp = card.cardWppp ?? this.cardWppp;
|
|
490
|
-
this.cardWpzt = card.cardWpzt ?? this.cardWpzt;
|
|
491
|
-
this.cardSfzj = card.cardSfzj ?? this.cardSfzj;
|
|
492
|
-
this.cardZcxl = card.cardZcxl ?? this.cardZcxl;
|
|
493
|
-
this.cardTime = card.cardTime ?? this.cardTime;
|
|
494
|
-
this.autoClplText = card.autoClplText ?? this.autoClplText;
|
|
495
|
-
this.autoMode = card.autoMode ?? this.autoMode;
|
|
496
|
-
this.autoSeat = card.autoSeat ?? this.autoSeat;
|
|
497
|
-
this.autoClpl = card.autoClpl ?? this.autoClpl;
|
|
498
|
-
this.autoCldl = card.autoCldl ?? this.autoCldl;
|
|
499
|
-
this.get4From = card.get4From ?? this.get4From;
|
|
581
|
+
if (card) {
|
|
582
|
+
_.merge(this, _.pick(card, Object.keys(this)));
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
static toFlowData(card: ICardMainResponse): TFlowDataResponse {
|
|
587
|
+
const result = new TFlowDataResponse();
|
|
588
|
+
result.whoBuild = card.whoBuild;
|
|
589
|
+
result.flowMain = card.flowMain;
|
|
590
|
+
result.flowNode = card.flowNode;
|
|
591
|
+
result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_CARD_WAIT;
|
|
592
|
+
result.entityID = card.entityID;
|
|
593
|
+
result.billMain = card.cardIndx;
|
|
594
|
+
result.billCode = card.cardCode;
|
|
595
|
+
result.billMemo = card.cardMemo;
|
|
596
|
+
result.createAt = card.createAt;
|
|
597
|
+
result.mastName = card.mastName;
|
|
598
|
+
result.createBy = card.createBy;
|
|
599
|
+
result.unitMain = card.unitMain;
|
|
600
|
+
result.deptMain = card.deptMain;
|
|
601
|
+
result.menuUUID = card.menuUUID;
|
|
602
|
+
result.flowStat = card.fromCardStat;
|
|
603
|
+
return result;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
static toFlowDatas(card: ICardMainResponse[]): TFlowDataResponse[] {
|
|
607
|
+
return card.map((u) => this.toFlowData(u));
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
static toTravel(card: ICardMainResponse): TCore.ISysTravelResponse {
|
|
611
|
+
const travel = new TCore.TSysTravelResponse();
|
|
612
|
+
travel.whoBuild = card.whoBuild;
|
|
613
|
+
travel.flowMain = card.flowMain;
|
|
614
|
+
travel.flowNode = card.flowNode;
|
|
615
|
+
travel.billUUID = card.entityID;
|
|
616
|
+
travel.billMain = card.cardIndx;
|
|
617
|
+
travel.billCode = card.cardCode;
|
|
618
|
+
travel.mastName = card.mastName;
|
|
619
|
+
travel.createBy = card.createBy;
|
|
620
|
+
travel.menuUUID = card.menuUUID;
|
|
621
|
+
return travel;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/** 转换成记录日志需要的数据(第一层,不包含菜单) */
|
|
625
|
+
static toTravelData(card?: ICardMainResponse | ICardMainResponse[]): TCore.ISysTravelResponse[] {
|
|
626
|
+
if (_.isNil(card)) {
|
|
627
|
+
return [];
|
|
628
|
+
}
|
|
629
|
+
if (_.isArray(card)) {
|
|
630
|
+
return card.map((u) => {
|
|
631
|
+
return this.toTravel(u);
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
return [this.toTravel(card)];
|
|
500
635
|
}
|
|
501
636
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { construct, destruct } from "@aximario/json-tree";
|
|
2
|
+
import _ from "lodash";
|
|
3
|
+
import { TCore } from "../../index.ts";
|
|
4
|
+
|
|
1
5
|
export interface IGblbResponse {
|
|
2
6
|
whoBuild: number;
|
|
3
7
|
userIndx: number;
|
|
@@ -26,11 +30,24 @@ export interface IGblbResponse {
|
|
|
26
30
|
queuesBy: number;
|
|
27
31
|
sourceND: number;
|
|
28
32
|
entityID: string;
|
|
33
|
+
/** 国标编码 */
|
|
29
34
|
gblbCode: string;
|
|
35
|
+
/** 国标名称 */
|
|
30
36
|
gblbName: string;
|
|
37
|
+
/** 国标编码链 */
|
|
31
38
|
codeFull: string;
|
|
39
|
+
/** 国标名称链 */
|
|
32
40
|
nameFull: string;
|
|
41
|
+
/** 国标备注 */
|
|
33
42
|
gblbMemo: string;
|
|
43
|
+
/** 计量单位.标识 */
|
|
44
|
+
cardJldw: number;
|
|
45
|
+
/** 计量单位.文本 */
|
|
46
|
+
cardJldwText: string;
|
|
47
|
+
/** 表单命名名称 */
|
|
48
|
+
wtuiFormName: string;
|
|
49
|
+
children: IGblbResponse[];
|
|
50
|
+
hasChild: boolean;
|
|
34
51
|
}
|
|
35
52
|
|
|
36
53
|
export class TGblbResponse implements IGblbResponse {
|
|
@@ -61,14 +78,56 @@ export class TGblbResponse implements IGblbResponse {
|
|
|
61
78
|
queuesBy: number = 0;
|
|
62
79
|
sourceND: number = 0;
|
|
63
80
|
entityID: string = "";
|
|
64
|
-
/** 国标编码 */
|
|
65
81
|
gblbCode: string = "";
|
|
66
|
-
/** 国标名称 */
|
|
67
82
|
gblbName: string = "";
|
|
68
|
-
/** 国标编码链 */
|
|
69
83
|
codeFull: string = "";
|
|
70
|
-
/** 国标名称链 */
|
|
71
84
|
nameFull: string = "";
|
|
72
|
-
/** 国标备注 */
|
|
73
85
|
gblbMemo: string = "";
|
|
86
|
+
cardJldw: number = 0;
|
|
87
|
+
cardJldwText: string = "";
|
|
88
|
+
wtuiFormName: string = "";
|
|
89
|
+
children: IGblbResponse[] = [];
|
|
90
|
+
hasChild: boolean = false;
|
|
91
|
+
|
|
92
|
+
constructor(form?: any) {
|
|
93
|
+
if (form) {
|
|
94
|
+
_.merge(this, _.pick(form, Object.keys(this)));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
// static toTree(listUnit: IGblbResponse[]) {
|
|
98
|
+
// return construct(listUnit, { id: "gblbIndx", pid: "parentID", children: "children" }) as IGblbResponse[];
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
static toTree(listUnit: IGblbResponse[]) {
|
|
102
|
+
return construct(listUnit, { id: "gblbIndx", pid: "parentID", children: "children" }) as IGblbResponse[];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static toList(treeUnit: IGblbResponse[]) {
|
|
106
|
+
return destruct(treeUnit, { id: "gblbIndx", pid: "parentID", children: "children" }) as IGblbResponse[];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
static toTravel(gblb: IGblbResponse): TCore.ISysTravelResponse {
|
|
110
|
+
const travel = new TCore.TSysTravelResponse();
|
|
111
|
+
travel.whoBuild = gblb.whoBuild;
|
|
112
|
+
travel.flowMain = 0;
|
|
113
|
+
travel.flowNode = 0;
|
|
114
|
+
travel.billUUID = gblb.entityID;
|
|
115
|
+
travel.billMain = gblb.gblbIndx;
|
|
116
|
+
travel.billCode = gblb.gblbCode;
|
|
117
|
+
travel.mastName = gblb.mastName;
|
|
118
|
+
travel.createBy = gblb.createBy;
|
|
119
|
+
return travel;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static toTravelData(card?: IGblbResponse | IGblbResponse[]): TCore.ISysTravelResponse[] {
|
|
123
|
+
if (_.isNil(card)) {
|
|
124
|
+
return [];
|
|
125
|
+
}
|
|
126
|
+
if (_.isArray(card)) {
|
|
127
|
+
return card.map((u) => {
|
|
128
|
+
return this.toTravel(u);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return [this.toTravel(card)];
|
|
132
|
+
}
|
|
74
133
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface IP4pzResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
unitMain: number;
|
|
5
|
+
/** 年度期间 */
|
|
6
|
+
kjndKJQJ: number;
|
|
7
|
+
/** 结账年度 */
|
|
8
|
+
cardKJND: number;
|
|
9
|
+
/** 结账期间 */
|
|
10
|
+
cardKJQJ: number;
|
|
11
|
+
/** 结账标志,{1:已结账,0:未结账} */
|
|
12
|
+
cardJzbz: number;
|
|
13
|
+
dataFrom: 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
|
+
|
|
31
|
+
unitText: string;
|
|
32
|
+
cardZcyz: number; //#资产原值
|
|
33
|
+
cardZcjz: number; //#资产净值
|
|
34
|
+
cardLjzj: number; //#累计折旧
|
|
35
|
+
cardByzj: number; //#本月折旧
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class TP4pzResponse implements IP4pzResponse {
|
|
39
|
+
whoBuild: number = 0;
|
|
40
|
+
userIndx: number = 0;
|
|
41
|
+
unitMain: number = 0;
|
|
42
|
+
kjndKJQJ: number = 0;
|
|
43
|
+
cardKJND: number = 0;
|
|
44
|
+
cardKJQJ: number = 0;
|
|
45
|
+
cardJzbz: number = 0;
|
|
46
|
+
dataFrom: number = 0;
|
|
47
|
+
dataStat: number = 0;
|
|
48
|
+
dataOrdr: number = 0;
|
|
49
|
+
dataDate: number = 0;
|
|
50
|
+
dataTime: number = 0;
|
|
51
|
+
dataHide: number = 0;
|
|
52
|
+
dataGUID: string = "";
|
|
53
|
+
mastName: string = "";
|
|
54
|
+
mastGUID: string = "";
|
|
55
|
+
createBy: string = "";
|
|
56
|
+
createAt: number = 0;
|
|
57
|
+
updateBy: string = "";
|
|
58
|
+
updateAt: number = 0;
|
|
59
|
+
deleteBy: string = "";
|
|
60
|
+
deleteAt: number = 0;
|
|
61
|
+
queuesBy: number = 0;
|
|
62
|
+
entityID: string = "";
|
|
63
|
+
unitText: string = "";
|
|
64
|
+
cardZcyz: number = 0; //#资产原值
|
|
65
|
+
cardZcjz: number = 0; //#资产净值
|
|
66
|
+
cardLjzj: number = 0; //#累计折旧
|
|
67
|
+
cardByzj: number = 0; //#本月折旧
|
|
68
|
+
}
|