@ningboyz/apis 1.0.166 → 1.0.168
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/axios.ts +1 -1
- package/packages/card/index.ts +3 -0
- package/packages/card/index.ts~ +2 -2
- package/packages/card/tdata.ts +94 -0
- package/packages/card/type.ts +62 -0
- package/packages/index.ts +1 -1
- package/packages/myoa/main.ts +0 -8
- package/packages/myoa/type.ts +0 -8
- package/packages/noti/main.ts +1 -8
- package/packages/noti/type.ts +0 -8
- package/packages/yzcg/main.ts +1 -8
- package/packages/yzcg/type.ts +0 -8
- package/packages/zbzd/main.ts +1 -8
- package/packages/zbzd/type.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.168",
|
|
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.168",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/axios.ts
CHANGED
package/packages/card/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ import ZczjRequest from "./zczj";
|
|
|
11
11
|
import P4pzRequest from "./p4pz";
|
|
12
12
|
import ZczjPropRequest from "./zczjProp";
|
|
13
13
|
import TzclbgblbRequest from "./tzclbgblb";
|
|
14
|
+
import TdataRequest from "./tdata";
|
|
14
15
|
|
|
15
16
|
class CardRequest {
|
|
16
17
|
public gblb: GblbRequest;
|
|
@@ -25,6 +26,7 @@ class CardRequest {
|
|
|
25
26
|
public zczj: ZczjRequest;
|
|
26
27
|
public zczjProp: ZczjPropRequest;
|
|
27
28
|
public tzclbgblb: TzclbgblbRequest;
|
|
29
|
+
public tdata: TdataRequest;
|
|
28
30
|
|
|
29
31
|
constructor(config: IAxiosConfig) {
|
|
30
32
|
const request = createRequest(config);
|
|
@@ -40,6 +42,7 @@ class CardRequest {
|
|
|
40
42
|
this.zczj = new ZczjRequest(request);
|
|
41
43
|
this.zczjProp = new ZczjPropRequest(request);
|
|
42
44
|
this.tzclbgblb = new TzclbgblbRequest(request);
|
|
45
|
+
this.tdata = new TdataRequest(request);
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
|
package/packages/card/index.ts~
CHANGED
|
@@ -24,7 +24,7 @@ class CardRequest {
|
|
|
24
24
|
public p4pz: P4pzRequest;
|
|
25
25
|
public zczj: ZczjRequest;
|
|
26
26
|
public zczjProp: ZczjPropRequest;
|
|
27
|
-
public
|
|
27
|
+
public tzclbgblb: TzclbgblbRequest;
|
|
28
28
|
|
|
29
29
|
constructor(config: IAxiosConfig) {
|
|
30
30
|
const request = createRequest(config);
|
|
@@ -39,7 +39,7 @@ class CardRequest {
|
|
|
39
39
|
this.p4pz = new P4pzRequest(request);
|
|
40
40
|
this.zczj = new ZczjRequest(request);
|
|
41
41
|
this.zczjProp = new ZczjPropRequest(request);
|
|
42
|
-
this.
|
|
42
|
+
this.tzclbgblb = new TzclbgblbRequest(request);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { TCard, TCore } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import {
|
|
4
|
+
ICardTdataDetaildbQuerys,
|
|
5
|
+
ICardTdataFinishedQuerys,
|
|
6
|
+
ICardTdataSelectdbQuerys,
|
|
7
|
+
ICardTdataTodolistQuerys
|
|
8
|
+
} from "./type";
|
|
9
|
+
import {IDataResponse} from "../../../types/src/card";
|
|
10
|
+
import {IEmptyQuerys, IParams} from "../type";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 卡片维修
|
|
14
|
+
* @Link https://doc.apipost.net/docs/detail/461255927c8d000?target_id=3e957ad
|
|
15
|
+
* */
|
|
16
|
+
class TdataRequest {
|
|
17
|
+
private httpRequest: HttpRequest;
|
|
18
|
+
constructor(httpRequest: HttpRequest) {
|
|
19
|
+
this.httpRequest = httpRequest;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 获取资产事项
|
|
24
|
+
* @param querys
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
selectdb(querys: ICardTdataSelectdbQuerys) {
|
|
28
|
+
return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/selectdb", querys, undefined);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 上传资产事项
|
|
33
|
+
* @param querys
|
|
34
|
+
* @param params
|
|
35
|
+
*/
|
|
36
|
+
uploaddb(querys: IEmptyQuerys, params: IParams<TCard.IDataResponse[]>) {
|
|
37
|
+
return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/uploaddb", querys, params);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 添加资产事项
|
|
42
|
+
* @param querys
|
|
43
|
+
* @param params
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
insertdb(querys: IEmptyQuerys, params: IParams<TCard.IDataResponse>) {
|
|
47
|
+
return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/insertdb", querys, params);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 修改资产事项
|
|
52
|
+
* @param querys
|
|
53
|
+
* @param params
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
updatedb(querys: IEmptyQuerys, params: IParams<TCard.IDataResponse>) {
|
|
57
|
+
return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/updatedb", querys, params);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 修复车辆维修
|
|
62
|
+
* @param querys
|
|
63
|
+
*/
|
|
64
|
+
repairdb(querys: IEmptyQuerys) {
|
|
65
|
+
return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/repairdb", querys, undefined);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 获取待办事项
|
|
70
|
+
* @param querys
|
|
71
|
+
*/
|
|
72
|
+
todolist(querys: ICardTdataTodolistQuerys) {
|
|
73
|
+
return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/todolist", querys, undefined);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 获取已办事项
|
|
78
|
+
* @param querys
|
|
79
|
+
*/
|
|
80
|
+
finished(querys: ICardTdataFinishedQuerys) {
|
|
81
|
+
return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/finished", querys, undefined);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 获取事项详情
|
|
86
|
+
* @param querys
|
|
87
|
+
* @returns
|
|
88
|
+
*/
|
|
89
|
+
detaildb(querys: ICardTdataDetaildbQuerys) {
|
|
90
|
+
return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/detaildb", querys, undefined);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export default TdataRequest;
|
package/packages/card/type.ts
CHANGED
|
@@ -634,3 +634,65 @@ export class TCardZczjPropSelectdbQuerys implements ICardZczjPropSelectdbQuerys
|
|
|
634
634
|
cardkjqj: number = -1;
|
|
635
635
|
proptype: number = -1;
|
|
636
636
|
}
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
/** ========== Tdata资产维修 ==========*/
|
|
640
|
+
/**
|
|
641
|
+
* 资产维修查询
|
|
642
|
+
* */
|
|
643
|
+
export interface ICardTdataSelectdbQuerys {
|
|
644
|
+
datatype: number;
|
|
645
|
+
useronly: number;
|
|
646
|
+
withflow: number;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export class TCardTdataSelectdbQuerys implements ICardTdataSelectdbQuerys {
|
|
650
|
+
datatype: number = -1;
|
|
651
|
+
useronly: number = -1;
|
|
652
|
+
withflow: number = -1;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* 获取待办事项
|
|
658
|
+
* */
|
|
659
|
+
export interface ICardTdataTodolistQuerys {
|
|
660
|
+
/**
|
|
661
|
+
* 车辆里程
|
|
662
|
+
* */
|
|
663
|
+
menuname: number;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export class TCardTdataTodolistQuerys implements ICardTdataTodolistQuerys {
|
|
667
|
+
menuname: number = -1;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* 获取待办事项
|
|
672
|
+
* */
|
|
673
|
+
export interface ICardTdataFinishedQuerys {
|
|
674
|
+
/**
|
|
675
|
+
* 车辆里程
|
|
676
|
+
* */
|
|
677
|
+
menuname: number;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export class TCardTdataFinishedQuerys implements ICardTdataFinishedQuerys {
|
|
681
|
+
menuname: number = -1;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* 获取事项详情
|
|
687
|
+
* */
|
|
688
|
+
export interface ICardTdataDetaildbQuerys {
|
|
689
|
+
/**
|
|
690
|
+
* 车辆里程
|
|
691
|
+
* */
|
|
692
|
+
datamain: number;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export class TCardTdataDetaildbQuerys implements ICardTdataDetaildbQuerys {
|
|
696
|
+
datamain: number = -1;
|
|
697
|
+
}
|
|
698
|
+
|
package/packages/index.ts
CHANGED
package/packages/myoa/main.ts
CHANGED
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
TMyoaMainDetaildbQuerys,
|
|
5
5
|
IMyoaMainSelectdbQuerys,
|
|
6
6
|
IMyoaMainInsertdb2Querys,
|
|
7
|
-
IMyoaMainCopydbQuerys,
|
|
8
7
|
IMyoaMainUpdated4Querys, TMyoaMainMrokdbQuerys, IMyoaMainDetail2dbQuerys
|
|
9
8
|
} from "./type";
|
|
10
9
|
import { IEmptyQuerys, IParams } from "../type";
|
|
@@ -49,13 +48,6 @@ class ParaRequest {
|
|
|
49
48
|
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/detaildb", querys, params);
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
/**
|
|
53
|
-
* 复制盖章申请
|
|
54
|
-
*/
|
|
55
|
-
copydb(querys: IMyoaMainCopydbQuerys, params: object) {
|
|
56
|
-
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/copydb", querys, params);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
51
|
//公物仓
|
|
60
52
|
/**
|
|
61
53
|
* 新增公物仓入仓/领用
|
package/packages/myoa/type.ts
CHANGED
|
@@ -45,14 +45,6 @@ export class TMyoaMainDetaildbQuerys implements IMyoaMainDetaildbQuerys {
|
|
|
45
45
|
myoamain: number = -1;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export interface IMyoaMainCopydbQuerys {
|
|
49
|
-
copycount: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export class TMyoaMainCopydbQuerys implements IMyoaMainCopydbQuerys {
|
|
53
|
-
copycount: number = -1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
48
|
export interface IMyoaMainDetail2dbQuerys {
|
|
57
49
|
/** 单据主键 */
|
|
58
50
|
myoamain: number;
|
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
|
|
3
|
+
import { INotiMainDetaildbQuerys, INotiMainSelectdbQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
class ParaRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -42,13 +42,6 @@ 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
|
-
}
|
|
52
45
|
}
|
|
53
46
|
|
|
54
47
|
export default ParaRequest;
|
package/packages/noti/type.ts
CHANGED
|
@@ -24,11 +24,3 @@ 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
|
|
3
|
+
import { IYzcgMainDetaildbQuerys, IYzcgMainSelectdbQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class ParaRequest {
|
|
@@ -44,13 +44,6 @@ class ParaRequest {
|
|
|
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
|
-
}
|
|
54
47
|
}
|
|
55
48
|
|
|
56
49
|
export default ParaRequest;
|
package/packages/yzcg/type.ts
CHANGED
|
@@ -20,11 +20,3 @@ export interface IYzcgMainDetaildbQuerys {
|
|
|
20
20
|
export class TYzcgMainDetaildbQuerys implements IYzcgMainDetaildbQuerys {
|
|
21
21
|
yzcgmain: number = -1;
|
|
22
22
|
}
|
|
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
|
|
3
|
+
import { IZbzdMainSelectdbQuerys, IZbzdMainInsertdbQuerys, IZbzdMainDetaildbQuerys } from "./type";
|
|
4
4
|
import { IParams } from "../type";
|
|
5
5
|
|
|
6
6
|
class ParaRequest {
|
|
@@ -44,13 +44,6 @@ class ParaRequest {
|
|
|
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
|
-
}
|
|
54
47
|
}
|
|
55
48
|
|
|
56
49
|
export default ParaRequest;
|
package/packages/zbzd/type.ts
CHANGED
|
@@ -27,11 +27,3 @@ export interface IZbzdMainDetaildbQuerys {
|
|
|
27
27
|
export class TZbzdMainDetaildbQuerys implements IZbzdMainDetaildbQuerys {
|
|
28
28
|
zbzdzdid: number = -1;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
export interface IZbzdMainCopydbQuerys {
|
|
32
|
-
copycount: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export class TZbzdMainCopydbQuerys implements IZbzdMainCopydbQuerys {
|
|
36
|
-
copycount: number = -1;
|
|
37
|
-
}
|