@ningboyz/types 1.6.144 → 1.6.146
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/ISyszclbgblbResponse.ts~ +67 -0
- package/src/card/IZclbgblbResponse.ts~ +68 -0
- package/src/const/const_wtui_item_type.ts~ +20 -0
- package/src/core/IPartResponse.ts +7 -10
- package/src/myoa/IMyoaMainResponse.ts +8 -0
- package/src/wtui/IWtuiViewResponse.ts +8 -0
package/package.json
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
|
|
3
|
+
export interface ISyszclbgblbResponse {
|
|
4
|
+
whoBuild: number
|
|
5
|
+
userIndx: number
|
|
6
|
+
zclbIndx: number
|
|
7
|
+
dataStat: number
|
|
8
|
+
dataHide: number
|
|
9
|
+
dataOrdr: number
|
|
10
|
+
dataFrom: number
|
|
11
|
+
dataDate: number
|
|
12
|
+
dataTime: number
|
|
13
|
+
createBy: string
|
|
14
|
+
createAt: number
|
|
15
|
+
updateBy: string
|
|
16
|
+
updateAt: number
|
|
17
|
+
deleteBy: string
|
|
18
|
+
deleteAt: number
|
|
19
|
+
queuesBy: number
|
|
20
|
+
fromWhoBuild: number
|
|
21
|
+
fromUserIndx: number
|
|
22
|
+
fromGblbIndx: number
|
|
23
|
+
sourceND: number
|
|
24
|
+
fromSourceND: number
|
|
25
|
+
|
|
26
|
+
zclbTypeText: string
|
|
27
|
+
zclbCode: string
|
|
28
|
+
zclbName: string
|
|
29
|
+
gblbCode: string
|
|
30
|
+
gblbName: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class TSyszclbgblbResponse implements ISyszclbgblbResponse {
|
|
34
|
+
whoBuild: number = 0
|
|
35
|
+
userIndx: number = 0
|
|
36
|
+
zclbIndx: number = 0
|
|
37
|
+
dataStat: number = 0
|
|
38
|
+
dataHide: number = 0
|
|
39
|
+
dataOrdr: number = 0
|
|
40
|
+
dataFrom: number = 0
|
|
41
|
+
dataDate: number = 0
|
|
42
|
+
dataTime: number = 0
|
|
43
|
+
createBy: string = ""
|
|
44
|
+
createAt: number = 0
|
|
45
|
+
updateBy: string = ""
|
|
46
|
+
updateAt: number = 0
|
|
47
|
+
deleteBy: string = ""
|
|
48
|
+
deleteAt: number = 0
|
|
49
|
+
queuesBy: number = 0
|
|
50
|
+
fromWhoBuild: number = 0
|
|
51
|
+
fromUserIndx: number = 0
|
|
52
|
+
fromGblbIndx: number = 0
|
|
53
|
+
sourceND: number = 0
|
|
54
|
+
fromSourceND: number = 0
|
|
55
|
+
|
|
56
|
+
zclbTypeText: string = ""
|
|
57
|
+
zclbCode: string = ""
|
|
58
|
+
zclbName: string = ""
|
|
59
|
+
gblbCode: string = ""
|
|
60
|
+
gblbName: string = ""
|
|
61
|
+
|
|
62
|
+
constructor(data: any = {}) {
|
|
63
|
+
if (data) {
|
|
64
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
|
|
3
|
+
export interface ISyszclbgblb{
|
|
4
|
+
whoBuild : number
|
|
5
|
+
userIndx : number
|
|
6
|
+
zclbIndx : number
|
|
7
|
+
dataStat : number
|
|
8
|
+
dataHide : number
|
|
9
|
+
dataOrdr : number
|
|
10
|
+
dataFrom : number
|
|
11
|
+
dataDate : number
|
|
12
|
+
dataTime : number
|
|
13
|
+
createBy : string
|
|
14
|
+
createAt : number
|
|
15
|
+
updateBy : string
|
|
16
|
+
updateAt : number
|
|
17
|
+
deleteBy : string
|
|
18
|
+
deleteAt : number
|
|
19
|
+
queuesBy : number
|
|
20
|
+
fromWhoBuild: number
|
|
21
|
+
fromUserIndx: number
|
|
22
|
+
fromGblbIndx: number
|
|
23
|
+
sourceND : number
|
|
24
|
+
fromSourceND: number
|
|
25
|
+
|
|
26
|
+
zclbTypeText : string
|
|
27
|
+
zclbCode: string
|
|
28
|
+
zclbName: string
|
|
29
|
+
gblbCode: string
|
|
30
|
+
gblbName: string
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class TSyszclbgblb implements ISyszclbgblb{
|
|
35
|
+
whoBuild : number = 0
|
|
36
|
+
userIndx : number = 0
|
|
37
|
+
zclbIndx : number = 0
|
|
38
|
+
dataStat : number = 0
|
|
39
|
+
dataHide : number = 0
|
|
40
|
+
dataOrdr : number = 0
|
|
41
|
+
dataFrom : number = 0
|
|
42
|
+
dataDate : number = 0
|
|
43
|
+
dataTime : number = 0
|
|
44
|
+
createBy : string =''
|
|
45
|
+
createAt : number = 0
|
|
46
|
+
updateBy : string =''
|
|
47
|
+
updateAt : number = 0
|
|
48
|
+
deleteBy : string =''
|
|
49
|
+
deleteAt : number = 0
|
|
50
|
+
queuesBy : number = 0
|
|
51
|
+
fromWhoBuild: number = 0
|
|
52
|
+
fromUserIndx: number = 0
|
|
53
|
+
fromGblbIndx: number = 0
|
|
54
|
+
sourceND : number = 0
|
|
55
|
+
fromSourceND: number = 0
|
|
56
|
+
|
|
57
|
+
zclbTypeText : string =""
|
|
58
|
+
zclbCode: string =""
|
|
59
|
+
zclbName: string =""
|
|
60
|
+
gblbCode: string =""
|
|
61
|
+
gblbName: string =""
|
|
62
|
+
|
|
63
|
+
constructor(data: Partial<ISYSZCLBGBLB> = {}) {
|
|
64
|
+
if (data) {
|
|
65
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const CONST_ITEM_TYPE_TO_数值 = 0; // #数值
|
|
2
|
+
export const CONST_ITEM_TYPE_TO_文本 = 1; // #文本
|
|
3
|
+
export const CONST_ITEM_TYPE_TO_文本域 = 2; // #备注
|
|
4
|
+
export const CONST_ITEM_TYPE_TO_日期 = 3; // #日期
|
|
5
|
+
export const CONST_ITEM_TYPE_TO_字典 = 4; // #字典
|
|
6
|
+
|
|
7
|
+
export const CONST_VALIDATE_TO_手机号码 = 0; // #整数
|
|
8
|
+
export const CONST_VALIDATE_TO_邮箱 = 1; // #文本
|
|
9
|
+
export const CONST_VALIDATE_TO_身份证 = 2; // #备注
|
|
10
|
+
export const CONST_VALIDATE_TO_自定义 = 3;
|
|
11
|
+
|
|
12
|
+
export const CONST_CLEARABLE_TO_不清空 = 0; //不清空
|
|
13
|
+
export const CONST_CLEARABLE_TO_清空 = 1; //清空
|
|
14
|
+
export const CONST_CLEARABLE_TO_询问 = 2; //询问
|
|
15
|
+
|
|
16
|
+
export const CONST_OPERATOR_TO_大于 = 0; //大于
|
|
17
|
+
export const CONST_OPERATOR_TO_等于 = 1; //等于
|
|
18
|
+
export const CONST_OPERATOR_TO_小于 = 2; //小于
|
|
19
|
+
export const CONST_OPERATOR_TO_大于等于 = 3; //大于等于
|
|
20
|
+
export const CONST_OPERATOR_TO_小于等于 = 4; //小于等于
|
|
@@ -3,7 +3,6 @@ import _ from "lodash";
|
|
|
3
3
|
import { TWithEXPDS, TWithMYOA, WithEXPDS, WithMYOA } from "./IUserResponse.ts";
|
|
4
4
|
import { IPathResponsePathPara, TPathResponsePathPara } from "./IPathResponsePartPara.ts";
|
|
5
5
|
import { IWtuiViewResponse } from "../wtui/IWtuiViewResponse.ts";
|
|
6
|
-
import { IWtuiFormResponse } from "../wtui/IWtuiFormResponse.ts";
|
|
7
6
|
|
|
8
7
|
export interface IPartResponse {
|
|
9
8
|
whoBuild: number;
|
|
@@ -52,8 +51,7 @@ export interface IPartResponse {
|
|
|
52
51
|
/** 内部管理:允许查看请假统计 */
|
|
53
52
|
asLeaderWhenMYOA: number;
|
|
54
53
|
|
|
55
|
-
get4View:
|
|
56
|
-
get4Form: IWtuiViewResponse[];
|
|
54
|
+
get4View: IWtuiViewResponse[];
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
export class TPartResponse implements IPartResponse {
|
|
@@ -99,8 +97,7 @@ export class TPartResponse implements IPartResponse {
|
|
|
99
97
|
listUserWhenExpd: number = 0;
|
|
100
98
|
asLeaderWhenMYOA: number = 0;
|
|
101
99
|
|
|
102
|
-
get4View:
|
|
103
|
-
get4Form: IWtuiViewResponse[] = [];
|
|
100
|
+
get4View: IWtuiViewResponse[] = [];
|
|
104
101
|
|
|
105
102
|
static parseJson(partPara: string) {
|
|
106
103
|
const defaultPathPara = new TPathResponsePathPara();
|
|
@@ -129,15 +126,15 @@ export class TPartResponse implements IPartResponse {
|
|
|
129
126
|
}
|
|
130
127
|
|
|
131
128
|
/** 转化成记录日志需要的数据 */
|
|
132
|
-
static toTravelData(
|
|
133
|
-
if (_.isNil(
|
|
129
|
+
static toTravelData(part: IPartResponse | IPartResponse[] | undefined, buttonType: string): TCore.ISysTravelResponse[] {
|
|
130
|
+
if (_.isNil(part)) {
|
|
134
131
|
return [];
|
|
135
132
|
}
|
|
136
|
-
if (_.isArray(
|
|
137
|
-
return
|
|
133
|
+
if (_.isArray(part)) {
|
|
134
|
+
return part.map((u) => {
|
|
138
135
|
return this.toTravel(u, buttonType);
|
|
139
136
|
});
|
|
140
137
|
}
|
|
141
|
-
return [this.toTravel(
|
|
138
|
+
return [this.toTravel(part, buttonType)];
|
|
142
139
|
}
|
|
143
140
|
}
|
|
@@ -141,6 +141,10 @@ export interface IMyoaMainResponse {
|
|
|
141
141
|
/** 送审/审核时间 */
|
|
142
142
|
lastTime: number;
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* 0:用车 1锁车
|
|
146
|
+
* */
|
|
147
|
+
isLocked : number;
|
|
144
148
|
/**
|
|
145
149
|
* 公物仓
|
|
146
150
|
* */
|
|
@@ -386,6 +390,10 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
|
|
|
386
390
|
cardName: string = "";
|
|
387
391
|
/**评分 */
|
|
388
392
|
inputVal: number = 0;
|
|
393
|
+
/**
|
|
394
|
+
* 0:用车 1锁车
|
|
395
|
+
* */
|
|
396
|
+
isLocked : number = 0;
|
|
389
397
|
|
|
390
398
|
laidMain: number = 0;
|
|
391
399
|
laidText: string = "";
|
|
@@ -40,6 +40,10 @@ export interface IWtuiViewResponse {
|
|
|
40
40
|
expandOn: number; // #默认展开
|
|
41
41
|
|
|
42
42
|
labelVal: string;
|
|
43
|
+
vitualID: number;
|
|
44
|
+
wtuiCtrl: number;
|
|
45
|
+
showCode: string;
|
|
46
|
+
showName: string;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
export class TWtuiViewResponse implements IWtuiViewResponse {
|
|
@@ -82,6 +86,10 @@ export class TWtuiViewResponse implements IWtuiViewResponse {
|
|
|
82
86
|
expandOn: number = 0;
|
|
83
87
|
listDict: IWtuiViewResponse[] = [];
|
|
84
88
|
labelVal: string = "";
|
|
89
|
+
vitualID: number = 0;
|
|
90
|
+
wtuiCtrl: number = 0;
|
|
91
|
+
showCode: string = "";
|
|
92
|
+
showName: string = "";
|
|
85
93
|
|
|
86
94
|
public static toLabelVal(list: IWtuiViewResponse[]) {
|
|
87
95
|
list.forEach((element) => {
|