@ningboyz/apis 1.1.63 → 1.1.65
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/gzzd/main.ts +16 -2
- package/packages/gzzd/type.ts +18 -4
- package/packages/hzcb/main.ts +7 -1
- package/packages/hzcb/type.ts +9 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.65",
|
|
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.1.
|
|
20
|
+
"@ningboyz/types": "1.1.65",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/gzzd/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TGzzd } from "@ningboyz/types";
|
|
1
|
+
import { TGzzd, TGzjg } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IGzzdMainSelectdbQuerys, IGzzdMainGet4gzzdQuerys, IGzzdMainUpdatedbQuerys, IGzzdMainDetaildbQuerys, IGzzdMainFinishedQuerys } from "./type";
|
|
3
|
+
import { IGzzdMainSelectdbQuerys, IGzzdMainGet4gzzdQuerys, IGzzdMainGet4billQuerys, IGzzdMainGet4gzlmQuerys, IGzzdMainUpdatedbQuerys, IGzzdMainDetaildbQuerys, IGzzdMainFinishedQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
class ParaRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -22,6 +22,20 @@ class ParaRequest {
|
|
|
22
22
|
return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/get4gzzd", querys, undefined);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* 获取单位用户权限范围内可填写的工资分录
|
|
27
|
+
*/
|
|
28
|
+
get4bill(querys: IGzzdMainGet4billQuerys, params: object) {
|
|
29
|
+
return this.httpRequest.post<TGzzd.IGzzdBillResponse[]>("/gapi/gzzd/tmain/get4bill", querys, params);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 获取工资栏目
|
|
34
|
+
*/
|
|
35
|
+
get4gzlm(querys: IGzzdMainGet4gzlmQuerys) {
|
|
36
|
+
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gapi/gzzd/tmain/get4gzlm", querys, undefined);
|
|
37
|
+
}
|
|
38
|
+
|
|
25
39
|
/**
|
|
26
40
|
* 新增工资主单
|
|
27
41
|
*/
|
package/packages/gzzd/type.ts
CHANGED
|
@@ -4,8 +4,6 @@ export interface IGzzdMainSelectdbQuerys {
|
|
|
4
4
|
taskmain: number;
|
|
5
5
|
gztbmain: number;
|
|
6
6
|
withflow: number;
|
|
7
|
-
queuesby: number;
|
|
8
|
-
withhold: number;
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
export class TGzzdMainSelectdbQuerys implements IGzzdMainSelectdbQuerys {
|
|
@@ -13,8 +11,6 @@ export class TGzzdMainSelectdbQuerys implements IGzzdMainSelectdbQuerys {
|
|
|
13
11
|
taskmain: number = -1;
|
|
14
12
|
gztbmain: number = -1;
|
|
15
13
|
withflow: number = -1;
|
|
16
|
-
queuesby: number = -1;
|
|
17
|
-
withhold: number = -1;
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
export interface IGzzdMainGet4gzzdQuerys {
|
|
@@ -27,6 +23,24 @@ export class TGzzdMainGet4gzzdQuerys implements IGzzdMainGet4gzzdQuerys {
|
|
|
27
23
|
unitmain: number = -1;
|
|
28
24
|
}
|
|
29
25
|
|
|
26
|
+
export interface IGzzdMainGet4billQuerys {
|
|
27
|
+
gzzdmain: number;
|
|
28
|
+
viewmode: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class TGzzdMainGet4billQuerys implements IGzzdMainGet4billQuerys {
|
|
32
|
+
gzzdmain: number = -1;
|
|
33
|
+
viewmode: number = 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface IGzzdMainGet4gzlmQuerys {
|
|
37
|
+
gzzdmain: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class TGzzdMainGet4gzlmQuerys implements IGzzdMainGet4gzlmQuerys {
|
|
41
|
+
gzzdmain: number = -1;
|
|
42
|
+
}
|
|
43
|
+
|
|
30
44
|
export interface IGzzdMainUpdatedbQuerys {
|
|
31
45
|
readonly: number;
|
|
32
46
|
deptmain: number;
|
package/packages/hzcb/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IHzcbRypqResponse } from "@ningboyz/types/src/hzcb";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IHzcbMainSelectdbQuerys } from "./type";
|
|
3
|
+
import { IHzcbMainSelectdbQuerys, IHzcbMainDetaildbQuerys } from "./type";
|
|
4
4
|
import { IParams } from "@ningboyz/apis/packages/type";
|
|
5
5
|
|
|
6
6
|
class MainRequest {
|
|
@@ -26,6 +26,12 @@ class MainRequest {
|
|
|
26
26
|
updatedb(params: IParams<IHzcbRypqResponse>) {
|
|
27
27
|
return this.httpRequest.post<IHzcbRypqResponse[]>("/gapi/hzcb/tmain/updatedb", undefined, params);
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* 获取详情
|
|
31
|
+
*/
|
|
32
|
+
detaildb(querys: IHzcbMainDetaildbQuerys) {
|
|
33
|
+
return this.httpRequest.post<IHzcbRypqResponse[]>("/gapi/hzcb/tmain/detaildb", querys, undefined);
|
|
34
|
+
}
|
|
29
35
|
/**
|
|
30
36
|
* 删除投资项目管理列表
|
|
31
37
|
*/
|
package/packages/hzcb/type.ts
CHANGED
|
@@ -3,13 +3,18 @@ export interface IHzcbMainSelectdbQuerys {
|
|
|
3
3
|
withflow: number;
|
|
4
4
|
sourcend: number;
|
|
5
5
|
useronly: number;
|
|
6
|
-
|
|
7
|
-
withpggl: number;
|
|
6
|
+
viewonly: number;
|
|
8
7
|
}
|
|
9
8
|
export class THzcbMainSelectdbQuerys implements IHzcbMainSelectdbQuerys {
|
|
10
9
|
withflow: number = 0; // 0不是审核流 1是审核流
|
|
11
10
|
sourcend: number = -1;
|
|
12
11
|
useronly: number = -1;
|
|
13
|
-
|
|
14
|
-
withpggl: number = 0;
|
|
12
|
+
viewonly: number = -1;
|
|
15
13
|
}
|
|
14
|
+
export interface IHzcbMainDetaildbQuerys {
|
|
15
|
+
hzcbmain: number;
|
|
16
|
+
}
|
|
17
|
+
export class THzcbMainDetaildbQuerys implements IHzcbMainDetaildbQuerys {
|
|
18
|
+
hzcbmain: number = -1;
|
|
19
|
+
}
|
|
20
|
+
|