@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.
Files changed (65) hide show
  1. package/index.ts +5 -4
  2. package/package.json +1 -1
  3. package/packages/antv/index.ts +2 -1
  4. package/packages/axios.ts +32 -17
  5. package/packages/card/index.ts +1 -1
  6. package/packages/cnfg/index.ts +1 -0
  7. package/packages/cnfg/type.ts +4 -0
  8. package/packages/core/index.ts +1 -1
  9. package/packages/expd/index.ts +1 -1
  10. package/packages/flow/duty.ts +21 -22
  11. package/packages/flow/flow.ts +40 -42
  12. package/packages/flow/index.ts +1 -0
  13. package/packages/flow/main.ts +16 -18
  14. package/packages/flow/node.ts +23 -24
  15. package/packages/flow/type.ts +123 -0
  16. package/packages/gams/cnfg.ts +3 -2
  17. package/packages/gams/index.ts +1 -0
  18. package/packages/gams/type.ts +7 -0
  19. package/packages/grow/grow.ts +1 -1
  20. package/packages/grow/index.ts +1 -0
  21. package/packages/grow/type.ts +8 -0
  22. package/packages/gzjg/gzlm.ts +27 -37
  23. package/packages/gzjg/index.ts +1 -0
  24. package/packages/gzjg/main.ts +29 -21
  25. package/packages/gzjg/type.ts +73 -0
  26. package/packages/gztb/index.ts +1 -0
  27. package/packages/gztb/main.ts +3 -5
  28. package/packages/gztb/type.ts +7 -0
  29. package/packages/index.ts +18 -0
  30. package/packages/load/index.ts +1 -0
  31. package/packages/load/type.ts +9 -0
  32. package/packages/load/yqdw.ts +1 -2
  33. package/packages/load/yqkm.ts +1 -2
  34. package/packages/noti/index.ts +1 -0
  35. package/packages/noti/main.ts +9 -11
  36. package/packages/noti/type.ts +12 -0
  37. package/packages/ocri/path.ts +4 -2
  38. package/packages/ocri/type.ts +7 -0
  39. package/packages/pzpt/cnfg.ts +15 -32
  40. package/packages/pzpt/index.ts +1 -0
  41. package/packages/pzpt/item.ts +13 -33
  42. package/packages/pzpt/k0km.ts +7 -18
  43. package/packages/pzpt/k8km.ts +9 -28
  44. package/packages/pzpt/kbkm.ts +3 -9
  45. package/packages/pzpt/type.ts +22 -38
  46. package/packages/pzpt/types.ts +281 -0
  47. package/packages/pzpt/yqkb.ts +5 -12
  48. package/packages/pzpt/yqkm.ts +11 -25
  49. package/packages/tabl/index.ts +1 -0
  50. package/packages/tabl/main.ts +80 -140
  51. package/packages/tabl/type.ts +148 -0
  52. package/packages/task/index.ts +1 -0
  53. package/packages/task/main.ts +5 -11
  54. package/packages/task/type.ts +18 -0
  55. package/packages/wldy/data.ts +13 -17
  56. package/packages/wldy/index.ts +1 -0
  57. package/packages/wldy/item.ts +13 -18
  58. package/packages/wldy/page.ts +14 -21
  59. package/packages/wldy/type.ts +40 -0
  60. package/packages/wtui/ctrl.ts +1 -1
  61. package/packages/wtui/index.ts +1 -0
  62. package/packages/wtui/node.ts +2 -2
  63. package/packages/wtui/type.ts +3 -1
  64. package/packages/wtui/zone.ts +5 -6
  65. package/packages/gzjg/types.ts +0 -4
@@ -11,3 +11,4 @@ class GamsRequest {
11
11
  }
12
12
 
13
13
  export default GamsRequest;
