@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.
- 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 +15 -13
- 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 +114 -7
- 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 +19 -1
- package/packages/task/index.ts +1 -0
- package/packages/wldy/data.ts +3 -5
- package/packages/wldy/index.ts +1 -0
- package/packages/wtui/ctrl.ts +1 -1
- package/packages/wtui/index.ts +1 -0
- package/packages/wtui/item.ts +2 -4
- package/packages/wtui/node.ts +13 -7
- package/packages/wtui/type.ts +10 -1
- package/packages/wtui/view.ts +1 -0
- 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
|
|
17
|
-
import AntvRequest from "./packages/antv
|
|
18
|
-
import NotiRequest from "./packages/noti
|
|
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
package/packages/antv/index.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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) {
|
package/packages/card/index.ts
CHANGED
|
@@ -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";
|
package/packages/cnfg/index.ts
CHANGED
package/packages/core/index.ts
CHANGED
|
@@ -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";
|
package/packages/expd/index.ts
CHANGED
|
@@ -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";
|
package/packages/flow/duty.ts
CHANGED
|
@@ -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(
|
|
31
|
-
|
|
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(
|
|
41
|
-
|
|
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(
|
|
51
|
-
return this.httpRequest.post<TFlow.IFlowDutyResponse[]>("/flow/tduty/deletedb",
|
|
52
|
+
deletedb(params: object) {
|
|
53
|
+
return this.httpRequest.post<TFlow.IFlowDutyResponse[]>("/flow/tduty/deletedb", params);
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
|
package/packages/flow/flow.ts
CHANGED
|
@@ -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
|
|
13
|
-
* @param
|
|
14
|
-
* @
|
|
15
|
-
* @param doinsert
|
|
16
|
-
* @param formData
|
|
13
|
+
* @param querys
|
|
14
|
+
* @param params
|
|
15
|
+
* @returns
|
|
17
16
|
*/
|
|
18
|
-
nextnode(
|
|
19
|
-
|
|
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(
|
|
32
|
-
return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/redonode",
|
|
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(
|
|
39
|
-
return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/cancelnd",
|
|
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(
|
|
46
|
-
return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/undonode",
|
|
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(
|
|
53
|
-
return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tflow/get4next",
|
|
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(
|
|
60
|
-
|
|
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
|
|
69
|
-
* @param
|
|
69
|
+
* @param querys
|
|
70
|
+
* @param params
|
|
70
71
|
* @returns
|
|
71
72
|
*/
|
|
72
|
-
lastuser(
|
|
73
|
-
|
|
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(
|
|
83
|
-
|
|
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(
|
|
95
|
-
return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/formerly",
|
|
92
|
+
formerly(params: object) {
|
|
93
|
+
return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/formerly", undefined, params);
|
|
96
94
|
}
|
|
97
95
|
}
|
|
98
96
|
|
package/packages/flow/index.ts
CHANGED
package/packages/flow/main.ts
CHANGED
|
@@ -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
|
|
13
|
-
* @
|
|
14
|
-
* @param unitmain
|
|
12
|
+
* 审批流程列表
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
15
|
*/
|
|
16
|
-
selectdb(
|
|
17
|
-
|
|
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(
|
|
37
|
-
return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/insertdb",
|
|
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(
|
|
44
|
-
return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/updatedb",
|
|
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(
|
|
51
|
-
return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/deletedb",
|
|
48
|
+
deletedb(params: object) {
|
|
49
|
+
return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/deletedb", undefined, params);
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
52
|
|
package/packages/flow/node.ts
CHANGED
|
@@ -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(
|
|
14
|
-
return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/selectdb",
|
|
16
|
+
selectdb(querys: IFlowNodeSelectdbQuerys) {
|
|
17
|
+
return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/selectdb", querys, undefined);
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
19
|
-
* @param
|
|
20
|
-
* @
|
|
21
|
+
* 获取节点详情
|
|
22
|
+
* @param querys
|
|
23
|
+
* @returns
|
|
21
24
|
*/
|
|
22
|
-
detaildb(
|
|
23
|
-
|
|
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(
|
|
34
|
-
|
|
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(
|
|
44
|
-
|
|
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(
|
|
54
|
-
return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/deletedb",
|
|
52
|
+
deletedb(params: object) {
|
|
53
|
+
return this.httpRequest.post<TFlow.IFlowNodeResponse[]>("/flow/tnode/deletedb", undefined, params);
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
|
package/packages/flow/type.ts
CHANGED
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
}
|
package/packages/gams/cnfg.ts
CHANGED
|
@@ -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(
|
|
11
|
-
return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/selectdb",
|
|
11
|
+
selectdb(querys: IGamsCnfgSelectdbQuerys) {
|
|
12
|
+
return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/selectdb", querys, undefined);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
package/packages/gams/index.ts
CHANGED