@ningboyz/types 1.0.21 → 1.0.23
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/ICardMainResponse.ts +256 -130
- package/src/card/IGblbResponse.ts +64 -5
- package/src/card/IP4pzResponse.ts +68 -0
- package/src/card/IZcbdResponse.ts +103 -9
- package/src/card/IZccfResponse.ts +141 -3
- package/src/card/IZcczResponse.ts +134 -0
- package/src/card/IZcdbResponse.ts +149 -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 +18 -6
- package/src/conf/IConfig.ts +1 -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 +29 -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 +99 -5
- package/src/core/IUserLiteResponse.ts +2 -0
- package/src/core/IUserResponse.ts +29 -0
- package/src/core/index.ts +8 -0
- package/src/enums/btnMode.ts +82 -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/IFlowUservoidResponse.ts +35 -0
- package/src/flow/index.ts +3 -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
|
@@ -5,6 +5,8 @@ import type { IDictResponse } from "./IDictResponse";
|
|
|
5
5
|
import type { IUnitResponse } from "./IUnitResponse";
|
|
6
6
|
import type { IUserAcnoResponse } from "./IUserAcnoResponse";
|
|
7
7
|
import type { IPartResponse } from "./IPartResponse";
|
|
8
|
+
import { TCore } from "../../index.ts";
|
|
9
|
+
import _ from "lodash";
|
|
8
10
|
|
|
9
11
|
export interface IUserResponse extends IBaseResponse<IUserResponse[]> {
|
|
10
12
|
whoBuild: number; // #PK
|
|
@@ -201,6 +203,7 @@ export class TUserResponse extends TBaseResponse<IUserResponse[]> implements IUs
|
|
|
201
203
|
userMemo: string = "";
|
|
202
204
|
userName: string = "";
|
|
203
205
|
userRzrq: number = 0;
|
|
206
|
+
/** 启用状态 1启用 -1停用 */
|
|
204
207
|
userStat: number = 0;
|
|
205
208
|
usesKJND: number = 0;
|
|
206
209
|
usesKJQJ: number = 0;
|
|
@@ -270,6 +273,32 @@ export class TUserResponse extends TBaseResponse<IUserResponse[]> implements IUs
|
|
|
270
273
|
public static toList(treeUser: IUserResponse[]) {
|
|
271
274
|
return construct(treeUser, { id: "userIndx", pid: "parentID", children: "children" }) as IUserResponse[];
|
|
272
275
|
}
|
|
276
|
+
|
|
277
|
+
static toTravel(user: IUserResponse): TCore.ISysTravelResponse {
|
|
278
|
+
const travel = new TCore.TSysTravelResponse();
|
|
279
|
+
travel.whoBuild = user.whoBuild;
|
|
280
|
+
travel.flowMain = 0;
|
|
281
|
+
travel.flowNode = 0;
|
|
282
|
+
travel.billUUID = user.entityID;
|
|
283
|
+
travel.billMain = user.userIndx;
|
|
284
|
+
travel.billCode = user.userCode;
|
|
285
|
+
travel.mastName = user.mastName;
|
|
286
|
+
travel.createBy = user.createBy;
|
|
287
|
+
return travel;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** 转化成记录日志需要的数据 */
|
|
291
|
+
static toTravelData(card?: IUserResponse | IUserResponse[]): TCore.ISysTravelResponse[] {
|
|
292
|
+
if (_.isNil(card)) {
|
|
293
|
+
return [];
|
|
294
|
+
}
|
|
295
|
+
if (_.isArray(card)) {
|
|
296
|
+
return card.map((u) => {
|
|
297
|
+
return this.toTravel(u);
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
return [this.toTravel(card)];
|
|
301
|
+
}
|
|
273
302
|
}
|
|
274
303
|
|
|
275
304
|
export interface WithEXPD {
|
package/src/core/index.ts
CHANGED
|
@@ -17,8 +17,11 @@ import { IUserResponse, TUserResponse } from "./IUserResponse";
|
|
|
17
17
|
import { IEnvrResponse, TEnvrResponse } from "./IEnvrResponse";
|
|
18
18
|
import { IUserLiteResponse, TUserLiteResponse } from "./IUserLiteResponse";
|
|
19
19
|
import { IUserSzdwResponse, TUserSzdwResponse } from "./IUserSzdwResponse";
|
|
20
|
+
import { ICoreValidResponse, TCoreValidResponse } from "./ICoreValidResponse";
|
|
21
|
+
import { ISysTravelResponse, TSysTravelResponse, ISysTravelWithParaResponse, TSysTravelWithParaResponse } from "./ISysTravelResponse";
|
|
20
22
|
|
|
21
23
|
export {
|
|
24
|
+
type ICoreValidResponse,
|
|
22
25
|
// 接口
|
|
23
26
|
type IDeptLiteResponse,
|
|
24
27
|
type IDeptResponse,
|
|
@@ -32,6 +35,8 @@ export {
|
|
|
32
35
|
type ISysClasResponse,
|
|
33
36
|
type ISysMenuWithCoreResponse,
|
|
34
37
|
type ISysMenuWithExpdResponse,
|
|
38
|
+
type ISysTravelResponse,
|
|
39
|
+
type ISysTravelWithParaResponse,
|
|
35
40
|
type ITypeResponse,
|
|
36
41
|
type IUnitResponse,
|
|
37
42
|
type IUserAcnoResponse,
|
|
@@ -41,6 +46,7 @@ export {
|
|
|
41
46
|
type IUserSzdwResponse,
|
|
42
47
|
|
|
43
48
|
// 类
|
|
49
|
+
TCoreValidResponse,
|
|
44
50
|
TDeptLiteResponse,
|
|
45
51
|
TDeptResponse,
|
|
46
52
|
TDictResponse,
|
|
@@ -53,6 +59,8 @@ export {
|
|
|
53
59
|
TSysClasResponse,
|
|
54
60
|
TSysMenuWithCoreResponse,
|
|
55
61
|
TSysMenuWithExpdResponse,
|
|
62
|
+
TSysTravelResponse,
|
|
63
|
+
TSysTravelWithParaResponse,
|
|
56
64
|
TTypeResponse,
|
|
57
65
|
TUnitResponse,
|
|
58
66
|
TUserAcnoResponse,
|
package/src/enums/btnMode.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* 新增、修改、审核、查询、确定---蓝色(primary)
|
|
2
3
|
*
|
|
3
4
|
* 导出、打印 ---黄色(warning)
|
|
4
5
|
*
|
|
@@ -8,12 +9,90 @@
|
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
export enum TBtnActive {
|
|
11
|
-
/**
|
|
12
|
+
/** 新增、修改、审核、查询、确定、刷新---蓝色 */
|
|
12
13
|
primary = "primary",
|
|
13
14
|
/** 导出、打印 ---黄色*/
|
|
14
15
|
warning = "warning",
|
|
15
16
|
/** 导入、其他、角色---绿色 */
|
|
16
17
|
success = "success",
|
|
17
18
|
/** 删除、退回---红色 */
|
|
18
|
-
error = "error"
|
|
19
|
+
error = "error",
|
|
20
|
+
info = "info",
|
|
21
|
+
danger = "danger",
|
|
22
|
+
perfect = "perfect"
|
|
23
|
+
}
|
|
24
|
+
/** 按钮类型 */
|
|
25
|
+
export enum TButtonType {
|
|
26
|
+
/** 空 */
|
|
27
|
+
null = "null",
|
|
28
|
+
/** 确认 */
|
|
29
|
+
confirm = "确认",
|
|
30
|
+
/** 取消确认 */
|
|
31
|
+
cancelConfirm = "取消确认",
|
|
32
|
+
/** 新增 */
|
|
33
|
+
add = "新增",
|
|
34
|
+
/** 返回 */
|
|
35
|
+
back = "返回",
|
|
36
|
+
/** 修改 */
|
|
37
|
+
edit = "修改",
|
|
38
|
+
/** 保存 */
|
|
39
|
+
save = "保存",
|
|
40
|
+
/** 取消 */
|
|
41
|
+
cancel = "取消",
|
|
42
|
+
/** 删除 */
|
|
43
|
+
remove = "删除",
|
|
44
|
+
/** 查看 */
|
|
45
|
+
browse = "查看",
|
|
46
|
+
/** 送审 */
|
|
47
|
+
submit = "送审",
|
|
48
|
+
/** 撤销终审 */
|
|
49
|
+
cancelFinalAudit = "撤销终审",
|
|
50
|
+
/** 撤销送审 */
|
|
51
|
+
cancelSend = "撤销送审",
|
|
52
|
+
/** 审核 */
|
|
53
|
+
audit = "审核",
|
|
54
|
+
/** 退回 */
|
|
55
|
+
reject = "退回",
|
|
56
|
+
/** 撤销审核 */
|
|
57
|
+
cancelAudit = "撤销审核",
|
|
58
|
+
/** 刷新 */
|
|
59
|
+
refresh = "刷新",
|
|
60
|
+
/** 查询 */
|
|
61
|
+
query = "查询",
|
|
62
|
+
/** 流程状态 */
|
|
63
|
+
flowStep = "流程状态",
|
|
64
|
+
/** 打印标签 */
|
|
65
|
+
printTag = "打印标签",
|
|
66
|
+
/** 启用 */
|
|
67
|
+
enable = "启用",
|
|
68
|
+
/** 反启用 */
|
|
69
|
+
notEnable = "反启用",
|
|
70
|
+
/** 折旧 */
|
|
71
|
+
depreciation = "折旧",
|
|
72
|
+
/** 反折旧 */
|
|
73
|
+
notDepreciation = "反折旧",
|
|
74
|
+
/** 结账 */
|
|
75
|
+
account = "结账",
|
|
76
|
+
/** 反结账 */
|
|
77
|
+
notAccount = "反结账",
|
|
78
|
+
/** 明细 */
|
|
79
|
+
details = "明细",
|
|
80
|
+
/** 变动记录 */
|
|
81
|
+
changeLog = "变动记录",
|
|
82
|
+
/** 导出 */
|
|
83
|
+
exportFile = "导出",
|
|
84
|
+
/** 导入 */
|
|
85
|
+
importFile = "导入",
|
|
86
|
+
/** 生成 */
|
|
87
|
+
generate = "生成",
|
|
88
|
+
/** 批量编辑 */
|
|
89
|
+
batchEdit = "批量编辑",
|
|
90
|
+
/** 查看关联业务 */
|
|
91
|
+
browseRelative = "查看关联业务",
|
|
92
|
+
/** 打印 */
|
|
93
|
+
print = "打印",
|
|
94
|
+
/** 打印设置 */
|
|
95
|
+
printConfig = "打印设置",
|
|
96
|
+
/** 复制 */
|
|
97
|
+
copy = "复制"
|
|
19
98
|
}
|
package/src/enums/index.ts
CHANGED
|
@@ -5,6 +5,6 @@ import { TFormType } from "./formType";
|
|
|
5
5
|
import { TViewMode } from "./viewMode";
|
|
6
6
|
import { StoreId } from "./storeId";
|
|
7
7
|
import { TBtnActive } from "./btnMode";
|
|
8
|
-
import {
|
|
8
|
+
import { TUsesStat } from "./usesStat";
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { StoreId, TabActive, TBtnActive, TDoneMode, TEditMode, TFormType, TUsesStat, TViewMode };
|
package/src/enums/storeId.ts
CHANGED
|
@@ -3,5 +3,8 @@ export enum StoreId {
|
|
|
3
3
|
USER_INFO_SESSION = "USER_INFO_SESSION",
|
|
4
4
|
TABS_INFO = "TABS_INFO",
|
|
5
5
|
MENU_INFO = "MENU_INFO",
|
|
6
|
-
|
|
6
|
+
OPTIONS_STORE = "OPTIONS_STORE",
|
|
7
|
+
VIEW_INFO = "VIEW_INFO",
|
|
8
|
+
DATE_INFO = "DATE_INFO",
|
|
9
|
+
DEVELOPER_STORE = "DEVELOPER_STORE"
|
|
7
10
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
enum TWhatDone {
|
|
2
|
+
登录 = "登录",
|
|
3
|
+
登出 = "登出",
|
|
4
|
+
修改密码 = "修改密码",
|
|
5
|
+
重置密码 = "重置密码",
|
|
6
|
+
|
|
7
|
+
新增 = "新增",
|
|
8
|
+
修改 = "修改",
|
|
9
|
+
删除 = "删除",
|
|
10
|
+
|
|
11
|
+
作废 = "作废",
|
|
12
|
+
送审 = "送审",
|
|
13
|
+
审核 = "审核",
|
|
14
|
+
退回 = "退回",
|
|
15
|
+
撤销送审 = "撤销送审",
|
|
16
|
+
撤消审核 = "撤消审核",
|
|
17
|
+
撤消退回 = "撤消退回",
|
|
18
|
+
|
|
19
|
+
导入 = "导入",
|
|
20
|
+
导出 = "导出",
|
|
21
|
+
打印 = "打印",
|
|
22
|
+
查看流程 = "查看流程",
|
|
23
|
+
结账 = "结账",
|
|
24
|
+
反结账 = "反结账",
|
|
25
|
+
折旧 = "折旧",
|
|
26
|
+
反折旧 = "反折旧"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default TWhatDone;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { TCore } from "../../index.ts";
|
|
2
|
+
import _ from "lodash";
|
|
3
|
+
|
|
1
4
|
export interface IFlowDataResponse {
|
|
2
5
|
whoBuild: number; //#硬件实例
|
|
3
6
|
userIndx: number; //#租户实例
|
|
@@ -69,6 +72,8 @@ export interface IFlowDataResponse {
|
|
|
69
72
|
fromNodeName: string; //从哪里来
|
|
70
73
|
statusBy: string; //
|
|
71
74
|
path4Web: string;
|
|
75
|
+
flowText: string;
|
|
76
|
+
flowUser: string;
|
|
72
77
|
|
|
73
78
|
sourceND: number;
|
|
74
79
|
flowType: number;
|
|
@@ -149,6 +154,8 @@ export class TFlowDataResponse implements IFlowDataResponse {
|
|
|
149
154
|
statusBy: string = "";
|
|
150
155
|
sourceND: number = 0;
|
|
151
156
|
path4Web: string = "";
|
|
157
|
+
flowText: string = "";
|
|
158
|
+
flowUser: string = "";
|
|
152
159
|
|
|
153
160
|
flowType: number = 0;
|
|
154
161
|
flowWill: number = 0;
|
|
@@ -156,4 +163,31 @@ export class TFlowDataResponse implements IFlowDataResponse {
|
|
|
156
163
|
flowTypeText: string = "";
|
|
157
164
|
|
|
158
165
|
nodePara: string = "";
|
|
166
|
+
|
|
167
|
+
/** 转换成记录用的数据 */
|
|
168
|
+
static toTravel(flow: IFlowDataResponse): TCore.ISysTravelResponse {
|
|
169
|
+
const travel = new TCore.TSysTravelResponse();
|
|
170
|
+
travel.whoBuild = flow.whoBuild;
|
|
171
|
+
travel.flowMain = flow.flowMain;
|
|
172
|
+
travel.flowNode = flow.flowNode;
|
|
173
|
+
travel.billUUID = flow.entityID;
|
|
174
|
+
travel.billMain = flow.billMain;
|
|
175
|
+
travel.billCode = flow.billCode;
|
|
176
|
+
travel.mastName = flow.mastName;
|
|
177
|
+
travel.createBy = flow.createBy;
|
|
178
|
+
travel.menuUUID = flow.menuUUID;
|
|
179
|
+
return travel;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
static toTravelData(flow?: IFlowDataResponse | IFlowDataResponse[]): TCore.ISysTravelResponse[] {
|
|
183
|
+
if (_.isNil(flow)) {
|
|
184
|
+
return [];
|
|
185
|
+
}
|
|
186
|
+
if (_.isArray(flow)) {
|
|
187
|
+
return flow.map((u) => {
|
|
188
|
+
return this.toTravel(u);
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
return [this.toTravel(flow)];
|
|
192
|
+
}
|
|
159
193
|
}
|
|
@@ -79,8 +79,9 @@ export class TFlowDutyResponse implements IFlowDutyResponse {
|
|
|
79
79
|
try {
|
|
80
80
|
const obj = JSON.parse(nodePara) as IFlowDutyNodeParaConv;
|
|
81
81
|
return _.merge(defaultNodePara, obj);
|
|
82
|
-
} catch (e
|
|
83
|
-
|
|
82
|
+
} catch (e) {
|
|
83
|
+
const error = e as Error;
|
|
84
|
+
console.error(error.message);
|
|
84
85
|
}
|
|
85
86
|
return defaultNodePara;
|
|
86
87
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import type { IPartResponse } from "../core/IPartResponse";
|
|
3
2
|
import type { IDictResponse } from "../core/IDictResponse";
|
|
3
|
+
import type { IPartResponse } from "../core/IPartResponse";
|
|
4
4
|
|
|
5
5
|
export class IFlowNodeResponseNodePara {}
|
|
6
6
|
|
|
@@ -200,4 +200,18 @@ export class TFlowNodeResponse implements IFlowNodeResponse {
|
|
|
200
200
|
listDWLX: IDictResponse[] = [];
|
|
201
201
|
listBMLX: IDictResponse[] = [];
|
|
202
202
|
listNext: IFlowNodeResponse[] = [];
|
|
203
|
+
|
|
204
|
+
static parseJson(nodePara: string) {
|
|
205
|
+
const result = new TFlowNodeResponseNodePara();
|
|
206
|
+
if (_.isEmpty(nodePara)) {
|
|
207
|
+
return result;
|
|
208
|
+
}
|
|
209
|
+
try {
|
|
210
|
+
const temp = JSON.parse(nodePara) as TFlowNodeResponseNodePara;
|
|
211
|
+
return _.merge(result, temp);
|
|
212
|
+
} catch (e: any) {
|
|
213
|
+
console.error(e.message);
|
|
214
|
+
}
|
|
215
|
+
return result;
|
|
216
|
+
}
|
|
203
217
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface IFlowUservoidResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
userGUID: string;
|
|
5
|
+
userName: string;
|
|
6
|
+
flowNode: number;
|
|
7
|
+
entityID: string;
|
|
8
|
+
travelID: number;
|
|
9
|
+
touchURL: string;
|
|
10
|
+
didDoubt: number;
|
|
11
|
+
lastMemo: string;
|
|
12
|
+
lastDate: number;
|
|
13
|
+
lastTime: number;
|
|
14
|
+
nodeName: string;
|
|
15
|
+
fromPathName: string;
|
|
16
|
+
fromPath4URL: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class TFlowUservoidResponse implements IFlowUservoidResponse {
|
|
20
|
+
whoBuild: number = 0;
|
|
21
|
+
userIndx: number = 0;
|
|
22
|
+
userGUID: string = "";
|
|
23
|
+
userName: string = "";
|
|
24
|
+
flowNode: number = 0;
|
|
25
|
+
entityID: string = "";
|
|
26
|
+
travelID: number = 0;
|
|
27
|
+
touchURL: string = "";
|
|
28
|
+
didDoubt: number = 0;
|
|
29
|
+
lastMemo: string = "";
|
|
30
|
+
lastDate: number = 0;
|
|
31
|
+
lastTime: number = 0;
|
|
32
|
+
nodeName: string = "";
|
|
33
|
+
fromPathName: string = "";
|
|
34
|
+
fromPath4URL: string = "";
|
|
35
|
+
}
|
package/src/flow/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { IFlowVoidResponse, TFlowVoidResponse } from "./IFlowVoidResponse";
|
|
|
5
5
|
import { IFlowTypeResponse, TFlowTypeResponse } from "./IFlowTypeResponse";
|
|
6
6
|
import { IFlowCnfgResponse, TFlowCnfgResponse } from "./IFlowCnfgResponse";
|
|
7
7
|
import { IFlowDataResponse, TFlowDataResponse } from "./IFlowDataResponse";
|
|
8
|
+
import { IFlowUservoidResponse, TFlowUservoidResponse } from "./IFlowUservoidResponse";
|
|
8
9
|
|
|
9
10
|
export {
|
|
10
11
|
type IFlowCnfgResponse,
|
|
@@ -13,13 +14,14 @@ export {
|
|
|
13
14
|
type IFlowMainResponse,
|
|
14
15
|
type IFlowNodeResponse,
|
|
15
16
|
type IFlowTypeResponse,
|
|
17
|
+
type IFlowUservoidResponse,
|
|
16
18
|
type IFlowVoidResponse,
|
|
17
|
-
|
|
18
19
|
TFlowCnfgResponse,
|
|
19
20
|
TFlowDataResponse,
|
|
20
21
|
TFlowDutyResponse,
|
|
21
22
|
TFlowMainResponse,
|
|
22
23
|
TFlowNodeResponse,
|
|
23
24
|
TFlowTypeResponse,
|
|
25
|
+
TFlowUservoidResponse,
|
|
24
26
|
TFlowVoidResponse
|
|
25
27
|
};
|
|
@@ -148,8 +148,9 @@ export class TGzjgGzlmResponse implements IGzjgGzlmResponse {
|
|
|
148
148
|
try {
|
|
149
149
|
const obj = JSON.parse(gzlmPara) as TGzjgGzlmResponseGzlmPara;
|
|
150
150
|
return _.merge(defaultGzlmPara, obj);
|
|
151
|
-
} catch (e
|
|
152
|
-
|
|
151
|
+
} catch (e) {
|
|
152
|
+
const error = e as Error;
|
|
153
|
+
console.error(error.message);
|
|
153
154
|
}
|
|
154
155
|
return defaultGzlmPara;
|
|
155
156
|
}
|
|
@@ -8,6 +8,7 @@ export interface IGzjgGzlmResponseGzlmPara {
|
|
|
8
8
|
isShowThousandBit: boolean;
|
|
9
9
|
placeholder: string;
|
|
10
10
|
useWatch: any;
|
|
11
|
+
sumRow: number[];
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export class TGzjgGzlmResponseGzlmPara implements IGzjgGzlmResponseGzlmPara {
|
|
@@ -20,4 +21,5 @@ export class TGzjgGzlmResponseGzlmPara implements IGzjgGzlmResponseGzlmPara {
|
|
|
20
21
|
isShowThousandBit: boolean = false;
|
|
21
22
|
placeholder: string = "";
|
|
22
23
|
useWatch: undefined;
|
|
24
|
+
sumRow: number[] = [];
|
|
23
25
|
}
|
|
@@ -94,6 +94,7 @@ export interface IGzjgMainResponse {
|
|
|
94
94
|
colsLand: IGzjgGzlmLandResponse[];
|
|
95
95
|
userType: IDictResponse[]; // 人员类型
|
|
96
96
|
listQZGS: IGzjgQzgsResponse[];
|
|
97
|
+
gzlmLock: IGzjgGzlmResponse[];
|
|
97
98
|
|
|
98
99
|
// 虚拟字段
|
|
99
100
|
colIndex: number; // 报表工资栏目显示起始位置
|
|
@@ -175,6 +176,7 @@ export class TGzjgMainResponse implements IGzjgMainResponse {
|
|
|
175
176
|
listRows: IGzjgGzlmResponse[] = [];
|
|
176
177
|
bodyLook: IGzjgBodyLockResponse[] = [];
|
|
177
178
|
listQZGS: IGzjgQzgsResponse[] = [];
|
|
179
|
+
gzlmLock: IGzjgGzlmResponse[] = [];
|
|
178
180
|
|
|
179
181
|
colIndex: number = 0;
|
|
180
182
|
antvData: number = 0;
|
|
@@ -187,8 +189,9 @@ export class TGzjgMainResponse implements IGzjgMainResponse {
|
|
|
187
189
|
try {
|
|
188
190
|
const obj = JSON.parse(gzjgPara) as IGzjgMainResponseGzjgPara;
|
|
189
191
|
return _.merge(defaultGzjgPara, obj);
|
|
190
|
-
} catch (e
|
|
191
|
-
|
|
192
|
+
} catch (e) {
|
|
193
|
+
const error = e as Error;
|
|
194
|
+
console.error(error.message);
|
|
192
195
|
}
|
|
193
196
|
return defaultGzjgPara;
|
|
194
197
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { IDeptResponse } from "../core/IDeptResponse";
|
|
2
|
+
import { IUnitResponse } from "../core/IUnitResponse";
|
|
3
|
+
import { IGzzdMainResponse } from "../gzzd/IGzzdMainResponse";
|
|
4
|
+
import { ITablMainResponse } from "../tabl/ITablMainResponse";
|
|
5
|
+
import { ITaskMainResponse } from "../task/ITaskMainResponse";
|
|
6
|
+
|
|
7
|
+
export interface IGztbMainResponse {
|
|
8
|
+
whoBuild: number;
|
|
9
|
+
userIndx: number;
|
|
10
|
+
gztbIndx: number;
|
|
11
|
+
parentID: number;
|
|
12
|
+
hashCode: number;
|
|
13
|
+
dataLevl: number;
|
|
14
|
+
dataFrom: number;
|
|
15
|
+
kjndKJQJ: number;
|
|
16
|
+
dataStat: number;
|
|
17
|
+
dataOrdr: number;
|
|
18
|
+
dataDate: number;
|
|
19
|
+
dataTime: number;
|
|
20
|
+
dataHide: number;
|
|
21
|
+
dataGUID: string;
|
|
22
|
+
mastName: string;
|
|
23
|
+
mastGUID: string;
|
|
24
|
+
createBy: string;
|
|
25
|
+
createAt: number;
|
|
26
|
+
updateBy: string;
|
|
27
|
+
updateAt: number;
|
|
28
|
+
deleteBy: string;
|
|
29
|
+
deleteAt: number;
|
|
30
|
+
queuesBy: number;
|
|
31
|
+
entityID: string;
|
|
32
|
+
publicAt: number;
|
|
33
|
+
publicBy: string;
|
|
34
|
+
sourceND: number;
|
|
35
|
+
sourceQJ: number;
|
|
36
|
+
gzzdGsnd: number;
|
|
37
|
+
gzzdGsqj: number;
|
|
38
|
+
sourceDH: number;
|
|
39
|
+
gztbMemo: string;
|
|
40
|
+
onStatus: number;
|
|
41
|
+
|
|
42
|
+
taskMain: number;
|
|
43
|
+
taskName: string;
|
|
44
|
+
gzjgText: string;
|
|
45
|
+
|
|
46
|
+
taskIndx: number[];
|
|
47
|
+
unitIndx: number[];
|
|
48
|
+
|
|
49
|
+
listTask: ITaskMainResponse[];
|
|
50
|
+
listYSDW: IUnitResponse[];
|
|
51
|
+
listYSBM: IDeptResponse[];
|
|
52
|
+
listTabl: ITablMainResponse[];
|
|
53
|
+
listGZZD: IGzzdMainResponse[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export class TGztbMainResponse implements IGztbMainResponse {
|
|
57
|
+
whoBuild: number = 0;
|
|
58
|
+
userIndx: number = 0;
|
|
59
|
+
gztbIndx: number = 0;
|
|
60
|
+
parentID: number = 0;
|
|
61
|
+
hashCode: number = 0;
|
|
62
|
+
dataLevl: number = 0;
|
|
63
|
+
dataFrom: number = 0;
|
|
64
|
+
kjndKJQJ: number = 0;
|
|
65
|
+
dataStat: number = 0;
|
|
66
|
+
dataOrdr: number = 0;
|
|
67
|
+
dataDate: number = 0;
|
|
68
|
+
dataTime: number = 0;
|
|
69
|
+
dataHide: number = 0;
|
|
70
|
+
dataGUID: string = "";
|
|
71
|
+
mastName: string = "";
|
|
72
|
+
mastGUID: string = "";
|
|
73
|
+
createBy: string = "";
|
|
74
|
+
createAt: number = 0;
|
|
75
|
+
updateBy: string = "";
|
|
76
|
+
updateAt: number = 0;
|
|
77
|
+
deleteBy: string = "";
|
|
78
|
+
deleteAt: number = 0;
|
|
79
|
+
queuesBy: number = 0;
|
|
80
|
+
entityID: string = "";
|
|
81
|
+
publicAt: number = 0;
|
|
82
|
+
publicBy: string = "";
|
|
83
|
+
sourceND: number = 0;
|
|
84
|
+
sourceQJ: number = 0;
|
|
85
|
+
gzzdGsnd: number = 0;
|
|
86
|
+
gzzdGsqj: number = 0;
|
|
87
|
+
sourceDH: number = 0;
|
|
88
|
+
gztbMemo: string = "";
|
|
89
|
+
onStatus: number = 0;
|
|
90
|
+
|
|
91
|
+
taskMain: number = 0;
|
|
92
|
+
taskName: string = "";
|
|
93
|
+
gzjgText: string = "";
|
|
94
|
+
|
|
95
|
+
taskIndx: number[] = [];
|
|
96
|
+
unitIndx: number[] = [];
|
|
97
|
+
|
|
98
|
+
listTask: ITaskMainResponse[] = [];
|
|
99
|
+
listYSDW: IUnitResponse[] = [];
|
|
100
|
+
listYSBM: IDeptResponse[] = [];
|
|
101
|
+
listTabl: ITablMainResponse[] = [];
|
|
102
|
+
listGZZD: IGzzdMainResponse[] = [];
|
|
103
|
+
}
|
package/src/load/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IYqdwResponse, TYqdwResponse } from "./IYqdwResponse";
|
|
2
|
-
import { IYqkmResponse, TYqkmResponse } from "./IYqkmResponse";
|
|
3
2
|
import { IYqkbResponse, TYqkbResponse } from "./IYqkbResponse";
|
|
3
|
+
import { IYqkmResponse, TYqkmResponse } from "./IYqkmResponse";
|
|
4
4
|
|
|
5
|
-
export { type IYqdwResponse, type
|
|
5
|
+
export { type IYqdwResponse, type IYqkbResponse, type IYqkmResponse, TYqdwResponse, TYqkbResponse, TYqkmResponse };
|