@ningboyz/apis 1.7.6 → 1.7.8
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/core/types.ts +176 -108
- package/packages/core/user.ts +78 -1
- package/packages/vary/main.ts +13 -8
- package/packages/vary/types.ts +20 -0
- package/packages/antv/type.ts~ +0 -57
- package/packages/card/index.ts~ +0 -47
- package/packages/card/tzclbsort.ts~ +0 -36
- package/packages/card/zccz.ts~ +0 -106
- package/packages/expd/type.ts~ +0 -17
- package/packages/noti/type.ts~ +0 -29
- package/packages/wtui/type.ts~ +0 -380
package/packages/vary/main.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { TVary } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
IVaryMainUpdatedbQuerys,
|
|
4
|
+
IVaryMainCanceled4MyoaQuerys,
|
|
5
|
+
IVaryMainCanceled4UserQuerys,
|
|
6
|
+
IVaryMainCanceledQuerys,
|
|
8
7
|
IVaryMainDeletedbQuerys,
|
|
9
|
-
|
|
8
|
+
IVaryMainDetaildbQuerys,
|
|
9
|
+
IVaryMainExecuted4MyoaQuerys,
|
|
10
10
|
IVaryMainExecutedQuerys,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
IVaryMainFinishedQuerys,
|
|
12
|
+
IVaryMainInsertdbQuerys,
|
|
13
|
+
IVaryMainSelectdbQuerys,
|
|
14
|
+
IVaryMainUpdatedbQuerys
|
|
14
15
|
} from "./types";
|
|
15
16
|
|
|
16
17
|
class MainRequest {
|
|
@@ -83,6 +84,10 @@ class MainRequest {
|
|
|
83
84
|
canceled4myoa(querys: IVaryMainCanceled4MyoaQuerys) {
|
|
84
85
|
return this.httpRequest.post<TVary.IVaryMainResponse[]>("/gapi/vary/tmain/withmyoa/canceled", querys, undefined);
|
|
85
86
|
}
|
|
87
|
+
|
|
88
|
+
canceled4user(querys: IVaryMainCanceled4UserQuerys) {
|
|
89
|
+
return this.httpRequest.post<TVary.IVaryMainResponse[]>("/gapi/vary/tmain/withuser/canceled", querys, undefined);
|
|
90
|
+
}
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
export default MainRequest;
|
package/packages/vary/types.ts
CHANGED
|
@@ -69,6 +69,26 @@ export class TVaryMainCanceled4MyoaQuerys implements IVaryMainCanceled4MyoaQuery
|
|
|
69
69
|
menuuuid: string = "";
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
export interface IVaryMainExecuted4UserQuerys {
|
|
73
|
+
entityid: string;
|
|
74
|
+
menuuuid: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export class TVaryMainExecuted4UserQuerys implements IVaryMainExecuted4UserQuerys {
|
|
78
|
+
entityid: string = "";
|
|
79
|
+
menuuuid: string = "";
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface IVaryMainCanceled4UserQuerys {
|
|
83
|
+
entityid: string;
|
|
84
|
+
menuuuid: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class TVaryMainCanceled4UserQuerys implements IVaryMainCanceled4UserQuerys {
|
|
88
|
+
entityid: string = "";
|
|
89
|
+
menuuuid: string = "";
|
|
90
|
+
}
|
|
91
|
+
|
|
72
92
|
export interface IVaryMainInsertdbQuerys {
|
|
73
93
|
sourcend: number;
|
|
74
94
|
}
|
package/packages/antv/type.ts~
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/** cnfg */
|
|
2
|
-
export interface IAntvCnfgSelectdbQuerys {
|
|
3
|
-
antvmain: number;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export class TAntvCnfgSelectdbQuerys implements IAntvCnfgSelectdbQuerys {
|
|
7
|
-
antvmain: number = -1;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface IAntvCnfgDetaildbQuerys {
|
|
11
|
-
antvmain: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class TAntvCnfgDetaildbQuerys implements IAntvCnfgDetaildbQuerys {
|
|
15
|
-
antvmain: number = -1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/** main */
|
|
19
|
-
export interface IAntvMainDetaildbQuerys {
|
|
20
|
-
antvmain: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export class TAntvMainDetaildbQuerys implements IAntvMainDetaildbQuerys {
|
|
24
|
-
antvmain: number = -1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IAntvMainGet5DataQuerys {
|
|
28
|
-
antvname: string;
|
|
29
|
-
cnfgname: string;
|
|
30
|
-
unittypetext: string;
|
|
31
|
-
[key: string]: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export class TAntvMainGet5DataQuerys implements IAntvMainGet5DataQuerys {
|
|
35
|
-
antvname: string = "";
|
|
36
|
-
cnfgname: string = "";
|
|
37
|
-
unittypetext: string = "";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** para */
|
|
41
|
-
export interface IAntvParaSelectdbQuerys {
|
|
42
|
-
antvmain: number;
|
|
43
|
-
antvcnfg: number;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export class TAntvParaSelectdbQuerys implements IAntvParaSelectdbQuerys {
|
|
47
|
-
antvmain: number = -1;
|
|
48
|
-
antvcnfg: number = -1;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface IAntvParaDetaildbQuerys {
|
|
52
|
-
antvmain: number;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export class TAntvParaDetaildbQuerys implements IAntvParaDetaildbQuerys {
|
|
56
|
-
antvmain: number = -1;
|
|
57
|
-
}
|
package/packages/card/index.ts~
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
-
import GblbRequest from "./gblb";
|
|
3
|
-
import MainRequest from "./main";
|
|
4
|
-
import ZcbdRequest from "./zcbd";
|
|
5
|
-
import ZccfRequest from "./zccf";
|
|
6
|
-
import ZcczRequest from "./zccz";
|
|
7
|
-
import ZcdbRequest from "./zcdb";
|
|
8
|
-
import ZclbRequest from "./zclb";
|
|
9
|
-
import FormRequest from "./form";
|
|
10
|
-
import ZczjRequest from "./zczj";
|
|
11
|
-
import P4pzRequest from "./p4pz";
|
|
12
|
-
import ZczjPropRequest from "./zczjProp";
|
|
13
|
-
import TzclbgblbRequest from "./tzclbgblb";
|
|
14
|
-
|
|
15
|
-
class CardRequest {
|
|
16
|
-
public gblb: GblbRequest;
|
|
17
|
-
public main: MainRequest;
|
|
18
|
-
public zcbd: ZcbdRequest;
|
|
19
|
-
public zccf: ZccfRequest;
|
|
20
|
-
public zccz: ZcczRequest;
|
|
21
|
-
public zcdb: ZcdbRequest;
|
|
22
|
-
public zclb: ZclbRequest;
|
|
23
|
-
public form: FormRequest;
|
|
24
|
-
public p4pz: P4pzRequest;
|
|
25
|
-
public zczj: ZczjRequest;
|
|
26
|
-
public zczjProp: ZczjPropRequest;
|
|
27
|
-
public tzclbgblb: TzclbgblbRequest;
|
|
28
|
-
|
|
29
|
-
constructor(config: IAxiosConfig) {
|
|
30
|
-
const request = createRequest(config);
|
|
31
|
-
this.gblb = new GblbRequest(request);
|
|
32
|
-
this.main = new MainRequest(request);
|
|
33
|
-
this.zcbd = new ZcbdRequest(request);
|
|
34
|
-
this.zccf = new ZccfRequest(request);
|
|
35
|
-
this.zccz = new ZcczRequest(request);
|
|
36
|
-
this.zcdb = new ZcdbRequest(request);
|
|
37
|
-
this.zclb = new ZclbRequest(request);
|
|
38
|
-
this.form = new FormRequest(request);
|
|
39
|
-
this.p4pz = new P4pzRequest(request);
|
|
40
|
-
this.zczj = new ZczjRequest(request);
|
|
41
|
-
this.zczjProp = new ZczjPropRequest(request);
|
|
42
|
-
this.tzclbgblb = new TzclbgblbRequest(request);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default CardRequest;
|
|
47
|
-
export * from "./type";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { TCard } from "@ningboyz/types";
|
|
2
|
-
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
4
|
-
ICardZclbsortUploaddbQuerys, ICardZclbsortSelectdbQuerys
|
|
5
|
-
} from "./type";
|
|
6
|
-
import {TParams} from "../core";
|
|
7
|
-
|
|
8
|
-
/** 资产类别关联国标类别香菇按接口 */
|
|
9
|
-
class TzclbsortRequest {
|
|
10
|
-
private httpRequest: HttpRequest;
|
|
11
|
-
|
|
12
|
-
constructor(httpRequest: HttpRequest) {
|
|
13
|
-
this.httpRequest = httpRequest;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 获取资产类别关联国标类别列表
|
|
18
|
-
* @param querys
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
selectdb(querys: ICardZclbsortSelectdbQuerys) {
|
|
22
|
-
return this.httpRequest.post<TCard.TSyszclbgblbResponse[]>("/gapi/card/tzclbsort/selectdb", querys, undefined);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* 导入资产类别关联国标类别
|
|
27
|
-
* @param querys
|
|
28
|
-
* @param params
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
uploaddb(querys: ICardZclbsortUploaddbQuerys, params: TParams<TCard.TSyszclbgblbResponse[]>) {
|
|
32
|
-
return this.httpRequest.post<TCard.TSyszclbgblbResponse[]>("/gapi/card/tzclbsort/uploaddb", querys, params);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default TzclbsortRequest;
|
package/packages/card/zccz.ts~
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { TCard, TCore } from "@ningboyz/types";
|
|
2
|
-
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { ICardZcczChkinsertQuerys, ICardZcczDetaildbQuerys, ICardZcczInsertdbQuerys, ICardZcczSelectdbQuerys, ICardZcczUpdatedbQuerys } from "./type";
|
|
4
|
-
|
|
5
|
-
class ZcczRequest {
|
|
6
|
-
private httpRequest: HttpRequest;
|
|
7
|
-
constructor(httpRequest: HttpRequest) {
|
|
8
|
-
this.httpRequest = httpRequest;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* 获取资产处置
|
|
13
|
-
* @param querys
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
selectdb(querys: ICardZcczSelectdbQuerys) {
|
|
17
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/selectdb", querys, undefined);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* 获取资产处置详情
|
|
22
|
-
* @param querys
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
detaildb(querys: ICardZcczDetaildbQuerys) {
|
|
26
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/detaildb", querys, undefined);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 添加资产处置
|
|
31
|
-
* @param querys
|
|
32
|
-
* @param params
|
|
33
|
-
* @returns
|
|
34
|
-
*/
|
|
35
|
-
insertdb(querys: ICardZcczInsertdbQuerys, params: object) {
|
|
36
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>(`/gapi/card/tzccz/insertdb`, querys, params);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 编辑资产处置
|
|
41
|
-
* @param querys
|
|
42
|
-
* @param params
|
|
43
|
-
* @returns
|
|
44
|
-
*/
|
|
45
|
-
updatedb(querys: ICardZcczUpdatedbQuerys, params: object) {
|
|
46
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/updatedb", querys, params);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 删除资产处置
|
|
51
|
-
* @param params
|
|
52
|
-
*/
|
|
53
|
-
deletedb(params: object) {
|
|
54
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/deletedb", undefined, params);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 获取处置待办
|
|
59
|
-
*/
|
|
60
|
-
todolist() {
|
|
61
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/todolist");
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* 获取处置已办
|
|
66
|
-
*/
|
|
67
|
-
finished() {
|
|
68
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/finished");
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* 资产处置终审
|
|
73
|
-
* @param params
|
|
74
|
-
*/
|
|
75
|
-
executed(params: object) {
|
|
76
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/executed", undefined, params);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* 资产处置撤销终审
|
|
81
|
-
* @param params
|
|
82
|
-
*/
|
|
83
|
-
canceled(params: object) {
|
|
84
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/canceled", undefined, params);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 资产处置撤销终审判断
|
|
89
|
-
* @param params
|
|
90
|
-
*/
|
|
91
|
-
chkexist(params: object) {
|
|
92
|
-
return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/card/tzccz/chkexist", undefined, params);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 新增之前判断当前年度期间是否有修改业务
|
|
97
|
-
* @param querys
|
|
98
|
-
* @param params
|
|
99
|
-
* @returns
|
|
100
|
-
*/
|
|
101
|
-
chkinsert(querys: ICardZcczChkinsertQuerys, params: object) {
|
|
102
|
-
return this.httpRequest.post<TCard.IZcczResponse[]>("/gapi/card/tzccz/chkinsert", querys, params);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export default ZcczRequest;
|
package/packages/expd/type.ts~
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** ========== main ========== */
|
|
2
|
-
export interface IExpdMainDetaildbQuerys {
|
|
3
|
-
expdmain: number;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export class TExpdMainDetaildbQuerys implements IExpdMainDetaildbQuerys {
|
|
7
|
-
expdmain: number = -1;
|
|
8
|
-
}
|
|
9
|
-
/** ========== main ========== */
|
|
10
|
-
export interface IExpdMainSelectdbQuerys {
|
|
11
|
-
todolock: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class TExpdMainSelectdbQuerys implements IExpdMainSelectdbQuerys {
|
|
15
|
-
todolock: number = -1;
|
|
16
|
-
withflow: number = 1;
|
|
17
|
-
}
|
package/packages/noti/type.ts~
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** ========== main ========== */
|
|
2
|
-
export interface INotiMainSelectdbQuerys {}
|
|
3
|
-
|
|
4
|
-
export class TNotiMainSelectdbQuerys implements INotiMainSelectdbQuerys {}
|
|
5
|
-
|
|
6
|
-
export interface INotiMainDetaildbQuerys {
|
|
7
|
-
notimain: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export class TNotiMainDetaildbQuerys implements INotiMainDetaildbQuerys {
|
|
11
|
-
notimain: number = -1;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export interface INotiMainSelectdbQuerys {
|
|
16
|
-
sysclasc: number;
|
|
17
|
-
viewonly: number;
|
|
18
|
-
unitonly: number;
|
|
19
|
-
unitmain: number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export class TNotiMainSelectdbQuerys implements INotiMainSelectdbQuerys {
|
|
23
|
-
sysclasc: number = -1;
|
|
24
|
-
viewonly: number = -1;
|
|
25
|
-
unitonly: number = -1;
|
|
26
|
-
unitmain: number = -1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|