@ningboyz/types 1.0.168 → 1.0.170
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/ICardDataResponse.ts +38 -25
- package/src/const/const_module.ts +13 -1
- package/src/expd/IExpdMainResponse.ts +3 -3
- package/src/gams/IGamsBillResponse.ts +5 -5
- package/src/myoa/IMyoaMainResponse.ts +9 -6
- package/src/myoa/IMyoaRoomResponse.ts +76 -0
- package/src/myoa/index.ts +9 -6
- package/src/yzcg/IYzcgMainResponse.ts +3 -3
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@ import _ from "lodash";
|
|
|
4
4
|
import { IPathResponse } from "../core/IPathResponse";
|
|
5
5
|
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
6
6
|
import * as Const from "../const";
|
|
7
|
-
import {TCore} from "../../index.ts";
|
|
8
|
-
import {ICardMainResponse} from "./ICardMainResponse.ts";
|
|
7
|
+
import { TCore } from "../../index.ts";
|
|
8
|
+
import { ICardMainResponse } from "./ICardMainResponse.ts";
|
|
9
9
|
/**
|
|
10
10
|
车辆保险:dataType=1加001,使用单位(unitDict),投保单位(dddwText),生效日期(handleAt),到期日期(autoBxrq)
|
|
11
11
|
车辆加油:dataType=1002,加油日期(handleAt),油油号(字典)(autoJyyh),加油容量(nowCount)
|
|
@@ -46,11 +46,14 @@ export interface IDataResponse {
|
|
|
46
46
|
unitDict: number; //#new使用单位(字典)
|
|
47
47
|
deptMain: number;
|
|
48
48
|
menuUUID: string;
|
|
49
|
-
|
|
49
|
+
/** 经办时间|申请日期 */
|
|
50
|
+
handleAt: number;
|
|
50
51
|
handleBy: string; //#经办用户
|
|
51
52
|
nowCount: number; //#当前里程
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
/** 保险花费|维修金额 */
|
|
54
|
+
nowMoney: number;
|
|
55
|
+
/** 登记内容|维修原因 */
|
|
56
|
+
dataText: string;
|
|
54
57
|
dataMemo: string; //#备注信息
|
|
55
58
|
dddwText: string; //#定点单位
|
|
56
59
|
autoJyyh: number; //#new加油油号
|
|
@@ -61,10 +64,11 @@ export interface IDataResponse {
|
|
|
61
64
|
autoType: number;
|
|
62
65
|
startDay: number;
|
|
63
66
|
endedDay: number;
|
|
64
|
-
getMoney: number;
|
|
67
|
+
getMoney: number; //#加油金额
|
|
65
68
|
|
|
66
69
|
autoCpbh: string; //#车牌号
|
|
67
70
|
cardName: string;
|
|
71
|
+
/** 单据编号 */
|
|
68
72
|
cardCode: string;
|
|
69
73
|
unitDictText: string;
|
|
70
74
|
autoJyyhText: string;
|
|
@@ -76,26 +80,27 @@ export interface IDataResponse {
|
|
|
76
80
|
|
|
77
81
|
autoClno: string; //#车架编号
|
|
78
82
|
|
|
79
|
-
doneWlzf: number;
|
|
83
|
+
doneWlzf: number; //#支付确认
|
|
80
84
|
|
|
81
|
-
autoTbxz: number;
|
|
85
|
+
autoTbxz: number; //#保险险种
|
|
82
86
|
autoTbxzText: string;
|
|
83
87
|
|
|
84
88
|
billStat: number;
|
|
85
89
|
flowMain: number;
|
|
86
90
|
flowNode: number;
|
|
87
91
|
lastMemo: string;
|
|
88
|
-
|
|
89
92
|
flowText: string;
|
|
90
|
-
|
|
91
93
|
flowUser: string;
|
|
92
94
|
|
|
93
|
-
itemMain: number;
|
|
95
|
+
itemMain: number; //#加油卡id
|
|
94
96
|
sourceND: number;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
/** 事前标识 1:允许被关联 0:默认值 */
|
|
98
|
+
todoLock: number;
|
|
99
|
+
listLock: IDataResponse[];
|
|
100
|
+
|
|
101
|
+
//#虚拟字段
|
|
102
|
+
ylcs: number; //#月里程数
|
|
103
|
+
nclcs: number; //#年初里程数
|
|
99
104
|
}
|
|
100
105
|
|
|
101
106
|
export class TDataResponse implements IDataResponse {
|
|
@@ -139,7 +144,7 @@ export class TDataResponse implements IDataResponse {
|
|
|
139
144
|
dddwText: string = "";
|
|
140
145
|
startDay: number = 0;
|
|
141
146
|
endedDay: number = 0;
|
|
142
|
-
getMoney: number = 0;
|
|
147
|
+
getMoney: number = 0;
|
|
143
148
|
|
|
144
149
|
autoJyyh: number = 0;
|
|
145
150
|
autoBxrq: number = 0;
|
|
@@ -159,10 +164,10 @@ export class TDataResponse implements IDataResponse {
|
|
|
159
164
|
expdCode: string = "";
|
|
160
165
|
listPath: IPathResponse[] = [];
|
|
161
166
|
|
|
162
|
-
autoClno: string = "";
|
|
163
|
-
doneWlzf: number = 0;
|
|
167
|
+
autoClno: string = "";
|
|
168
|
+
doneWlzf: number = 0;
|
|
164
169
|
|
|
165
|
-
autoTbxz: number = 0;
|
|
170
|
+
autoTbxz: number = 0;
|
|
166
171
|
autoTbxzText: string = "";
|
|
167
172
|
|
|
168
173
|
billStat: number = 0;
|
|
@@ -174,10 +179,14 @@ export class TDataResponse implements IDataResponse {
|
|
|
174
179
|
itemMain: number = 0;
|
|
175
180
|
sourceND: number = 0;
|
|
176
181
|
|
|
182
|
+
/** 事前标识 1:允许被关联 0:默认值 */
|
|
183
|
+
todoLock: number = 1;
|
|
184
|
+
|
|
185
|
+
listLock: IDataResponse[] = [];
|
|
186
|
+
|
|
177
187
|
//虚拟字段
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
nclcs: number = 0; //年初里程数
|
|
188
|
+
ylcs: number = 0;
|
|
189
|
+
nclcs: number = 0;
|
|
181
190
|
|
|
182
191
|
static toFlowData(card: TDataResponse): TFlowDataResponse {
|
|
183
192
|
let result = new TFlowDataResponse();
|
|
@@ -201,13 +210,17 @@ export class TDataResponse implements IDataResponse {
|
|
|
201
210
|
return result;
|
|
202
211
|
}
|
|
203
212
|
|
|
204
|
-
static
|
|
213
|
+
static toFlowDatas(card: IDataResponse[]): TFlowDataResponse[] {
|
|
214
|
+
return card.map((u) => this.toFlowData(u));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
static toTravel(card: IDataResponse): TCore.ISysTravelResponse {
|
|
205
218
|
const travel = new TCore.TSysTravelResponse();
|
|
206
219
|
travel.whoBuild = card.whoBuild;
|
|
207
220
|
travel.flowMain = card.flowMain;
|
|
208
221
|
travel.flowNode = card.flowNode;
|
|
209
222
|
travel.billUUID = card.entityID;
|
|
210
|
-
travel.billMain = card.
|
|
223
|
+
travel.billMain = card.dataIndx;
|
|
211
224
|
travel.billCode = card.cardCode;
|
|
212
225
|
travel.mastName = card.mastName;
|
|
213
226
|
travel.createBy = card.createBy;
|
|
@@ -216,7 +229,7 @@ export class TDataResponse implements IDataResponse {
|
|
|
216
229
|
}
|
|
217
230
|
|
|
218
231
|
/** 转换成记录日志需要的数据(第一层,不包含菜单) */
|
|
219
|
-
static toTravelData(card?:
|
|
232
|
+
static toTravelData(card?: IDataResponse | IDataResponse[]): TCore.ISysTravelResponse[] {
|
|
220
233
|
if (_.isNil(card)) {
|
|
221
234
|
return [];
|
|
222
235
|
}
|
|
@@ -97,6 +97,18 @@ export const CONST_MODULE_WARE_HOUSE_LYSH = "CONST_MODULE_WARE_HOUSE_LYSH";
|
|
|
97
97
|
export const CONST_MODULE_WARE_HOUSE_LYQR = "CONST_MODULE_WARE_HOUSE_LYQR";
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* 资产维修-维修申请
|
|
101
101
|
*/
|
|
102
102
|
export const CONST_MODULE_DATA_DJSQ = "CONST_MODULE_DATA_DJSQ";
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 资产维修-维修审核
|
|
106
|
+
*/
|
|
107
|
+
export const CONST_MODULE_DATA_DJSH = "CONST_MODULE_DATA_DJSH";
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 资产维修-维修登记
|
|
112
|
+
*/
|
|
113
|
+
export const CONST_MODULE_DATA_WXDJ = "CONST_MODULE_DATA_WXDJ";
|
|
114
|
+
|
|
@@ -8,7 +8,7 @@ import { IGamsBillResponse } from "../gams/IGamsBillResponse";
|
|
|
8
8
|
import { IExpdCallResponse } from "./IExpdCallResponse";
|
|
9
9
|
import { IUserLiteResponse } from "../core/IUserLiteResponse";
|
|
10
10
|
import { IExpdCardResponse } from "./IExpdCardResponse";
|
|
11
|
-
import {
|
|
11
|
+
import { IZbhdMainResponse } from "../zbhd";
|
|
12
12
|
import { IGamsMainResponse } from "../gams";
|
|
13
13
|
import { ICggzMainResponse } from "../cggz/ICggzMainResponse";
|
|
14
14
|
import { IYzcgMainResponse } from "../yzcg";
|
|
@@ -231,7 +231,7 @@ export interface IExpdMainResponse {
|
|
|
231
231
|
listWLDY: IPathResponse[];
|
|
232
232
|
listYSBM: IDeptResponse[];
|
|
233
233
|
listYSDW: IUnitResponse[];
|
|
234
|
-
listZBHD:
|
|
234
|
+
listZBHD: IZbhdMainResponse[];
|
|
235
235
|
listZFLX: any; //支付类型
|
|
236
236
|
listZNKS: any;
|
|
237
237
|
listGAMS: IGamsMainResponse[];
|
|
@@ -490,7 +490,7 @@ export class TExpdMainResponse implements IExpdMainResponse {
|
|
|
490
490
|
listWLDY: IPathResponse[] = [];
|
|
491
491
|
listYSBM: IDeptResponse[] = [];
|
|
492
492
|
listYSDW: IUnitResponse[] = [];
|
|
493
|
-
listZBHD:
|
|
493
|
+
listZBHD: IZbhdMainResponse[] = [];
|
|
494
494
|
listZFLX: any[] = [];
|
|
495
495
|
listZNKS: any = [];
|
|
496
496
|
listGAMS: IGamsMainResponse[] = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IUserLiteResponse } from "../core
|
|
2
|
-
import {
|
|
1
|
+
import { IUserLiteResponse } from "../core";
|
|
2
|
+
import { IZbhdMainResponse } from "../zbhd";
|
|
3
|
+
import { IDictResponse } from "../core";
|
|
3
4
|
import { IGamsEachResponse } from "./IGamsEachResponse";
|
|
4
|
-
import { IZbhdMainResponese } from "./IZbhdMainResponese";
|
|
5
5
|
|
|
6
6
|
export interface IGamsBillResponse {
|
|
7
7
|
whoBuild: number;
|
|
@@ -127,7 +127,7 @@ export interface IGamsBillResponse {
|
|
|
127
127
|
listEach: IGamsEachResponse[]; //#标准要素
|
|
128
128
|
listType: IGamsEachResponse[];
|
|
129
129
|
listCLYH: IUserLiteResponse[];
|
|
130
|
-
listZBHD:
|
|
130
|
+
listZBHD: IZbhdMainResponse[];
|
|
131
131
|
|
|
132
132
|
bField01: number;
|
|
133
133
|
bField02: number;
|
|
@@ -298,7 +298,7 @@ export class TGamsBillResponse implements IGamsBillResponse {
|
|
|
298
298
|
listEach: IGamsEachResponse[] = [];
|
|
299
299
|
listType: IGamsEachResponse[] = [];
|
|
300
300
|
listCLYH: IUserLiteResponse[] = [];
|
|
301
|
-
listZBHD:
|
|
301
|
+
listZBHD: IZbhdMainResponse[] = [];
|
|
302
302
|
|
|
303
303
|
bField01: number = 0; //是否单位自理 出差
|
|
304
304
|
bField02: number = 0; //是否定额补贴 出差
|
|
@@ -10,7 +10,8 @@ import { IYzcgMainResponse } from "../yzcg/IYzcgMainResponse";
|
|
|
10
10
|
import { IMyoaCashResponse } from "./IMyoaCashResponse";
|
|
11
11
|
import { IMyoaPGDWResponse } from "./IMyoaPGDWResponse";
|
|
12
12
|
import _ from "lodash";
|
|
13
|
-
import {TCore} from "../../index.ts";
|
|
13
|
+
import { TCore } from "../../index.ts";
|
|
14
|
+
import { IMyoaRoomResponse, TMyoaRoomResponse } from "./IMyoaRoomResponse.ts";
|
|
14
15
|
|
|
15
16
|
export interface IMyoaMainResponse {
|
|
16
17
|
typeName: string;
|
|
@@ -127,11 +128,11 @@ export interface IMyoaMainResponse {
|
|
|
127
128
|
/**
|
|
128
129
|
* 公物仓
|
|
129
130
|
* */
|
|
130
|
-
laidMain: number
|
|
131
|
+
laidMain: number;
|
|
131
132
|
/**
|
|
132
133
|
* 公物仓名称
|
|
133
134
|
* */
|
|
134
|
-
laidText: string
|
|
135
|
+
laidText: string;
|
|
135
136
|
/**
|
|
136
137
|
* 入仓/领用数量
|
|
137
138
|
* */
|
|
@@ -159,6 +160,7 @@ export interface IMyoaMainResponse {
|
|
|
159
160
|
|
|
160
161
|
listLock: IMyoaMainResponse[];
|
|
161
162
|
listCard: ICardMainResponse[];
|
|
163
|
+
listChat: IMyoaRoomResponse[];
|
|
162
164
|
listPath: IPathResponse[];
|
|
163
165
|
listSQBM: IDeptResponse[];
|
|
164
166
|
listSQYH: IUserResponse[];
|
|
@@ -300,6 +302,7 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
|
|
|
300
302
|
|
|
301
303
|
listLock: IMyoaMainResponse[] = [];
|
|
302
304
|
listCard: ICardMainResponse[] = [];
|
|
305
|
+
listChat: TMyoaRoomResponse[] = [];
|
|
303
306
|
listPath: IPathResponse[] = [];
|
|
304
307
|
listSQBM: IDeptResponse[] = [];
|
|
305
308
|
listSQYH: IUserResponse[] = [];
|
|
@@ -406,9 +409,9 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
|
|
|
406
409
|
return result;
|
|
407
410
|
}
|
|
408
411
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
+
/**
|
|
413
|
+
* 用来记录操作
|
|
414
|
+
* */
|
|
412
415
|
static toTravel(card: IMyoaMainResponse): TCore.ISysTravelResponse {
|
|
413
416
|
const travel = new TCore.TSysTravelResponse();
|
|
414
417
|
travel.whoBuild = card.whoBuild;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export interface IMyoaRoomResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
roomIndx: number;
|
|
5
|
+
parentID: number;
|
|
6
|
+
hashCode: number;
|
|
7
|
+
dataLevl: number;
|
|
8
|
+
dataFrom: number;
|
|
9
|
+
kjndKJQJ: number;
|
|
10
|
+
dataStat: number;
|
|
11
|
+
dataOrdr: number;
|
|
12
|
+
dataDate: number;
|
|
13
|
+
dataTime: number;
|
|
14
|
+
dataHide: number;
|
|
15
|
+
dataGUID: string;
|
|
16
|
+
mastName: string;
|
|
17
|
+
mastGUID: string;
|
|
18
|
+
createBy: string;
|
|
19
|
+
createAt: number;
|
|
20
|
+
updateBy: string;
|
|
21
|
+
updateAt: number;
|
|
22
|
+
deleteBy: string;
|
|
23
|
+
deleteAt: number;
|
|
24
|
+
queuesBy: number;
|
|
25
|
+
entityID: string;
|
|
26
|
+
cardType: number;
|
|
27
|
+
cardCode: string;
|
|
28
|
+
cardName: string;
|
|
29
|
+
cardMemo: string;
|
|
30
|
+
cardArea: number;
|
|
31
|
+
cardZlwz: string;
|
|
32
|
+
userSize: number;
|
|
33
|
+
cardText: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class TMyoaRoomResponse implements IMyoaRoomResponse {
|
|
37
|
+
whoBuild: number = 0;
|
|
38
|
+
userIndx: number = 0;
|
|
39
|
+
roomIndx: number = 0;
|
|
40
|
+
|
|
41
|
+
parentID: number = 0;
|
|
42
|
+
hashCode: number = 0;
|
|
43
|
+
dataLevl: number = 0;
|
|
44
|
+
dataFrom: number = 0;
|
|
45
|
+
kjndKJQJ: number = 0;
|
|
46
|
+
dataStat: number = 0;
|
|
47
|
+
dataOrdr: number = 0;
|
|
48
|
+
dataDate: number = 0;
|
|
49
|
+
dataTime: number = 0;
|
|
50
|
+
dataHide: number = 0;
|
|
51
|
+
dataGUID: string = "";
|
|
52
|
+
mastName: string = "";
|
|
53
|
+
mastGUID: string = "";
|
|
54
|
+
createBy: string = "";
|
|
55
|
+
createAt: number = 0;
|
|
56
|
+
updateBy: string = "";
|
|
57
|
+
updateAt: number = 0;
|
|
58
|
+
deleteBy: string = "";
|
|
59
|
+
deleteAt: number = 0;
|
|
60
|
+
queuesBy: number = 0;
|
|
61
|
+
|
|
62
|
+
entityID: string = "";
|
|
63
|
+
cardType: number = 0;
|
|
64
|
+
/** 资产编码-会议室编号 */
|
|
65
|
+
cardCode: string = "";
|
|
66
|
+
/** 资产名称-会议室名称 */
|
|
67
|
+
cardName: string = "";
|
|
68
|
+
cardMemo: string = "";
|
|
69
|
+
/** 资产面积-会议室面积 */
|
|
70
|
+
cardArea: number = 0;
|
|
71
|
+
/** 坐落位置 */
|
|
72
|
+
cardZlwz: string = "";
|
|
73
|
+
/** 容纳人数 */
|
|
74
|
+
userSize: number = 0;
|
|
75
|
+
cardText: string = "";
|
|
76
|
+
}
|
package/src/myoa/index.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { IMyoaMainResponse, TMyoaMainResponse } from "./IMyoaMainResponse";
|
|
2
2
|
import { IMyoaCashResponse, TMyoaCashResponse } from "./IMyoaCashResponse";
|
|
3
3
|
import { IMyoaPGDWResponse, TMyoaPGDWResponse } from "./IMyoaPGDWResponse";
|
|
4
|
+
import { IMyoaRoomResponse, TMyoaRoomResponse } from "./IMyoaRoomResponse";
|
|
4
5
|
|
|
5
|
-
export {
|
|
6
|
+
export {
|
|
6
7
|
type IMyoaMainResponse,
|
|
7
|
-
type IMyoaCashResponse,
|
|
8
|
-
type IMyoaPGDWResponse,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
type IMyoaCashResponse,
|
|
9
|
+
type IMyoaPGDWResponse,
|
|
10
|
+
type IMyoaRoomResponse,
|
|
11
|
+
TMyoaMainResponse,
|
|
12
|
+
TMyoaCashResponse,
|
|
13
|
+
TMyoaPGDWResponse,
|
|
14
|
+
TMyoaRoomResponse
|
|
12
15
|
};
|
|
@@ -5,7 +5,6 @@ import { IUserLiteResponse } from "../core/IUserLiteResponse";
|
|
|
5
5
|
import { IUserResponse } from "../core/IUserResponse";
|
|
6
6
|
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
7
7
|
import { IGamsBillResponse } from "../gams/IGamsBillResponse";
|
|
8
|
-
import { IZbhdMainResponese } from "../gams/IZbhdMainResponese";
|
|
9
8
|
import { IYzcbMainResponse } from "../yzcb/IYzcbMainResponse";
|
|
10
9
|
import { IYzcqMainResponse } from "../yzcq/IYzcqMainResponse";
|
|
11
10
|
import { IYzcgBillResponse, TYzcgBillResponse } from "./IYzcgBillResponse";
|
|
@@ -14,6 +13,7 @@ import { IYzcgLockResponse } from "./IYzcgLockResponse";
|
|
|
14
13
|
import { IExpdMainResponse } from "../expd/IExpdMainResponse";
|
|
15
14
|
import { IYzhtMainResponse } from "../yzht/IYzhtMainResponse";
|
|
16
15
|
import _ from "lodash";
|
|
16
|
+
import { IZbhdMainResponse } from "../zbhd";
|
|
17
17
|
|
|
18
18
|
export interface IYzcgMainResponse {
|
|
19
19
|
typeName: string;
|
|
@@ -132,7 +132,7 @@ export interface IYzcgMainResponse {
|
|
|
132
132
|
listSQBM: IDeptResponse[];
|
|
133
133
|
listSQYH: IUserResponse[] | IUserLiteResponse[];
|
|
134
134
|
yzcgBill: TYzcgBillResponse[];
|
|
135
|
-
listZBHD:
|
|
135
|
+
listZBHD: IZbhdMainResponse[];
|
|
136
136
|
listYzcb: IYzcbMainResponse[];
|
|
137
137
|
listGams: IGamsBillResponse[];
|
|
138
138
|
listGshd: IYzcgGshdResponse[];
|
|
@@ -260,7 +260,7 @@ export class TYzcgMainResponse implements IYzcgMainResponse {
|
|
|
260
260
|
listSQBM: IDeptResponse[] = [];
|
|
261
261
|
listSQYH: IUserResponse[] | IUserLiteResponse[] = [];
|
|
262
262
|
yzcgBill: IYzcgBillResponse[] = [];
|
|
263
|
-
listZBHD:
|
|
263
|
+
listZBHD: IZbhdMainResponse[] = [];
|
|
264
264
|
listYzcb: IYzcbMainResponse[] = [];
|
|
265
265
|
listGams: IGamsBillResponse[] = [];
|
|
266
266
|
listGshd: IYzcgGshdResponse[] = [];
|