@ningboyz/types 1.0.23 → 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/package.json +1 -1
- package/src/card/ICardMainFindResponse.ts +21 -0
- package/src/card/ICardMainResponse.ts +9 -0
- package/src/card/IZcbdResponse.ts +5 -0
- package/src/card/IZccfResponse.ts +4 -0
- package/src/card/IZcczResponse.ts +5 -0
- package/src/card/IZcdbResponse.ts +5 -0
- package/src/card/index.ts +5 -0
- package/src/conf/IConfig.ts +1 -0
- package/src/core/IDeptResponse.ts +1 -1
- package/src/core/ILaidResponse.ts +1 -1
- package/src/core/IPartResponse.ts +5 -4
- package/src/core/IUnitResponse.ts +6 -5
- package/src/core/IUserResponse.ts +6 -5
- package/src/enums/btnMode.ts +4 -2
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IRangeVal {
|
|
2
|
+
useRange: number;
|
|
3
|
+
startVal: number;
|
|
4
|
+
endedVal: number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class TRangeVal implements IRangeVal {
|
|
8
|
+
useRange: number = 0;
|
|
9
|
+
startVal: number = 0;
|
|
10
|
+
endedVal: number = 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ICardMainFindResponse {
|
|
14
|
+
cardZcyzRange: TRangeVal;
|
|
15
|
+
CardName: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class TCardMainFindResponse implements ICardMainFindResponse {
|
|
19
|
+
cardZcyzRange: IRangeVal = new TRangeVal();
|
|
20
|
+
CardName: string = "";
|
|
21
|
+
}
|
|
@@ -70,6 +70,9 @@ export interface ICardMainResponse {
|
|
|
70
70
|
cardZcyz: number;
|
|
71
71
|
/** 累计折旧 */
|
|
72
72
|
cardLjzj: number;
|
|
73
|
+
|
|
74
|
+
/** 固定资产-累计折旧 */
|
|
75
|
+
fromCardLjzj: number;
|
|
73
76
|
/** 资产净值 */
|
|
74
77
|
cardZcjz: number;
|
|
75
78
|
/** 初始折旧 */
|
|
@@ -307,6 +310,9 @@ export interface ICardMainResponse {
|
|
|
307
310
|
/** 折旧年限 */
|
|
308
311
|
cardZjnx: number;
|
|
309
312
|
|
|
313
|
+
/** 挂起状态 */
|
|
314
|
+
hideStat: number;
|
|
315
|
+
|
|
310
316
|
/** 单据状态 */
|
|
311
317
|
fromCardStat: number;
|
|
312
318
|
|
|
@@ -406,6 +412,7 @@ export class TCardMainResponse implements ICardMainResponse {
|
|
|
406
412
|
cardCost: number = 0;
|
|
407
413
|
cardZcyz: number = 0;
|
|
408
414
|
cardLjzj: number = 0;
|
|
415
|
+
fromCardLjzj: number = 0;
|
|
409
416
|
cardZcjz: number = 0;
|
|
410
417
|
cardCszj: number = 0;
|
|
411
418
|
cardCode: string = "";
|
|
@@ -531,6 +538,8 @@ export class TCardMainResponse implements ICardMainResponse {
|
|
|
531
538
|
cardYzje: number = 0;
|
|
532
539
|
cardZjnx: number = 0;
|
|
533
540
|
|
|
541
|
+
hideStat: number = 0;
|
|
542
|
+
|
|
534
543
|
lastDate: number = 0;
|
|
535
544
|
lastTime: number = 0;
|
|
536
545
|
flowMain: number = 0;
|
|
@@ -61,6 +61,9 @@ export interface IZcbdResponse {
|
|
|
61
61
|
/** 单位名称 */
|
|
62
62
|
unitText: string;
|
|
63
63
|
|
|
64
|
+
/** 挂起状态 */
|
|
65
|
+
hideStat: number;
|
|
66
|
+
|
|
64
67
|
lastDate: number;
|
|
65
68
|
lastTime: number;
|
|
66
69
|
flowMain: number;
|
|
@@ -128,6 +131,8 @@ export class TZcbdResponse implements IZcbdResponse {
|
|
|
128
131
|
zcbdUses: string = "";
|
|
129
132
|
zcbdMemo: string = "";
|
|
130
133
|
|
|
134
|
+
hideStat: number = 0;
|
|
135
|
+
|
|
131
136
|
unitText: string = "";
|
|
132
137
|
|
|
133
138
|
lastDate: number = 0;
|
|
@@ -80,6 +80,9 @@ export interface IZccfResponse {
|
|
|
80
80
|
/** 累计折旧 */
|
|
81
81
|
zccfLjzj: number;
|
|
82
82
|
|
|
83
|
+
/** 挂起状态 */
|
|
84
|
+
hideStat: number;
|
|
85
|
+
|
|
83
86
|
lastDate: number;
|
|
84
87
|
lastTime: number;
|
|
85
88
|
flowMain: number;
|
|
@@ -159,6 +162,7 @@ export class TZccfResponse implements IZccfResponse {
|
|
|
159
162
|
zccfZcjz: number = 0;
|
|
160
163
|
/** 累计折旧 */
|
|
161
164
|
zccfLjzj: number = 0;
|
|
165
|
+
hideStat: number = 0;
|
|
162
166
|
|
|
163
167
|
lastDate: number = 0;
|
|
164
168
|
lastTime: number = 0;
|
|
@@ -68,6 +68,9 @@ export interface IZcczResponse {
|
|
|
68
68
|
/** 单位名称 */
|
|
69
69
|
unitText: string;
|
|
70
70
|
|
|
71
|
+
/** 挂起状态 */
|
|
72
|
+
hideStat: number;
|
|
73
|
+
|
|
71
74
|
lastDate: number;
|
|
72
75
|
lastTime: number;
|
|
73
76
|
flowMain: number;
|
|
@@ -139,6 +142,8 @@ export class TZcczResponse implements IZcczResponse {
|
|
|
139
142
|
|
|
140
143
|
unitText: string = "";
|
|
141
144
|
|
|
145
|
+
hideStat: number = 0;
|
|
146
|
+
|
|
142
147
|
lastDate: number = 0;
|
|
143
148
|
lastTime: number = 0;
|
|
144
149
|
flowMain: number = 0;
|
|
@@ -82,6 +82,9 @@ export interface IZcdbResponse {
|
|
|
82
82
|
/** 单位名称 */
|
|
83
83
|
unitText: string;
|
|
84
84
|
|
|
85
|
+
/** 挂起状态 */
|
|
86
|
+
hideStat: number;
|
|
87
|
+
|
|
85
88
|
lastDate: number;
|
|
86
89
|
lastTime: number;
|
|
87
90
|
flowMain: number;
|
|
@@ -155,6 +158,8 @@ export class TZcdbResponse implements IZcdbResponse {
|
|
|
155
158
|
|
|
156
159
|
unitText: string = "";
|
|
157
160
|
|
|
161
|
+
hideStat: number = 0;
|
|
162
|
+
|
|
158
163
|
lastDate: number = 0;
|
|
159
164
|
lastTime: number = 0;
|
|
160
165
|
flowMain: number = 0;
|
package/src/card/index.ts
CHANGED
|
@@ -8,11 +8,14 @@ import { IZcdbResponse, TZcdbResponse } from "./IZcdbResponse";
|
|
|
8
8
|
import { IZclbResponse, TZclbResponse } from "./IZclbResponse";
|
|
9
9
|
import { IZczjPropResponse, TZczjPropResponse } from "./IZczjPropResponse";
|
|
10
10
|
import { IZczjResponse, TZczjResponse } from "./IZczjResponse";
|
|
11
|
+
import { IRangeVal, ICardMainFindResponse, TRangeVal, TCardMainFindResponse } from "./ICardMainFindResponse";
|
|
11
12
|
|
|
12
13
|
export {
|
|
14
|
+
type ICardMainFindResponse,
|
|
13
15
|
type ICardMainResponse,
|
|
14
16
|
type IGblbResponse,
|
|
15
17
|
type IP4pzResponse,
|
|
18
|
+
type IRangeVal,
|
|
16
19
|
type IZcbdResponse,
|
|
17
20
|
type IZccfResponse,
|
|
18
21
|
type IZcczResponse,
|
|
@@ -20,9 +23,11 @@ export {
|
|
|
20
23
|
type IZclbResponse,
|
|
21
24
|
type IZczjPropResponse,
|
|
22
25
|
type IZczjResponse,
|
|
26
|
+
TCardMainFindResponse,
|
|
23
27
|
TCardMainResponse,
|
|
24
28
|
TGblbResponse,
|
|
25
29
|
TP4pzResponse,
|
|
30
|
+
TRangeVal,
|
|
26
31
|
TZcbdResponse,
|
|
27
32
|
TZccfResponse,
|
|
28
33
|
TZcczResponse,
|
package/src/conf/IConfig.ts
CHANGED
|
@@ -143,7 +143,7 @@ export class TDeptResponse extends TBaseResponse<IDeptResponse[]> implements IDe
|
|
|
143
143
|
travel.billCode = dept.deptCode;
|
|
144
144
|
travel.mastName = dept.mastName;
|
|
145
145
|
travel.createBy = dept.createBy;
|
|
146
|
-
travel.whatDone = whatDone
|
|
146
|
+
travel.whatDone = `${whatDone}${dept.deptName}`;
|
|
147
147
|
return travel;
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -120,7 +120,7 @@ export class TLaidResponse extends TBaseResponse<ILaidResponse> implements ILaid
|
|
|
120
120
|
travel.billCode = laid.laidCode;
|
|
121
121
|
travel.mastName = laid.mastName;
|
|
122
122
|
travel.createBy = laid.createBy;
|
|
123
|
-
travel.whatDone = whatDone
|
|
123
|
+
travel.whatDone = `${whatDone}${laid.laidName}`;
|
|
124
124
|
return travel;
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -70,7 +70,7 @@ export class TPartResponse implements IPartResponse {
|
|
|
70
70
|
usesZbhd: number = 0;
|
|
71
71
|
usesFlow: number = 0;
|
|
72
72
|
|
|
73
|
-
static toTravel(part: IPartResponse): TCore.ISysTravelResponse {
|
|
73
|
+
static toTravel(part: IPartResponse, buttonType: string): TCore.ISysTravelResponse {
|
|
74
74
|
const travel = new TCore.TSysTravelResponse();
|
|
75
75
|
travel.whoBuild = part.whoBuild;
|
|
76
76
|
travel.flowMain = 0;
|
|
@@ -80,19 +80,20 @@ export class TPartResponse implements IPartResponse {
|
|
|
80
80
|
travel.billCode = "";
|
|
81
81
|
travel.mastName = part.mastName;
|
|
82
82
|
travel.createBy = part.createBy;
|
|
83
|
+
travel.whatDone = `${buttonType}${part.usrPartn}`;
|
|
83
84
|
return travel;
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
/** 转化成记录日志需要的数据 */
|
|
87
|
-
static toTravelData(card
|
|
88
|
+
static toTravelData(card: IPartResponse | IPartResponse[] | undefined, buttonType: string): TCore.ISysTravelResponse[] {
|
|
88
89
|
if (_.isNil(card)) {
|
|
89
90
|
return [];
|
|
90
91
|
}
|
|
91
92
|
if (_.isArray(card)) {
|
|
92
93
|
return card.map((u) => {
|
|
93
|
-
return this.toTravel(u);
|
|
94
|
+
return this.toTravel(u, buttonType);
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
|
-
return [this.toTravel(card)];
|
|
97
|
+
return [this.toTravel(card, buttonType)];
|
|
97
98
|
}
|
|
98
99
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { construct, destruct } from "@aximario/json-tree";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import type { IPzptTypeResponse } from "../pzpt
|
|
3
|
+
import type { IPzptTypeResponse } from "../pzpt";
|
|
4
4
|
import { type IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
5
5
|
import type { IUnitResponseElemPara } from "./IUnitResponseElemPara";
|
|
6
6
|
import { TUnitResponseElemPara } from "./IUnitResponseElemPara";
|
|
@@ -208,7 +208,7 @@ export class TUnitResponse extends TBaseResponse<IUnitResponse[]> implements IUn
|
|
|
208
208
|
return destruct(_.cloneDeep(treeUnit), { id: "unitIndx", pid: "parentID", children: "children" }) as IUnitResponse[];
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
static toTravel(unit: IUnitResponse): TCore.ISysTravelResponse {
|
|
211
|
+
static toTravel(unit: IUnitResponse, buttonType: string): TCore.ISysTravelResponse {
|
|
212
212
|
const travel = new TCore.TSysTravelResponse();
|
|
213
213
|
travel.whoBuild = unit.whoBuild;
|
|
214
214
|
travel.flowMain = 0;
|
|
@@ -218,18 +218,19 @@ export class TUnitResponse extends TBaseResponse<IUnitResponse[]> implements IUn
|
|
|
218
218
|
travel.billCode = unit.unitCode;
|
|
219
219
|
travel.mastName = unit.mastName;
|
|
220
220
|
travel.createBy = unit.createBy;
|
|
221
|
+
travel.whatDone = `${buttonType}${unit.unitNamf}`;
|
|
221
222
|
return travel;
|
|
222
223
|
}
|
|
223
224
|
|
|
224
|
-
static toTravelData(card
|
|
225
|
+
static toTravelData(card: IUnitResponse | IUnitResponse[] | undefined, buttonType: string): TCore.ISysTravelResponse[] {
|
|
225
226
|
if (_.isNil(card)) {
|
|
226
227
|
return [];
|
|
227
228
|
}
|
|
228
229
|
if (_.isArray(card)) {
|
|
229
230
|
return card.map((u) => {
|
|
230
|
-
return this.toTravel(u);
|
|
231
|
+
return this.toTravel(u, buttonType);
|
|
231
232
|
});
|
|
232
233
|
}
|
|
233
|
-
return [this.toTravel(card)];
|
|
234
|
+
return [this.toTravel(card, buttonType)];
|
|
234
235
|
}
|
|
235
236
|
}
|
|
@@ -274,30 +274,31 @@ export class TUserResponse extends TBaseResponse<IUserResponse[]> implements IUs
|
|
|
274
274
|
return construct(treeUser, { id: "userIndx", pid: "parentID", children: "children" }) as IUserResponse[];
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
static toTravel(user: IUserResponse): TCore.ISysTravelResponse {
|
|
277
|
+
static toTravel(user: IUserResponse, buttonType: string): TCore.ISysTravelResponse {
|
|
278
278
|
const travel = new TCore.TSysTravelResponse();
|
|
279
279
|
travel.whoBuild = user.whoBuild;
|
|
280
280
|
travel.flowMain = 0;
|
|
281
281
|
travel.flowNode = 0;
|
|
282
282
|
travel.billUUID = user.entityID;
|
|
283
283
|
travel.billMain = user.userIndx;
|
|
284
|
-
travel.billCode = user.
|
|
284
|
+
travel.billCode = user.enrollID;
|
|
285
285
|
travel.mastName = user.mastName;
|
|
286
286
|
travel.createBy = user.createBy;
|
|
287
|
+
travel.whatDone = `${buttonType}${user.userName}`;
|
|
287
288
|
return travel;
|
|
288
289
|
}
|
|
289
290
|
|
|
290
291
|
/** 转化成记录日志需要的数据 */
|
|
291
|
-
static toTravelData(card
|
|
292
|
+
static toTravelData(card: IUserResponse | IUserResponse[] | undefined, buttonType: string): TCore.ISysTravelResponse[] {
|
|
292
293
|
if (_.isNil(card)) {
|
|
293
294
|
return [];
|
|
294
295
|
}
|
|
295
296
|
if (_.isArray(card)) {
|
|
296
297
|
return card.map((u) => {
|
|
297
|
-
return this.toTravel(u);
|
|
298
|
+
return this.toTravel(u, buttonType);
|
|
298
299
|
});
|
|
299
300
|
}
|
|
300
|
-
return [this.toTravel(card)];
|
|
301
|
+
return [this.toTravel(card, buttonType)];
|
|
301
302
|
}
|
|
302
303
|
}
|
|
303
304
|
|
package/src/enums/btnMode.ts
CHANGED
|
@@ -24,7 +24,7 @@ export enum TBtnActive {
|
|
|
24
24
|
/** 按钮类型 */
|
|
25
25
|
export enum TButtonType {
|
|
26
26
|
/** 空 */
|
|
27
|
-
null = "
|
|
27
|
+
null = "",
|
|
28
28
|
/** 确认 */
|
|
29
29
|
confirm = "确认",
|
|
30
30
|
/** 取消确认 */
|
|
@@ -94,5 +94,7 @@ export enum TButtonType {
|
|
|
94
94
|
/** 打印设置 */
|
|
95
95
|
printConfig = "打印设置",
|
|
96
96
|
/** 复制 */
|
|
97
|
-
copy = "复制"
|
|
97
|
+
copy = "复制",
|
|
98
|
+
/** 计算 */
|
|
99
|
+
calculate = "计算"
|
|
98
100
|
}
|