@ningboyz/apis 1.0.147 → 1.0.149

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
@@ -21,6 +21,7 @@ import YzcgRequest from "./packages/yzcg";
21
21
  import MyoaRequest from "./packages/myoa";
22
22
  import CronRequest from "./packages/cron";
23
23
  import ZbysRequest from "./packages/zbys";
24
+ import ZbzdRequest from "./packages/zbzd";
24
25
  import { IAxiosConfig } from "./packages/axios";
25
26
 
26
27
  class Request {
@@ -47,6 +48,7 @@ class Request {
47
48
  public static myoa: MyoaRequest;
48
49
  public static cron: CronRequest;
49
50
  public static zbys: ZbysRequest;
51
+ public static zbzd: ZbzdRequest;
50
52
 
51
53
  public static createRequest(config: IAxiosConfig) {
52
54
  this.zbys = new ZbysRequest(config);
@@ -72,6 +74,7 @@ class Request {
72
74
  this.yzcg = new YzcgRequest(config);
73
75
  this.myoa = new MyoaRequest(config);
74
76
  this.cron = new CronRequest(config);
77
+ this.zbzd = new ZbzdRequest(config);
75
78
  }
76
79
  }
77
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.0.147",
3
+ "version": "1.0.149",
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.0.147",
20
+ "@ningboyz/types": "1.0.149",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -1,4 +1,4 @@
1
- import { TGzjg } from "@ningboyz/types";
1
+ import { TGzjg, TElem } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import { IGzjgGzlmDetaildbQuerys, IGzjgGzlmGet4GzlmQuerys, IGzjgGzlmInsertdbQuerys, IGzjgGzlmSelectdbQuerys, IGzjgGzlmUpdatedbQuerys, IGzjgGzlmSelectQuerys, IGzjgGzlmUploadQuerys, IGzjgGzlmSelectLmQuerys } from "./type";
4
4
 
@@ -75,7 +75,7 @@ class GzlmRequest {
75
75
  * 获取工资栏目(指标要素)
76
76
  */
77
77
  selectlm(querys: IGzjgGzlmSelectLmQuerys) {
78
- return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>(`/gzjg/tgzlm/withelem/selectlm`, querys, undefined);
78
+ return this.httpRequest.post<TElem.IElemDataResponse[]>(`/gzjg/tgzlm/withelem/selectlm`, querys, undefined);
79
79
  }
80
80
  }
81
81
 
package/packages/index.ts CHANGED
@@ -20,3 +20,4 @@ export * from "./elem";
20
20
  export * from "./yzcg";
21
21
  export * from "./myoa";
22
22
  export * from "./cron";
23
+ export * from "./zbzd";
@@ -101,6 +101,7 @@ class ParaRequest {
101
101
  }
102
102
 
103
103
  /**
104
+ * 反折旧反结账后判断卡片是否有变动
104
105
  * 获取公物仓入仓/领用详情
105
106
  */
106
107
  chkinsert(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
@@ -85,8 +85,8 @@ class WithCardRequest {
85
85
  /**
86
86
  * 公物仓入仓/领用终审判断已
87
87
  */
88
- chkexist(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse>) {
89
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/chkexist", querys, params);
88
+ chkexist(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
89
+ return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/myoa/tmain/withcard/chkexist", querys, params);
90
90
  }
91
91
 
92
92
  /**
@@ -1,6 +1,6 @@
1
1
  import { TYzcg } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import {TYzcgMainDetaildbQuerys, IYzcgMainSelectdbQuerys} from "./type";
3
+ import {IYzcgMainDetaildbQuerys, IYzcgMainSelectdbQuerys} from "./type";
4
4
 
5
5
 
6
6
  class ParaRequest {
@@ -41,7 +41,7 @@ class ParaRequest {
41
41
  /**
42
42
  * 获取采购申请详情
43
43
  */
44
- detaildb(querys: TYzcgMainDetaildbQuerys, params: object) {
44
+ detaildb(querys: IYzcgMainDetaildbQuerys, params: object) {
45
45
  return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/detaildb", querys, params);
46
46
  }
47
47
  }
@@ -3,10 +3,12 @@ export interface IElemDetailSelectdbQuerys {
3
3
  sourcend: number;
4
4
  fromelem: number;
5
5
  }
6
+
6
7
  export class TElemDetailSelectdbQuerys implements IElemDetailSelectdbQuerys {
7
8
  fromelem: number = -1;
8
9
  sourcend: number = -1;
9
10
  }
11
+
10
12
  export interface IElemDetailInsertdbQuerys {
11
13
  sourcend: number;
12
14
  /**取左侧类中:TElemElemResponse.elemIndx*/
@@ -14,11 +16,13 @@ export interface IElemDetailInsertdbQuerys {
14
16
  /**取左侧类中:TElemElemResponse.elemFrom*/
15
17
  elemfrom: string;
16
18
  }
19
+
17
20
  export class TElemDetailInsertdbQuerys implements IElemDetailInsertdbQuerys {
18
21
  fromelem: number = -1;
19
22
  sourcend: number = -1;
20
23
  elemfrom: string = "";
21
24
  }
25
+
22
26
  export interface IElemDetailQueuesbyQuerys {
23
27
  sourcend: number;
24
28
  /**取左侧类中:TElemElemResponse.elemIndx*/
@@ -26,6 +30,7 @@ export interface IElemDetailQueuesbyQuerys {
26
30
  /**取左侧类中:TElemElemResponse.elemFrom*/
27
31
  elemfrom: string;
28
32
  }
33
+
29
34
  export class TElemDetailQueuesbyQuerys implements IElemDetailQueuesbyQuerys {
30
35
  fromelem: number = -1;
31
36
  elemfrom: string = "";
@@ -0,0 +1,14 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class ZbzdRequest {
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 ZbzdRequest;
14
+ export * from "./type"
@@ -0,0 +1,49 @@
1
+ import { TZbzd } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import {IZbzdMainSelectdbQuerys, IZbzdMainDetaildbQuerys} from "./type";
4
+
5
+
6
+ class ParaRequest {
7
+ private httpRequest: HttpRequest;
8
+ constructor(httpRequest: HttpRequest) {
9
+ this.httpRequest = httpRequest;
10
+ }
11
+
12
+ /**
13
+ * 获取预算指标
14
+ */
15
+ selectdb(querys: IZbzdMainSelectdbQuerys) {
16
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/selectdb", querys, undefined);
17
+ }
18
+
19
+ /**
20
+ * 新增预算指标
21
+ */
22
+ insertdb(params: object) {
23
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/insertdb", undefined, params);
24
+ }
25
+
26
+ /**
27
+ * 修改预算指标
28
+ */
29
+ updatedb(params: object) {
30
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb", undefined, params);
31
+ }
32
+
33
+
34
+ /**
35
+ * 删除预算指标
36
+ */
37
+ deletedb(params: object) {
38
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/deletedb", undefined, params);
39
+ }
40
+
41
+ /**
42
+ * 获取预算指标
43
+ */
44
+ detaildb(querys: IZbzdMainDetaildbQuerys, params: object) {
45
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/detaildb", querys, params);
46
+ }
47
+ }
48
+
49
+ export default ParaRequest;
@@ -0,0 +1,19 @@
1
+ /** ========== main ========== */
2
+ export interface IZbzdMainSelectdbQuerys {
3
+ withflow: number;
4
+ useronly: number;
5
+ }
6
+
7
+ export class TZbzdMainSelectdbQuerys implements IZbzdMainSelectdbQuerys {
8
+ withflow: number = 0
9
+ useronly: number = -1;
10
+ }
11
+
12
+ export interface IZbzdMainDetaildbQuerys {
13
+ zbzdZdid: number;
14
+ }
15
+
16
+ export class TZbzdMainDetaildbQuerys implements IZbzdMainDetaildbQuerys {
17
+ zbzdZdid: number = -1;
18
+ }
19
+