@ningboyz/apis 1.3.94 → 1.3.96
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/yzcg/main.ts +9 -1
- package/packages/yzcg/types.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.96",
|
|
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.3.
|
|
20
|
+
"@ningboyz/types": "1.3.96",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/yzcg/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TYzcg } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IYzcgMainDetaildbQuerys, IYzcgMainSelectdbQuerys } from "./types";
|
|
3
|
+
import { IYzcgMainDetaildbQuerys, IYzcgMainFinishdbQuerys, IYzcgMainSelectdbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class YzcgRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -17,6 +17,14 @@ class YzcgRequest {
|
|
|
17
17
|
return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/selectdb", querys, undefined);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* 获取已办
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
finished(querys: IYzcgMainFinishdbQuerys) {
|
|
25
|
+
return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/finished", querys);
|
|
26
|
+
}
|
|
27
|
+
|
|
20
28
|
/**
|
|
21
29
|
* 新增采购申请
|
|
22
30
|
* @param params
|
package/packages/yzcg/types.ts
CHANGED
|
@@ -13,6 +13,14 @@ export class TYzcgMainSelectdbQuerys implements IYzcgMainSelectdbQuerys {
|
|
|
13
13
|
useronly: number = -1;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export interface IYzcgMainFinishdbQuerys {
|
|
17
|
+
yzcgmain: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class TYzcgMainFinishdbQuerys implements IYzcgMainFinishdbQuerys {
|
|
21
|
+
yzcgmain: number = -1;
|
|
22
|
+
}
|
|
23
|
+
|
|
16
24
|
export interface IYzcgMainDetaildbQuerys {
|
|
17
25
|
yzcgmain: number;
|
|
18
26
|
}
|