@ningboyz/apis 1.0.165 → 1.0.166
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/myoa/main.ts +8 -2
- package/packages/myoa/type.ts +9 -0
- package/packages/noti/main.ts +8 -1
- package/packages/noti/type.ts +8 -0
- package/packages/yzcg/main.ts +9 -2
- package/packages/yzcg/type.ts +7 -0
- package/packages/zbzd/main.ts +9 -2
- package/packages/zbzd/type.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.166",
|
|
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.
|
|
20
|
+
"@ningboyz/types": "1.0.166",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/myoa/main.ts
CHANGED
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
TMyoaMainDetaildbQuerys,
|
|
5
5
|
IMyoaMainSelectdbQuerys,
|
|
6
6
|
IMyoaMainInsertdb2Querys,
|
|
7
|
+
IMyoaMainCopydbQuerys,
|
|
7
8
|
IMyoaMainUpdated4Querys, TMyoaMainMrokdbQuerys, IMyoaMainDetail2dbQuerys
|
|
8
9
|
} from "./type";
|
|
9
|
-
import {IEmptyQuerys, IParams} from "../type";
|
|
10
|
+
import { IEmptyQuerys, IParams } from "../type";
|
|
10
11
|
|
|
11
12
|
class ParaRequest {
|
|
12
13
|
private httpRequest: HttpRequest;
|
|
@@ -48,7 +49,12 @@ class ParaRequest {
|
|
|
48
49
|
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/detaildb", querys, params);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
/**
|
|
53
|
+
* 复制盖章申请
|
|
54
|
+
*/
|
|
55
|
+
copydb(querys: IMyoaMainCopydbQuerys, params: object) {
|
|
56
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/copydb", querys, params);
|
|
57
|
+
}
|
|
52
58
|
|
|
53
59
|
//公物仓
|
|
54
60
|
/**
|
package/packages/myoa/type.ts
CHANGED
|
@@ -3,12 +3,14 @@ export interface IMyoaMainSelectdbQuerys {
|
|
|
3
3
|
withflow: number;
|
|
4
4
|
viewonly: number;
|
|
5
5
|
useronly: number;
|
|
6
|
+
myoatype: number;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export class TMyoaMainSelectdbQuerys implements IMyoaMainSelectdbQuerys {
|
|
9
10
|
withflow: number = 0;
|
|
10
11
|
viewonly: number = -1;
|
|
11
12
|
useronly: number = -1;
|
|
13
|
+
myoatype: number = 0;
|
|
12
14
|
}
|
|
13
15
|
/** ========== main ========== */
|
|
14
16
|
export interface IMyoaMainInsertdb2Querys {
|
|
@@ -43,6 +45,13 @@ export class TMyoaMainDetaildbQuerys implements IMyoaMainDetaildbQuerys {
|
|
|
43
45
|
myoamain: number = -1;
|
|
44
46
|
}
|
|
45
47
|
|
|
48
|
+
export interface IMyoaMainCopydbQuerys {
|
|
49
|
+
copycount: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export class TMyoaMainCopydbQuerys implements IMyoaMainCopydbQuerys {
|
|
53
|
+
copycount: number = -1;
|
|
54
|
+
}
|
|
46
55
|
|
|
47
56
|
export interface IMyoaMainDetail2dbQuerys {
|
|
48
57
|
/** 单据主键 */
|
package/packages/noti/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TNoti } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {INotiMainDetaildbQuerys, INotiMainSelectdbQuerys} from "./type";
|
|
3
|
+
import { INotiMainDetaildbQuerys, INotiMainSelectdbQuerys, INotiMainCopydbQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
class ParaRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -42,6 +42,13 @@ class ParaRequest {
|
|
|
42
42
|
detaildb(querys: INotiMainDetaildbQuerys, params: object) {
|
|
43
43
|
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/detaildb", querys, params);
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 复制公告列表
|
|
48
|
+
*/
|
|
49
|
+
copydb(querys: INotiMainCopydbQuerys, params: object) {
|
|
50
|
+
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/copydb", querys, params);
|
|
51
|
+
}
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
export default ParaRequest;
|
package/packages/noti/type.ts
CHANGED
|
@@ -24,3 +24,11 @@ export interface INotiMainDetaildbQuerys {
|
|
|
24
24
|
export class TNotiMainDetaildbQuerys implements INotiMainDetaildbQuerys {
|
|
25
25
|
notimain: number = -1;
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
export interface INotiMainCopydbQuerys {
|
|
29
|
+
copycount: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class TNotiMainCopydbQuerys implements INotiMainCopydbQuerys {
|
|
33
|
+
copycount: number = -1;
|
|
34
|
+
}
|
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 "./type";
|
|
3
|
+
import { IYzcgMainDetaildbQuerys, IYzcgMainSelectdbQuerys, IYzcgMainCopydbQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class ParaRequest {
|
|
@@ -37,13 +37,20 @@ class ParaRequest {
|
|
|
37
37
|
deletedb(params: object) {
|
|
38
38
|
return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/deletedb", undefined, params);
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
/**
|
|
42
42
|
* 获取采购申请详情
|
|
43
43
|
*/
|
|
44
44
|
detaildb(querys: IYzcgMainDetaildbQuerys, params: object) {
|
|
45
45
|
return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/detaildb", querys, params);
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 复制采购申请
|
|
50
|
+
*/
|
|
51
|
+
copydb(querys: IYzcgMainCopydbQuerys, params: object) {
|
|
52
|
+
return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/copydb", querys, params);
|
|
53
|
+
}
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
export default ParaRequest;
|
package/packages/yzcg/type.ts
CHANGED
|
@@ -21,3 +21,10 @@ export class TYzcgMainDetaildbQuerys implements IYzcgMainDetaildbQuerys {
|
|
|
21
21
|
yzcgmain: number = -1;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
export interface IYzcgMainCopydbQuerys {
|
|
25
|
+
copycount: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class TYzcgMainCopydbQuerys implements IYzcgMainCopydbQuerys {
|
|
29
|
+
copycount: number = -1;
|
|
30
|
+
}
|
package/packages/zbzd/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TZbzd } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {IZbzdMainSelectdbQuerys, IZbzdMainInsertdbQuerys, IZbzdMainDetaildbQuerys} from "./type";
|
|
3
|
+
import { IZbzdMainSelectdbQuerys, IZbzdMainInsertdbQuerys, IZbzdMainDetaildbQuerys, IZbzdMainCopydbQuerys } from "./type";
|
|
4
4
|
import { IParams } from "../type";
|
|
5
5
|
|
|
6
6
|
class ParaRequest {
|
|
@@ -37,13 +37,20 @@ class ParaRequest {
|
|
|
37
37
|
deletedb(params: object) {
|
|
38
38
|
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/deletedb", undefined, params);
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
/**
|
|
42
42
|
* 获取预算指标详情
|
|
43
43
|
*/
|
|
44
44
|
detaildb(querys: IZbzdMainDetaildbQuerys, params: object) {
|
|
45
45
|
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/detaildb", querys, params);
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 复制预算指标
|
|
50
|
+
*/
|
|
51
|
+
copydb(querys: IZbzdMainCopydbQuerys, params: object) {
|
|
52
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/copydb", querys, params);
|
|
53
|
+
}
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
export default ParaRequest;
|
package/packages/zbzd/type.ts
CHANGED
|
@@ -28,3 +28,10 @@ export class TZbzdMainDetaildbQuerys implements IZbzdMainDetaildbQuerys {
|
|
|
28
28
|
zbzdzdid: number = -1;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export interface IZbzdMainCopydbQuerys {
|
|
32
|
+
copycount: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class TZbzdMainCopydbQuerys implements IZbzdMainCopydbQuerys {
|
|
36
|
+
copycount: number = -1;
|
|
37
|
+
}
|