@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.
- package/index.ts +37 -0
- package/package.json +25 -0
- package/src/app/ITab.ts +31 -0
- package/src/app/index.ts +6 -0
- package/src/base/IBaseResponse.ts +25 -0
- package/src/conf/IConfig.ts +25 -0
- package/src/const/const_audit.ts +34 -0
- package/src/const/const_card.ts +6 -0
- package/src/const/const_clas.ts +72 -0
- package/src/const/const_cnfg.ts +92 -0
- package/src/const/const_data_from.ts +14 -0
- package/src/const/const_elem.ts +86 -0
- package/src/const/const_flow.ts +7 -0
- package/src/const/const_gams_mode.ts +5 -0
- package/src/const/const_myoa.ts +18 -0
- package/src/const/const_part.ts +25 -0
- package/src/const/const_take_type.ts +9 -0
- package/src/const/const_todo.ts +20 -0
- package/src/const/const_travel.ts +8 -0
- package/src/const/const_type.ts +65 -0
- package/src/const/const_type_name.ts +137 -0
- package/src/const/const_user.ts +1 -0
- package/src/const/const_yiha.ts +32 -0
- package/src/const/const_zbzd.ts +10 -0
- package/src/const/index.ts +20 -0
- package/src/core/IDeptLiteResponse.ts +44 -0
- package/src/core/IDeptResponse.ts +98 -0
- package/src/core/IDictResponse.ts +106 -0
- package/src/core/IDictResponseDictPara.ts +7 -0
- package/src/core/IEnvrResponse.ts +95 -0
- package/src/core/ILaidResponse.ts +101 -0
- package/src/core/IPartResponse.ts +69 -0
- package/src/core/IPathResponse.ts +122 -0
- package/src/core/ISourceItem.ts +55 -0
- package/src/core/IStypResponse.ts +45 -0
- package/src/core/ISysClasResponse.ts +3 -0
- package/src/core/ISysMenuWithCoreResponse.ts +130 -0
- package/src/core/ISysMenuWithCoreResponseMenuPara.ts +3 -0
- package/src/core/ISysMenuWithExpdResponse.ts +298 -0
- package/src/core/ITypeResponse.ts +81 -0
- package/src/core/IUnitResponse.ts +138 -0
- package/src/core/IUnitResponseElemPara.ts +7 -0
- package/src/core/IUserAcnoResponse.ts +163 -0
- package/src/core/IUserFindResponse.ts +140 -0
- package/src/core/IUserResponse.ts +310 -0
- package/src/core/index.ts +57 -0
- package/src/enums/doneMode.ts +7 -0
- package/src/enums/editMode.ts +18 -0
- package/src/enums/formType.ts +8 -0
- package/src/enums/index.ts +7 -0
- package/src/enums/storeId.ts +7 -0
- package/src/enums/viewMode.ts +7 -0
- package/src/flow/IFlowDutyNodeParaConv.ts +7 -0
- package/src/flow/IFlowDutyResponse.ts +80 -0
- package/src/flow/IFlowMainResponse.ts +105 -0
- package/src/flow/IFlowNodeResponse.ts +203 -0
- package/src/flow/IFlowTypeResponse.ts +7 -0
- package/src/flow/IFlowVoidResponse.ts +73 -0
- package/src/flow/index.ts +19 -0
- package/src/gams/IGamsCnfgResponse.ts +69 -0
- package/src/gams/index.ts +7 -0
- package/src/gzjg/IGzjgBodyLockResponse.ts +65 -0
- package/src/gzjg/IGzjgGzlmLandResponse.ts +88 -0
- package/src/gzjg/IGzjgGzlmResponse.ts +146 -0
- package/src/gzjg/IGzjgGzlmResponseGzlmPara.ts +23 -0
- package/src/gzjg/IGzjgMainResponse.ts +195 -0
- package/src/gzjg/IGzjgQzgsResponse.ts +55 -0
- package/src/gzjg/index.ts +19 -0
- package/src/pzpt/IPzptCnfgResponse.ts +144 -0
- package/src/pzpt/IPzptItemResponse.ts +99 -0
- package/src/pzpt/IPzptK0kmResponse.ts +69 -0
- package/src/pzpt/IPzptK8kmResponse.ts +167 -0
- package/src/pzpt/IPzptKbkmResponse.ts +139 -0
- package/src/pzpt/IPzptTypeResponse.ts +84 -0
- package/src/pzpt/IPzptUkkmResponse.ts +87 -0
- package/src/pzpt/index.ts +25 -0
- package/src/response/IResponse.ts +8 -0
- package/src/store/index.ts +4 -0
- package/src/store/tabsState.ts +13 -0
- package/src/store/userState.ts +43 -0
- package/src/store/viewState.ts +5 -0
- package/src/tabl/ITablDataResponse.ts +70 -0
- package/src/tabl/ITablLineResponse.ts +13 -0
- package/src/tabl/ITablMainResponse.ts +146 -0
- package/src/tabl/index.ts +13 -0
- package/src/wldy/IWldyDataResponse.ts +60 -0
- package/src/wldy/IWldyItemResponse.ts +68 -0
- package/src/wldy/IWldyPageResponse.ts +84 -0
- package/src/wlzf/IWlzfEnvrResponse.ts +115 -0
- package/src/wlzf/index.ts +7 -0
- package/src/wtui/IViewCtrlResponse.ts +68 -0
- package/src/wtui/IWtuiMainResponse.ts +110 -0
- package/src/wtui/IWtuiTodoResponse.ts +67 -0
- package/src/wtui/IWtuiViewResponse.ts +85 -0
- package/src/wtui/index.ts +16 -0
- package/src/yzpz/IYzpzCnfgResponse.ts +77 -0
- package/src/yzpz/IYzpzK8kmResponse.ts +111 -0
- package/src/yzpz/index.ts +10 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
import type { IDictResponse } from "./IDictResponse";
|
|
3
|
+
import type { IUnitResponse } from "./IUnitResponse";
|
|
4
|
+
import type { IDeptResponse } from "./IDeptResponse";
|
|
5
|
+
|
|
6
|
+
export interface IUserFindResponse {
|
|
7
|
+
enrollID: string; // #登录账号.模糊查找
|
|
8
|
+
userName: string; // #用户名称.模糊查找
|
|
9
|
+
userCode: string; // #用户编码.模糊查找
|
|
10
|
+
workCode: string; // #用户工号.模糊查找
|
|
11
|
+
userStat: number; // 人员状态: 1 启用
|
|
12
|
+
dContact: string; // #联系方式.模糊查找
|
|
13
|
+
touchURL: string; // #用户签名;查询未上传签名的用户:touchURL="0";查询已上传签名的用户:touchURL="1"
|
|
14
|
+
mobileID: string; // #手机号码.模糊查找
|
|
15
|
+
userIdcd: string; // #身份证.模糊查找
|
|
16
|
+
unionTyp: number; // #用户合集;{1:合集(或),2:交集(且)}
|
|
17
|
+
|
|
18
|
+
listUserUnit: IUnitResponse[]; // #归属单位.精确查找
|
|
19
|
+
listUserDept: IDeptResponse[]; // #归属部门.精确查找
|
|
20
|
+
listUserType: IDictResponse[]; // #人员类型.精确查找
|
|
21
|
+
listUserGwlv: IDictResponse[]; // #岗位级别.精确查找
|
|
22
|
+
listUserZwlv: IDictResponse[]; // #职务级别.精确查找
|
|
23
|
+
listUserXzlv: IDictResponse[]; // #薪资级别.精确查找
|
|
24
|
+
listUserZwlx: IDictResponse[]; // #职务名称.精确查找
|
|
25
|
+
listUserGwlx: IDictResponse[]; // #岗位等级.精确查找
|
|
26
|
+
|
|
27
|
+
userGwlvList: number[];
|
|
28
|
+
userZwlvList: number[];
|
|
29
|
+
userXzlvList: number[];
|
|
30
|
+
userZwlxList: number[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class TUserFindResponse implements IUserFindResponse {
|
|
34
|
+
enrollID: string = "";
|
|
35
|
+
userName: string = "";
|
|
36
|
+
userCode: string = "";
|
|
37
|
+
workCode: string = "";
|
|
38
|
+
dContact: string = "";
|
|
39
|
+
touchURL: string = "";
|
|
40
|
+
mobileID: string = "";
|
|
41
|
+
userIdcd: string = "";
|
|
42
|
+
userStat: number = 0;
|
|
43
|
+
unionTyp: number = 0;
|
|
44
|
+
|
|
45
|
+
listUserUnit: IUnitResponse[] = [];
|
|
46
|
+
listUserDept: IDeptResponse[] = [];
|
|
47
|
+
listUserType: IDictResponse[] = [];
|
|
48
|
+
listUserGwlv: IDictResponse[] = []; // #岗位级别.精确查找
|
|
49
|
+
listUserZwlv: IDictResponse[] = []; // #职务级别.精确查找
|
|
50
|
+
listUserXzlv: IDictResponse[] = []; // #薪资级别.精确查找
|
|
51
|
+
listUserZwlx: IDictResponse[] = []; // #职务名称.精确查找
|
|
52
|
+
listUserGwlx: IDictResponse[] = []; // #岗位等级.精确查找
|
|
53
|
+
|
|
54
|
+
userGwlvList: number[] = [];
|
|
55
|
+
userZwlvList: number[] = [];
|
|
56
|
+
userXzlvList: number[] = [];
|
|
57
|
+
userZwlxList: number[] = [];
|
|
58
|
+
|
|
59
|
+
// #重置搜素条件
|
|
60
|
+
public Initialize() {
|
|
61
|
+
this.enrollID = "";
|
|
62
|
+
this.userName = "";
|
|
63
|
+
this.userCode = "";
|
|
64
|
+
this.workCode = "";
|
|
65
|
+
this.dContact = "";
|
|
66
|
+
this.touchURL = "";
|
|
67
|
+
this.mobileID = "";
|
|
68
|
+
|
|
69
|
+
this.listUserDept = [];
|
|
70
|
+
this.listUserUnit = [];
|
|
71
|
+
this.listUserType = [];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public static toListUnit(values: number[] | number | undefined) {
|
|
75
|
+
const array: any[] = [];
|
|
76
|
+
if (!_.isUndefined(values)) {
|
|
77
|
+
if (_.isArray(values)) {
|
|
78
|
+
values.forEach((v) => {
|
|
79
|
+
const unit = {
|
|
80
|
+
unitIndx: v
|
|
81
|
+
};
|
|
82
|
+
array.push(unit);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
if (_.isNumber(values)) {
|
|
86
|
+
const unit = {
|
|
87
|
+
unitIndx: values
|
|
88
|
+
};
|
|
89
|
+
array.push(unit);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return array as unknown as IUnitResponse[];
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public static toListDept(values: number[] | number | undefined) {
|
|
96
|
+
const array: any[] = [];
|
|
97
|
+
if (!_.isUndefined(values)) {
|
|
98
|
+
if (_.isArray(values)) {
|
|
99
|
+
values.forEach((v) => {
|
|
100
|
+
const dept = {
|
|
101
|
+
deptIndx: v
|
|
102
|
+
};
|
|
103
|
+
array.push(dept);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
if (_.isNumber(values)) {
|
|
107
|
+
const dept = {
|
|
108
|
+
deptIndx: values
|
|
109
|
+
};
|
|
110
|
+
array.push(dept);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return array as unknown as IDeptResponse[];
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public static toListDict(values: number[] | number | undefined, listDict: IDictResponse[]) {
|
|
117
|
+
const array: any[] = [];
|
|
118
|
+
if (!_.isUndefined(values)) {
|
|
119
|
+
if (_.isArray(values)) {
|
|
120
|
+
values.forEach((v) => {
|
|
121
|
+
const d = listDict.find((u) => u.dictIndx === v);
|
|
122
|
+
const dict = {
|
|
123
|
+
dictIndx: v,
|
|
124
|
+
fromType: d?.fromType
|
|
125
|
+
};
|
|
126
|
+
array.push(dict);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (_.isNumber(values)) {
|
|
130
|
+
const d = listDict.find((u) => u.dictIndx === values);
|
|
131
|
+
const dict = {
|
|
132
|
+
dictIndx: values,
|
|
133
|
+
fromType: d?.fromType
|
|
134
|
+
};
|
|
135
|
+
array.push(dict);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return array as unknown as IDictResponse[];
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { construct } from "@aximario/json-tree";
|
|
2
|
+
import { type IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
3
|
+
import type { IDeptResponse } from "./IDeptResponse";
|
|
4
|
+
import type { IDictResponse } from "./IDictResponse";
|
|
5
|
+
import type { IUnitResponse } from "./IUnitResponse";
|
|
6
|
+
import type { IUserAcnoResponse } from "./IUserAcnoResponse";
|
|
7
|
+
import type { IPartResponse } from "./IPartResponse";
|
|
8
|
+
|
|
9
|
+
export interface IUserResponse extends IBaseResponse<IUserResponse[]> {
|
|
10
|
+
whoBuild: number; // #PK
|
|
11
|
+
userIndx: number; // #PK
|
|
12
|
+
userExid: number; // #PK
|
|
13
|
+
acnoMain: number;
|
|
14
|
+
avatarID: string;
|
|
15
|
+
coverURL: string;
|
|
16
|
+
createAt: number;
|
|
17
|
+
createBy: string;
|
|
18
|
+
dContact: string;
|
|
19
|
+
dataDate: number;
|
|
20
|
+
dataFrom: number;
|
|
21
|
+
dataGUID: string;
|
|
22
|
+
dataHide: number;
|
|
23
|
+
dataLevl: number;
|
|
24
|
+
dataOrdr: number;
|
|
25
|
+
dataStat: number;
|
|
26
|
+
dataTime: number;
|
|
27
|
+
deleteAt: number;
|
|
28
|
+
deleteBy: string;
|
|
29
|
+
deptMain: number;
|
|
30
|
+
deptName: string;
|
|
31
|
+
deviceID: string;
|
|
32
|
+
deviceOn: number;
|
|
33
|
+
enrollBy: number;
|
|
34
|
+
enrollID: string;
|
|
35
|
+
userPswd: string;
|
|
36
|
+
entityID: string;
|
|
37
|
+
hashCode: number;
|
|
38
|
+
inGender: number;
|
|
39
|
+
isLocked: number;
|
|
40
|
+
kjndKJQJ: number; // 会计期间(6位)
|
|
41
|
+
laidReal: number;
|
|
42
|
+
mastGUID: string;
|
|
43
|
+
mastName: string;
|
|
44
|
+
mobileID: string;
|
|
45
|
+
parentID: number;
|
|
46
|
+
realKJQJ: number;
|
|
47
|
+
sourceDW: string;
|
|
48
|
+
thirdAct: string;
|
|
49
|
+
touchURL: string;
|
|
50
|
+
unitMain: number;
|
|
51
|
+
unitNamf: string;
|
|
52
|
+
unitReal: number;
|
|
53
|
+
updateAt: number;
|
|
54
|
+
updateBy: string;
|
|
55
|
+
useAdmin: 1 | 0; // 是否管理员 1是 0不是
|
|
56
|
+
isPublic: 1 | 0; // 是否公共账户 1是 0不是
|
|
57
|
+
userAddr: string;
|
|
58
|
+
userBorn: number;
|
|
59
|
+
userByrq: number;
|
|
60
|
+
userCjgz: number;
|
|
61
|
+
userCode: string;
|
|
62
|
+
userDate: number;
|
|
63
|
+
userGnkm: string;
|
|
64
|
+
userIdcd: string;
|
|
65
|
+
userKJND: number;
|
|
66
|
+
userKJQJ: number; // 毕业日期
|
|
67
|
+
userLzrq: number; // 离职日期
|
|
68
|
+
userMemo: string;
|
|
69
|
+
userName: string;
|
|
70
|
+
userRzrq: number; // 入职日期
|
|
71
|
+
userStat: number; // 用户状态. 启用、停用
|
|
72
|
+
usesKJND: number;
|
|
73
|
+
usesKJQJ: number;
|
|
74
|
+
usrToken: string;
|
|
75
|
+
wContact: string;
|
|
76
|
+
workCode: string;
|
|
77
|
+
heavyVal: number;
|
|
78
|
+
userType: number; // #人员类型(字典)
|
|
79
|
+
userGwlv: number; // #岗位级别(字典)
|
|
80
|
+
userZwlv: number; // #职务级别(字典)
|
|
81
|
+
userZwlx: number; // #职务名称(字典)
|
|
82
|
+
userXzlv: number; // #薪资级别(字典)
|
|
83
|
+
userGwlx: number;
|
|
84
|
+
dbConfig: string;
|
|
85
|
+
nodeName: string;
|
|
86
|
+
|
|
87
|
+
creditOf: number; // 信用等级
|
|
88
|
+
creditBy: string;
|
|
89
|
+
wbField0: string; // 性质
|
|
90
|
+
wbField1: string; // 区域
|
|
91
|
+
wbField2: string; // 开票地址
|
|
92
|
+
wbField3: string; // 开票电话
|
|
93
|
+
usciCode: string;
|
|
94
|
+
|
|
95
|
+
get4deptText: string;
|
|
96
|
+
get4unitText: string;
|
|
97
|
+
|
|
98
|
+
sysPartnText: string;
|
|
99
|
+
usrPartnText: string;
|
|
100
|
+
userTypeText: string;
|
|
101
|
+
userUnitText: string;
|
|
102
|
+
userDeptText: string;
|
|
103
|
+
|
|
104
|
+
userXlzsText: string;
|
|
105
|
+
userGwlvText: string;
|
|
106
|
+
userZwlvText: string;
|
|
107
|
+
userZwlxText: string; // #职务名称(字典.名称)
|
|
108
|
+
userXzlvText: string; // #薪资级别(字典.名称)
|
|
109
|
+
userGwlxText: string;
|
|
110
|
+
userAcnoText: string;
|
|
111
|
+
|
|
112
|
+
fromSourceND: number;
|
|
113
|
+
fromUserIndx: number;
|
|
114
|
+
fromWhoBuild: number;
|
|
115
|
+
|
|
116
|
+
userDeptList: [];
|
|
117
|
+
userRylxList: [];
|
|
118
|
+
|
|
119
|
+
listGet4Dept: any[];
|
|
120
|
+
listGet4Unit: any[];
|
|
121
|
+
listHardware: any[];
|
|
122
|
+
listSysPartc: any[];
|
|
123
|
+
listUserDept: IDeptResponse[]; // 归属部门
|
|
124
|
+
listUserType: IDictResponse[]; // 人员类型
|
|
125
|
+
listUserGwlv: IDictResponse[]; // 岗位
|
|
126
|
+
listUserGwlx: IDictResponse[]; // 岗位等级
|
|
127
|
+
listUserZwlv: IDictResponse[]; // 职务
|
|
128
|
+
listUserXzlv: IDictResponse[];
|
|
129
|
+
listUserZwlx: IDictResponse[];
|
|
130
|
+
listUserUnit: IUnitResponse[];
|
|
131
|
+
listUsrPartc: IPartResponse[]; // 用户角色
|
|
132
|
+
listWlzfEnvr: any[];
|
|
133
|
+
listUserAcno: IUserAcnoResponse[];
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export class TUserResponse extends TBaseResponse<IUserResponse[]> implements IUserResponse {
|
|
137
|
+
whoBuild: number = 0; // #PK
|
|
138
|
+
userIndx: number = 0; // #PK
|
|
139
|
+
acnoMain: number = 0;
|
|
140
|
+
avatarID: string = "";
|
|
141
|
+
coverURL: string = "";
|
|
142
|
+
createAt: number = 0;
|
|
143
|
+
createBy: string = "";
|
|
144
|
+
dContact: string = "";
|
|
145
|
+
dataDate: number = 0;
|
|
146
|
+
dataFrom: number = 0;
|
|
147
|
+
dataGUID: string = "";
|
|
148
|
+
dataHide: number = 0;
|
|
149
|
+
dataLevl: number = 0;
|
|
150
|
+
dataOrdr: number = 0;
|
|
151
|
+
dataStat: number = 0;
|
|
152
|
+
dataTime: number = 0;
|
|
153
|
+
deleteAt: number = 0;
|
|
154
|
+
deleteBy: string = "";
|
|
155
|
+
deptMain: number = 0;
|
|
156
|
+
deptName: string = "";
|
|
157
|
+
deviceID: string = "";
|
|
158
|
+
deviceOn: number = 0;
|
|
159
|
+
enrollBy: number = 0;
|
|
160
|
+
enrollID: string = "";
|
|
161
|
+
userPswd: string = "";
|
|
162
|
+
entityID: string = "";
|
|
163
|
+
|
|
164
|
+
hashCode: number = 0;
|
|
165
|
+
inGender: number = 0;
|
|
166
|
+
isLocked: number = 0;
|
|
167
|
+
kjndKJQJ: number = 0;
|
|
168
|
+
laidReal: number = 0;
|
|
169
|
+
mastGUID: string = "";
|
|
170
|
+
mastName: string = "";
|
|
171
|
+
mobileID: string = "";
|
|
172
|
+
parentID: number = 0;
|
|
173
|
+
realKJQJ: number = 0;
|
|
174
|
+
sourceDW: string = "";
|
|
175
|
+
|
|
176
|
+
thirdAct: string = "";
|
|
177
|
+
touchURL: string = "";
|
|
178
|
+
unitMain: number = 0;
|
|
179
|
+
unitNamf: string = "";
|
|
180
|
+
unitReal: number = 0;
|
|
181
|
+
updateAt: number = 0;
|
|
182
|
+
updateBy: string = "";
|
|
183
|
+
useAdmin: 0 | 1 = 0;
|
|
184
|
+
isPublic: 0 | 1 = 0;
|
|
185
|
+
|
|
186
|
+
userAddr: string = "";
|
|
187
|
+
userBorn: number = 0;
|
|
188
|
+
userByrq: number = 0;
|
|
189
|
+
userCjgz: number = 0;
|
|
190
|
+
userCode: string = "";
|
|
191
|
+
userDate: number = 0;
|
|
192
|
+
|
|
193
|
+
userExid: number = 0;
|
|
194
|
+
userGnkm: string = "";
|
|
195
|
+
|
|
196
|
+
userIdcd: string = "";
|
|
197
|
+
|
|
198
|
+
userKJND: number = 0;
|
|
199
|
+
userKJQJ: number = 0;
|
|
200
|
+
userLzrq: number = 0;
|
|
201
|
+
userMemo: string = "";
|
|
202
|
+
userName: string = "";
|
|
203
|
+
userRzrq: number = 0;
|
|
204
|
+
userStat: number = 0;
|
|
205
|
+
usesKJND: number = 0;
|
|
206
|
+
usesKJQJ: number = 0;
|
|
207
|
+
usrToken: string = "";
|
|
208
|
+
wContact: string = "";
|
|
209
|
+
|
|
210
|
+
workCode: string = "";
|
|
211
|
+
userZwlv: number = 0;
|
|
212
|
+
userGwlv: number = 0;
|
|
213
|
+
userZwlx: number = 0;
|
|
214
|
+
userXzlv: number = 0;
|
|
215
|
+
userGwlx: number = 0;
|
|
216
|
+
userType: number = 0;
|
|
217
|
+
heavyVal: number = 0;
|
|
218
|
+
dbConfig: string = "";
|
|
219
|
+
nodeName: string = "";
|
|
220
|
+
|
|
221
|
+
creditOf: number = 0; // 信用等级
|
|
222
|
+
creditBy: string = "";
|
|
223
|
+
wbField0: string = ""; // 性质
|
|
224
|
+
wbField1: string = ""; // 区域
|
|
225
|
+
wbField2: string = ""; // 开票地址
|
|
226
|
+
wbField3: string = ""; // 开票电话
|
|
227
|
+
usciCode: string = ""; // 征信代码
|
|
228
|
+
|
|
229
|
+
usrPartnText: string = "";
|
|
230
|
+
userTypeText: string = "";
|
|
231
|
+
userUnitText: string = "";
|
|
232
|
+
userXlzsText: string = "";
|
|
233
|
+
userXzlvText: string = "";
|
|
234
|
+
userZwlvText: string = "";
|
|
235
|
+
userZwlxText: string = "";
|
|
236
|
+
userGwlvText: string = "";
|
|
237
|
+
userGwlxText: string = "";
|
|
238
|
+
userDeptText: string = "";
|
|
239
|
+
userAcnoText: string = "";
|
|
240
|
+
sysPartnText: string = "";
|
|
241
|
+
fromSourceND: number = 0;
|
|
242
|
+
fromUserIndx: number = 0;
|
|
243
|
+
fromWhoBuild: number = 0;
|
|
244
|
+
get4deptText: string = "";
|
|
245
|
+
get4unitText: string = "";
|
|
246
|
+
|
|
247
|
+
userDeptList: [] = [];
|
|
248
|
+
userRylxList: [] = [];
|
|
249
|
+
|
|
250
|
+
listGet4Dept: any[] = [];
|
|
251
|
+
listGet4Unit: any[] = [];
|
|
252
|
+
listHardware: any[] = [];
|
|
253
|
+
listSysPartc: any[] = [];
|
|
254
|
+
listUserDept: IDeptResponse[] = [];
|
|
255
|
+
listUserType: IDictResponse[] = [];
|
|
256
|
+
listUserGwlv: IDictResponse[] = [];
|
|
257
|
+
listUserGwlx: IDictResponse[] = [];
|
|
258
|
+
listUserZwlv: IDictResponse[] = [];
|
|
259
|
+
listUserXzlv: IDictResponse[] = [];
|
|
260
|
+
listUserZwlx: IDictResponse[] = [];
|
|
261
|
+
listUserUnit: IUnitResponse[] = [];
|
|
262
|
+
listUsrPartc: any[] = [];
|
|
263
|
+
listWlzfEnvr: any[] = [];
|
|
264
|
+
listUserAcno: IUserAcnoResponse[] = [];
|
|
265
|
+
|
|
266
|
+
public static toTree(listUser: IUserResponse[]) {
|
|
267
|
+
return construct(listUser, { id: "userIndx", pid: "parentID", children: "children" }) as IUserResponse[];
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
public static toList(treeUser: IUserResponse[]) {
|
|
271
|
+
return construct(treeUser, { id: "userIndx", pid: "parentID", children: "children" }) as IUserResponse[];
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface WithEXPD {
|
|
276
|
+
asLeaderWhenEXPD: number;
|
|
277
|
+
userExid: number;
|
|
278
|
+
userIndx: number;
|
|
279
|
+
whoBuild: number;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface WithGZTB {
|
|
283
|
+
asLeaderWhenGZTB: number;
|
|
284
|
+
asLockerWhenGZTB: number;
|
|
285
|
+
asWorkerWhenGZTB: number;
|
|
286
|
+
userExid: number;
|
|
287
|
+
userIndx: number;
|
|
288
|
+
whoBuild: number;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export class TWithEXPD implements WithEXPD {
|
|
292
|
+
asLeaderWhenEXPD: number = 0;
|
|
293
|
+
userExid: number = 0;
|
|
294
|
+
userIndx: number = 0;
|
|
295
|
+
whoBuild: number = 0;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export interface WithGZTB {
|
|
299
|
+
asLeaderWhenGZTB: number;
|
|
300
|
+
asLockerWhenGZTB: number;
|
|
301
|
+
asWorkerWhenGZTB: number;
|
|
302
|
+
userExid: number;
|
|
303
|
+
userIndx: number;
|
|
304
|
+
whoBuild: number;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export enum EnumIsPublic {
|
|
308
|
+
ePublic = 1,
|
|
309
|
+
ePrivate = 0
|
|
310
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { IDeptLiteResponse, TDeptLiteResponse } from "./IDeptLiteResponse";
|
|
2
|
+
import { IDeptResponse, TDeptResponse } from "./IDeptResponse";
|
|
3
|
+
import { IDictResponse, TDictResponse } from "./IDictResponse";
|
|
4
|
+
import { ILaidResponse, TLaidResponse } from "./ILaidResponse";
|
|
5
|
+
import { IPartResponse, TPartResponse } from "./IPartResponse";
|
|
6
|
+
import { IPathResponse, TPathResponse } from "./IPathResponse";
|
|
7
|
+
import { ISourceItem, TSourceItem } from "./ISourceItem";
|
|
8
|
+
import { IStypResponse, TStypResponse } from "./IStypResponse";
|
|
9
|
+
import { ISysClasResponse, TSysClasResponse } from "./ISysClasResponse";
|
|
10
|
+
import { ISysMenuWithCoreResponse, TSysMenuWithCoreResponse } from "./ISysMenuWithCoreResponse";
|
|
11
|
+
import { ISysMenuWithExpdResponse, TSysMenuWithExpdResponse } from "./ISysMenuWithExpdResponse";
|
|
12
|
+
import { ITypeResponse, TTypeResponse } from "./ITypeResponse";
|
|
13
|
+
import { IUnitResponse, TUnitResponse } from "./IUnitResponse";
|
|
14
|
+
import { IUserAcnoResponse, TUserAcnoResponse } from "./IUserAcnoResponse";
|
|
15
|
+
import { IUserFindResponse, TUserFindResponse } from "./IUserFindResponse";
|
|
16
|
+
import { IUserResponse, TUserResponse } from "./IUserResponse";
|
|
17
|
+
import { IEnvrResponse, TEnvrResponse } from "./IEnvrResponse";
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
// 接口
|
|
21
|
+
IDeptLiteResponse,
|
|
22
|
+
IDeptResponse,
|
|
23
|
+
IDictResponse,
|
|
24
|
+
ILaidResponse,
|
|
25
|
+
IPartResponse,
|
|
26
|
+
IPathResponse,
|
|
27
|
+
ISourceItem,
|
|
28
|
+
IStypResponse,
|
|
29
|
+
ISysClasResponse,
|
|
30
|
+
ISysMenuWithCoreResponse,
|
|
31
|
+
ISysMenuWithExpdResponse,
|
|
32
|
+
ITypeResponse,
|
|
33
|
+
IUnitResponse,
|
|
34
|
+
IUserAcnoResponse,
|
|
35
|
+
IUserFindResponse,
|
|
36
|
+
IUserResponse,
|
|
37
|
+
IEnvrResponse,
|
|
38
|
+
|
|
39
|
+
// 类
|
|
40
|
+
TDeptLiteResponse,
|
|
41
|
+
TDeptResponse,
|
|
42
|
+
TDictResponse,
|
|
43
|
+
TLaidResponse,
|
|
44
|
+
TPartResponse,
|
|
45
|
+
TPathResponse,
|
|
46
|
+
TSourceItem,
|
|
47
|
+
TStypResponse,
|
|
48
|
+
TSysClasResponse,
|
|
49
|
+
TSysMenuWithCoreResponse,
|
|
50
|
+
TSysMenuWithExpdResponse,
|
|
51
|
+
TTypeResponse,
|
|
52
|
+
TUnitResponse,
|
|
53
|
+
TUserAcnoResponse,
|
|
54
|
+
TUserFindResponse,
|
|
55
|
+
TUserResponse,
|
|
56
|
+
TEnvrResponse
|
|
57
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// #编辑模式
|
|
2
|
+
|
|
3
|
+
export enum TEditMode {
|
|
4
|
+
emNull, // #默认
|
|
5
|
+
emSelect, // #获取模式
|
|
6
|
+
emInsert, // #添加模式
|
|
7
|
+
emUpdate, // #修改模式
|
|
8
|
+
emFlowUpdate, // 审核修改模式
|
|
9
|
+
emDelete, // #删除模式
|
|
10
|
+
emBrowse, // #浏览模式
|
|
11
|
+
emInflow, // 审核模式
|
|
12
|
+
emBrowsePlus, // 超级查看模式
|
|
13
|
+
emDoneWlzf, // 出纳确认
|
|
14
|
+
emBrowseGL, // 关联单据跳过来
|
|
15
|
+
emCopyInsert, // 复制新增
|
|
16
|
+
emSend, // 送审
|
|
17
|
+
emReview // 复核
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TDoneMode } from "./doneMode";
|
|
2
|
+
import { TEditMode } from "./editMode";
|
|
3
|
+
import { TFormType } from "./formType";
|
|
4
|
+
import { TViewMode } from "./viewMode";
|
|
5
|
+
import { StoreId } from "./storeId";
|
|
6
|
+
|
|
7
|
+
export { TDoneMode, TEditMode, TFormType, TViewMode, StoreId };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
import type { IFlowNodeResponse } from "./IFlowNodeResponse";
|
|
3
|
+
import type { IFlowDutyNodeParaConv } from "./IFlowDutyNodeParaConv";
|
|
4
|
+
import { TFlowDutyNodeParaConv } from "./IFlowDutyNodeParaConv";
|
|
5
|
+
|
|
6
|
+
export interface IFlowDutyResponse {
|
|
7
|
+
flowName: string;
|
|
8
|
+
nodeName: string;
|
|
9
|
+
createAt: number;
|
|
10
|
+
createBy: string;
|
|
11
|
+
dataDate: number;
|
|
12
|
+
dataFrom: number;
|
|
13
|
+
dataHide: number;
|
|
14
|
+
dataOrdr: number;
|
|
15
|
+
dataStat: number;
|
|
16
|
+
dataTime: number;
|
|
17
|
+
deleteAt: number;
|
|
18
|
+
deleteBy: string;
|
|
19
|
+
dutyIndx: number;
|
|
20
|
+
dutyText: string;
|
|
21
|
+
flowIndx: number;
|
|
22
|
+
flowNode: number;
|
|
23
|
+
flowMain: number;
|
|
24
|
+
mastGUID: string;
|
|
25
|
+
mastName: string;
|
|
26
|
+
queuesBy: number;
|
|
27
|
+
selectEd: number;
|
|
28
|
+
updateAt: number;
|
|
29
|
+
updateBy: string;
|
|
30
|
+
userIndx: number;
|
|
31
|
+
whoBuild: number;
|
|
32
|
+
dutyPara: string;
|
|
33
|
+
dutyParaConv: IFlowDutyNodeParaConv;
|
|
34
|
+
listNode: IFlowNodeResponse[];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class TFlowDutyResponse implements IFlowDutyResponse {
|
|
38
|
+
nodeName: string = "";
|
|
39
|
+
flowName: string = "";
|
|
40
|
+
createAt: number = 0;
|
|
41
|
+
createBy: string = "";
|
|
42
|
+
dataDate: number = 0;
|
|
43
|
+
dataFrom: number = 0;
|
|
44
|
+
dataHide: number = 0;
|
|
45
|
+
dataOrdr: number = 0;
|
|
46
|
+
dataStat: number = 0;
|
|
47
|
+
dataTime: number = 0;
|
|
48
|
+
deleteAt: number = 0;
|
|
49
|
+
deleteBy: string = "";
|
|
50
|
+
dutyIndx: number = 0;
|
|
51
|
+
dutyText: string = "";
|
|
52
|
+
flowIndx: number = 0;
|
|
53
|
+
flowNode: number = 0;
|
|
54
|
+
flowMain: number = 0;
|
|
55
|
+
mastGUID: string = "";
|
|
56
|
+
mastName: string = "";
|
|
57
|
+
queuesBy: number = 0;
|
|
58
|
+
selectEd: number = 0;
|
|
59
|
+
updateAt: number = 0;
|
|
60
|
+
updateBy: string = "";
|
|
61
|
+
userIndx: number = 0;
|
|
62
|
+
whoBuild: number = 0;
|
|
63
|
+
dutyPara: string = "";
|
|
64
|
+
listNode: IFlowNodeResponse[] = [];
|
|
65
|
+
dutyParaConv: IFlowDutyNodeParaConv = new TFlowDutyNodeParaConv();
|
|
66
|
+
|
|
67
|
+
static parseJson(nodePara: string) {
|
|
68
|
+
const defaultNodePara = new TFlowDutyNodeParaConv();
|
|
69
|
+
if (_.isEmpty(nodePara)) {
|
|
70
|
+
return defaultNodePara;
|
|
71
|
+
}
|
|
72
|
+
try {
|
|
73
|
+
const obj = JSON.parse(nodePara) as IFlowDutyNodeParaConv;
|
|
74
|
+
return _.merge(defaultNodePara, obj);
|
|
75
|
+
} catch (e: any) {
|
|
76
|
+
console.error(e.message);
|
|
77
|
+
}
|
|
78
|
+
return defaultNodePara;
|
|
79
|
+
}
|
|
80
|
+
}
|