@ningboyz/apis 1.2.188 → 1.2.190
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 +2 -2
- package/packages/bill/types.ts +2 -0
- package/packages/hznj/type.ts +634 -640
- package/packages/vary/index.ts +14 -0
- package/packages/vary/main.ts +57 -0
- package/packages/vary/types.ts +48 -0
- package/packages/yzht/main.ts +5 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import MainRequest from "./main";
|
|
3
|
+
|
|
4
|
+
class VaryRequest {
|
|
5
|
+
public main: MainRequest;
|
|
6
|
+
|
|
7
|
+
constructor(config: IAxiosConfig) {
|
|
8
|
+
const request = createRequest(config);
|
|
9
|
+
this.main = new MainRequest(request);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default VaryRequest;
|
|
14
|
+
export * from "./types";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { TVary } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IVaryMainSelectdbQuerys, IVaryMainDetaildbQuerys, IVaryMainInsertdbQuerys, IVaryMainUpdatedbQuerys, IVaryMainDeletedbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class MainRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 获取变更管理列表
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
selectdb(querys: IVaryMainSelectdbQuerys) {
|
|
17
|
+
return this.httpRequest.post<TVary.IVaryMainResponse[]>("/gapi/tvary/tmain/selectdb", querys, undefined);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 获取变更管理详情
|
|
22
|
+
* @param querys
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
detaildb(querys: IVaryMainDetaildbQuerys) {
|
|
26
|
+
return this.httpRequest.post<TVary.IVaryMainResponse[]>("/gapi/tvary/tmain/detaildb", querys, undefined);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 新增变更管理
|
|
31
|
+
* @param params
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
insertdb(querys: IVaryMainInsertdbQuerys, params: object) {
|
|
35
|
+
return this.httpRequest.post<TVary.IVaryMainResponse[]>("/gapi/tvary/tmain/insertdb", querys, params);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 修改变更管理
|
|
40
|
+
* @param params
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
updatedb(querys: IVaryMainUpdatedbQuerys, params: object) {
|
|
44
|
+
return this.httpRequest.post<TVary.IVaryMainResponse[]>("/gapi/tvary/tmain/updatedb", querys, params);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 删除变更管理
|
|
49
|
+
* @param params
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
deletedb(querys: IVaryMainDeletedbQuerys, params: object) {
|
|
53
|
+
return this.httpRequest.post<TVary.IVaryMainResponse[]>("/gapi/tvary/tmain/deletedb", querys, params);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default MainRequest;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** ========== main ========== */
|
|
2
|
+
export interface IVaryMainSelectdbQuerys {
|
|
3
|
+
sysclasc: number;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export class TVaryMainSelectdbQuerys implements IVaryMainSelectdbQuerys {
|
|
7
|
+
sysclasc: number = -1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IVaryMainDetaildbQuerys {
|
|
11
|
+
varymain: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class TVaryMainDetaildbQuerys implements IVaryMainDetaildbQuerys {
|
|
15
|
+
varymain: number = -1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IVaryMainFinishedQuerys {
|
|
19
|
+
sourcend: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class TVaryMainFinishedQuerys implements IVaryMainFinishedQuerys {
|
|
23
|
+
sourcend: number = -1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface IVaryMainInsertdbQuerys {
|
|
27
|
+
sourcend: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class TVaryMainInsertdbQuerys implements IVaryMainInsertdbQuerys {
|
|
31
|
+
sourcend: number = -1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface IVaryMainUpdatedbQuerys {
|
|
35
|
+
sourcend: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class TVaryMainUpdatedbQuerys implements IVaryMainUpdatedbQuerys {
|
|
39
|
+
sourcend: number = -1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface IVaryMainDeletedbQuerys {
|
|
43
|
+
sourcend: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class TVaryMainDeletedbQuerys implements IVaryMainDeletedbQuerys {
|
|
47
|
+
sourcend: number = -1;
|
|
48
|
+
}
|
package/packages/yzht/main.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TYzht } from "@ningboyz/types";
|
|
1
|
+
import { TCustom, TYzht } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import {
|
|
4
4
|
IYzhtBillGet4BillQuerys,
|
|
@@ -150,7 +150,7 @@ class YzhtRequest {
|
|
|
150
150
|
* @returns
|
|
151
151
|
*/
|
|
152
152
|
chkexis3(querys: IYzhtMainChkexis3Querys, params: object) {
|
|
153
|
-
return this.httpRequest.post<
|
|
153
|
+
return this.httpRequest.post<TCustom.IValidReponse[]>("/gapi/yzht/tmain/withsccz/chkexis3", querys, params);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
/**
|
|
@@ -160,7 +160,7 @@ class YzhtRequest {
|
|
|
160
160
|
* @returns
|
|
161
161
|
*/
|
|
162
162
|
canceled(querys: IYzhtMainCanceledQuerys, params: object) {
|
|
163
|
-
return this.httpRequest.post<
|
|
163
|
+
return this.httpRequest.post<TCustom.IValidReponse[]>("/gapi/yzht/tmain/withsccz/canceled", querys, params);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/**
|
|
@@ -180,7 +180,7 @@ class YzhtRequest {
|
|
|
180
180
|
* @returns
|
|
181
181
|
*/
|
|
182
182
|
chkexis4(querys: IYzhtMainChkexis4Querys, params: object) {
|
|
183
|
-
return this.httpRequest.post<
|
|
183
|
+
return this.httpRequest.post<TCustom.IValidReponse[]>("/gapi/yzht/tmain/withsccz/chkexis4", querys, params);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
/**
|
|
@@ -190,7 +190,7 @@ class YzhtRequest {
|
|
|
190
190
|
* @returns
|
|
191
191
|
*/
|
|
192
192
|
cancele2(querys: IYzhtMainCancele2Querys, params: object) {
|
|
193
|
-
return this.httpRequest.post<
|
|
193
|
+
return this.httpRequest.post<TCustom.IValidReponse[]>("/gapi/yzht/tmain/withsccz/cancele2", querys, params);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|