@ningboyz/apis 1.4.188 → 1.4.190
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/take/main.ts +5 -2
- package/packages/take/types.ts +24 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.190",
|
|
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.190",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/take/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HttpRequest } from "../axios";
|
|
2
2
|
import type { TTake } from "@ningboyz/types";
|
|
3
|
-
import { ITakeMainDeletedbQuerys, ITakeMainDeletedsQuerys, ITakeMainDetaildbQuerys, ITakeMainInsertdbQuerys, ITakeMainInsertdsQuerys, ITakeMainSelectdbQuerys, ITakeMainUpdatedbQuerys, ITakeMainUpdatedsQuerys } from "./types";
|
|
3
|
+
import { ITakeMainDeletedbQuerys, ITakeMainDeletedsQuerys, ITakeMainDetaildbQuerys, ITakeMainInsertdbQuerys, ITakeMainInsertdsQuerys, ITakeMainNegativeQuerys, ITakeMainSelectdbQuerys, ITakeMainUpdatedbQuerys, ITakeMainUpdatedsQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class MainRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -47,7 +47,10 @@ class MainRequest {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
// 判断是否出现负结存
|
|
51
|
+
negative(querys: ITakeMainNegativeQuerys, params: object) {
|
|
52
|
+
return this.httpRequest.post<TTake.ITakeMainResponse[]>("/gapi/take/tmain/negative", querys, params);
|
|
53
|
+
}
|
|
51
54
|
|
|
52
55
|
|
|
53
56
|
}
|
package/packages/take/types.ts
CHANGED
|
@@ -115,4 +115,27 @@ export interface ITakeMainDeletedbQuerys {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
export class TTakeMainDeletedbQuerys implements ITakeMainDeletedbQuerys {
|
|
118
|
-
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
export interface ITakeMainNegativeQuerys {
|
|
122
|
+
sourcend: number;
|
|
123
|
+
unitmain: number;
|
|
124
|
+
takemain: number;
|
|
125
|
+
laidmain: number;
|
|
126
|
+
editMode: number;
|
|
127
|
+
taketype: number;
|
|
128
|
+
sourceid: number;
|
|
129
|
+
takedate: number;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export class TTakeMainNegativeQuerys implements ITakeMainNegativeQuerys {
|
|
133
|
+
sourcend: number = -1;
|
|
134
|
+
unitmain: number = -1;
|
|
135
|
+
takemain: number = -1;
|
|
136
|
+
laidmain: number = -1;
|
|
137
|
+
editMode: number = -1;
|
|
138
|
+
taketype: number = -1;
|
|
139
|
+
sourceid: number = -1;
|
|
140
|
+
takedate: number = -1;
|
|
141
|
+
}
|