@ningboyz/apis 1.6.177 → 1.6.179
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/gztb/main.ts +13 -1
- package/packages/gztb/types.ts +12 -0
- package/packages/gzzd/main.ts +10 -1
- package/packages/gzzd/types.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.179",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政请求库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ningboyz/types": "1.6.
|
|
20
|
+
"@ningboyz/types": "1.6.179",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/gztb/main.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { TGztb } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
IGztbMainDetaildbQuerys, IGztbMainGet4gzzdQuerys, IGztbMainInsertd2Querys, IGztbMainInsertdbQuerys,
|
|
5
|
+
IGztbMainLastgzdhQuerys, IGztbMainSelectdbQuerys
|
|
6
|
+
} from "./types";
|
|
4
7
|
|
|
5
8
|
class MainRequest {
|
|
6
9
|
private httpRequest: HttpRequest;
|
|
@@ -26,6 +29,15 @@ class MainRequest {
|
|
|
26
29
|
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/detaildb", querys, undefined);
|
|
27
30
|
}
|
|
28
31
|
|
|
32
|
+
/**
|
|
33
|
+
* 获取最新批次
|
|
34
|
+
* @param querys
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
lastgzdh(querys: IGztbMainLastgzdhQuerys) {
|
|
38
|
+
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/lastgzdh", querys, undefined);
|
|
39
|
+
}
|
|
40
|
+
|
|
29
41
|
/**
|
|
30
42
|
* 新增工资填报
|
|
31
43
|
* @param querys
|
package/packages/gztb/types.ts
CHANGED
|
@@ -17,6 +17,18 @@ export interface IGztbMainDetaildbQuerys {
|
|
|
17
17
|
export class TGztbMainDetaildbQuerys implements IGztbMainDetaildbQuerys {
|
|
18
18
|
gztbmain: number = -1;
|
|
19
19
|
}
|
|
20
|
+
export interface IGztbMainLastgzdhQuerys {
|
|
21
|
+
sourcend: number;
|
|
22
|
+
taskmain: number;
|
|
23
|
+
sourceqj: number;
|
|
24
|
+
allowusr: number;
|
|
25
|
+
}
|
|
26
|
+
export class TGztbMainLastgzdhQuerys implements IGztbMainLastgzdhQuerys {
|
|
27
|
+
sourcend: number = -1;
|
|
28
|
+
taskmain: number = -1;
|
|
29
|
+
sourceqj: number = -1;
|
|
30
|
+
allowusr: number = -1;
|
|
31
|
+
}
|
|
20
32
|
|
|
21
33
|
export interface IGztbMainInsertdbQuerys {
|
|
22
34
|
menuuuid: string;
|
package/packages/gzzd/main.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
IGzzdMainGet4gzzdQuerys,
|
|
10
10
|
IGzzdMainGet5BillWithZwlxQuerys,
|
|
11
11
|
IGzzdMainSelectdbQuerys,
|
|
12
|
-
IGzzdMainUpdatedbQuerys, IGzzdMainWithgzjgQuerys
|
|
12
|
+
IGzzdMainUpdatedbQuerys, IGzzdMainWithgzjgQuerys, TGzzdMainDetaild2Querys
|
|
13
13
|
} from "./types";
|
|
14
14
|
|
|
15
15
|
class ParaRequest {
|
|
@@ -110,6 +110,15 @@ class ParaRequest {
|
|
|
110
110
|
detaildb(querys: IGzzdMainDetaildbQuerys, params: object) {
|
|
111
111
|
return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/detaildb", querys, params);
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* 获取工资主单详情
|
|
115
|
+
* @param querys
|
|
116
|
+
* @param params
|
|
117
|
+
* @returns
|
|
118
|
+
*/
|
|
119
|
+
detaild2(querys: TGzzdMainDetaild2Querys, params: object) {
|
|
120
|
+
return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/detaild2", querys, params);
|
|
121
|
+
}
|
|
113
122
|
|
|
114
123
|
/**
|
|
115
124
|
* 获取工资主单已办业务
|
package/packages/gzzd/types.ts
CHANGED
|
@@ -80,6 +80,13 @@ export interface IGzzdMainDetaildbQuerys {
|
|
|
80
80
|
export class TGzzdMainDetaildbQuerys implements IGzzdMainDetaildbQuerys {
|
|
81
81
|
gzzdmain: number = -1;
|
|
82
82
|
}
|
|
83
|
+
export interface IGzzdMainDetaild2Querys {
|
|
84
|
+
gzzdmain: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class TGzzdMainDetaild2Querys implements IGzzdMainDetaild2Querys {
|
|
88
|
+
gzzdmain: number = -1;
|
|
89
|
+
}
|
|
83
90
|
|
|
84
91
|
export interface IGzzdMainFinishedQuerys {
|
|
85
92
|
sourcend: number;
|