@ningboyz/apis 1.0.149 → 1.0.151

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.0.149",
3
+ "version": "1.0.151",
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.149",
20
+ "@ningboyz/types": "1.0.151",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -1,4 +1,4 @@
1
- import { TCore, TMyoa } from "@ningboyz/types";
1
+ import {TCard, TCore, TMyoa} from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import {
4
4
  IMyoaMainDetail2dbQuerys,
@@ -50,7 +50,7 @@ class WithCardRequest {
50
50
  /**
51
51
  * 删除公物仓入仓/领用关联资产卡片
52
52
  */
53
- deletedb(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse>) {
53
+ deletedb(querys: IEmptyQuerys, params: IParams<TCard.ICardMainResponse[]>) {
54
54
  return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/deletedb", querys, params);
55
55
  }
56
56
 
@@ -78,7 +78,7 @@ class WithCardRequest {
78
78
  /**
79
79
  * 公物仓入仓终审
80
80
  */
81
- executed(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse>) {
81
+ executed(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
82
82
  return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/executed", querys, params);
83
83
  }
84
84
 
@@ -99,7 +99,7 @@ class WithCardRequest {
99
99
  /**
100
100
  * 公物仓领用确认/取消确认
101
101
  */
102
- mrokdb(querys: IMyoaMainMrokdbQuerys, params: IParams<TMyoa.IMyoaMainResponse>) {
102
+ mrokdb(querys: IMyoaMainMrokdbQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
103
103
  return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/mrokdb", querys, params);
104
104
  }
105
105
 
package/packages/type.ts CHANGED
@@ -6,4 +6,4 @@ export type IParams<T> = FormData | T
6
6
  /**
7
7
  * 空querys。为了确保以后增加querys,导致params位置后移一位不好改。可以使用这个空的querys类型
8
8
  * */
9
- export type IEmptyQuerys = {} | undefined | Omit<Record<string, string | number>, "r" | "whobuild" | "userindx">
9
+ export type IEmptyQuerys = {} | Omit<Record<string, string | number>, "r" | "whobuild" | "userindx">
@@ -1,7 +1,7 @@
1
1
  import { TZbzd } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import {IZbzdMainSelectdbQuerys, IZbzdMainDetaildbQuerys} from "./type";
4
-
4
+ import { IParams } from "../type";
5
5
 
6
6
  class ParaRequest {
7
7
  private httpRequest: HttpRequest;
@@ -13,20 +13,20 @@ class ParaRequest {
13
13
  * 获取预算指标
14
14
  */
15
15
  selectdb(querys: IZbzdMainSelectdbQuerys) {
16
- return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/selectdb", querys, undefined);
16
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/selectdb", querys);
17
17
  }
18
18
 
19
19
  /**
20
20
  * 新增预算指标
21
21
  */
22
- insertdb(params: object) {
22
+ insertdb(params: IParams<TZbzd.IZbzdMainResponse>) {
23
23
  return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/insertdb", undefined, params);
24
24
  }
25
25
 
26
26
  /**
27
27
  * 修改预算指标
28
28
  */
29
- updatedb(params: object) {
29
+ updatedb(params: IParams<TZbzd.IZbzdMainResponse>) {
30
30
  return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb", undefined, params);
31
31
  }
32
32
 
@@ -2,11 +2,13 @@
2
2
  export interface IZbzdMainSelectdbQuerys {
3
3
  withflow: number;
4
4
  useronly: number;
5
+ sourcend: number;
5
6
  }
6
7
 
7
8
  export class TZbzdMainSelectdbQuerys implements IZbzdMainSelectdbQuerys {
8
9
  withflow: number = 0
9
10
  useronly: number = -1;
11
+ sourcend: number = -1
10
12
  }
11
13
 
12
14
  export interface IZbzdMainDetaildbQuerys {