@ningboyz/apis 1.6.176 → 1.6.178

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.6.176",
3
+ "version": "1.6.178",
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.176",
20
+ "@ningboyz/types": "1.6.178",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -1,6 +1,9 @@
1
1
  import type { TGztb } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IGztbMainDetaildbQuerys, IGztbMainGet4gzzdQuerys, IGztbMainInsertd2Querys, IGztbMainInsertdbQuerys, IGztbMainSelectdbQuerys } from "./types";
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
@@ -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;
@@ -2,14 +2,14 @@ import { TGzjg, TGzzd } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import {
4
4
  IGzzdMainDetaildbQuerys,
5
- IGzzdMainFinishedQuerys,
5
+ IGzzdMainFinishedQuerys, IGzzdMainGet2formulaQuerys,
6
6
  IGzzdMainGet4billQuerys,
7
7
  IGzzdMainGet4BillWithZwlxQuerys,
8
8
  IGzzdMainGet4gzlmQuerys,
9
9
  IGzzdMainGet4gzzdQuerys,
10
10
  IGzzdMainGet5BillWithZwlxQuerys,
11
11
  IGzzdMainSelectdbQuerys,
12
- IGzzdMainUpdatedbQuerys
12
+ IGzzdMainUpdatedbQuerys, IGzzdMainWithgzjgQuerys
13
13
  } from "./types";
14
14
 
15
15
  class ParaRequest {
@@ -55,6 +55,24 @@ class ParaRequest {
55
55
  return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gapi/gzzd/tmain/get4gzlm", querys, undefined);
56
56
  }
57
57
 
58
+ /**
59
+ * 获取工资分录
60
+ * @param querys
61
+ * @returns
62
+ */
63
+ withgzjg(querys: IGzzdMainWithgzjgQuerys, params: object) {
64
+ return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gapi/gzzd/tmain/get4bill/withgzjg", querys, params);
65
+ }
66
+
67
+ /**
68
+ * 计算正则公式(正则公式)
69
+ * @param querys
70
+ * @returns
71
+ */
72
+ get2formula(querys: IGzzdMainGet2formulaQuerys, params: object) {
73
+ return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gapi/gzzd/tmain/get2formula", querys, params);
74
+ }
75
+
58
76
  /**
59
77
  * 新增工资主单
60
78
  * @param params
@@ -37,6 +37,24 @@ export class TGzzdMainGet4billQuerys implements IGzzdMainGet4billQuerys {
37
37
  viewmode: number = 0;
38
38
  }
39
39
 
40
+ export interface IGzzdMainWithgzjgQuerys {
41
+ gzzdmain: number;
42
+ viewmode: number;
43
+ thinmode: number;
44
+ }
45
+
46
+ export class TGzzdMainWithgzjgQuerys implements IGzzdMainWithgzjgQuerys {
47
+ gzzdmain: number = -1;
48
+ viewmode: number = 0;
49
+ thinmode: number = -1;
50
+ }
51
+
52
+ export interface IGzzdMainGet2formulaQuerys {
53
+ }
54
+
55
+ export class TGzzdMainGet2formulaQuerys implements IGzzdMainGet2formulaQuerys {
56
+ }
57
+
40
58
  export interface IGzzdMainGet4gzlmQuerys {
41
59
  gzzdmain: number;
42
60
  }