@ningboyz/types 1.0.0

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.
Files changed (98) hide show
  1. package/index.ts +37 -0
  2. package/package.json +25 -0
  3. package/src/app/ITab.ts +31 -0
  4. package/src/app/index.ts +6 -0
  5. package/src/base/IBaseResponse.ts +25 -0
  6. package/src/conf/IConfig.ts +25 -0
  7. package/src/const/const_audit.ts +34 -0
  8. package/src/const/const_card.ts +6 -0
  9. package/src/const/const_clas.ts +72 -0
  10. package/src/const/const_cnfg.ts +92 -0
  11. package/src/const/const_data_from.ts +14 -0
  12. package/src/const/const_elem.ts +86 -0
  13. package/src/const/const_flow.ts +7 -0
  14. package/src/const/const_gams_mode.ts +5 -0
  15. package/src/const/const_myoa.ts +18 -0
  16. package/src/const/const_part.ts +25 -0
  17. package/src/const/const_take_type.ts +9 -0
  18. package/src/const/const_todo.ts +20 -0
  19. package/src/const/const_travel.ts +8 -0
  20. package/src/const/const_type.ts +65 -0
  21. package/src/const/const_type_name.ts +137 -0
  22. package/src/const/const_user.ts +1 -0
  23. package/src/const/const_yiha.ts +32 -0
  24. package/src/const/const_zbzd.ts +10 -0
  25. package/src/const/index.ts +20 -0
  26. package/src/core/IDeptLiteResponse.ts +44 -0
  27. package/src/core/IDeptResponse.ts +98 -0
  28. package/src/core/IDictResponse.ts +106 -0
  29. package/src/core/IDictResponseDictPara.ts +7 -0
  30. package/src/core/IEnvrResponse.ts +95 -0
  31. package/src/core/ILaidResponse.ts +101 -0
  32. package/src/core/IPartResponse.ts +69 -0
  33. package/src/core/IPathResponse.ts +122 -0
  34. package/src/core/ISourceItem.ts +55 -0
  35. package/src/core/IStypResponse.ts +45 -0
  36. package/src/core/ISysClasResponse.ts +3 -0
  37. package/src/core/ISysMenuWithCoreResponse.ts +130 -0
  38. package/src/core/ISysMenuWithCoreResponseMenuPara.ts +3 -0
  39. package/src/core/ISysMenuWithExpdResponse.ts +298 -0
  40. package/src/core/ITypeResponse.ts +81 -0
  41. package/src/core/IUnitResponse.ts +138 -0
  42. package/src/core/IUnitResponseElemPara.ts +7 -0
  43. package/src/core/IUserAcnoResponse.ts +163 -0
  44. package/src/core/IUserFindResponse.ts +140 -0
  45. package/src/core/IUserResponse.ts +310 -0
  46. package/src/core/index.ts +57 -0
  47. package/src/enums/doneMode.ts +7 -0
  48. package/src/enums/editMode.ts +18 -0
  49. package/src/enums/formType.ts +8 -0
  50. package/src/enums/index.ts +7 -0
  51. package/src/enums/storeId.ts +7 -0
  52. package/src/enums/viewMode.ts +7 -0
  53. package/src/flow/IFlowDutyNodeParaConv.ts +7 -0
  54. package/src/flow/IFlowDutyResponse.ts +80 -0
  55. package/src/flow/IFlowMainResponse.ts +105 -0
  56. package/src/flow/IFlowNodeResponse.ts +203 -0
  57. package/src/flow/IFlowTypeResponse.ts +7 -0
  58. package/src/flow/IFlowVoidResponse.ts +73 -0
  59. package/src/flow/index.ts +19 -0
  60. package/src/gams/IGamsCnfgResponse.ts +69 -0
  61. package/src/gams/index.ts +7 -0
  62. package/src/gzjg/IGzjgBodyLockResponse.ts +65 -0
  63. package/src/gzjg/IGzjgGzlmLandResponse.ts +88 -0
  64. package/src/gzjg/IGzjgGzlmResponse.ts +146 -0
  65. package/src/gzjg/IGzjgGzlmResponseGzlmPara.ts +23 -0
  66. package/src/gzjg/IGzjgMainResponse.ts +195 -0
  67. package/src/gzjg/IGzjgQzgsResponse.ts +55 -0
  68. package/src/gzjg/index.ts +19 -0
  69. package/src/pzpt/IPzptCnfgResponse.ts +144 -0
  70. package/src/pzpt/IPzptItemResponse.ts +99 -0
  71. package/src/pzpt/IPzptK0kmResponse.ts +69 -0
  72. package/src/pzpt/IPzptK8kmResponse.ts +167 -0
  73. package/src/pzpt/IPzptKbkmResponse.ts +139 -0
  74. package/src/pzpt/IPzptTypeResponse.ts +84 -0
  75. package/src/pzpt/IPzptUkkmResponse.ts +87 -0
  76. package/src/pzpt/index.ts +25 -0
  77. package/src/response/IResponse.ts +8 -0
  78. package/src/store/index.ts +4 -0
  79. package/src/store/tabsState.ts +13 -0
  80. package/src/store/userState.ts +43 -0
  81. package/src/store/viewState.ts +5 -0
  82. package/src/tabl/ITablDataResponse.ts +70 -0
  83. package/src/tabl/ITablLineResponse.ts +13 -0
  84. package/src/tabl/ITablMainResponse.ts +146 -0
  85. package/src/tabl/index.ts +13 -0
  86. package/src/wldy/IWldyDataResponse.ts +60 -0
  87. package/src/wldy/IWldyItemResponse.ts +68 -0
  88. package/src/wldy/IWldyPageResponse.ts +84 -0
  89. package/src/wlzf/IWlzfEnvrResponse.ts +115 -0
  90. package/src/wlzf/index.ts +7 -0
  91. package/src/wtui/IViewCtrlResponse.ts +68 -0
  92. package/src/wtui/IWtuiMainResponse.ts +110 -0
  93. package/src/wtui/IWtuiTodoResponse.ts +67 -0
  94. package/src/wtui/IWtuiViewResponse.ts +85 -0
  95. package/src/wtui/index.ts +16 -0
  96. package/src/yzpz/IYzpzCnfgResponse.ts +77 -0
  97. package/src/yzpz/IYzpzK8kmResponse.ts +111 -0
  98. package/src/yzpz/index.ts +10 -0
