@ningboyz/apis 1.0.18 → 1.0.21
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 +5 -4
- package/package.json +1 -1
- package/packages/antv/index.ts +2 -1
- package/packages/axios.ts +32 -17
- package/packages/card/index.ts +1 -1
- package/packages/cnfg/index.ts +1 -0
- package/packages/cnfg/type.ts +4 -0
- package/packages/core/index.ts +1 -1
- package/packages/expd/index.ts +1 -1
- package/packages/flow/duty.ts +21 -22
- package/packages/flow/flow.ts +40 -42
- package/packages/flow/index.ts +1 -0
- package/packages/flow/main.ts +16 -18
- package/packages/flow/node.ts +23 -24
- package/packages/flow/type.ts +123 -0
- package/packages/gams/cnfg.ts +3 -2
- package/packages/gams/index.ts +1 -0
- package/packages/gams/type.ts +7 -0
- package/packages/grow/grow.ts +1 -1
- package/packages/grow/index.ts +1 -0
- package/packages/grow/type.ts +8 -0
- package/packages/gzjg/gzlm.ts +27 -37
- package/packages/gzjg/index.ts +1 -0
- package/packages/gzjg/main.ts +29 -21
- package/packages/gzjg/type.ts +73 -0
- package/packages/gztb/index.ts +1 -0
- package/packages/gztb/main.ts +3 -5
- package/packages/gztb/type.ts +7 -0
- package/packages/index.ts +18 -0
- package/packages/load/index.ts +1 -0
- package/packages/load/type.ts +9 -0
- package/packages/load/yqdw.ts +1 -2
- package/packages/load/yqkm.ts +1 -2
- package/packages/noti/index.ts +1 -0
- package/packages/noti/main.ts +9 -11
- package/packages/noti/type.ts +12 -0
- package/packages/ocri/path.ts +4 -2
- package/packages/ocri/type.ts +7 -0
- package/packages/pzpt/cnfg.ts +15 -32
- package/packages/pzpt/index.ts +1 -0
- package/packages/pzpt/item.ts +13 -33
- package/packages/pzpt/k0km.ts +7 -18
- package/packages/pzpt/k8km.ts +9 -28
- package/packages/pzpt/kbkm.ts +3 -9
- package/packages/pzpt/type.ts +22 -38
- package/packages/pzpt/types.ts +281 -0
- package/packages/pzpt/yqkb.ts +5 -12
- package/packages/pzpt/yqkm.ts +11 -25
- package/packages/tabl/index.ts +1 -0
- package/packages/tabl/main.ts +80 -140
- package/packages/tabl/type.ts +148 -0
- package/packages/task/index.ts +1 -0
- package/packages/task/main.ts +5 -11
- package/packages/task/type.ts +18 -0
- package/packages/wldy/data.ts +13 -17
- package/packages/wldy/index.ts +1 -0
- package/packages/wldy/item.ts +13 -18
- package/packages/wldy/page.ts +14 -21
- package/packages/wldy/type.ts +40 -0
- package/packages/wtui/ctrl.ts +1 -1
- package/packages/wtui/index.ts +1 -0
- package/packages/wtui/node.ts +2 -2
- package/packages/wtui/type.ts +3 -1
- package/packages/wtui/zone.ts +5 -6
- package/packages/gzjg/types.ts +0 -4
package/packages/tabl/main.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import type { TTabl } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import {
|
|
4
|
+
ITablMainChkexist2Querys,
|
|
5
|
+
ITablMainChkexistQuerys,
|
|
6
|
+
ITablMainDetaild2Querys,
|
|
7
|
+
ITablMainDetaild3Querys,
|
|
8
|
+
ITablMainDetaildbQuerys,
|
|
9
|
+
ITablMainFinishcxQuerys,
|
|
10
|
+
ITablMainGet4dataQuerys,
|
|
11
|
+
ITablMainGet5formulaQuerys,
|
|
12
|
+
ITablMainInsertdbQuerys,
|
|
13
|
+
ITablMainSelectcxQuerys,
|
|
14
|
+
TTablMainSelectdbQuerys
|
|
15
|
+
} from "./type";
|
|
3
16
|
|
|
4
17
|
class MainRequest {
|
|
5
18
|
private httpRequest: HttpRequest;
|
|
@@ -7,169 +20,96 @@ class MainRequest {
|
|
|
7
20
|
this.httpRequest = httpRequest;
|
|
8
21
|
}
|
|
9
22
|
|
|
10
|
-
selectdb(
|
|
11
|
-
|
|
12
|
-
sourcend,
|
|
13
|
-
sysclasc,
|
|
14
|
-
withflow,
|
|
15
|
-
usesyzcg,
|
|
16
|
-
usesform,
|
|
17
|
-
gzjgmain,
|
|
18
|
-
taskmain
|
|
19
|
-
};
|
|
20
|
-
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/selectdb", undefined, params);
|
|
23
|
+
selectdb(querys: TTablMainSelectdbQuerys) {
|
|
24
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/selectdb", querys, undefined);
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
/**
|
|
24
28
|
* 新增Tabl
|
|
29
|
+
* @param querys
|
|
30
|
+
* @param params
|
|
31
|
+
* @returns
|
|
25
32
|
*/
|
|
26
|
-
insertdb(
|
|
27
|
-
|
|
28
|
-
isauto
|
|
29
|
-
};
|
|
30
|
-
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/insertdb", data, params);
|
|
33
|
+
insertdb(querys: ITablMainInsertdbQuerys, params: object) {
|
|
34
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/insertdb", querys, params);
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
/**
|
|
34
38
|
* 修改Tabl-保留历史记录
|
|
39
|
+
* @param params
|
|
40
|
+
* @returns
|
|
35
41
|
*/
|
|
36
|
-
modifydx(
|
|
37
|
-
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifydx",
|
|
42
|
+
modifydx(params: object) {
|
|
43
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifydx", undefined, params);
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
/**
|
|
41
47
|
* 批量修改Tabl-保留历史记录
|
|
42
48
|
*/
|
|
43
|
-
modifyd2(
|
|
44
|
-
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifyd2",
|
|
49
|
+
modifyd2(params: object) {
|
|
50
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifyd2", undefined, params);
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
/**
|
|
48
54
|
* 删除Tabl
|
|
55
|
+
* @param params
|
|
56
|
+
* @returns
|
|
49
57
|
*/
|
|
50
|
-
deletedb(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
sourceqj,
|
|
73
|
-
unitmain,
|
|
74
|
-
withstat,
|
|
75
|
-
dataguid,
|
|
76
|
-
withlock,
|
|
77
|
-
gzjglock,
|
|
78
|
-
taskmain,
|
|
79
|
-
voidonly
|
|
80
|
-
};
|
|
81
|
-
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/finishedcx", dataFind, params);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
selectcx(
|
|
85
|
-
gzjgmain: number,
|
|
86
|
-
sourcend: number,
|
|
87
|
-
sourceqj: number = -1,
|
|
88
|
-
unitmain: number = -1,
|
|
89
|
-
withstat: number = -1,
|
|
90
|
-
dataguid: string = "",
|
|
91
|
-
withlock: number = -1,
|
|
92
|
-
gzjglock: number,
|
|
93
|
-
taskmain: number = -1,
|
|
94
|
-
dataFind?: FormData
|
|
95
|
-
) {
|
|
96
|
-
const params = {
|
|
97
|
-
gzjgmain,
|
|
98
|
-
sourcend,
|
|
99
|
-
sourceqj,
|
|
100
|
-
unitmain,
|
|
101
|
-
withstat,
|
|
102
|
-
dataguid,
|
|
103
|
-
withlock,
|
|
104
|
-
gzjglock,
|
|
105
|
-
taskmain
|
|
106
|
-
};
|
|
107
|
-
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/selectcx", dataFind, params);
|
|
58
|
+
deletedb(params: object) {
|
|
59
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/deletedb", undefined, params);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 报表查询Finished
|
|
64
|
+
* @param querys
|
|
65
|
+
* @param params
|
|
66
|
+
* @returns
|
|
67
|
+
*/
|
|
68
|
+
finishcx(querys: ITablMainFinishcxQuerys, params: object) {
|
|
69
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/finishedcx", querys, params);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @param querys
|
|
75
|
+
* @param params
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
78
|
+
selectcx(querys: ITablMainSelectcxQuerys, params: object) {
|
|
79
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/selectcx", querys, params);
|
|
108
80
|
}
|
|
109
81
|
|
|
110
82
|
/** 批量导入 */
|
|
111
|
-
uploaddb(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return this.httpRequest.post<TTabl.
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
get4data(sourcend: number, unitmain: number, fromguid: string) {
|
|
143
|
-
const params = {
|
|
144
|
-
sourcend,
|
|
145
|
-
unitmain,
|
|
146
|
-
fromguid
|
|
147
|
-
};
|
|
148
|
-
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get4data", undefined, params);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
chkexist(gzjgmain: number, sourcend: number, link: number, dataguid: string, listLink?: FormData) {
|
|
152
|
-
const params = {
|
|
153
|
-
gzjgmain,
|
|
154
|
-
sourcend,
|
|
155
|
-
dataguid,
|
|
156
|
-
link
|
|
157
|
-
};
|
|
158
|
-
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/chkexist", listLink, params);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
chkexis2(gzjgmain: number, data: object) {
|
|
162
|
-
const params = {
|
|
163
|
-
gzjgmain
|
|
164
|
-
};
|
|
165
|
-
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/chkexis2", data, params);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
get5formula(tabltzbl: number, formData: FormData) {
|
|
169
|
-
const params = {
|
|
170
|
-
tabltzbl
|
|
171
|
-
};
|
|
172
|
-
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get5formula", formData, params);
|
|
83
|
+
uploaddb(params: object) {
|
|
84
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/uploaddb", undefined, params);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
detaildb(querys: ITablMainDetaildbQuerys) {
|
|
88
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaildb", querys, undefined);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
detaild2(querys: ITablMainDetaild2Querys) {
|
|
92
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild2", querys, undefined);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
detaild3(querys: ITablMainDetaild3Querys) {
|
|
96
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild3", querys, undefined);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
get4data(querys: ITablMainGet4dataQuerys) {
|
|
100
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get4data", querys, undefined);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
chkexist(querys: ITablMainChkexistQuerys, params: object) {
|
|
104
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/chkexist", querys, params);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
chkexis2(querys: ITablMainChkexist2Querys, params: object) {
|
|
108
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/chkexis2", querys, params);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
get5formula(querys: ITablMainGet5formulaQuerys, params: object) {
|
|
112
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get5formula", querys, params);
|
|
173
113
|
}
|
|
174
114
|
}
|
|
175
115
|
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/** ========== main ========== */
|
|
2
|
+
export interface ITablMainSelectdbQuerys {
|
|
3
|
+
sourcend: number;
|
|
4
|
+
sysclasc: number;
|
|
5
|
+
withflow: number;
|
|
6
|
+
usesyzcg: number;
|
|
7
|
+
usesform: number;
|
|
8
|
+
gzjgmain: number;
|
|
9
|
+
taskmain: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class TTablMainSelectdbQuerys implements ITablMainSelectdbQuerys {
|
|
13
|
+
sourcend: number = -1;
|
|
14
|
+
sysclasc: number = -1;
|
|
15
|
+
withflow: number = 1;
|
|
16
|
+
usesyzcg: number = 1;
|
|
17
|
+
usesform: number = 1;
|
|
18
|
+
gzjgmain: number = -1;
|
|
19
|
+
taskmain: number = -1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ITablMainInsertdbQuerys {
|
|
23
|
+
isauto: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class TTablMainInsertdbQuerys implements ITablMainInsertdbQuerys {
|
|
27
|
+
isauto: number = -1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ITablMainFinishcxQuerys {
|
|
31
|
+
gzjgmain: number;
|
|
32
|
+
sourcend: number;
|
|
33
|
+
sourceqj: number;
|
|
34
|
+
unitmain: number;
|
|
35
|
+
withstat: number;
|
|
36
|
+
dataguid: string;
|
|
37
|
+
withlock: number;
|
|
38
|
+
gzjglock: number;
|
|
39
|
+
taskmain: number;
|
|
40
|
+
voidonly: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class TTablMainFinishcxQuerys implements ITablMainFinishcxQuerys {
|
|
44
|
+
gzjgmain: number = -1;
|
|
45
|
+
sourcend: number = -1;
|
|
46
|
+
sourceqj: number = -1;
|
|
47
|
+
unitmain: number = -1;
|
|
48
|
+
withstat: number = -1;
|
|
49
|
+
dataguid: string = "";
|
|
50
|
+
withlock: number = -1;
|
|
51
|
+
gzjglock: number = -1;
|
|
52
|
+
taskmain: number = -1;
|
|
53
|
+
voidonly: number = -1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ITablMainSelectcxQuerys {
|
|
57
|
+
gzjgmain: number;
|
|
58
|
+
sourcend: number;
|
|
59
|
+
sourceqj: number;
|
|
60
|
+
unitmain: number;
|
|
61
|
+
withstat: number;
|
|
62
|
+
dataguid: string;
|
|
63
|
+
withlock: number;
|
|
64
|
+
gzjglock: number;
|
|
65
|
+
taskmain: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class TTablMainSelectcxQuerys implements ITablMainSelectcxQuerys {
|
|
69
|
+
gzjgmain: number = -1;
|
|
70
|
+
sourcend: number = -1;
|
|
71
|
+
sourceqj: number = -1;
|
|
72
|
+
unitmain: number = -1;
|
|
73
|
+
withstat: number = -1;
|
|
74
|
+
dataguid: string = "";
|
|
75
|
+
withlock: number = -1;
|
|
76
|
+
gzjglock: number = -1;
|
|
77
|
+
taskmain: number = -1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface ITablMainDetaildbQuerys {
|
|
81
|
+
tablmain: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export class TTablMainDetaildbQuerys implements ITablMainDetaildbQuerys {
|
|
85
|
+
tablmain: number = -1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface ITablMainDetaild2Querys {
|
|
89
|
+
gzjgmain: number;
|
|
90
|
+
dataguid: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export class TTablMainDetaild2Querys implements ITablMainDetaild2Querys {
|
|
94
|
+
gzjgmain: number = -1;
|
|
95
|
+
dataguid: string = "";
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface ITablMainDetaild3Querys {
|
|
99
|
+
gzjgmain: number;
|
|
100
|
+
fromguid: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export class TTablMainDetaild3Querys implements ITablMainDetaild3Querys {
|
|
104
|
+
gzjgmain: number = -1;
|
|
105
|
+
fromguid: string = "";
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface ITablMainGet4dataQuerys {
|
|
109
|
+
sourcend: number;
|
|
110
|
+
unitmain: number;
|
|
111
|
+
fromguid: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export class TTablMainGet4dataQuerys implements ITablMainGet4dataQuerys {
|
|
115
|
+
sourcend: number = -1;
|
|
116
|
+
unitmain: number = -1;
|
|
117
|
+
fromguid: string = "";
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface ITablMainChkexistQuerys {
|
|
121
|
+
gzjgmain: number;
|
|
122
|
+
sourcend: number;
|
|
123
|
+
link: number;
|
|
124
|
+
dataguid: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export class TTablMainChkexistQuerys implements ITablMainChkexistQuerys {
|
|
128
|
+
gzjgmain: number = -1;
|
|
129
|
+
sourcend: number = -1;
|
|
130
|
+
link: number = -1;
|
|
131
|
+
dataguid: string = "";
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface ITablMainChkexist2Querys {
|
|
135
|
+
gzjgmain: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export class TTablMainChkexist2Querys implements ITablMainChkexist2Querys {
|
|
139
|
+
gzjgmain: number = -1;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface ITablMainGet5formulaQuerys {
|
|
143
|
+
tabltzbl: number;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export class ITablMainGet5formulaQuerys implements ITablMainGet5formulaQuerys {
|
|
147
|
+
tabltzbl: number = -1;
|
|
148
|
+
}
|
package/packages/task/index.ts
CHANGED
package/packages/task/main.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TTask } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { ITaskMainDetaildbQuerys, ITaskMainSelectdbQuerys } from "./type";
|
|
3
4
|
|
|
4
5
|
class MainRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -7,19 +8,12 @@ class MainRequest {
|
|
|
7
8
|
this.httpRequest = httpRequest;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
selectdb(
|
|
11
|
-
|
|
12
|
-
useronly,
|
|
13
|
-
gzjgmain
|
|
14
|
-
};
|
|
15
|
-
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/selectdb", undefined, params);
|
|
11
|
+
selectdb(querys: ITaskMainSelectdbQuerys) {
|
|
12
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/selectdb", querys, undefined);
|
|
16
13
|
}
|
|
17
14
|
|
|
18
|
-
detaildb(
|
|
19
|
-
|
|
20
|
-
taskmain
|
|
21
|
-
};
|
|
22
|
-
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/detaildb", undefined, params);
|
|
15
|
+
detaildb(querys: ITaskMainDetaildbQuerys) {
|
|
16
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/detaildb", querys, undefined);
|
|
23
17
|
}
|
|
24
18
|
}
|
|
25
19
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** ========== main ========== */
|
|
2
|
+
export interface ITaskMainSelectdbQuerys {
|
|
3
|
+
useronly: number;
|
|
4
|
+
gzjgmain: number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class TTaskMainSelectdbQuerys implements ITaskMainSelectdbQuerys {
|
|
8
|
+
useronly: number = -1;
|
|
9
|
+
gzjgmain: number = -1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ITaskMainDetaildbQuerys {
|
|
13
|
+
taskmain: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class TTaskMainDetaildbQuerys implements ITaskMainDetaildbQuerys {
|
|
17
|
+
taskmain: number = -1;
|
|
18
|
+
}
|
package/packages/wldy/data.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TWldy } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IWldyDataSelectdbQuerys } from "./type";
|
|
3
4
|
|
|
4
5
|
class DataRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -9,39 +10,34 @@ class DataRequest {
|
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* 查询打印模板
|
|
12
|
-
* @param
|
|
13
|
-
* @param useruuid
|
|
14
|
-
* @param unitmain
|
|
13
|
+
* @param querys
|
|
15
14
|
*/
|
|
16
|
-
selectdb(
|
|
17
|
-
|
|
18
|
-
wldypage
|
|
19
|
-
};
|
|
20
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/selectdb", undefined, params);
|
|
15
|
+
selectdb(querys: IWldyDataSelectdbQuerys) {
|
|
16
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/selectdb", querys, undefined);
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
/**
|
|
24
20
|
* 添加打印模板数据
|
|
25
|
-
* @param
|
|
21
|
+
* @param params
|
|
26
22
|
*/
|
|
27
|
-
insertdb(
|
|
28
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/insertdb",
|
|
23
|
+
insertdb(params: object) {
|
|
24
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/insertdb", undefined, params);
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
/**
|
|
32
28
|
* 删除打印模板数据
|
|
33
|
-
* @param
|
|
29
|
+
* @param params
|
|
34
30
|
*/
|
|
35
|
-
deletedb(
|
|
36
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/deletedb",
|
|
31
|
+
deletedb(params: object) {
|
|
32
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/deletedb", undefined, params);
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
/**
|
|
40
36
|
* 修改打印模板数据
|
|
41
|
-
* @param
|
|
37
|
+
* @param params
|
|
42
38
|
*/
|
|
43
|
-
updatedb(
|
|
44
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/updatedb",
|
|
39
|
+
updatedb(params: object) {
|
|
40
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/updatedb", undefined, params);
|
|
45
41
|
}
|
|
46
42
|
|
|
47
43
|
/**
|
package/packages/wldy/index.ts
CHANGED
package/packages/wldy/item.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TWldy } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IWldyItemSelectdbQuerys } from "./type";
|
|
3
4
|
|
|
4
5
|
class ItemRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -9,40 +10,34 @@ class ItemRequest {
|
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* 查询打印模板
|
|
12
|
-
* @param
|
|
13
|
-
* @param useruuid
|
|
14
|
-
* @param unitmain
|
|
13
|
+
* @param querys
|
|
15
14
|
*/
|
|
16
|
-
selectdb(
|
|
17
|
-
|
|
18
|
-
wldypage,
|
|
19
|
-
wldydata
|
|
20
|
-
};
|
|
21
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/selectdb", undefined, params);
|
|
15
|
+
selectdb(querys: IWldyItemSelectdbQuerys) {
|
|
16
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/selectdb", querys, undefined);
|
|
22
17
|
}
|
|
23
18
|
|
|
24
19
|
/**
|
|
25
20
|
* 添加打印模板数据
|
|
26
|
-
* @param
|
|
21
|
+
* @param params
|
|
27
22
|
*/
|
|
28
|
-
insertdb(
|
|
29
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/insertdb",
|
|
23
|
+
insertdb(params: object) {
|
|
24
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/insertdb", undefined, params);
|
|
30
25
|
}
|
|
31
26
|
|
|
32
27
|
/**
|
|
33
28
|
* 删除打印模板数据
|
|
34
|
-
* @param
|
|
29
|
+
* @param params
|
|
35
30
|
*/
|
|
36
|
-
deletedb(
|
|
37
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/deletedb",
|
|
31
|
+
deletedb(params: object) {
|
|
32
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/deletedb", undefined, params);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
/**
|
|
41
36
|
* 修改打印模板数据
|
|
42
|
-
* @param
|
|
37
|
+
* @param params
|
|
43
38
|
*/
|
|
44
|
-
updatedb(
|
|
45
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/updatedb",
|
|
39
|
+
updatedb(params: object) {
|
|
40
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/updatedb", undefined, params);
|
|
46
41
|
}
|
|
47
42
|
|
|
48
43
|
/**
|
package/packages/wldy/page.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TWldy } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IWldyPageSelectd2Querys, IWldyPageSelectdbQuerys } from "./type";
|
|
3
4
|
|
|
4
5
|
class PageRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -13,48 +14,40 @@ class PageRequest {
|
|
|
13
14
|
* @param useruuid
|
|
14
15
|
* @param unitmain
|
|
15
16
|
*/
|
|
16
|
-
selectdb(
|
|
17
|
-
|
|
18
|
-
sysclasc,
|
|
19
|
-
useruuid,
|
|
20
|
-
unitmain
|
|
21
|
-
};
|
|
22
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectdb", undefined, params);
|
|
17
|
+
selectdb(querys: IWldyPageSelectdbQuerys) {
|
|
18
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectdb", querys, undefined);
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
/**
|
|
26
22
|
* 根据使用场景查询打印模板
|
|
27
23
|
* @param pageuses
|
|
28
24
|
*/
|
|
29
|
-
selectd2(
|
|
30
|
-
|
|
31
|
-
pageuses
|
|
32
|
-
};
|
|
33
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectd2", undefined, params);
|
|
25
|
+
selectd2(querys: IWldyPageSelectd2Querys) {
|
|
26
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectd2", querys, undefined);
|
|
34
27
|
}
|
|
35
28
|
|
|
36
29
|
/**
|
|
37
30
|
* 添加打印模板数据
|
|
38
|
-
* @param
|
|
31
|
+
* @param params
|
|
39
32
|
*/
|
|
40
|
-
insertdb(
|
|
41
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/insertdb",
|
|
33
|
+
insertdb(params: object) {
|
|
34
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/insertdb", undefined, params);
|
|
42
35
|
}
|
|
43
36
|
|
|
44
37
|
/**
|
|
45
38
|
* 删除打印模板数据
|
|
46
|
-
* @param
|
|
39
|
+
* @param params
|
|
47
40
|
*/
|
|
48
|
-
deletedb(
|
|
49
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/deletedb",
|
|
41
|
+
deletedb(params: object) {
|
|
42
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/deletedb", undefined, params);
|
|
50
43
|
}
|
|
51
44
|
|
|
52
45
|
/**
|
|
53
46
|
* 修改打印模板数据
|
|
54
|
-
* @param
|
|
47
|
+
* @param params
|
|
55
48
|
*/
|
|
56
|
-
updatedb(
|
|
57
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/updatedb",
|
|
49
|
+
updatedb(params: object) {
|
|
50
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/updatedb", undefined, params);
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
/**
|