@ningboyz/apis 1.1.46 → 1.1.48

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 CHANGED
@@ -22,6 +22,7 @@ import MyoaRequest from "./packages/myoa";
22
22
  import CronRequest from "./packages/cron";
23
23
  import ZbysRequest from "./packages/zbys";
24
24
  import ZbzdRequest from "./packages/zbzd";
25
+ import GzzdRequest from "./packages/gzzd";
25
26
  import { IAxiosConfig } from "./packages/axios";
26
27
 
27
28
  class Request {
@@ -49,6 +50,7 @@ class Request {
49
50
  public static cron: CronRequest;
50
51
  public static zbys: ZbysRequest;
51
52
  public static zbzd: ZbzdRequest;
53
+ public static gzzd: GzzdRequest;
52
54
 
53
55
  public static createRequest(config: IAxiosConfig) {
54
56
  this.zbys = new ZbysRequest(config);
@@ -75,6 +77,7 @@ class Request {
75
77
  this.myoa = new MyoaRequest(config);
76
78
  this.cron = new CronRequest(config);
77
79
  this.zbzd = new ZbzdRequest(config);
80
+ this.gzzd = new GzzdRequest(config);
78
81
  }
79
82
  }
80
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.1.46",
3
+ "version": "1.1.48",
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.46",
20
+ "@ningboyz/types": "1.1.48",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -18,7 +18,7 @@ import {
18
18
  ICardMainSelectd4Querys,
19
19
  ICardMainUpdated3Querys,
20
20
  ICardMainUpdatedbQuerys,
21
- ICardMainUploadd2Querys, ICardMainUploadd3Querys
21
+ ICardMainUploadd2Querys, ICardMainUploadd3Querys, ICardMainUploadd4Querys
22
22
  } from "./type";
23
23
  import { IParams } from "../type";
24
24
 
@@ -139,6 +139,16 @@ class MainRequest {
139
139
  return this.httpRequest.post<TCard.ICardMainResponse[]>("/gapi/card/tmain/uploadd3", querys, params);
140
140
  }
141
141
 
142
+ /**
143
+ * 生成资产卡片(特殊情况:生成存放地点带所属部门的)
144
+ * @param querys
145
+ * @param params
146
+ * @returns
147
+ */
148
+ uploadd4(querys: ICardMainUploadd4Querys, params: object) {
149
+ return this.httpRequest.post<TCard.ICardMainResponse[]>("/gapi/card/tmain/uploadd4", querys, params);
150
+ }
151
+
142
152
  /**
143
153
  * 获取登记已办业务
144
154
  */
@@ -207,6 +207,19 @@ export class TCardMainUploadd3Querys implements ICardMainUploadd3Querys {
207
207
  sysclasc: number = 0;
208
208
  }
209
209
 
210
+
211
+ export interface ICardMainUploadd4Querys {
212
+ sourcend: number;
213
+ zclbtype: number;
214
+ sysclasc: number;
215
+ }
216
+
217
+ export class TCardMainUploadd4Querys implements ICardMainUploadd4Querys {
218
+ sourcend: number = -1;
219
+ zclbtype: number = -1;
220
+ sysclasc: number = 0;
221
+ }
222
+
210
223
  export interface ICardMainGet4dataQuerys {
211
224
  cardmain: number;
212
225
  }
@@ -0,0 +1,14 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class GzzdRequest {
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 GzzdRequest;
14
+ export * from "./type";
@@ -0,0 +1,54 @@
1
+ import { TGzzd } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { IGzzdMainSelectdbQuerys, IGzzdMainUpdatedbQuerys, IGzzdMainDetaildbQuerys, IGzzdMainFinishedQuerys } from "./type";
4
+
5
+ class ParaRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取工资主单
13
+ */
14
+ selectdb(querys: IGzzdMainSelectdbQuerys) {
15
+ return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/selectdb", querys, undefined);
16
+ }
17
+
18
+ /**
19
+ * 新增工资主单
20
+ */
21
+ insertdb(params: object) {
22
+ return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/insertdb", undefined, params);
23
+ }
24
+
25
+ /**
26
+ * 修改工资主单
27
+ */
28
+ updatedb(querys: IGzzdMainUpdatedbQuerys, params: object) {
29
+ return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/updatedb", querys, params);
30
+ }
31
+
32
+ /**
33
+ * 删除工资主单
34
+ */
35
+ deletedb(params: object) {
36
+ return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/deletedb", undefined, params);
37
+ }
38
+
39
+ /**
40
+ * 获取工资主单详情
41
+ */
42
+ detaildb(querys: IGzzdMainDetaildbQuerys, params: object) {
43
+ return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/detaildb", querys, params);
44
+ }
45
+
46
+ /**
47
+ * 获取工资主单已办业务
48
+ */
49
+ finished(querys: IGzzdMainFinishedQuerys) {
50
+ return this.httpRequest.post<TGzzd.IGzzdMainResponse[]>("/gapi/gzzd/tmain/finished", querys, undefined);
51
+ }
52
+ }
53
+
54
+ export default ParaRequest;
@@ -0,0 +1,44 @@
1
+ /** ========== main ========== */
2
+ export interface IGzzdMainSelectdbQuerys {
3
+ sourcend: number;
4
+ taskmain: number;
5
+ gztbmain: number;
6
+ withflow: number;
7
+ queuesby: number;
8
+ withhold: number;
9
+ }
10
+
11
+ export class TGzzdMainSelectdbQuerys implements IGzzdMainSelectdbQuerys {
12
+ sourcend: number = -1;
13
+ taskmain: number = -1;
14
+ gztbmain: number = -1;
15
+ withflow: number = 0;
16
+ queuesby: number = -1;
17
+ withhold: number = 1;
18
+ }
19
+
20
+ export interface IGzzdMainUpdatedbQuerys {
21
+ readonly: number;
22
+ deptmain: number;
23
+ }
24
+
25
+ export class TGzzdMainUpdatedbQuerys implements IGzzdMainUpdatedbQuerys {
26
+ readonly: number = -1;
27
+ deptmain: number = -1;
28
+ }
29
+
30
+ export interface IGzzdMainDetaildbQuerys {
31
+ gzzdmain: number;
32
+ }
33
+
34
+ export class TGzzdMainDetaildbQuerys implements IGzzdMainDetaildbQuerys {
35
+ gzzdmain: number = -1;
36
+ }
37
+
38
+ export interface IGzzdMainFinishedQuerys {
39
+ sourcend: number;
40
+ }
41
+
42
+ export class TGzzdMainFinishedQuerys implements IGzzdMainFinishedQuerys {
43
+ sourcend: number = -1;
44
+ }
package/packages/index.ts CHANGED
@@ -20,4 +20,5 @@ export * from "./elem";
20
20
  export * from "./yzcg";
21
21
  export * from "./myoa";
22
22
  export * from "./cron";
23
- export * from "./zbzd";
23
+ export * from "./zbzd";
24
+ export * from "./gzzd";