@ningboyz/apis 1.0.20 → 1.0.22

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 (60) 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 +15 -13
  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 +114 -7
  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 +19 -1
  51. package/packages/task/index.ts +1 -0
  52. package/packages/wldy/data.ts +3 -5
  53. package/packages/wldy/index.ts +1 -0
  54. package/packages/wtui/ctrl.ts +1 -1
  55. package/packages/wtui/index.ts +1 -0
  56. package/packages/wtui/item.ts +2 -4
  57. package/packages/wtui/node.ts +13 -7
  58. package/packages/wtui/type.ts +10 -1
  59. package/packages/wtui/view.ts +1 -0
  60. package/packages/gzjg/types.ts +0 -4
package/index.ts CHANGED
@@ -13,9 +13,9 @@ import LoadRequest from "./packages/load";
13
13
  import OcriRequest from "./packages/ocri";
14
14
  import GrowRequest from "./packages/grow";
15
15
  import TaskRequest from "./packages/task";
16
- import GztbRequest from "./packages/gztb/index";
17
- import AntvRequest from "./packages/antv/index";
18
- import NotiRequest from "./packages/noti/index";
16
+ import GztbRequest from "./packages/gztb";
17
+ import AntvRequest from "./packages/antv";
18
+ import NotiRequest from "./packages/noti";
19
19
  import { IAxiosConfig } from "./packages/axios";
20
20
  class Request {
21
21
  public static core: CoreRequest;
@@ -59,4 +59,5 @@ class Request {
59
59
  }
60
60
  }
61
61
 
62
- export default Request;
62
+ export default Request;
63
+ export * from "./packages";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "",
@@ -2,7 +2,7 @@ import { createRequest, IAxiosConfig } from "../axios";
2
2
  import MainRequest from "./main";
3
3
  import CnfgRequest from "./cnfg";
4
4
  import ParaRequest from "./para";
5
- export * from "./type";
5
+
6
6
 