@@ -0,0 +1,137 @@
1
+ export const CONST_SYS_TYPEN_RYLX = "人员类型";
2
+ export const CONST_SYS_TYPEN_KPLX = "卡片类型";
3
+ export const CONST_SYS_TYPEN_DWLX = "单位类型";
4
+ export const CONST_SYS_TYPEN_BMLX = "部门类型";
5
+ export const CONST_SYS_TYPEN_JLDW = "计量单位";
6
+ export const CONST_SYS_TYPEN_DYMB = "打印模板";
7
+ export const CONST_SYS_TYPEN_DBSX = "待办事项";
8
+ export const CONST_SYS_TYPEN_PJLX = "票据类型";
9
+ export const CONST_SYS_TYPEN_YHLX = "银行类型";
10
+ export const CONST_SYS_TYPEN_ZFFS = "支付方式";
11
+ export const CONST_SYS_TYPEN_NOTI = "通知分类";
12
+ export const CONST_SYS_TYPEN_ZWLX = "职称类型";
13
+ export const CONST_SYS_TYPEN_BZZT = "编制状态";
14
+ export const CONST_SYS_TYPEN_WJLX = "文档分类";
15
+ export const CONST_SYS_TYPEN_CTRL = "操作权限";
16
+ export const CONST_SYS_TYPEN_MLQX = "目录权限";
17
+ export const CONST_SYS_TYPEN_STAR = "收藏结构";
18
+ export const CONST_SYS_TYPEN_WDHZ = "文档后缀";
19
+ export const CONST_SYS_TYPEN_ZTXZ = "账套性质";
20
+ export const CONST_SYS_TYPEN_MYOA = "请假类型";
21
+ export const CONST_SYS_TYPEN_XMLX = "项目类型";
22
+ export const CONST_SYS_TYPEN_KHLX = "考核类型";
23
+ export const CONST_SYS_TYPEN_XMJD = "项目节点";
24
+ export const CONST_SYS_TYPEN_FJLX = "附件分类";
25
+ export const CONST_SYS_TYPEN_TXGJ = "交通工具";
26
+ export const CONST_SYS_TYPEN_ZWZC = "职位职称";
27
+ export const CONST_SYS_TYPEN_CGML = "采购目录";
28
+ export const CONST_SYS_TYPEN_CGFS = "采购方式";
29
+ export const CONST_SYS_TYPEN_XMLB = "项目类别";
30
+ export const CONST_SYS_TYPEN_XMXZ = "项目性质";
31
+ export const CONST_SYS_TYPEN_TZLX = "投资类型";
32
+ export const CONST_SYS_TYPEN_YWLX = "业务类型";
33
+ export const CONST_SYS_TYPEN_SZLX = "师资类型";
34
+ export const CONST_SYS_TYPEN_SXLX = "事项类型";
35
+ export const CONST_SYS_TYPEN_CCLB = "出差类别";
36
+ export const CONST_SYS_TYPEN_QTFYBZZX = "其他费用(保障)";
37
+
38
+ export const CONST_SYS_TYPEN_BZXS = "保证金形式";
39
+ export const CONST_SYS_TYPEN_BZLX = "保证金类型";
40
+ export const CONST_SYS_TYPEN_XMGM = "项目规模";
41
+ export const CONST_SYS_TYPEN_ZZXS = "组织形式";
42
+ export const CONST_SYS_TYPEN_HTFL = "合并分类";
43
+ export const CONST_SYS_TYPEN_XKLV = "学科级别";
44
+ export const CONST_SYS_TYPEN_GGMJ = "公告媒介";
45
+ export const CONST_SYS_TYPEN_CGJD = "采购进度";
46
+ export const CONST_SYS_TYPEN_KZZD = "扩展字典";
47
+
48
+ export const CONST_SYS_TYPEU_RYLX_GYSFL = "人员类型-供应商分类";
49
+ export const CONST_SYS_TYPEU_KHLX_SFDL = "客户类型-是否代理";
50
+ export const CONST_SYS_TYPEU_XMLX = "项目立项";
51
+ export const CONST_SYS_TYPEU_XMJG = "项目竣工";
52
+ export const CONST_SYS_TYPEU_CGSQ = "采购申请";
53
+ export const CONST_SYS_TYPEU_CGGZ = "采购跟踪";
54
+ export const CONST_SYS_TYPEU_HTDL = "合同申请";
55
+ export const CONST_SYS_TYPEU_HTBL = "合同补录";
56
+ export const CONST_SYS_TYPEU_HTYS = "合同验收";
57
+ export const CONST_SYS_TYPEU_HTQD = "合同签订";
58
+
59
+ export const CONST_SYS_TYPEU_RKDJ = "物资入库";
60
+ export const CONST_SYS_TYPEU_LYSQ = "领用申请";
61
+ export const CONST_SYS_TYPEU_WZCS = "物资初始";
62
+ export const CONST_SYS_TYPEU_CKDJ = "出库登记";
63
+
64
+ export const CONST_SYS_TYPEU_ZBZD = "指标申请";
65
+
66
+ export const CONST_SYS_TYPEN_CCLX = "出差类型";
67
+ export const CONST_SYS_TYPEN_QTFY = "其他费用";
68
+
69
+ export const CONST_SYS_TYPEU_GZZD = "工资采集";
70
+
71
+ export const CONST_SYS_TYPEN_事权财权 = "事权财权";
72
+ export const CONST_SYS_TYPEN_招商属地 = "招商属地";
73
+
74
+ /**
75
+ * 以下为扩展字典
76
+ */
77
+
78
+ export const CONST_SYS_TYPEN_JSFS = "结算方式";
79
+
80
+ export const CONST_SYS_TYPEN_FLOW_TYPE = "审核流程-退回类别";
81
+ export const CONST_SYS_TYPEN_FLOW_WILL = "审核流程-流程标记";
82
+
83
+ export const CONST_SYS_TYPEU_CLGL_CLYT = "车辆管理-车辆用途";
84
+ export const CONST_SYS_TYPEU_CLGL_CLLX = "车辆管理-车辆类型";
85
+ export const CONST_SYS_TYPEU_CLGL_QCLX = "车辆管理-汽车类型";
86
+ export const CONST_SYS_TYPEU_CLGL_CLZT = "车辆管理-车辆状态";
87
+ export const CONST_SYS_TYPEU_CLGL_CXFW = "车辆管理-出行范围";
88
+ export const CONST_SYS_TYPEU_CLGL_CLZW = "车辆管理-车辆座位";
89
+ export const CONST_SYS_TYPEU_CLGL_NJDD = "车辆管理-年检地点";
90
+ export const CONST_SYS_TYPEU_CLGL_JYYH = "车辆管理-加油油号";
91
+ export const CONST_SYS_TYPEU_CLGL_SYDW = "车辆管理-使用单位";
92
+ export const CONST_SYS_TYPEU_CLGL_CLXZ = "车辆管理-车辆性质";
93
+ export const CONST_SYS_TYPEU_CLGL_TBDW = "车辆管理-投保单位";
94
+ export const CONST_SYS_TYPEU_CLGL_BSQLX = "车辆管理-变速器类型";
95
+ export const CONST_SYS_TYPEU_CLGL_SQSY = "车辆管理-申请事由";
96
+ export const CONST_SYS_TYPEU_YEBJF_BB = "幼儿保教费-班别";
97
+ export const CONST_SYS_TYPEU_EXPD_JBPX_LWFLX = "举办培训-劳务费类型";
98
+ export const CONST_SYS_TYPEU_EXPD_CCSP_CCQX = "出差-出差情形";
99
+ export const CONST_SYS_TYPEU_YZCQ_CTLX = "抽签-重投类型";
100
+ export const CONST_SYS_TYPEU_CLGL_DLLX = "车辆管理-动力类型";
101
+ export const CONST_SYS_TYPEU_CLGL_QDFS = "车辆管理-取得方式";
102
+ export const CONST_SYS_TYPEU_ZFQD = "支付渠道";
103
+
104
+ export const CONST_SYS_TYPEU_ZBGL_ZBFL = "装备管理-装备分类";
105
+ export const CONST_SYS_TYPEU_ZBFL_ZBFL = "装备分类-装备分类";
106
+ export const CONST_SYS_TYPEU_SFZB_ZBBZ = "是否装备-装备备注";
107
+ export const CONST_SYS_TYPEU_YJQR_QRSX = "意见确认-确认事项";
108
+
109
+ export const CONST_SYS_TYPEU_保障中心_核算状态 = "保障中心-核算状态";
110
+ export const CONST_SYS_TYPEU_保障中心_项目类型 = "保障中心-项目类型";
111
+ export const CONST_SYS_TYPEU_保障中心_所属区域 = "保障中心-所属区域";
112
+ export const CONST_SYS_TYPEU_保障中心_追加类型 = "保障中心-追加类型";
113
+ export const CONST_SYS_TYPEU_保障中心_招标方式 = "保障中心-招标方式";
114
+ export const CONST_SYS_TYPEU_保障中心_发票类型 = "保障中心-发票类型";
115
+ export const CONST_SYS_TYPEU_保障中心_费用类型 = "保障中心-费用类型";
116
+ export const CONST_SYS_TYPEU_保障中心_监理方 = "保障中心-监理方";
117
+ export const CONST_SYS_TYPEU_保障中心_单位类型 = "保障中心-单位类型";
118
+
119
+ export const CONST_SYS_TYPEU_其他费用_经费性质 = "其他费用-经费性质";
120
+ export const CONST_SYS_TYPEU_其他申报_业务类型 = "其他申报-业务类型";
121
+ export const CONST_SYS_TYPEU_TO_人员类型_供应商分类 = "人员类型-供应商分类";
122
+ export const CONST_SYS_TYPEU_审核流程_退回类别 = "审核流程-退回类别";
123
+
124
+ export const CONST_SYS_TYPEU_税源分析_分成 = "税源分析-分成";
125
+
126
+ export const CONST_SYS_TYPEU_HTGL_HTXZ = "合同管理-合同性质";
127
+ export const CONST_SYS_TYPEU_HTGL_HTZL = "合同管理-合同种类";
128
+ export const CONST_SYS_TYPEU_HTGL_HTBD = "合同管理-合同标的";
129
+ export const CONST_SYS_TYPEU_HTGL_JFHTDQTX = "合同管理-甲方合同到期提醒";
130
+
131
+ export const CONST_SYS_TYPEU_慰问审批_业务类型 = "慰问审批-业务类型";
132
+
133
+ export const CONST_SYS_TYPEU_扩展字典_经费类型 = "扩展字典-经费类型";
134
+ export const CONST_SYS_TYPEU_其他费用_评审类型 = "其他费用-评审类型";
135
+ export const CONST_SYS_TYPEU_事项管理_就餐场所 = "事项管理-就餐场所";
136
+ export const CONST_SYS_TYPEU_举办会议_会议地点 = "举办会议-会议地点";
137
+ export const CONST_SYS_TYPEU_包干经费支出 = "包干经费支出";
@@ -0,0 +1 @@
1
+ export const LOGIN_USER: string = "LOGIN_USER";
@@ -0,0 +1,32 @@
1
+ export const CONST_WLZF_TYIHA_NBYH_YIHA_CODE = "NBYH";
2
+ export const CONST_WLZF_TYIHA_NBYH_YIHA_NAME = "宁波银行";
3
+
4
+ export const CONST_WLZF_TYIHA_YZYH_YIHA_CODE = "YZYH";
5
+ export const CONST_WLZF_TYIHA_YZYH_YIHA_NAME = "鄞州银行";
6
+
7
+ export const CONST_WLZF_TYIHA_PFYH_YIHA_CODE = "PFYH";
8
+ export const CONST_WLZF_TYIHA_PFYH_YIHA_NAME = "浦发银行";
9
+
10
+ export const CONST_WLZF_TYIHA_NYYH_YIHA_CODE = "NYYH";
11
+ export const CONST_WLZF_TYIHA_NYYH_YIHA_NAME = "农业银行";
12
+
13
+ export const CONST_WLZF_TYIHA_GSYH_YIHA_CODE = "GSYH";
14
+ export const CONST_WLZF_TYIHA_GSYH_YIHA_NAME = "工商银行";
15
+
16
+ export const CONST_WLZF_TYIHA_ZGYH_YIHA_CODE = "ZGYH";
17
+ export const CONST_WLZF_TYIHA_ZGYH_YIHA_NAME = "中国银行";
18
+
19
+ export const CONST_WLZF_TYIHA_JSYH_YIHA_CODE = "JSYH";
20
+ export const CONST_WLZF_TYIHA_JSYH_YIHA_NAME = "建设银行";
21
+
22
+ export const CONST_WLZF_TYIHA_JTYH_YIHA_CODE = "JTYH";
23
+ export const CONST_WLZF_TYIHA_JTYH_YIHA_NAME = "交通银行";
24
+
25
+ export const CONST_WLZF_TYIHA_ZXYH_YIHA_CODE = "ZXYH";
26
+ export const CONST_WLZF_TYIHA_ZXYH_YIHA_NAME = "中信银行";
27
+
28
+ export const CONST_WLZF_TYIHA_ZJNX_YIHA_CODE = "ZJNX";
29
+ export const CONST_WLZF_TYIHA_ZJNX_YIHA_NAME = "农信联社";
30
+
31
+ export const CONST_WLZF_TYIHA_ZSYH_YIHA_CODE = "ZSYH";
32
+ export const CONST_WLZF_TYIHA_ZSYH_YIHA_NAME = "浙商银行";
@@ -0,0 +1,10 @@
1
+ export const CONST_ZBZD_ZBZD_FROM_TYPE = 0; // #手工录入
2
+ export const CONST_ZBZD_ZBZD_FROM_YZBZ = 1; // #预算编制
3
+ export const CONST_ZBZD_ZBZD_FROM_ZBFJ = 2; // #指标分解
4
+
5
+ export const CONST_ZBZD_FROM_TEXT_YZBZ = "预算编制";
6
+ export const CONST_ZBZD_FROM_TEXT_ZBFJ = "指标分解";
7
+
8
+ export const CONST_ZBHD_MAIN_ZBHD_CTRL_TO_默认严格 = 0;
9
+ export const CONST_ZBHD_MAIN_ZBHD_CTRL_TO_警告模式 = 1;
10
+ export const CONST_ZBHD_MAIN_ZBHD_CTRL_TO_严格模式 = 2;
@@ -0,0 +1,20 @@
1
+ import * as Audit from "./const_audit";
2
+ import * as Card from "./const_card";
3
+ import * as Clas from "./const_clas";
4
+ import * as Cnfg from "./const_cnfg";
5
+ import * as DataFrom from "./const_data_from";
6
+ import * as Elem from "./const_elem";
7
+ import * as Flow from "./const_flow";
8
+ import * as GamsMode from "./const_gams_mode";
9
+ import * as Myoa from "./const_myoa";
10
+ import * as Part from "./const_part";
11
+ import * as TakeType from "./const_take_type";
12
+ import * as Todo from "./const_todo";
13
+ import * as Travel from "./const_travel";
14
+ import * as TypeName from "./const_type_name";
15
+ import * as Type from "./const_type";
16
+ import * as User from "./const_user";
17
+ import * as Yiha from "./const_yiha";
18
+ import * as Zbzd from "./const_zbzd";
19
+
20
+ export { Audit, Card, Clas, Cnfg, DataFrom, Elem, Flow, GamsMode, Myoa, Part, TakeType, Todo, Travel, TypeName, Type, User, Yiha, Zbzd };
@@ -0,0 +1,44 @@
1
+ import { construct, destruct } from "@aximario/json-tree";
2
+ import _ from "lodash";
3
+ import type { IBaseResponse } from "../base/IBaseResponse";
4
+ import { TBaseResponse } from "../base/IBaseResponse";
5
+
6
+ export interface IDeptLiteResponse extends IBaseResponse<IDeptLiteResponse[]> {
7
+ whoBuild: number; // #用户实例
8
+ userIndx: number; // #用户实例
9
+ uniqueID: number;
10
+ parentID: number; // @父级标识
11
+ entityID: string;
12
+ showCode: string;
13
+ showName: string;
14
+ codeFull: string;
15
+ nameFull: string;
16
+ nameLite: string;
17
+ asParent: number;
18
+ vitualID: number;
19
+ unitMain: number;
20
+ }
21
+
22
+ export class TDeptLiteResponse extends TBaseResponse<IDeptLiteResponse[]> implements IDeptLiteResponse {
23
+ whoBuild: number = 0; // #用户实例
24
+ userIndx: number = 0; // #用户实例
25
+ uniqueID: number = 0;
26
+ parentID: number = 0; // @父级标识
27
+ entityID: string = "";
28
+ showCode: string = "";
29
+ showName: string = "";
30
+ codeFull: string = "";
31
+ nameFull: string = "";
32
+ nameLite: string = "";
33
+ asParent: number = 0;
34
+ vitualID: number = 0;
35
+ unitMain: number = 0;
36
+
37
+ public static toTree(listDept: IDeptLiteResponse[]) {
38
+ return construct(listDept, { id: "uniqueID", pid: "parentID", children: "children" }) as IDeptLiteResponse[];
39
+ }
40
+
41
+ public static toList(treeDept: IDeptLiteResponse[]) {
42
+ return destruct(treeDept, { id: "uniqueID", pid: "parentID", children: "children" }) as IDeptLiteResponse[];
43
+ }
44
+ }
@@ -0,0 +1,98 @@
1
+ import { construct, destruct } from "@aximario/json-tree";
2
+ import type { IBaseResponse } from "../base/IBaseResponse";
3
+ import { TBaseResponse } from "../base/IBaseResponse";
4
+ import type { IDictResponse } from "./IDictResponse";
5
+
6
+ export interface IDeptResponse extends IBaseResponse<IDeptResponse[]> {
7
+ codeFull: string;
8
+ createAt: number;
9
+ createBy: string;
10
+ dataDate: number;
11
+ dataFrom: number;
12
+ dataGUID: string;
13
+ dataHide: number;
14
+ dataLevl: number;
15
+ dataOrdr: number;
16
+ dataStat: number;
17
+ dataTime: number;
18
+ dataType: number;
19
+ deleteAt: number;
20
+ deleteBy: string;
21
+ deptCall: string;
22
+ deptCode: string;
23
+ deptGnkm: string;
24
+ deptIndx: number;
25
+ deptMast: string;
26
+ deptMemo: string;
27
+ deptName: string;
28
+ deptTypeText: string;
29
+ entityID: string;
30
+ gkbmText: string;
31
+ hashCode: number;
32
+ isLasted: number;
33
+ kjndKJQJ: number;
34
+ mastGUID: string;
35
+ mastName: string;
36
+ nameFull: string;
37
+ parentID: number;
38
+ uniqueID: number;
39
+ unitMain: number;
40
+ updateAt: number;
41
+ updateBy: string;
42
+ userIndx: number;
43
+ whoBuild: number;
44
+ matchVal: string;
45
+ queuesBy: number;
46
+ listBMLX: Array<IDictResponse>;
47
+ }
48
+
49
+ export class TDeptResponse extends TBaseResponse<IDeptResponse[]> implements IDeptResponse {
50
+ codeFull: string = "";
51
+ createAt: number = 0;
52
+ createBy: string = "";
53
+ dataDate: number = 0;
54
+ dataFrom: number = 0;
55
+ dataGUID: string = "";
56
+ dataHide: number = 0;
57
+ dataLevl: number = 0;
58
+ dataOrdr: number = 0;
59
+ dataStat: number = 0;
60
+ dataTime: number = 0;
61
+ dataType: number = 0;
62
+ deleteAt: number = 0;
63
+ deleteBy: string = "";
64
+ deptCall: string = "";
65
+ deptCode: string = "";
66
+ deptGnkm: string = "";
67
+ deptIndx: number = 0;
68
+ deptMast: string = "";
69
+ deptMemo: string = "";
70
+ deptName: string = "";
71
+ deptTypeText: string = "";
72
+ entityID: string = "";
73
+ gkbmText: string = "";
74
+ hashCode: number = 0;
75
+ isLasted: number = 0;
76
+ kjndKJQJ: number = 0;
77
+ mastGUID: string = "";
78
+ mastName: string = "";
79
+ nameFull: string = "";
80
+ parentID: number = 0;
81
+ uniqueID: number = 0;
82
+ unitMain: number = 0;
83
+ updateAt: number = 0;
84
+ updateBy: string = "";
85
+ userIndx: number = 0;
86
+ whoBuild: number = 0;
87
+ matchVal: string = "";
88
+ queuesBy: number = 0;
89
+ listBMLX: IDictResponse[] = [];
90
+
91
+ public static toTree(listDept: IDeptResponse[]) {
92
+ return construct(listDept, { id: "deptIndx", pid: "parentID", children: "children" }) as IDeptResponse[];
93
+ }
94
+
95
+ public static toList(treeDept: IDeptResponse[]) {
96
+ return destruct(treeDept, { id: "deptIndx", pid: "parentID", children: "children" }) as IDeptResponse[];
97
+ }
98
+ }
@@ -0,0 +1,106 @@
1
+ import { construct, destruct } from "@aximario/json-tree";
2
+ import _ from "lodash";
3
+ import { type IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
4
+ import type { IDictResponseDictPara } from "./IDictResponseDictPara";
5
+ import { TDictResponseDictPara } from "./IDictResponseDictPara";
6
+
7
+ export interface IDictResponse extends IBaseResponse<IDictResponse[]> {
8
+ asParent: number;
9
+ codeFull: string;
10
+ createAt: number;
11
+ createBy: string;
12
+ dataDate: number;
13
+ dataFrom: number;
14
+ dataGUID: string;
15
+ dataHide: number;
16
+ dataLevl: number;
17
+ dataOrdr: number;
18
+ dataStat: number;
19
+ dataTime: number;
20
+ deleteAt: number;
21
+ deleteBy: string;
22
+ dictCode: string;
23
+ dictIndx: number;
24
+ dictMemo: string;
25
+ dictName: string;
26
+ dictPara: string;
27
+ entityID: string;
28
+ fromType: number;
29
+ hashCode: number;
30
+ isLasted: number;
31
+ kjndKJQJ: number;
32
+ mastGUID: string;
33
+ mastName: string;
34
+ menuMain: number;
35
+ metaData: string;
36
+ nameFull: string;
37
+ nsdwText: string;
38
+ parentID: number;
39
+ queuesBy: number;
40
+ sysPartc: number;
41
+ sysTypec: number;
42
+ typeIndx: number;
43
+ typeName: string;
44
+ typeUses: string;
45
+ unitText: string;
46
+ updateAt: number;
47
+ updateBy: string;
48
+ userIndx: number;
49
+ whoBuild: number;
50
+ readOnly: boolean;
51
+ dictParaConv: IDictResponseDictPara;
52
+ }
53
+
54
+ export class TDictResponse extends TBaseResponse<IDictResponse[]> implements IDictResponse {
55
+ asParent: number = 0;
56
+ codeFull: string = "";
57
+ createAt: number = 0;
58
+ createBy: string = "";
59
+ dataDate: number = 0;
60
+ dataFrom: number = 0;
61
+ dataGUID: string = "";
62
+ dataHide: number = 0;
63
+ dataLevl: number = 0;
64
+ dataOrdr: number = 0;
65
+ dataStat: number = 0;
66
+ dataTime: number = 0;
67
+ deleteAt: number = 0;
68
+ deleteBy: string = "";
69
+ dictCode: string = "";
70
+ dictIndx: number = 0;
71
+ dictMemo: string = "";
72
+ dictName: string = "";
73
+ dictPara: string = "";
74
+ entityID: string = "";
75
+ fromType: number = 0;
76
+ hashCode: number = 0;
77
+ isLasted: number = 0;
78
+ kjndKJQJ: number = 0;
79
+ mastGUID: string = "";
80
+ mastName: string = "";
81
+ menuMain: number = 0;
82
+ metaData: string = "";
83
+ nameFull: string = "";
84
+ nsdwText: string = "";
85
+ parentID: number = 0;
86
+ queuesBy: number = 0;
87
+ sysPartc: number = 0;
88
+ sysTypec: number = 0;
89
+ typeIndx: number = 0;
90
+ typeName: string = "";
91
+ typeUses: string = "";
92
+ unitText: string = "";
93
+ updateAt: number = 0;
94
+ updateBy: string = "";
95
+ userIndx: number = 0;
96
+ whoBuild: number = 0;
97
+ dictParaConv: IDictResponseDictPara = new TDictResponseDictPara();
98
+
99
+ public static toTree(listDict: IDictResponse[]) {
100
+ return construct(listDict, { id: "dictIndx", pid: "parentID", children: "children" }) as IDictResponse[];
101
+ }
102
+
103
+ public static toList(listDict: IDictResponse[]) {
104
+ return destruct(listDict, { id: "dictIndx", pid: "parentID", children: "children" }) as IDictResponse[];
105
+ }
106
+ }
@@ -0,0 +1,7 @@
1
+ export interface IDictResponseDictPara {
2
+
3
+ }
4
+
5
+ export class TDictResponseDictPara implements IDictResponseDictPara {
6
+
7
+ }
@@ -0,0 +1,95 @@
1
+ export interface IEnvrResponse {
2
+ accessID: string;
3
+ asReally: number;
4
+ createAt: number;
5
+ createBy: string;
6
+ custCode: string;
7
+ custName: string;
8
+ dataBase: string;
9
+ dataDate: number;
10
+ dataFrom: number;
11
+ dataGUID: string;
12
+ dataHide: number;
13
+ dataLevl: number;
14
+ dataOrdr: number;
15
+ dataStat: number;
16
+ dataTime: number;
17
+ dataType: number;
18
+ deleteAt: number;
19
+ deleteBy: string;
20
+ entityID: string;
21
+ envrIndx: number;
22
+ envrMemo: string;
23
+ envrName: string;
24
+ envrPath: string;
25
+ frontEnd: string;
26
+ hashCode: number;
27
+ inUseTLS: number;
28
+ isLasted: number;
29
+ kjndKJQJ: number;
30
+ lastTime: number;
31
+ mastGUID: string;
32
+ mastName: string;
33
+ metaData: string;
34
+ parentID: number;
35
+ queuesBy: number;
36
+ secretID: string;
37
+ sysCustc: number;
38
+ sysEnvrc: number;
39
+ updateAt: number;
40
+ updateBy: string;
41
+ urlCloud: string;
42
+ userIndx: number;
43
+ userName: string;
44
+ userPswd: string;
45
+ usesAuto: number;
46
+ whoBuild: number;
47
+ }
48
+
49
+ export class TEnvrResponse implements IEnvrResponse {
50
+ accessID: string = "";
51
+ asReally: number = 0;
52
+ createAt: number = 0;
53
+ createBy: string = "";
54
+ custCode: string = "";
55
+ custName: string = "";
56
+ dataBase: string = "";
57
+ dataDate: number = 0;
58
+ dataFrom: number = 0;
59
+ dataGUID: string = "";
60
+ dataHide: number = 0;
61
+ dataLevl: number = 0;
62
+ dataOrdr: number = 0;
63
+ dataStat: number = 0;
64
+ dataTime: number = 0;
65
+ dataType: number = 0;
66
+ deleteAt: number = 0;
67
+ deleteBy: string = "";
68
+ entityID: string = "";
69
+ envrIndx: number = 0;
70
+ envrMemo: string = "";
71
+ envrName: string = "";
72
+ envrPath: string = "";
73
+ frontEnd: string = "";
74
+ hashCode: number = 0;
75
+ inUseTLS: number = 0;
76
+ isLasted: number = 0;
77
+ kjndKJQJ: number = 0;
78
+ lastTime: number = 0;
79
+ mastGUID: string = "";
80
+ mastName: string = "";
81
+ metaData: string = "";
82
+ parentID: number = 0;
83
+ queuesBy: number = 0;
84
+ secretID: string = "";
85
+ sysCustc: number = 0;
86
+ sysEnvrc: number = 0;
87
+ updateAt: number = 0;
88
+ updateBy: string = "";
89
+ urlCloud: string = "";
90
+ userIndx: number = 0;
91
+ userName: string = "";
92
+ userPswd: string = "";
93
+ usesAuto: number = 0;
94
+ whoBuild: number = 0;
95
+ }
@@ -0,0 +1,101 @@
1
+ import { construct, destruct } from "@aximario/json-tree";
2
+ import type { IBaseResponse } from "../base/IBaseResponse";
3
+ import { TBaseResponse } from "../base/IBaseResponse";
4
+
5
+ export interface ILaidResponse extends IBaseResponse<ILaidResponse> {
6
+ whoBuild: number;
7
+ userIndx: number;
8
+ laidIndx: number;
9
+ parentID: number;
10
+ hashCode: number;
11
+ dataLevl: number;
12
+ dataStat: number;
13
+ dataOrdr: number;
14
+ dataDate: number;
15
+ dataTime: number;
16
+ dataHide: number;
17
+ dataFrom: number;
18
+ kjndKJQJ: 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
+ entityID: string; // #唯一标识{xx-xx-xx-xx-xx}
29
+ laidCode: string; // #存放地点.编码
30
+ codeFull: string;
31
+ laidName: string; // #存放地点.名称
32
+ nameFull: string;
33
+ laidMemo: string; // #存放地点.备注
34
+
35
+ unitMain: number; // #单位标识
36
+ wldyMain: number; // #网络终端.标识{1号柜,2号柜...}
37
+ wldyName: string; // #网络终端.名称
38
+ matchKey: string; // #匹配标识
39
+ laidStat: number; // #储物格状态{0:空格;1:满格}
40
+ readerID: string; // #1,2,3,
41
+
42
+ cardName: string; // #资产名称
43
+ cardCode: string; // #资产编码
44
+ coverURL: string; // #资产封面
45
+ autoCpbh: string; // #车牌号
46
+
47
+ takeType: number; // , 默认0, -1:出库, 1:入库;
48
+ }
49
+
50
+ export class TLaidResponse extends TBaseResponse<ILaidResponse> implements ILaidResponse {
51
+ whoBuild: number = 0;
52
+ userIndx: number = 0;
53
+ laidIndx: number = 0;
54
+ parentID: number = 0;
55
+ hashCode: number = 0;
56
+ dataLevl: number = 0;
57
+ dataStat: number = 0;
58
+ dataOrdr: number = 0;
59
+ dataDate: number = 0;
60
+ dataTime: number = 0;
61
+ dataHide: number = 0;
62
+ dataFrom: number = 0;
63
+ kjndKJQJ: number = 0;
64
+ dataGUID: string = "";
65
+ mastName: string = "";
66
+ mastGUID: string = "";
67
+ createBy: string = "";
68
+ createAt: number = 0;
69
+ updateBy: string = "";
70
+ updateAt: number = 0;
71
+ deleteBy: string = "";
72
+ deleteAt: number = 0;
73
+ entityID: string = "";
74
+ laidCode: string = "";
75
+ codeFull: string = "";
76
+ laidName: string = "";
77
+ nameFull: string = "";
78
+ laidMemo: string = "";
79
+
80
+ unitMain: number = 0;
81
+ wldyMain: number = 0;
82
+ wldyName: string = "";
83
+ matchKey: string = "";
84
+ laidStat: number = 0;
85
+
86
+ readerID: string = "";
87
+
88
+ cardName: string = "";
89
+ cardCode: string = "";
90
+ coverURL: string = "";
91
+ autoCpbh: string = "";
92
+ takeType: number = 0;
93
+
94
+ public static toTree(listLaid: ILaidResponse[]) {
95
+ return construct(listLaid, { id: "laidIndx", pid: "parentID", children: "children" }) as ILaidResponse[];
96
+ }
97
+
98
+ public static toList(treeLaid: ILaidResponse[]) {
99
+ return destruct(treeLaid, { id: "laidIndx", pid: "parentID", children: "children" }) as ILaidResponse[];
100
+ }
101
+ }