@ningboyz/types 1.5.166 → 1.5.168
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/package.json
CHANGED
|
@@ -62,7 +62,6 @@ export interface IDeptResponse extends IBaseResponse<IDeptResponse> {
|
|
|
62
62
|
ratioVal: number; //固定资产-部门分摊-占比
|
|
63
63
|
cardZcyz: number; //固定资产-部门分摊-金额
|
|
64
64
|
|
|
65
|
-
sysclasc: number;
|
|
66
65
|
sysClasc: number;
|
|
67
66
|
k4kmKmbm: string; //#核算项目
|
|
68
67
|
k1kmKmbm: string; //#功能科目
|
|
@@ -132,7 +131,6 @@ export class TDeptResponse extends TBaseResponse<IDeptResponse> implements IDept
|
|
|
132
131
|
ratioVal: number = 0;
|
|
133
132
|
cardZcyz: number = 0;
|
|
134
133
|
|
|
135
|
-
sysclasc: number = 0;
|
|
136
134
|
sysClasc: number = 0;
|
|
137
135
|
deptPara: string = "";
|
|
138
136
|
k4kmKmbm: string = "";
|
|
@@ -51,7 +51,7 @@ export interface ILaidResponse extends IBaseResponse<ILaidResponse> {
|
|
|
51
51
|
takeType: number; // , 默认0, -1:出库, 1:入库;
|
|
52
52
|
isPublic: number;
|
|
53
53
|
isCommon: number; // #1:公务仓;0:普通存放地点
|
|
54
|
-
|
|
54
|
+
sysClasc: number; // , 模块大类
|
|
55
55
|
laidAddr: string; // #存放地点.地址
|
|
56
56
|
laidDate: number; // #存放地点.日期
|
|
57
57
|
laidCall: string; // #存放地点.联系电话
|
|
@@ -118,7 +118,7 @@ export class TLaidResponse extends TBaseResponse<ILaidResponse> implements ILaid
|
|
|
118
118
|
deptText: string = "";
|
|
119
119
|
takeType: number = 0;
|
|
120
120
|
isPublic: number = 0;
|
|
121
|
-
|
|
121
|
+
sysClasc: number = 0;
|
|
122
122
|
isCommon: number = 0;
|
|
123
123
|
deptMain: number = 0;
|
|
124
124
|
listDept: IDeptResponse[] = [];
|
package/src/enums/btnMode.ts
CHANGED
|
@@ -1,162 +0,0 @@
|
|
|
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
|
-
import _ from "lodash";
|
|
6
|
-
import { TCore } from "../../index.ts";
|
|
7
|
-
|
|
8
|
-
export interface IDeptResponse extends IBaseResponse<IDeptResponse[]> {
|
|
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
|
-
dataType: number;
|
|
21
|
-
deleteAt: number;
|
|
22
|
-
deleteBy: string;
|
|
23
|
-
/**联系电话 */
|
|
24
|
-
deptCall: string;
|
|
25
|
-
deptCode: string;
|
|
26
|
-
deptGnkm: string;
|
|
27
|
-
deptIndx: number;
|
|
28
|
-
/** 负责人 */
|
|
29
|
-
deptMast: string;
|
|
30
|
-
/** 备注 */
|
|
31
|
-
deptMemo: string;
|
|
32
|
-
deptName: string;
|
|
33
|
-
/** 部门类型(新) 文本 */
|
|
34
|
-
deptTypeText: string;
|
|
35
|
-
entityID: string;
|
|
36
|
-
gkbmText: string;
|
|
37
|
-
hashCode: number;
|
|
38
|
-
isLasted: number;
|
|
39
|
-
kjndKJQJ: number;
|
|
40
|
-
mastGUID: string;
|
|
41
|
-
mastName: string;
|
|
42
|
-
nameFull: string;
|
|
43
|
-
parentID: number;
|
|
44
|
-
uniqueID: number;
|
|
45
|
-
unitMain: number;
|
|
46
|
-
unitText: string;
|
|
47
|
-
updateAt: number;
|
|
48
|
-
updateBy: string;
|
|
49
|
-
userIndx: number;
|
|
50
|
-
whoBuild: number;
|
|
51
|
-
matchVal: string;
|
|
52
|
-
dataMemo: string;
|
|
53
|
-
queuesBy: number;
|
|
54
|
-
|
|
55
|
-
ratioVal: number; //固定资产-部门分摊-占比
|
|
56
|
-
cardZcyz: number; //固定资产-部门分摊-金额
|
|
57
|
-
|
|
58
|
-
/** 部门类型 */
|
|
59
|
-
listBMLX: Array<IDictResponse>;
|
|
60
|
-
/** 部门类型(新) */
|
|
61
|
-
listType: Array<IDictResponse>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export class TDeptResponse extends TBaseResponse<IDeptResponse[]> implements IDeptResponse {
|
|
65
|
-
codeFull: string = "";
|
|
66
|
-
createAt: number = 0;
|
|
67
|
-
createBy: string = "";
|
|
68
|
-
dataDate: number = 0;
|
|
69
|
-
dataFrom: number = 0;
|
|
70
|
-
dataGUID: string = "";
|
|
71
|
-
dataHide: number = 0;
|
|
72
|
-
dataLevl: number = 0;
|
|
73
|
-
dataOrdr: number = 0;
|
|
74
|
-
dataStat: number = 0;
|
|
75
|
-
dataTime: number = 0;
|
|
76
|
-
dataType: number = 0;
|
|
77
|
-
deleteAt: number = 0;
|
|
78
|
-
deleteBy: string = "";
|
|
79
|
-
deptCall: string = "";
|
|
80
|
-
deptCode: string = "";
|
|
81
|
-
deptGnkm: string = "";
|
|
82
|
-
deptIndx: number = 0;
|
|
83
|
-
deptMast: string = "";
|
|
84
|
-
deptMemo: string = "";
|
|
85
|
-
deptName: string = "";
|
|
86
|
-
deptTypeText: string = "";
|
|
87
|
-
entityID: string = "";
|
|
88
|
-
gkbmText: string = "";
|
|
89
|
-
hashCode: number = 0;
|
|
90
|
-
isLasted: number = 0;
|
|
91
|
-
kjndKJQJ: number = 0;
|
|
92
|
-
mastGUID: string = "";
|
|
93
|
-
mastName: string = "";
|
|
94
|
-
nameFull: string = "";
|
|
95
|
-
parentID: number = 0;
|
|
96
|
-
uniqueID: number = 0;
|
|
97
|
-
unitMain: number = 0;
|
|
98
|
-
unitText: string = "";
|
|
99
|
-
updateAt: number = 0;
|
|
100
|
-
updateBy: string = "";
|
|
101
|
-
userIndx: number = 0;
|
|
102
|
-
whoBuild: number = 0;
|
|
103
|
-
matchVal: string = "";
|
|
104
|
-
dataMemo: string = "";
|
|
105
|
-
queuesBy: number = 0;
|
|
106
|
-
|
|
107
|
-
ratioVal: number = 0;
|
|
108
|
-
cardZcyz: number = 0;
|
|
109
|
-
|
|
110
|
-
listBMLX: IDictResponse[] = [];
|
|
111
|
-
/** 部门类型(新) */
|
|
112
|
-
listType: IDictResponse[] = [];
|
|
113
|
-
|
|
114
|
-
constructor(data: any = {}) {
|
|
115
|
-
super();
|
|
116
|
-
if (data) {
|
|
117
|
-
_.merge(this, _.pick(data, Object.keys(this)));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
public static toTree(listDept: IDeptResponse[]) {
|
|
122
|
-
return construct(listDept, { id: "deptIndx", pid: "parentID", children: "children" }) as IDeptResponse[];
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
public static toList(treeDept: IDeptResponse[]) {
|
|
126
|
-
return destruct(treeDept, { id: "deptIndx", pid: "parentID", children: "children" }) as IDeptResponse[];
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
public static createDetp(deptMain: number, deptName: string) {
|
|
130
|
-
const dept = new TDeptResponse();
|
|
131
|
-
dept.deptIndx = deptMain;
|
|
132
|
-
dept.deptName = deptName;
|
|
133
|
-
return dept;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
static toTravel(dept: IDeptResponse, whatDone: string): TCore.ISysTravelResponse {
|
|
137
|
-
const travel = new TCore.TSysTravelResponse();
|
|
138
|
-
travel.whoBuild = dept.whoBuild;
|
|
139
|
-
travel.flowMain = 0;
|
|
140
|
-
travel.flowNode = 0;
|
|
141
|
-
travel.billUUID = dept.entityID;
|
|
142
|
-
travel.billMain = dept.deptIndx;
|
|
143
|
-
travel.billCode = dept.deptCode;
|
|
144
|
-
travel.mastName = dept.mastName;
|
|
145
|
-
travel.createBy = dept.createBy;
|
|
146
|
-
travel.whatDone = `${whatDone}${dept.deptName}`;
|
|
147
|
-
return travel;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/** 转换成记录日志需要的数据(第一层,不包含菜单) */
|
|
151
|
-
static toTravelData(card?: IDeptResponse | IDeptResponse[], whatDone: string = ""): TCore.ISysTravelResponse[] {
|
|
152
|
-
if (_.isNil(card)) {
|
|
153
|
-
return [];
|
|
154
|
-
}
|
|
155
|
-
if (_.isArray(card)) {
|
|
156
|
-
return card.map((u) => {
|
|
157
|
-
return this.toTravel(u, whatDone);
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
return [this.toTravel(card, whatDone)];
|
|
161
|
-
}
|
|
162
|
-
}
|