7
7
  class AntvRequest {
8
8
  public main: MainRequest;
@@ -18,3 +18,4 @@ class AntvRequest {
18
18
  }
19
19
 
20
20
  export default AntvRequest;
21
+ export * from "./type";
package/packages/axios.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AxiosInstance, AxiosResponse } from "axios";
1
+ import type { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from "axios";
2
2
  import axios from "axios";
3
3
  import _ from "lodash";
4
4
  import { type IResponse, type TStore } from "@ningboyz/types";
@@ -8,6 +8,8 @@ export interface IAxiosConfig {
8
8
  baseURL: string;
9
9
  timeout?: number;
10
10
  getUserInfo?: () => ISessionUserInfo;
11
+ interceptorsRequest?: (request: InternalAxiosRequestConfig<any>) => InternalAxiosRequestConfig<any>;
12
+ interceptorsResponse?: (response: AxiosResponse<any>) => AxiosResponse<any>;
11
13
  }
12
14
 
13
15
  const initUserInfo = {
@@ -23,26 +25,39 @@ class HttpRequest {
23
25
  private readonly METHOD_POST: string = "POST";
24
26
 
25
27
  constructor(config: IAxiosConfig) {
26
- const { baseURL, timeout = 60000, getUserInfo } = config;
28
+ const { baseURL, timeout = 60000, getUserInfo, interceptorsRequest, interceptorsResponse } = config;
27
29
  this.instance = axios.create({
28
30
  baseURL,
29
31
  timeout
30
32
  });
31
-
32
- this.instance.interceptors.request.use((request) => {
33
- const userInfo = !_.isNil(getUserInfo) ? getUserInfo() : new TSessionUserInfo();
34
- /** 添加随机数,防止浏览器接口缓存 */
35
- const time = new Date().getTime() + Math.round(Math.random() * 1000);
36
- request.params = {
37
- whobuild: userInfo.whobuild !== 0 ? userInfo.whobuild : undefined,
38
- userindx: userInfo.userIndx !== 0 ? userInfo.userIndx : undefined,
39
- ...request.params,
40
- r: time
41
- };
42
- request.headers.usrtoken = userInfo.usrtoken;
43
- request.headers.dbconfig = userInfo.dbConfig;
44
- return request;
45
- });
33
+ /**用户传了请求中间件 */
34
+ if (!_.isNil(interceptorsRequest)) {
35
+ this.instance.interceptors.request.use(interceptorsRequest);
36
+ } else {
37
+ this.instance.interceptors.request.use((request) => {
38
+ const userInfo = !_.isNil(getUserInfo) ? getUserInfo() : new TSessionUserInfo();
39
+ /** 添加随机数,防止浏览器接口缓存 */
40
+ const time = new Date().getTime() + Math.round(Math.random() * 1000);
41
+ request.params = {
42
+ whobuild: userInfo.whobuild !== 0 ? userInfo.whobuild : undefined,
43
+ userindx: userInfo.userIndx !== 0 ? userInfo.userIndx : undefined,
44
+ ...request.params,
45
+ r: time
46
+ };
47
+ request.headers.usrtoken = userInfo.usrtoken;
48
+ request.headers.dbconfig = userInfo.dbConfig;
49
+ return request;
50
+ });
51
+ }
52
+
53
+ /**用户传了响应中间件 */
54
+ if (!_.isNil(interceptorsResponse)) {
55
+ this.instance.interceptors.response.use(interceptorsResponse);
56
+ } else {
57
+ this.instance.interceptors.response.use((response) => {
58
+ return response;
59
+ });
60
+ }
46
61
  }
47
62
 
48
63
  getFormData(data: object) {
@@ -10,7 +10,6 @@ import FormRequest from "./form";
10
10
  import ZczjRequest from "./zczj";
11
11
  import P4pzRequest from "./p4pz";
12
12
  import ZczjPropRequest from "./zczjProp";
13
- export * from "./type";
14
13
 
15
14
  class CardRequest {
16
15
  public gblb: GblbRequest;
@@ -42,3 +41,4 @@ class CardRequest {
42
41
  }
43
42
 
44
43
  export default CardRequest;
44
+ export * from "./type";
@@ -11,3 +11,4 @@ class CnfgRequest {
11
11
  }
12
12
 
13
13
  export default CnfgRequest;
14
+ export * from "./type"
@@ -0,0 +1,4 @@
1
+ /** ========== main ========== */
2
+ export interface ICnfgMainSelectdbQuerys {}
3
+
4
+ export class TCnfgMainSelectdbQuerys implements ICnfgMainSelectdbQuerys {}
@@ -13,7 +13,6 @@ import PathRequest from "./path";
13
13
  import SyskjndRequest from "./syskjnd";
14
14
  import LaidRequest from "./laid";
15
15
  import SysTravelRequest from "./systravel";
16
- export * from "./types";
17
16
 
18
17
  class CoreRequest {
19
18
  public type: TypeRequest;
@@ -51,3 +50,4 @@ class CoreRequest {
51
50
  }
52
51
 
53
52
  export default CoreRequest;
53
+ export * from "./types";
@@ -1,6 +1,5 @@
1
1
  import { createRequest, IAxiosConfig } from "../axios";
2
2
  import MainRequest from "./main";
3
- export * from "./type";
4
3
 
5
4
  class ExpdRequest {
6
5
  public main: MainRequest;
@@ -12,3 +11,4 @@ class ExpdRequest {
12
11
  }
13
12
 
14
13
  export default ExpdRequest;
14
+ export * from "./type";
@@ -1,6 +1,6 @@
1
1
  import type { TFlow } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IFlowDutyInsertdbQuerys, IFlowDutySelectdbQuerys } from "./type";
3
+ import { IFlowDutyDetaildbQuerys, IFlowDutyInsertdbQuerys, IFlowDutySelectdbQuerys, IFlowDutyUpdatedbQuerys } from "./type";
4
4
 
5
5
  class DutyRequest {
6
6
  private httpRequest: HttpRequest;
@@ -19,6 +19,9 @@ class DutyRequest {
19
19
 
20
20
  /**
21
21
  * 根据flowmain添加审核要素
22
+ * @param querys
23
+ * @param params
24
+ * @returns
22
25
  */
23
26
  insertdb(querys: IFlowDutyInsertdbQuerys, params: object) {
24
27
  return this.httpRequest.post<TFlow.IFlowDutyResponse[]>(`/flow/tduty/insertdb`, querys, params);
@@ -26,29 +29,28 @@ class DutyRequest {
26
29
 
27
30
  /**
28
31
  * 根据flowmain修改审核要素
32
+ * @param querys
33
+ * @param params
34
+ * @returns
29
35
  */
30
- updatedb(flowmain: number, data: object) {
31
- const params = {
32
- flowmain
33
- };
34
- return this.httpRequest.post<TFlow.IFlowDutyResponse[]>(`/flow/tduty/updatedb`, data, params);
36
+ updatedb(querys: IFlowDutyUpdatedbQuerys, params: object) {
37
+ return this.httpRequest.post<TFlow.IFlowDutyResponse[]>(`/flow/tduty/updatedb`, querys, params);
35
38
  }
36
39
 
37
40
  /**
38
41
  * 根据flowmain查找审核要素详情
39
42
  */
40
- detaildb(flowmain: number) {
41
- const params = {
42
- flowmain
43
- };
44
- return this.httpRequest.post<TFlow.IFlowDutyResponse[]>("/flow/tduty/detaildb", undefined, params);
43
+ detaildb(querys: IFlowDutyDetaildbQuerys) {
44
+ return this.httpRequest.post<TFlow.IFlowDutyResponse[]>("/flow/tduty/detaildb", querys, undefined);
45
45
  }
46
46
 
47
47
  /**
48
48
  * 根据flowmain删除审核要素
49
+ * @param params
50
+ * @returns
49
51
  */
50
- deletedb(formData: FormData) {
51
- return this.httpRequest.post<TFlow.IFlowDutyResponse[]>("/flow/tduty/deletedb", formData);
52
+ deletedb(params: object) {
53
+ return this.httpRequest.post<TFlow.IFlowDutyResponse[]>("/flow/tduty/deletedb", params);
52
54
  }
53
55
  }
54
56
 
@@ -1,5 +1,6 @@
1
1
  import type { TCore, TFlow } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { IFlowFlowLastUserQuerys, IFlowFlowListDeptQuerys, IFlowFlowListUserQuerys, IFlowFlowNextNodeQuerys } from "./type";
3
4
 
4
5
  class FlowRequest {
5
6
  private httpRequest: HttpRequest;
@@ -9,90 +10,87 @@ class FlowRequest {
9
10
 
10
11
  /**
11
12
  * 送审、审核
12
- * @param sysclasc
13
- * @param cnfgmain
14
- * @param diddoubt
15
- * @param doinsert
16
- * @param formData
13
+ * @param querys
14
+ * @param params
15
+ * @returns
17
16
  */
18
- nextnode(sysclasc: number, cnfgmain: number, diddoubt: number, doinsert: number, formData: FormData) {
19
- const params = {
20
- sysclasc,
21
- cnfgmain,
22
- diddoubt,
23
- doinsert
24
- };
25
- return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/nextnode", formData, params);
17
+ nextnode(querys: IFlowFlowNextNodeQuerys, params: object) {
18
+ return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/nextnode", querys, params);
26
19
  }
27
20
 
28
21
  /**
29
22
  * 终审撤消
23
+ * @param params
24
+ * @returns
30
25
  */
31
- redonode(formData: FormData) {
32
- return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/redonode", formData, undefined);
26
+ redonode(params: object) {
27
+ return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/redonode", undefined, params);
33
28
  }
34
29
 
35
30
  /**
36
31
  * 撤消送审、撤销审核
32
+ * @param params
33
+ * @returns
37
34
  */
38
- cancelnd(formData: FormData) {
39
- return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/cancelnd", formData, undefined);
35
+ cancelnd(params: object) {
36
+ return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/cancelnd", undefined, params);
40
37
  }
41
38
 
42
39
  /**
43
40
  * 退回
41
+ * @param params
42
+ * @returns
44
43
  */
45
- undonode(formData: FormData) {
46
- return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/undonode", formData, undefined);
44
+ undonode(params: object) {
45
+ return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/undonode", undefined, params);
47
46
  }
48
47
 
49
48
  /**
50
49
  * 获取下一岗节点
50
+ * @param params
51
+ * @returns
51
52
  */
52
- get4next(formData: FormData) {
53
- return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tflow/get4next", formData, undefined);
53
+ get4next(params: object) {
54
+ return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tflow/get4next", undefined, params);
54
55
  }
55
56
 
56
57
  /**
57
58
  * 获取下一岗节点审核人员
59
+ * @param querys
60
+ * @param params
61
+ * @returns
58
62
  */
59
- listuser(nextNode: number, formData: FormData) {
60
- const params = {
61
- nextnode: nextNode
62
- };
63
- return this.httpRequest.post<TCore.IUserResponse[]>("/flow/tflow/listuser", formData, params);
63
+ listuser(querys: IFlowFlowListUserQuerys, params: object) {
64
+ return this.httpRequest.post<TCore.IUserResponse[]>("/flow/tflow/listuser", querys, params);
64
65
  }
65
66
 
66
67
  /**
67
68
  * 是否最近送审
68
- * @param flowStat
69
- * @param formData
69
+ * @param querys
70
+ * @param params
70
71
  * @returns
71
72
  */
72
- lastuser(flowStat: number, formData: FormData) {
73
- const params = {
74
- flowstat: flowStat
75
- };
76
- return this.httpRequest.post<TCore.ICoreValidResponse[]>("/flow/tflow/lastuser", formData, params);
73
+ lastuser(querys: IFlowFlowLastUserQuerys, params: object) {
74
+ return this.httpRequest.post<TCore.ICoreValidResponse[]>("/flow/tflow/lastuser", querys, params);
77
75
  }
78
76
 
79
77
  /**
80
78
  * 获取下一岗节点审核部门
79
+ * @param querys
80
+ * @param params
81
+ * @returns
81
82
  */
82
- listdept(sysClasc: number, cnfgMain: number, nextNode: number, formData: FormData) {
83
- const params = {
84
- sysclasc: sysClasc,
85
- cnfgmain: cnfgMain,
86
- nextnode: nextNode
87
- };
88
- return this.httpRequest.post<TCore.IDeptResponse[]>("/flow/tflow/listdept", formData, params);
83
+ listdept(querys: IFlowFlowListDeptQuerys, params: object) {
84
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/flow/tflow/listdept", querys, params);
89
85
  }
90
86
 
91
87
  /**
92
88
  * 获取审核历史
89
+ * @param params
90
+ * @returns
93
91
  */
94
- formerly(formData: FormData) {
95
- return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/formerly", formData, undefined);
92
+ formerly(params: object) {
93
+ return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/formerly", undefined, params);
96
94
  }
97
95
  }
98
96
 
@@ -20,3 +20,4 @@ class FlowRequest {
20
20
  }
21
21
 
22
22
  export default FlowRequest;
23
+ export * from "./type";
@@ -1,5 +1,6 @@
1
1
  import type { TFlow } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { IFlowMainSelectdbQuerys } from "./type";
3
4
 
4
5
  class MainRequest {
5
6
  private httpRequest: HttpRequest;
@@ -8,18 +9,12 @@ class MainRequest {
8
9
  }
9
10
 
10
11
  /**
11
- * 审批流程详情
12
- * @param sysclasc
13
- * @param useruuid
14
- * @param unitmain
12
+ * 审批流程列表
13
+ * @param querys
14
+ * @returns
15
15
  */
16
- selectdb(sysclasc: number, useruuid: string, unitmain: number) {
17
- const params = {
18
- sysclasc,
19
- useruuid,
20
- unitmain
21
- };
22
- return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/selectdb", undefined, params);
16
+ selectdb(querys: IFlowMainSelectdbQuerys) {
17
+ return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/selectdb", querys, undefined);
23
18
  }
24
19
 
25
20
  /**
@@ -27,28 +22,31 @@ class MainRequest {
27
22
  * @param params
28
23
  */
29
24
  detaildb(params: object) {
30
- return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/detaildb", params);
25
+ return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/detaildb", undefined, params);
31
26
  }
32
27
 
33
28
  /**
34
29
  * 添加审批流程
30
+ * @param params
35
31
  */
36
- insertdb(formData: FormData) {
37
- return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/insertdb", formData);
32
+ insertdb(params: object) {
33
+ return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/insertdb", undefined, params);
38
34
  }
39
35
 
40
36
  /**
41
37
  * 修改审核流程
38
+ * @param params
42
39
  */
43
- updatedb(formData: FormData) {
44
- return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/updatedb", formData);
40
+ updatedb(params: object) {
41
+ return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/updatedb", undefined, params);
45
42
  }
46
43
 
47
44
  /**
48
45
  * 删除审核流程
46
+ * @param params
49
47
  */
50
- deletedb(formData: FormData) {
51
- return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/deletedb", formData);
48
+ deletedb(params: object) {
49
+ return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/deletedb", undefined, params);
52
50
  }
53
51
  }
54
52
 
@@ -1,5 +1,6 @@
1
1
  import type { TFlow } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { IFlowNodeDetaildbQuerys, IFlowNodeInsertdbQuerys, IFlowNodeSelectdbQuerys, IFlowNodeUpdatedbQuerys } from "./type";
3
4
 
4
5
  class NodeRequest {
5
6
  private httpRequest: HttpRequest;
@@ -9,49 +10,47 @@ class NodeRequest {
9
10
 
10
11
  /**
11
12
  * 根据flowmain查找审核节点
13
+ * @param querys
14
+ * @returns
12
15
  */
13
- selectdb(params: object) {
14
- return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/selectdb", undefined, params);
16
+ selectdb(querys: IFlowNodeSelectdbQuerys) {
17
+ return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/selectdb", querys, undefined);
15
18
  }
16
19
 
17
20
  /**
18
- * 根据wtuiview查看页面定义详情
19
- * @param flowMain
20
- * @param flowNode
21
+ * 获取节点详情
22
+ * @param querys
23
+ * @returns
21
24
  */
22
- detaildb(flowMain: number, flowNode: number) {
23
- const params = {
24
- flowmain: flowMain,
25
- flownode: flowNode
26
- };
27
- return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/detaildb", undefined, params);
25
+ detaildb(querys: IFlowNodeDetaildbQuerys) {
26
+ return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/detaildb", querys, undefined);
28
27
  }
29
28
 
30
29
  /**
31
- * 添加审核节点
30
+ * 添加审核节点
31
+ * @param querys
32
+ * @param params
33
+ * @returns
32
34
  */
33
- insertdb(flowmain: number, data: object) {
34
- const params = {
35
- flowmain
36
- };
37
- return this.httpRequest.post<TFlow.IFlowNodeResponse[]>(`/flow/tnode/insertdb`, data, params);
35
+ insertdb(querys: IFlowNodeInsertdbQuerys, params: object) {
36
+ return this.httpRequest.post<TFlow.IFlowNodeResponse[]>(`/flow/tnode/insertdb`, querys, params);
38
37
  }
39
38
 
40
39
  /**
41
40
  * 根据flowmain修改审核节点
41
+ * @param querys
42
+ * @param params
43
+ * @returns
42
44
  */
43
- updatedb(flowmain: number, data: object) {
44
- const params = {
45
- flowmain
46
- };
47
- return this.httpRequest.post<TFlow.IFlowNodeResponse[]>(`/flow/tnode/updatedb`, data, params);
45
+ updatedb(querys: IFlowNodeUpdatedbQuerys, params: object) {
46
+ return this.httpRequest.post<TFlow.IFlowNodeResponse[]>(`/flow/tnode/updatedb`, querys, params);
48
47
  }
49
48
 
50
49
  /**
51
50
  * 根据flowmain删除审核节点
52
51
  */
53
- deletedb(formData: FormData) {
54
- return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/deletedb", formData);
52
+ deletedb(params: object) {
53
+ return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/deletedb", undefined, params);
55
54
  }
56
55
  }
57
56
 
@@ -1,3 +1,4 @@
1
+ /** ========== duty ========== */
1
2
  export interface IFlowDutySelectdbQuerys {
2
3
  flowmain: number;
3
4
  }
@@ -7,10 +8,116 @@ export class TFlowDutySelectdbQuerys implements IFlowDutySelectdbQuerys {
7
8
  }
8
9
 
9
10
  export interface IFlowDutyInsertdbQuerys {
10
- flowmain: number;
11
- }
12
-
13
- export class TFlowDutyInsertdbQuerys implements IFlowDutyInsertdbQuerys {
14
- flowmain: number = -1;
15
- }
16
-
11
+ flowmain: number;
12
+ }
13
+
14
+ export class TFlowDutyInsertdbQuerys implements IFlowDutyInsertdbQuerys {
15
+ flowmain: number = -1;
16
+ }
17
+
18
+ export interface IFlowDutyUpdatedbQuerys {
19
+ flowmain: number;
20
+ }
21
+
22
+ export class TFlowDutyUpdatedbQuerys implements IFlowDutyUpdatedbQuerys {
23
+ flowmain: number = -1;
24
+ }
25
+
26
+ export interface IFlowDutyDetaildbQuerys {
27
+ flowmain: number;
28
+ }
29
+
30
+ export class TFlowDutyDetaildbQuerys implements IFlowDutyDetaildbQuerys {
31
+ flowmain: number = -1;
32
+ }
33
+
34
+ /** ========== flow ========== */
35
+ export interface IFlowFlowNextNodeQuerys {
36
+ sysclasc: number;
37
+ cnfgmain: number;
38
+ diddoubt: number;
39
+ doinsert: number;
40
+ }
41
+
42
+ export class TFlowFlowNextNodeQuerys implements IFlowFlowNextNodeQuerys {
43
+ sysclasc: number = -1;
44
+ cnfgmain: number = -1;
45
+ diddoubt: number = -1;
46
+ doinsert: number = -1;
47
+ }
48
+
49
+ export interface IFlowFlowListUserQuerys {
50
+ nextnode: number;
51
+ }
52
+
53
+ export class TFlowFlowListUserQuerys implements IFlowFlowListUserQuerys {
54
+ nextnode: number = -1;
55
+ }
56
+
57
+ export interface IFlowFlowLastUserQuerys {
58
+ flowstat: number;
59
+ }
60
+
61
+ export class TFlowFlowLastUserQuerys implements IFlowFlowLastUserQuerys {
62
+ flowstat: number = -1;
63
+ }
64
+
65
+ export interface IFlowFlowListDeptQuerys {
66
+ sysclasc: number;
67
+ cnfgmain: number;
68
+ nextnode: number;
69
+ }
70
+
71
+ export class TFlowFlowListDeptQuerys implements IFlowFlowListDeptQuerys {
72
+ sysclasc: number = -1;
73
+ cnfgmain: number = -1;
74
+ nextnode: number = -1;
75
+ }
76
+
77
+ /** ======== main ======== */
78
+ export interface IFlowMainSelectdbQuerys {
79
+ sysclasc: number;
80
+ unitmain: number;
81
+ useruuid: string;
82
+ }
83
+
84
+ export class TFlowMainSelectdbQuerys implements IFlowMainSelectdbQuerys {
85
+ sysclasc: number = -1;
86
+ unitmain: number = -1;
87
+ useruuid: string = "";
88
+ }
89
+
90
+ /** ========== node ======== */
91
+ export interface IFlowNodeSelectdbQuerys{
92
+ flowmain: number;
93
+ }
94
+
95
+ export class TFlowNodeSelectdbQuerys implements IFlowNodeSelectdbQuerys{
96
+ flowmain: number = -1;
97
+ }
98
+
99
+ export interface IFlowNodeDetaildbQuerys{
100
+ flowmain: number;
101
+ flownode: number;
102
+ }
103
+
104
+ export class TFlowNodeDetaildbQuerys implements IFlowNodeDetaildbQuerys{
105
+ flowmain: number = -1;
106
+ flownode: number = -1;
107
+ }
108
+
109
+ export interface IFlowNodeInsertdbQuerys{
110
+ flowmain: number;
111
+ }
112
+
113
+ export class TFlowNodeInsertdbQuerys implements IFlowNodeInsertdbQuerys{
114
+ flowmain: number = -1;
115
+ }
116
+
117
+ export interface IFlowNodeUpdatedbQuerys{
118
+ flowmain: number;
119
+ }
120
+
121
+ export class TFlowNodeUpdatedbQuerys implements IFlowNodeUpdatedbQuerys{
122
+ flowmain: number = -1;
123
+ }
@@ -1,5 +1,6 @@
1
1
  import type { TGams } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { IGamsCnfgSelectdbQuerys } from "./type";
3
4
 
4
5
  class CnfgRequest {
5
6
  private httpRequest: HttpRequest;
@@ -7,8 +8,8 @@ class CnfgRequest {
7
8
  this.httpRequest = httpRequest;
8
9
  }
9
10
 
10
- selectdb(params: object) {
11
- return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/selectdb", undefined, params);
11
+ selectdb(querys: IGamsCnfgSelectdbQuerys) {
12
+ return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/selectdb", querys, undefined);
12
13
  }
13
14
  }
14
15
 
@@ -11,3 +11,4 @@ class GamsRequest {
11
11
  }
12
12
 
13
13
  export default GamsRequest;
14
+ export * from "./type";