@ningboyz/apis 1.4.68 → 1.4.70
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/bill/main.ts +13 -2
- package/packages/bill/types.ts +6 -0
- package/packages/hznj/base.ts +5 -1
- package/packages/hznj/type.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.70",
|
|
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.4.
|
|
20
|
+
"@ningboyz/types": "1.4.70",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/bill/main.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TBill, TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IEmptyQuerys } from "../type";
|
|
4
3
|
import {
|
|
4
|
+
IBillMainCalculateQuerys,
|
|
5
|
+
IBillMainChkexis2Querys,
|
|
5
6
|
IBillMainChkexistQuerys,
|
|
6
7
|
IBillMainClosedbQuerys,
|
|
7
8
|
IBillMainDeletedbQuerys,
|
|
@@ -93,6 +94,16 @@ class MainRequest {
|
|
|
93
94
|
return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/bill/tmain/chkexist", querys, params);
|
|
94
95
|
}
|
|
95
96
|
|
|
97
|
+
/**
|
|
98
|
+
* 票据终审判断
|
|
99
|
+
* @param querys
|
|
100
|
+
* @param params
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
chkexis2(querys: IBillMainChkexis2Querys, params: object) {
|
|
104
|
+
return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/bill/tmain/chkexis2", querys, params);
|
|
105
|
+
}
|
|
106
|
+
|
|
96
107
|
/**
|
|
97
108
|
* 票据关闭
|
|
98
109
|
* @param querys
|
|
@@ -108,7 +119,7 @@ class MainRequest {
|
|
|
108
119
|
* @param params
|
|
109
120
|
* @returns
|
|
110
121
|
*/
|
|
111
|
-
calculate(querys:
|
|
122
|
+
calculate(querys: IBillMainCalculateQuerys, params: object) {
|
|
112
123
|
return this.httpRequest.post<TBill.IBillMainResponse[]>(`/gapi/bill/tmain/calculate`, querys, params);
|
|
113
124
|
}
|
|
114
125
|
}
|
package/packages/bill/types.ts
CHANGED
|
@@ -59,6 +59,9 @@ export class TBillCnfgSelectd2Querys implements IBillCnfgSelectd2Querys {}
|
|
|
59
59
|
export interface IBillMainChkexistQuerys {}
|
|
60
60
|
export class TBillMainChkexistQuerys implements IBillMainChkexistQuerys {}
|
|
61
61
|
|
|
62
|
+
export interface IBillMainChkexis2Querys {}
|
|
63
|
+
export class TBillMainChkexis2Querys implements IBillMainChkexis2Querys {}
|
|
64
|
+
|
|
62
65
|
export interface IBillMainClosedbQuerys {
|
|
63
66
|
/** 关闭类型:0:手工;1:系统 */
|
|
64
67
|
closetype: number;
|
|
@@ -72,3 +75,6 @@ export class TBillMainClosedbQuerys implements IBillMainClosedbQuerys {
|
|
|
72
75
|
closetype: number = -1;
|
|
73
76
|
canclose: number = -1;
|
|
74
77
|
}
|
|
78
|
+
|
|
79
|
+
export interface IBillMainCalculateQuerys {}
|
|
80
|
+
export class TBillMainCalculateQuerys implements IBillMainCalculateQuerys {}
|
package/packages/hznj/base.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#检测项目管理
|
|
2
2
|
import { THznj } from "@ningboyz/types";
|
|
3
3
|
import { HttpRequest } from "../axios";
|
|
4
|
-
import { IHznjBaseDeletedbQuerys, IHznjBaseDetailQuerys, IHznjBaseFinishedQuerys, IHznjBaseInsertdbQuerys, IHznjBaseSelectdbQuerys, IHznjBaseUpdatedbQuerys } from "./type";
|
|
4
|
+
import { IHznjBaseDeletedbQuerys, IHznjBaseDetail2Querys, IHznjBaseDetailQuerys, IHznjBaseFinishedQuerys, IHznjBaseInsertdbQuerys, IHznjBaseSelectdbQuerys, IHznjBaseUpdatedbQuerys } from "./type";
|
|
5
5
|
|
|
6
6
|
class BaseRequest {
|
|
7
7
|
private httpRequest: HttpRequest;
|
|
@@ -25,6 +25,10 @@ class BaseRequest {
|
|
|
25
25
|
return this.httpRequest.post<THznj.IHznjBaseResponse[]>("/gapi/hznj/tbase/detaildb", querys, undefined);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
detaild2(querys: IHznjBaseDetail2Querys, params: object) {
|
|
29
|
+
return this.httpRequest.post<THznj.IHznjBaseResponse[]>("/gapi/hznj/tbase/detaild2", querys, params);
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
deletedb(querys: IHznjBaseDeletedbQuerys, params: object) {
|
|
29
33
|
return this.httpRequest.post<THznj.IHznjBaseResponse[]>("/gapi/hznj/tbase/deletedb", querys, params);
|
|
30
34
|
}
|
package/packages/hznj/type.ts
CHANGED
|
@@ -47,6 +47,14 @@ export class THznjBaseDetailQuerys implements IHznjBaseDetailQuerys {
|
|
|
47
47
|
baseindx: number = -1;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
export interface IHznjBaseDetail2Querys {
|
|
51
|
+
sourcend: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class THznjBaseDetail2Querys implements IHznjBaseDetail2Querys {
|
|
55
|
+
sourcend: number = -1;
|
|
56
|
+
}
|
|
57
|
+
|
|
50
58
|
export interface IHznjBaseDeletedbQuerys {
|
|
51
59
|
sourcend: number;
|
|
52
60
|
}
|