@ningboyz/apis 1.0.18 → 1.0.21
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/index.ts +5 -4
- package/package.json +1 -1
- package/packages/antv/index.ts +2 -1
- package/packages/axios.ts +32 -17
- package/packages/card/index.ts +1 -1
- package/packages/cnfg/index.ts +1 -0
- package/packages/cnfg/type.ts +4 -0
- package/packages/core/index.ts +1 -1
- package/packages/expd/index.ts +1 -1
- package/packages/flow/duty.ts +21 -22
- package/packages/flow/flow.ts +40 -42
- package/packages/flow/index.ts +1 -0
- package/packages/flow/main.ts +16 -18
- package/packages/flow/node.ts +23 -24
- package/packages/flow/type.ts +123 -0
- package/packages/gams/cnfg.ts +3 -2
- package/packages/gams/index.ts +1 -0
- package/packages/gams/type.ts +7 -0
- package/packages/grow/grow.ts +1 -1
- package/packages/grow/index.ts +1 -0
- package/packages/grow/type.ts +8 -0
- package/packages/gzjg/gzlm.ts +27 -37
- package/packages/gzjg/index.ts +1 -0
- package/packages/gzjg/main.ts +29 -21
- package/packages/gzjg/type.ts +73 -0
- package/packages/gztb/index.ts +1 -0
- package/packages/gztb/main.ts +3 -5
- package/packages/gztb/type.ts +7 -0
- package/packages/index.ts +18 -0
- package/packages/load/index.ts +1 -0
- package/packages/load/type.ts +9 -0
- package/packages/load/yqdw.ts +1 -2
- package/packages/load/yqkm.ts +1 -2
- package/packages/noti/index.ts +1 -0
- package/packages/noti/main.ts +9 -11
- package/packages/noti/type.ts +12 -0
- package/packages/ocri/path.ts +4 -2
- package/packages/ocri/type.ts +7 -0
- package/packages/pzpt/cnfg.ts +15 -32
- package/packages/pzpt/index.ts +1 -0
- package/packages/pzpt/item.ts +13 -33
- package/packages/pzpt/k0km.ts +7 -18
- package/packages/pzpt/k8km.ts +9 -28
- package/packages/pzpt/kbkm.ts +3 -9
- package/packages/pzpt/type.ts +22 -38
- package/packages/pzpt/types.ts +281 -0
- package/packages/pzpt/yqkb.ts +5 -12
- package/packages/pzpt/yqkm.ts +11 -25
- package/packages/tabl/index.ts +1 -0
- package/packages/tabl/main.ts +80 -140
- package/packages/tabl/type.ts +148 -0
- package/packages/task/index.ts +1 -0
- package/packages/task/main.ts +5 -11
- package/packages/task/type.ts +18 -0
- package/packages/wldy/data.ts +13 -17
- package/packages/wldy/index.ts +1 -0
- package/packages/wldy/item.ts +13 -18
- package/packages/wldy/page.ts +14 -21
- package/packages/wldy/type.ts +40 -0
- package/packages/wtui/ctrl.ts +1 -1
- package/packages/wtui/index.ts +1 -0
- package/packages/wtui/node.ts +2 -2
- package/packages/wtui/type.ts +3 -1
- package/packages/wtui/zone.ts +5 -6
- package/packages/gzjg/types.ts +0 -4
package/packages/gams/index.ts
CHANGED
package/packages/grow/grow.ts
CHANGED
package/packages/grow/index.ts
CHANGED
package/packages/gzjg/gzlm.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TGzjg } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IGzjgGzlmDetaildbQuerys, IGzjgGzlmGet4GzlmQuerys, IGzjgGzlmInsertdbQuerys, IGzjgGzlmSelectdbQuerys, IGzjgGzlmUpdatedbQuerys } from "./type";
|
|
3
4
|
|
|
4
5
|
class GzlmRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -9,62 +10,51 @@ class GzlmRequest {
|
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* 获取报表栏目
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
12
15
|
*/
|
|
13
|
-
selectdb(
|
|
14
|
-
|
|
15
|
-
gzjgmain,
|
|
16
|
-
tablname,
|
|
17
|
-
gzlmflgq
|
|
18
|
-
};
|
|
19
|
-
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/selectdb", undefined, params);
|
|
16
|
+
selectdb(querys: IGzjgGzlmSelectdbQuerys) {
|
|
17
|
+
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/selectdb", querys, undefined);
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
/**
|
|
21
|
+
* 新增工资栏目
|
|
22
|
+
* @param querys
|
|
23
|
+
* @param params
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
insertdb(querys: IGzjgGzlmInsertdbQuerys, params: object) {
|
|
27
|
+
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/insertdb", querys, params);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @param
|
|
31
|
+
* 修改工资栏目
|
|
32
|
+
* @param querys
|
|
33
|
+
* @param params
|
|
34
|
+
* @returns
|
|
33
35
|
*/
|
|
34
|
-
updatedb(
|
|
35
|
-
|
|
36
|
-
tablname
|
|
37
|
-
};
|
|
38
|
-
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/updatedb", data, params);
|
|
36
|
+
updatedb(querys: IGzjgGzlmUpdatedbQuerys, params: object) {
|
|
37
|
+
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/updatedb", querys, params);
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
41
|
* 栏目详情
|
|
43
42
|
*/
|
|
44
|
-
detaildb(
|
|
45
|
-
|
|
46
|
-
gzjgmain,
|
|
47
|
-
gzlmmain,
|
|
48
|
-
sourcend,
|
|
49
|
-
tablname
|
|
50
|
-
};
|
|
51
|
-
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/detaildb", undefined, params);
|
|
43
|
+
detaildb(querys: IGzjgGzlmDetaildbQuerys) {
|
|
44
|
+
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/detaildb", querys, undefined);
|
|
52
45
|
}
|
|
53
46
|
|
|
54
|
-
get4gzlm(
|
|
55
|
-
|
|
56
|
-
gzjgmain,
|
|
57
|
-
tablname
|
|
58
|
-
};
|
|
59
|
-
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/selectdb", undefined, params);
|
|
47
|
+
get4gzlm(querys: IGzjgGzlmGet4GzlmQuerys) {
|
|
48
|
+
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/selectdb", querys, undefined);
|
|
60
49
|
}
|
|
50
|
+
|
|
61
51
|
/**
|
|
62
52
|
* 排序
|
|
63
|
-
* @param
|
|
53
|
+
* @param params
|
|
64
54
|
* @returns
|
|
65
55
|
*/
|
|
66
|
-
queuesby(
|
|
67
|
-
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>(`/gzjg/tgzlm/queuesby`,
|
|
56
|
+
queuesby(params: object) {
|
|
57
|
+
return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>(`/gzjg/tgzlm/queuesby`, undefined, params);
|
|
68
58
|
}
|
|
69
59
|
}
|
|
70
60
|
|
package/packages/gzjg/index.ts
CHANGED
package/packages/gzjg/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TGzjg } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
3
|
+
import { IGzjgMainDetaildbQuerys, IGzjgMainSelectdbQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
class MainRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -8,46 +8,54 @@ class MainRequest {
|
|
|
8
8
|
this.httpRequest = httpRequest;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* 获取工资主单
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
selectdb(querys: IGzjgMainSelectdbQuerys) {
|
|
17
|
+
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/selectdb", querys, undefined);
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
/**
|
|
21
|
+
* 新增工资主单
|
|
22
|
+
* @param params
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
insertdb(params: object) {
|
|
26
|
+
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/insertdb", undefined, params);
|
|
17
27
|
}
|
|
18
28
|
|
|
19
29
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @param
|
|
30
|
+
* 修改工资主单
|
|
31
|
+
* @param params
|
|
22
32
|
*/
|
|
23
|
-
updatedb(
|
|
24
|
-
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/updatedb",
|
|
33
|
+
updatedb(params: object) {
|
|
34
|
+
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/updatedb", undefined, params);
|
|
25
35
|
}
|
|
26
36
|
|
|
27
37
|
/**
|
|
28
|
-
*
|
|
29
|
-
* @param
|
|
38
|
+
* 删除工资主单
|
|
39
|
+
* @param params
|
|
30
40
|
*/
|
|
31
|
-
deletedb(
|
|
32
|
-
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/deletedb",
|
|
41
|
+
deletedb(params: object) {
|
|
42
|
+
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/deletedb", undefined, params);
|
|
33
43
|
}
|
|
34
44
|
|
|
35
45
|
/**
|
|
36
46
|
* 工资结构明细
|
|
37
47
|
*/
|
|
38
|
-
detail(
|
|
39
|
-
|
|
40
|
-
gzjgmain
|
|
41
|
-
};
|
|
42
|
-
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/detaildb", undefined, params);
|
|
48
|
+
detail(querys: IGzjgMainDetaildbQuerys) {
|
|
49
|
+
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/detaildb", querys, undefined);
|
|
43
50
|
}
|
|
51
|
+
|
|
44
52
|
/**
|
|
45
53
|
* 排序
|
|
46
|
-
* @param
|
|
54
|
+
* @param params
|
|
47
55
|
* @returns
|
|
48
56
|
*/
|
|
49
|
-
queuesby(
|
|
50
|
-
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>(`/gzjg/tmain/queuesby`,
|
|
57
|
+
queuesby(params: object) {
|
|
58
|
+
return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>(`/gzjg/tmain/queuesby`, undefined, params);
|
|
51
59
|
}
|
|
52
60
|
}
|
|
53
61
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/** ========== gzlm ========== */
|
|
2
|
+
export interface IGzjgGzlmSelectdbQuerys {
|
|
3
|
+
gzjgmain: number;
|
|
4
|
+
gzlmflgq: number;
|
|
5
|
+
tablname: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class TGzjgGzlmSelectdbQuerys implements IGzjgGzlmSelectdbQuerys {
|
|
9
|
+
gzjgmain: number = -1;
|
|
10
|
+
gzlmflgq: number = -1;
|
|
11
|
+
tablname: string = "";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IGzjgGzlmInsertdbQuerys {
|
|
15
|
+
gzlmmain: number;
|
|
16
|
+
tablname: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class TGzjgGzlmInsertdbQuerys implements IGzjgGzlmInsertdbQuerys {
|
|
20
|
+
gzlmmain: number = -1;
|
|
21
|
+
tablname: string = "";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IGzjgGzlmUpdatedbQuerys {
|
|
25
|
+
tablname: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class TGzjgGzlmUpdatedbQuerys implements IGzjgGzlmUpdatedbQuerys {
|
|
29
|
+
tablname: string = "cols";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IGzjgGzlmDetaildbQuerys {
|
|
33
|
+
gzjgmain: number;
|
|
34
|
+
gzlmmain: number;
|
|
35
|
+
sourcend: number;
|
|
36
|
+
tablname: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class TGzjgGzlmDetaildbQuerys implements IGzjgGzlmDetaildbQuerys {
|
|
40
|
+
gzjgmain: number = -1;
|
|
41
|
+
gzlmmain: number = -1;
|
|
42
|
+
sourcend: number = -1;
|
|
43
|
+
tablname: string = "cols";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface IGzjgGzlmGet4GzlmQuerys {
|
|
47
|
+
gzjgmain: number;
|
|
48
|
+
tablname: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class TGzjgGzlmGet4GzlmQuerys implements IGzjgGzlmGet4GzlmQuerys {
|
|
52
|
+
gzjgmain: number = -1;
|
|
53
|
+
tablname: string = "";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** ========== main ========== */
|
|
57
|
+
export interface IGzjgMainSelectdbQuerys {
|
|
58
|
+
asholder: number;
|
|
59
|
+
unittype: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export class IGzjgMainSelectdbQuerys implements IGzjgMainSelectdbQuerys {
|
|
63
|
+
asholder: number = -1;
|
|
64
|
+
unittype: number = -1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface IGzjgMainDetaildbQuerys {
|
|
68
|
+
gzjgmain: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export class TGzjgMainDetaildbQuerys implements IGzjgMainDetaildbQuerys {
|
|
72
|
+
gzjgmain: number = -1;
|
|
73
|
+
}
|
package/packages/gztb/index.ts
CHANGED
package/packages/gztb/main.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TGztb } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IGztbMainSelectdbQuerys } from "./type";
|
|
3
4
|
|
|
4
5
|
class MainRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -7,11 +8,8 @@ class MainRequest {
|
|
|
7
8
|
this.httpRequest = httpRequest;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
selectdb(
|
|
11
|
-
|
|
12
|
-
taskmain
|
|
13
|
-
};
|
|
14
|
-
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/selectdb", undefined, params);
|
|
11
|
+
selectdb(querys: IGztbMainSelectdbQuerys) {
|
|
12
|
+
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/selectdb", querys, undefined);
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./antv";
|
|
2
|
+
export * from "./card";
|
|
3
|
+
export * from "./cnfg";
|
|
4
|
+
export * from "./core";
|
|
5
|
+
export * from "./expd";
|
|
6
|
+
export * from "./flow";
|
|
7
|
+
export * from "./gams";
|
|
8
|
+
export * from "./grow";
|
|
9
|
+
export * from "./gzjg";
|
|
10
|
+
export * from "./gztb";
|
|
11
|
+
export * from "./load";
|
|
12
|
+
export * from "./noti";
|
|
13
|
+
export * from "./ocri";
|
|
14
|
+
export * from "./pzpt";
|
|
15
|
+
export * from "./tabl";
|
|
16
|
+
export * from "./task";
|
|
17
|
+
export * from "./wldy";
|
|
18
|
+
export * from "./wtui";
|
package/packages/load/index.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** ========== yqdw ========== */
|
|
2
|
+
export interface ILoadYqdwSelectdbQuerys {}
|
|
3
|
+
|
|
4
|
+
export class TLoadYqdwSelectdbQuerys implements ILoadYqdwSelectdbQuerys {}
|
|
5
|
+
|
|
6
|
+
/** ========== yqkm ========== */
|
|
7
|
+
export interface ILoadYqkmSelectdbQuerys {}
|
|
8
|
+
|
|
9
|
+
export class TLoadYqkmSelectdbQuerys implements ILoadYqkmSelectdbQuerys {}
|
package/packages/load/yqdw.ts
CHANGED
|
@@ -8,8 +8,7 @@ class YqdwRequest {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
selectdb() {
|
|
11
|
-
|
|
12
|
-
return this.httpRequest.post<Load.IYqdwResponse[]>("/load/tyqdw/selectdb", undefined, params);
|
|
11
|
+
return this.httpRequest.post<Load.IYqdwResponse[]>("/load/tyqdw/selectdb", undefined, undefined);
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
|
package/packages/load/yqkm.ts
CHANGED
|
@@ -8,8 +8,7 @@ class YqkmRequest {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
selectdb() {
|
|
11
|
-
|
|
12
|
-
return this.httpRequest.post<Load.IYqkmResponse[]>("/load/tyqkm/selectdb", undefined, params);
|
|
11
|
+
return this.httpRequest.post<Load.IYqkmResponse[]>("/load/tyqkm/selectdb", undefined, undefined);
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
|
package/packages/noti/index.ts
CHANGED
package/packages/noti/main.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TNoti } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { INotiMainDetaildbQuerys } from "./type";
|
|
3
4
|
|
|
4
5
|
class ParaRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -17,32 +18,29 @@ class ParaRequest {
|
|
|
17
18
|
/**
|
|
18
19
|
* 新增公告列表
|
|
19
20
|
*/
|
|
20
|
-
insertdb(
|
|
21
|
-
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/insertdb",
|
|
21
|
+
insertdb(params: object) {
|
|
22
|
+
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/insertdb", undefined, params);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* 修改公告列表
|
|
26
27
|
*/
|
|
27
|
-
updatedb(
|
|
28
|
-
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/updatedb",
|
|
28
|
+
updatedb(params: object) {
|
|
29
|
+
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/updatedb", undefined, params);
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
33
|
* 删除公告列表
|
|
33
34
|
*/
|
|
34
|
-
deletedb(
|
|
35
|
-
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/deletedb",
|
|
35
|
+
deletedb(params: object) {
|
|
36
|
+
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/deletedb", undefined, params);
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
/**
|
|
39
40
|
* 获取公告详情列表
|
|
40
41
|
*/
|
|
41
|
-
detaildb(
|
|
42
|
-
|
|
43
|
-
notimain
|
|
44
|
-
};
|
|
45
|
-
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/detaildb", data, params);
|
|
42
|
+
detaildb(querys: INotiMainDetaildbQuerys, params: object) {
|
|
43
|
+
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/detaildb", querys, params);
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
package/packages/ocri/path.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IOcriPathPdfmergeQuerys } from "./type";
|
|
3
4
|
|
|
4
5
|
class TPathRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -7,9 +8,10 @@ class TPathRequest {
|
|
|
7
8
|
this.httpRequest = httpRequest;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
pdfmerge(
|
|
11
|
-
return this.httpRequest.post<TCore.IPathResponse[]>(`${url}/japi/ocri/tpath/pdfmerge`,
|
|
11
|
+
pdfmerge(querys: IOcriPathPdfmergeQuerys, params: object) {
|
|
12
|
+
return this.httpRequest.post<TCore.IPathResponse[]>(`${querys.url}/japi/ocri/tpath/pdfmerge`, undefined, params);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export default TPathRequest;
|
|
17
|
+
export * from "./type";
|
package/packages/pzpt/cnfg.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TPzpt } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IPzptCnfgDetaildbQuerys, IPzptCnfgSelectdbQuerys, IPzptCnfgUpdatedbQuerys } from "./types";
|
|
3
4
|
|
|
4
5
|
class CnfgRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -9,60 +10,42 @@ class CnfgRequest {
|
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* 新增账套
|
|
12
|
-
* @param
|
|
13
|
+
* @param params
|
|
13
14
|
*/
|
|
14
|
-
insertdb(
|
|
15
|
-
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/insertdb",
|
|
15
|
+
insertdb(params: object) {
|
|
16
|
+
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/insertdb", undefined, params);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* 更新账套
|
|
20
21
|
* @param data
|
|
21
22
|
*/
|
|
22
|
-
updatedb(
|
|
23
|
-
|
|
24
|
-
sourcend
|
|
25
|
-
};
|
|
26
|
-
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/updatedb", data, params);
|
|
23
|
+
updatedb(querys: IPzptCnfgUpdatedbQuerys, params: object) {
|
|
24
|
+
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/updatedb", querys, params);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
/**
|
|
30
28
|
* 获取账套列表
|
|
31
|
-
* @param
|
|
32
|
-
* @param unitmain
|
|
33
|
-
* @param sourceid
|
|
34
|
-
* @param deptmain
|
|
29
|
+
* @param querys
|
|
35
30
|
*/
|
|
36
|
-
selectdb(
|
|
37
|
-
|
|
38
|
-
sourcend,
|
|
39
|
-
unitmain,
|
|
40
|
-
sourceid,
|
|
41
|
-
deptmain,
|
|
42
|
-
sourcedw
|
|
43
|
-
};
|
|
44
|
-
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/selectdb", undefined, params);
|
|
31
|
+
selectdb(querys: IPzptCnfgSelectdbQuerys) {
|
|
32
|
+
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/selectdb", querys, undefined);
|
|
45
33
|
}
|
|
46
34
|
|
|
47
35
|
/**
|
|
48
36
|
* 账套详情
|
|
49
|
-
* @param
|
|
50
|
-
* @param sourceId
|
|
37
|
+
* @param querys
|
|
51
38
|
*/
|
|
52
|
-
detaildb(
|
|
53
|
-
|
|
54
|
-
sourcend: sourceNd,
|
|
55
|
-
sourceid: sourceId
|
|
56
|
-
};
|
|
57
|
-
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/detaildb", undefined, params);
|
|
39
|
+
detaildb(querys: IPzptCnfgDetaildbQuerys) {
|
|
40
|
+
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/detaildb", querys, undefined);
|
|
58
41
|
}
|
|
59
42
|
|
|
60
43
|
/**
|
|
61
44
|
* 删除核算账套
|
|
62
|
-
* @param
|
|
45
|
+
* @param params
|
|
63
46
|
*/
|
|
64
|
-
deletedb(
|
|
65
|
-
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/deletedb",
|
|
47
|
+
deletedb(params: object) {
|
|
48
|
+
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/deletedb", undefined, params);
|
|
66
49
|
}
|
|
67
50
|
}
|
|
68
51
|
|
package/packages/pzpt/index.ts
CHANGED
package/packages/pzpt/item.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TPzpt } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IPzptItemDeletedbQuerys, IPzptItemInsertdbQuerys, IPzptItemSelectdbQuerys, IPzptItemUpdatedbQuerys } from "./types";
|
|
3
4
|
|
|
4
5
|
class ItemRequest {
|
|
5
6
|
private httpRequest: HttpRequest;
|
|
@@ -13,29 +14,18 @@ class ItemRequest {
|
|
|
13
14
|
* @param sourceid
|
|
14
15
|
* @param typemain
|
|
15
16
|
*/
|
|
16
|
-
selectdb(
|
|
17
|
-
|
|
18
|
-
sourcend,
|
|
19
|
-
sourceid,
|
|
20
|
-
typemain
|
|
21
|
-
};
|
|
22
|
-
return this.httpRequest.post<TPzpt.IPzptItemResponse[]>("/gapi/pzpt/titem/selectdb", undefined, params);
|
|
17
|
+
selectdb(querys: IPzptItemSelectdbQuerys) {
|
|
18
|
+
return this.httpRequest.post<TPzpt.IPzptItemResponse[]>("/gapi/pzpt/titem/selectdb", querys, undefined);
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @
|
|
30
|
-
* @param data
|
|
22
|
+
*
|
|
23
|
+
* @param querys 新增项目类型
|
|
24
|
+
* @param params
|
|
25
|
+
* @returns
|
|
31
26
|
*/
|
|
32
|
-
insertdb(
|
|
33
|
-
|
|
34
|
-
sourcend,
|
|
35
|
-
sourceid,
|
|
36
|
-
typemain
|
|
37
|
-
};
|
|
38
|
-
return this.httpRequest.post<TPzpt.IPzptItemResponse[]>("/gapi/pzpt/titem/insertdb", data, params);
|
|
27
|
+
insertdb(querys: IPzptItemInsertdbQuerys, params: object) {
|
|
28
|
+
return this.httpRequest.post<TPzpt.IPzptItemResponse[]>("/gapi/pzpt/titem/insertdb", querys, params);
|
|
39
29
|
}
|
|
40
30
|
|
|
41
31
|
/**
|
|
@@ -45,13 +35,8 @@ class ItemRequest {
|
|
|
45
35
|
* @param typemain
|
|
46
36
|
* @param data
|
|
47
37
|
*/
|
|
48
|
-
updatedb(
|
|
49
|
-
|
|
50
|
-
sourcend,
|
|
51
|
-
sourceid,
|
|
52
|
-
typemain
|
|
53
|
-
};
|
|
54
|
-
return this.httpRequest.post<TPzpt.IPzptItemResponse[]>("/gapi/pzpt/titem/updatedb", data, params);
|
|
38
|
+
updatedb(querys: IPzptItemUpdatedbQuerys, params: object) {
|
|
39
|
+
return this.httpRequest.post<TPzpt.IPzptItemResponse[]>("/gapi/pzpt/titem/updatedb", querys, params);
|
|
55
40
|
}
|
|
56
41
|
|
|
57
42
|
/**
|
|
@@ -61,13 +46,8 @@ class ItemRequest {
|
|
|
61
46
|
* @param typemain
|
|
62
47
|
* @param data
|
|
63
48
|
*/
|
|
64
|
-
deletedb(
|
|
65
|
-
|
|
66
|
-
sourcend,
|
|
67
|
-
sourceid,
|
|
68
|
-
typemain
|
|
69
|
-
};
|
|
70
|
-
return this.httpRequest.post<TPzpt.IPzptItemResponse[]>("/gapi/pzpt/titem/deletedb", data, params);
|
|
49
|
+
deletedb(querys: IPzptItemDeletedbQuerys, params: object) {
|
|
50
|
+
return this.httpRequest.post<TPzpt.IPzptItemResponse[]>("/gapi/pzpt/titem/deletedb", querys, params);
|
|
71
51
|
}
|
|
72
52
|
}
|
|
73
53
|
|