14
+ export * from "./type";
@@ -0,0 +1,7 @@
1
+ export interface IGamsCnfgSelectdbQuerys{
2
+
3
+ }
4
+
5
+ export class TGamsCnfgSelectdbQuerys implements IGamsCnfgSelectdbQuerys{
6
+
7
+ }
@@ -9,7 +9,7 @@ class GrowRequest {
9
9
  /**
10
10
  * 升级数据库
11
11
  */
12
- selectdb() {
12
+ appenddb() {
13
13
  return this.httpRequest.post<string>("/gapi/grow/tgrow/appenddb");
14
14
  }
15
15
  }
@@ -11,3 +11,4 @@ class GrowsRequest {
11
11
  }
12
12
 
13
13
  export default GrowsRequest;
14
+ export * from "./type";
@@ -0,0 +1,8 @@
1
+ /** grow */
2
+ export interface IGrowGrowAppenddbQuerys{
3
+
4
+ }
5
+
6
+ export class TGrowGrowAppenddbQuerys implements IGrowGrowAppenddbQuerys{
7
+
8
+ }
@@ -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(gzjgmain: number, tablname: string, gzlmflgq: number) {
14
- const params = {
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
- insertdb(data: object, tablname: string, gzlmmain: number) {
23
- const params = {
24
- tablname,
25
- gzlmmain
26
- };
27
- return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>("/gzjg/tgzlm/insertdb", data, params);
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 data
31
+ * 修改工资栏目
32
+ * @param querys
33
+ * @param params
34
+ * @returns
33
35
  */
34
- updatedb(data: object, tablname = "cols") {
35
- const params = {
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(gzjgmain: number, gzlmmain: number, sourcend: number, tablname = "cols") {
45
- const params = {
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(gzjgmain: number, tablname = "cols") {
55
- const params = {
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 formData
53
+ * @param params
64
54
  * @returns
65
55
  */
66
- queuesby(formData: FormData) {
67
- return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>(`/gzjg/tgzlm/queuesby`, formData, undefined);
56
+ queuesby(params: object) {
57
+ return this.httpRequest.post<TGzjg.IGzjgGzlmResponse[]>(`/gzjg/tgzlm/queuesby`, undefined, params);
68
58
  }
69
59
  }
70
60
 
@@ -14,3 +14,4 @@ class GzjgRequest {
14
14
  }
15
15
 
16
16
  export default GzjgRequest;
17
+ export * from "./type";
@@ -1,6 +1,6 @@
1
1
  import type { TGzjg } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IGzlmMainParams } from "./types";
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
- selectdb(params: IGzlmMainParams) {
12
- return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/selectdb", undefined, params);
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
- insert(data: object) {
16
- return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/insertdb", data);
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 data
30
+ * 修改工资主单
31
+ * @param params
22
32
  */
23
- updatedb(data: object) {
24
- return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/updatedb", data);
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 data
38
+ * 删除工资主单
39
+ * @param params
30
40
  */
31
- deletedb(data: object) {
32
- return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>("/gzjg/tmain/deletedb", data);
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(gzjgmain: number) {
39
- const params = {
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 formData
54
+ * @param params
47
55
  * @returns
48
56
  */
49
- queuesby(formData: FormData) {
50
- return this.httpRequest.post<TGzjg.IGzjgMainResponse[]>(`/gzjg/tmain/queuesby`, formData, undefined);
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
+ }
@@ -11,3 +11,4 @@ class GztbRequest {
11
11
  }
12
12
 
13
13
  export default GztbRequest;
14
+ export * from "./type";
@@ -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(taskmain: number) {
11
- const params = {
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,7 @@
1
+ export interface IGztbMainSelectdbQuerys {
2
+ taskmain: number;
3
+ }
4
+
5
+ export class TGztbMainSelectdbQuerys implements IGztbMainSelectdbQuerys {
6
+ taskmain: number = -1;
7
+ }
@@ -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";
@@ -14,3 +14,4 @@ class LoadRequest {
14
14
  }
15
15
 
16
16
  export default LoadRequest;
17
+ export * from "./type"
@@ -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 {}
@@ -8,8 +8,7 @@ class YqdwRequest {
8
8
  }
9
9
 
10
10
  selectdb() {
11
- const params = {};
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
 
@@ -8,8 +8,7 @@ class YqkmRequest {
8
8
  }
9
9
 
10
10
  selectdb() {
11
- const params = {};
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
 
@@ -11,3 +11,4 @@ class NotiRequest {
11
11
  }
12
12
 
13
13
  export default NotiRequest;
14
+ export * from "./type"
@@ -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(data: object) {
21
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/insertdb", data, undefined);
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(data: object) {
28
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/updatedb", data, undefined);
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(data: object) {
35
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/deletedb", data, undefined);
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(notimain: number, data: object) {
42
- const params = {
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
+ }
@@ -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(url: string, formData: FormData) {
11
- return this.httpRequest.post<TCore.IPathResponse[]>(`${url}/japi/ocri/tpath/pdfmerge`, formData);
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";
@@ -0,0 +1,7 @@
1
+ export interface IOcriPathPdfmergeQuerys{
2
+ url: string;
3
+ }
4
+
5
+ export class TOcriPathPdfmergeQuerys implements IOcriPathPdfmergeQuerys{
6
+ url: string = "";
7
+ }
@@ -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 data
13
+ * @param params
13
14
  */
14
- insertdb(data: object) {
15
- return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/insertdb", data, undefined);
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(sourcend: number, data: object) {
23
- const params = {
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 sourcend
32
- * @param unitmain
33
- * @param sourceid
34
- * @param deptmain
29
+ * @param querys
35
30
  */
36
- selectdb(sourcend: number, unitmain?: number, sourceid?: number, deptmain?: number, sourcedw?: string) {
37
- const params = {
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 sourceNd
50
- * @param sourceId
37
+ * @param querys
51
38
  */
52
- detaildb(sourceNd: number, sourceId: number) {
53
- const params = {
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 data
45
+ * @param params
63
46
  */
64
- deletedb(data: object) {
65
- return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/deletedb", data, undefined);
47
+ deletedb(params: object) {
48
+ return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/deletedb", undefined, params);
66
49
  }
67
50
  }
68
51
 
@@ -32,3 +32,4 @@ class PzptRequest {
32
32
  }
33
33
 
34
34
  export default PzptRequest;
35
+ export * from "./types"
@@ -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(sourcend: number, sourceid: number, typemain: number) {
17
- const params = {
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 sourcend
28
- * @param sourceid
29
- * @param typemain
30
- * @param data
22
+ *
23
+ * @param querys 新增项目类型
24
+ * @param params
25
+ * @returns
31
26
  */
32
- insertdb(sourcend: number, sourceid: number, typemain: number, data: object) {
33
- const params = {
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(sourcend: number, sourceid: number, typemain: number, data: object) {
49
- const params = {
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(sourcend: number, sourceid: number, typemain: number, data: object) {
65
- const params = {
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