@ningboyz/apis 1.0.0
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 +35 -0
- package/package.json +24 -0
- package/src/axios.ts +119 -0
- package/src/core/index.ts +46 -0
- package/src/core/tdept.ts +18 -0
- package/src/core/tdict.ts +69 -0
- package/src/core/tpart.ts +58 -0
- package/src/core/tpath.ts +33 -0
- package/src/core/tsysbilltype.ts +26 -0
- package/src/core/tsysclas.ts +20 -0
- package/src/core/tsysenvr.ts +15 -0
- package/src/core/tsyskjnd.ts +18 -0
- package/src/core/tsysmenu.ts +95 -0
- package/src/core/ttype.ts +53 -0
- package/src/core/tunit.ts +57 -0
- package/src/core/tuser.ts +237 -0
- package/src/expd/index.ts +13 -0
- package/src/expd/main.ts +18 -0
- package/src/flow/duty.ts +58 -0
- package/src/flow/index.ts +19 -0
- package/src/flow/tmain.ts +55 -0
- package/src/flow/tnode.ts +53 -0
- package/src/gams/cnfg.ts +15 -0
- package/src/gams/index.ts +13 -0
- package/src/gzjg/index.ts +16 -0
- package/src/gzjg/tgzlm.ts +62 -0
- package/src/gzjg/tmain.ts +46 -0
- package/src/pzpt/cnfg.ts +66 -0
- package/src/pzpt/index.ts +28 -0
- package/src/pzpt/item.ts +74 -0
- package/src/pzpt/k0km.ts +52 -0
- package/src/pzpt/k8km.ts +73 -0
- package/src/pzpt/kbkm.ts +31 -0
- package/src/pzpt/type.ts +66 -0
- package/src/tabl/index.ts +13 -0
- package/src/tabl/tmain.ts +131 -0
- package/src/wldy/index.ts +13 -0
- package/src/wldy/page.ts +58 -0
- package/src/wtui/index.ts +22 -0
- package/src/wtui/main.ts +62 -0
- package/src/wtui/tenvr.ts +15 -0
- package/src/wtui/todo.ts +47 -0
- package/src/wtui/view.ts +59 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRequest } from "../axios";
|
|
2
|
+
import TCnfgRequest from "./cnfg";
|
|
3
|
+
import TK8kmRequest from "./k8km";
|
|
4
|
+
import TTypeRequest from "./type";
|
|
5
|
+
import TItemRequest from "./item";
|
|
6
|
+
import TK0kmRequest from "./k0km";
|
|
7
|
+
import TKbkmRequest from "./kbkm";
|
|
8
|
+
|
|
9
|
+
class PzptRequest {
|
|
10
|
+
public tcnfg: TCnfgRequest;
|
|
11
|
+
public tk8km: TK8kmRequest;
|
|
12
|
+
public ttype: TTypeRequest;
|
|
13
|
+
public titem: TItemRequest;
|
|
14
|
+
public tk0km: TK0kmRequest;
|
|
15
|
+
public tkbkm: TKbkmRequest;
|
|
16
|
+
|
|
17
|
+
constructor(baseURL: string) {
|
|
18
|
+
const request = createRequest(baseURL);
|
|
19
|
+
this.tcnfg = new TCnfgRequest(request);
|
|
20
|
+
this.tk8km = new TK8kmRequest(request);
|
|
21
|
+
this.ttype = new TTypeRequest(request);
|
|
22
|
+
this.titem = new TItemRequest(request);
|
|
23
|
+
this.tk0km = new TK0kmRequest(request);
|
|
24
|
+
this.tkbkm = new TKbkmRequest(request);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default PzptRequest;
|
package/src/pzpt/item.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { TPzpt } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TItemRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 获取项目类型列表
|
|
12
|
+
* @param sourcend
|
|
13
|
+
* @param sourceid
|
|
14
|
+
* @param typemain
|
|
15
|
+
*/
|
|
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);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 新增项目类型
|
|
27
|
+
* @param sourcend
|
|
28
|
+
* @param sourceid
|
|
29
|
+
* @param typemain
|
|
30
|
+
* @param data
|
|
31
|
+
*/
|
|
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);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 修改项目类型
|
|
43
|
+
* @param sourcend
|
|
44
|
+
* @param sourceid
|
|
45
|
+
* @param typemain
|
|
46
|
+
* @param data
|
|
47
|
+
*/
|
|
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);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 删除项目类型
|
|
59
|
+
* @param sourcend
|
|
60
|
+
* @param sourceid
|
|
61
|
+
* @param typemain
|
|
62
|
+
* @param data
|
|
63
|
+
*/
|
|
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);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export default TItemRequest;
|
package/src/pzpt/k0km.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { TPzpt } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TK0kmRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 获取科目分类
|
|
12
|
+
* @param sourcend
|
|
13
|
+
* @param sourceid
|
|
14
|
+
*/
|
|
15
|
+
selectdb(sourcend: number, sourceid: number) {
|
|
16
|
+
const params = {
|
|
17
|
+
sourcend,
|
|
18
|
+
sourceid
|
|
19
|
+
};
|
|
20
|
+
return this.httpRequest.post<TPzpt.IPzptK0kmResponse[]>("/gapi/pzpt/tk0km/selectdb", undefined, params);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 新增科目分类
|
|
25
|
+
* @param sourcend
|
|
26
|
+
* @param sourceid
|
|
27
|
+
* @param data
|
|
28
|
+
*/
|
|
29
|
+
insertdb(sourcend: number, sourceid: number, data: object) {
|
|
30
|
+
const params = {
|
|
31
|
+
sourcend,
|
|
32
|
+
sourceid
|
|
33
|
+
};
|
|
34
|
+
return this.httpRequest.post<TPzpt.IPzptK0kmResponse[]>("/gapi/pzpt/tk0km/insertdb", data, params);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 修改科目分类
|
|
39
|
+
* @param sourcend
|
|
40
|
+
* @param sourceid
|
|
41
|
+
* @param data
|
|
42
|
+
*/
|
|
43
|
+
updatedb(sourcend: number, sourceid: number, data: object) {
|
|
44
|
+
const params = {
|
|
45
|
+
sourcend,
|
|
46
|
+
sourceid
|
|
47
|
+
};
|
|
48
|
+
return this.httpRequest.post<TPzpt.IPzptK0kmResponse[]>("/gapi/pzpt/tk0km/updatedb", data, params);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default TK0kmRequest;
|
package/src/pzpt/k8km.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { TPzpt } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TK8kmRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 获取核算项目
|
|
12
|
+
* @param sourcend
|
|
13
|
+
* @param sourceid
|
|
14
|
+
* @param unitmain
|
|
15
|
+
* @param k0kmkmid
|
|
16
|
+
* @param parentid
|
|
17
|
+
*/
|
|
18
|
+
selectdb(sourcend: number, sourceid: number, unitmain: number, k0kmkmid: number, parentid: number = -1) {
|
|
19
|
+
const params = {
|
|
20
|
+
sourcend,
|
|
21
|
+
sourceid,
|
|
22
|
+
unitmain,
|
|
23
|
+
k0kmkmid,
|
|
24
|
+
parentid
|
|
25
|
+
};
|
|
26
|
+
return this.httpRequest.post<TPzpt.IPzptK8kmResponse[]>("/gapi/pzpt/tk8km/selectdb", undefined, params);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 新增核算项目
|
|
31
|
+
* @param sourcend
|
|
32
|
+
* @param sourceid
|
|
33
|
+
* @param data
|
|
34
|
+
*/
|
|
35
|
+
insertdb(sourcend: number, sourceid: number, data: object) {
|
|
36
|
+
const params = {
|
|
37
|
+
sourcend,
|
|
38
|
+
sourceid
|
|
39
|
+
};
|
|
40
|
+
return this.httpRequest.post<TPzpt.IPzptK8kmResponse[]>("/gapi/pzpt/tk8km/insertdb", data, params);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 修改核算项目
|
|
45
|
+
* @param sourcend
|
|
46
|
+
* @param sourceid
|
|
47
|
+
* @param data
|
|
48
|
+
*/
|
|
49
|
+
updatedb(sourcend: number, sourceid: number, data: object) {
|
|
50
|
+
const params = {
|
|
51
|
+
sourcend,
|
|
52
|
+
sourceid
|
|
53
|
+
};
|
|
54
|
+
return this.httpRequest.post<TPzpt.IPzptK8kmResponse[]>("/gapi/pzpt/tk8km/updatedb", data, params);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 核算项目详情
|
|
59
|
+
* @param sourcend
|
|
60
|
+
* @param sourceid
|
|
61
|
+
* @param k8kmkmid
|
|
62
|
+
*/
|
|
63
|
+
detaildb(sourcend: number, sourceid: number, k8kmkmid: number) {
|
|
64
|
+
const params = {
|
|
65
|
+
sourcend,
|
|
66
|
+
sourceid,
|
|
67
|
+
k8kmkmid
|
|
68
|
+
};
|
|
69
|
+
return this.httpRequest.post<TPzpt.IPzptK8kmResponse[]>("/gapi/pzpt/tk8km/detaildb", undefined, params);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export default TK8kmRequest;
|
package/src/pzpt/kbkm.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { TPzpt } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TKbkmRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 保存期初余额
|
|
12
|
+
* @param sourcend
|
|
13
|
+
* @param sourceid
|
|
14
|
+
* @param sourceqj
|
|
15
|
+
* @param withjzbz
|
|
16
|
+
* @param withjdbz
|
|
17
|
+
* @param data
|
|
18
|
+
*/
|
|
19
|
+
uploaddb(sourcend: number, sourceid: number, sourceqj: number, withjzbz: number, withjdbz: number, data: object) {
|
|
20
|
+
const params = {
|
|
21
|
+
sourcend,
|
|
22
|
+
sourceid,
|
|
23
|
+
sourceqj,
|
|
24
|
+
withjzbz,
|
|
25
|
+
withjdbz
|
|
26
|
+
};
|
|
27
|
+
return this.httpRequest.post<TPzpt.IPzptKbkmResponse[]>("/gapi/pzpt/tkbkm/uploaddb", data, params);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default TKbkmRequest;
|
package/src/pzpt/type.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { TPzpt } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TTypeRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 获取核算类型列表
|
|
12
|
+
* @param sourcend
|
|
13
|
+
* @param sourceid
|
|
14
|
+
*/
|
|
15
|
+
selectdb(sourcend: number, sourceid: number) {
|
|
16
|
+
const params = {
|
|
17
|
+
sourcend,
|
|
18
|
+
sourceid
|
|
19
|
+
};
|
|
20
|
+
return this.httpRequest.post<TPzpt.IPzptTypeResponse[]>("/gapi/pzpt/ttype/selectdb", undefined, params);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 新增核算类型
|
|
25
|
+
* @param sourcend
|
|
26
|
+
* @param sourceid
|
|
27
|
+
* @param data
|
|
28
|
+
*/
|
|
29
|
+
insertdb(sourcend: number, sourceid: number, data: object) {
|
|
30
|
+
const params = {
|
|
31
|
+
sourcend,
|
|
32
|
+
sourceid
|
|
33
|
+
};
|
|
34
|
+
return this.httpRequest.post<TPzpt.IPzptTypeResponse[]>("/gapi/pzpt/ttype/insertdb", data, params);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 新增核算类型
|
|
39
|
+
* @param sourcend
|
|
40
|
+
* @param sourceid
|
|
41
|
+
* @param data
|
|
42
|
+
*/
|
|
43
|
+
updatedb(sourcend: number, sourceid: number, data: object) {
|
|
44
|
+
const params = {
|
|
45
|
+
sourcend,
|
|
46
|
+
sourceid
|
|
47
|
+
};
|
|
48
|
+
return this.httpRequest.post<TPzpt.IPzptTypeResponse[]>("/gapi/pzpt/ttype/updatedb", data, params);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 删除核算类型
|
|
53
|
+
* @param sourcend
|
|
54
|
+
* @param sourceid
|
|
55
|
+
* @param data
|
|
56
|
+
*/
|
|
57
|
+
deletedb(sourcend: number, sourceid: number, data: object) {
|
|
58
|
+
const params = {
|
|
59
|
+
sourcend,
|
|
60
|
+
sourceid
|
|
61
|
+
};
|
|
62
|
+
return this.httpRequest.post<TPzpt.IPzptTypeResponse[]>("/gapi/pzpt/ttype/deletedb", data, params);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default TTypeRequest;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequest } from "../axios";
|
|
2
|
+
import TMainRequest from "./tmain";
|
|
3
|
+
|
|
4
|
+
class TablRequest {
|
|
5
|
+
public tmain: TMainRequest;
|
|
6
|
+
|
|
7
|
+
constructor(baseURL: string) {
|
|
8
|
+
const request = createRequest(baseURL);
|
|
9
|
+
this.tmain = new TMainRequest(request);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default TablRequest;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { TTabl } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TMainRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
selectdb(sourcend: number, sysclasc: number, withflow = 1, usesyzcg = 1, usesform = 1) {
|
|
11
|
+
const params = {
|
|
12
|
+
sourcend,
|
|
13
|
+
sysclasc,
|
|
14
|
+
withflow,
|
|
15
|
+
usesyzcg,
|
|
16
|
+
usesform
|
|
17
|
+
};
|
|
18
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/selectdb", undefined, params);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 新增Tabl
|
|
23
|
+
*/
|
|
24
|
+
insertdb(isauto: number, jsauto: number, data: object) {
|
|
25
|
+
const params = {
|
|
26
|
+
isauto,
|
|
27
|
+
jsauto
|
|
28
|
+
};
|
|
29
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/insertdb", data, params);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 修改Tabl-保留历史记录
|
|
34
|
+
*/
|
|
35
|
+
modifydx(jsauto: number, data: object) {
|
|
36
|
+
const params = {
|
|
37
|
+
jsauto
|
|
38
|
+
};
|
|
39
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifydx", data, params);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 删除Tabl
|
|
44
|
+
*/
|
|
45
|
+
deletedb(data: object) {
|
|
46
|
+
const params = {};
|
|
47
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/deletedb", data, params);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
selectcx(
|
|
51
|
+
gzjgmain: number,
|
|
52
|
+
sourcend: number,
|
|
53
|
+
sourceqj: number = -1,
|
|
54
|
+
unitmain: number = -1,
|
|
55
|
+
withstat: number = -1,
|
|
56
|
+
dataguid: string = "",
|
|
57
|
+
withlock: number = -1,
|
|
58
|
+
gzjglock: number,
|
|
59
|
+
dataFind?: FormData
|
|
60
|
+
) {
|
|
61
|
+
const params = {
|
|
62
|
+
gzjgmain,
|
|
63
|
+
sourcend,
|
|
64
|
+
sourceqj,
|
|
65
|
+
unitmain,
|
|
66
|
+
withstat,
|
|
67
|
+
dataguid,
|
|
68
|
+
withlock,
|
|
69
|
+
gzjglock
|
|
70
|
+
};
|
|
71
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/selectcx", dataFind, params);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
detaildb(tablmain: number) {
|
|
75
|
+
const params = {
|
|
76
|
+
tablmain
|
|
77
|
+
};
|
|
78
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaildb", undefined, params);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
detaild2(gzjgmain: number, dataguid: string) {
|
|
82
|
+
const params = {
|
|
83
|
+
gzjgmain,
|
|
84
|
+
dataguid
|
|
85
|
+
};
|
|
86
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild2", undefined, params);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
detaild3(gzjgmain: number, fromguid: string) {
|
|
90
|
+
const params = {
|
|
91
|
+
gzjgmain,
|
|
92
|
+
fromguid
|
|
93
|
+
};
|
|
94
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild3", undefined, params);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
get4data(sourcend: number, unitmain: number, fromguid: string) {
|
|
98
|
+
const params = {
|
|
99
|
+
sourcend,
|
|
100
|
+
unitmain,
|
|
101
|
+
fromguid
|
|
102
|
+
};
|
|
103
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get4data", undefined, params);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
chkexist(gzjgmain: number, sourcend: number, link: number, dataguid: string, listLink?: FormData) {
|
|
107
|
+
const params = {
|
|
108
|
+
gzjgmain,
|
|
109
|
+
sourcend,
|
|
110
|
+
dataguid,
|
|
111
|
+
link
|
|
112
|
+
};
|
|
113
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/chkexist", listLink, params);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
chkexis2(gzjgmain: number, data: object) {
|
|
117
|
+
const params = {
|
|
118
|
+
gzjgmain
|
|
119
|
+
};
|
|
120
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/chkexis2", data, params);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
get5formula(tabltzbl: number, formData: FormData) {
|
|
124
|
+
const params = {
|
|
125
|
+
tabltzbl
|
|
126
|
+
};
|
|
127
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get5formula", formData, params);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export default TMainRequest;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequest } from "../axios";
|
|
2
|
+
import TPageRequest from "./page";
|
|
3
|
+
|
|
4
|
+
class WldyRequest {
|
|
5
|
+
public tpage: TPageRequest;
|
|
6
|
+
|
|
7
|
+
constructor(baseURL: string) {
|
|
8
|
+
const request = createRequest(baseURL);
|
|
9
|
+
this.tpage = new TPageRequest(request);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default WldyRequest;
|
package/src/wldy/page.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { TWldy } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TPageRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 查询打印模板
|
|
12
|
+
* @param sysclasc
|
|
13
|
+
* @param useruuid
|
|
14
|
+
* @param unitmain
|
|
15
|
+
*/
|
|
16
|
+
selectdb(sysclasc: number, useruuid: string, unitmain: number) {
|
|
17
|
+
const params = {
|
|
18
|
+
sysclasc,
|
|
19
|
+
useruuid,
|
|
20
|
+
unitmain
|
|
21
|
+
};
|
|
22
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectdb", undefined, params);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 添加打印模板数据
|
|
27
|
+
* @param data
|
|
28
|
+
*/
|
|
29
|
+
insertdb(data: object) {
|
|
30
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/insertdb", data);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 删除打印模板数据
|
|
35
|
+
* @param data
|
|
36
|
+
*/
|
|
37
|
+
deletedb(data: object) {
|
|
38
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/deletedb", data);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 修改打印模板数据
|
|
43
|
+
* @param data
|
|
44
|
+
*/
|
|
45
|
+
updatedb(data: object) {
|
|
46
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/updatedb", data);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 查看打印模板详情
|
|
51
|
+
* @param params
|
|
52
|
+
*/
|
|
53
|
+
detaildb(params: object) {
|
|
54
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/detaildb", undefined, params);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export default TPageRequest;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRequest } from "../axios";
|
|
2
|
+
import TMainRequest from "./main";
|
|
3
|
+
import TViewRequest from "./view";
|
|
4
|
+
import TTodoRequest from "./todo";
|
|
5
|
+
import TEnvrRequest from "./tenvr";
|
|
6
|
+
|
|
7
|
+
class WtuiRequest {
|
|
8
|
+
public tmain: TMainRequest;
|
|
9
|
+
public tview: TViewRequest;
|
|
10
|
+
public ttodo: TTodoRequest;
|
|
11
|
+
public tenvr: TEnvrRequest;
|
|
12
|
+
|
|
13
|
+
constructor(baseURL: string) {
|
|
14
|
+
const request = createRequest(baseURL);
|
|
15
|
+
this.tmain = new TMainRequest(request);
|
|
16
|
+
this.tview = new TViewRequest(request);
|
|
17
|
+
this.ttodo = new TTodoRequest(request);
|
|
18
|
+
this.tenvr = new TEnvrRequest(request);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default WtuiRequest;
|
package/src/wtui/main.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { TWtui } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TMainRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
get4view(sysclasc: number, useruuid: string, unitmain: number, usrpartc?: number) {
|
|
11
|
+
const params = {
|
|
12
|
+
sysclasc,
|
|
13
|
+
useruuid,
|
|
14
|
+
unitmain,
|
|
15
|
+
usrpartc
|
|
16
|
+
};
|
|
17
|
+
return this.httpRequest.post<TWtui.IViewCtrlResponse[]>("/wtui/tmain/get4view", undefined, params);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
selectdb(sysclasc: number, useruuid: string, unitmain: number) {
|
|
21
|
+
const params = {
|
|
22
|
+
sysclasc,
|
|
23
|
+
useruuid,
|
|
24
|
+
unitmain
|
|
25
|
+
};
|
|
26
|
+
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/selectdb", undefined, params);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 添加界面定义
|
|
31
|
+
* @param data
|
|
32
|
+
*/
|
|
33
|
+
insertdb(data: object) {
|
|
34
|
+
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/insertdb", data);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 修改界面定义
|
|
39
|
+
* @param data
|
|
40
|
+
*/
|
|
41
|
+
updatedb(data: object) {
|
|
42
|
+
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/updatedb", data);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 查看界面定义详情
|
|
47
|
+
* @param params
|
|
48
|
+
*/
|
|
49
|
+
detaildb(params: object) {
|
|
50
|
+
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/detaildb", undefined, params);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 删除界面定义
|
|
55
|
+
* @param data
|
|
56
|
+
*/
|
|
57
|
+
deletedb(data: object) {
|
|
58
|
+
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/deletedb", data);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export default TMainRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TWtui } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TEnvrRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
startweb() {
|
|
11
|
+
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tenvr/startweb");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default TEnvrRequest;
|
package/src/wtui/todo.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { TWtui } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class TTodoRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
selectdb(params: object) {
|
|
11
|
+
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>("/gapi/wtui/ttodo/selectdb", undefined, params);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 添加待办管理表单数据
|
|
16
|
+
* @param wtuimain
|
|
17
|
+
* @param data
|
|
18
|
+
*/
|
|
19
|
+
insertdb(wtuimain: number, data: object) {
|
|
20
|
+
const params = {
|
|
21
|
+
wtuimain
|
|
22
|
+
};
|
|
23
|
+
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>(`/gapi/wtui/ttodo/insertdb`, data, params);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 删除待办管理表单数据
|
|
28
|
+
* @param formData
|
|
29
|
+
*/
|
|
30
|
+
deletedb(formData: FormData) {
|
|
31
|
+
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>("/gapi/wtui/ttodo/deletedb", formData);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 修改待办管理
|
|
36
|
+
* @param wtuimain
|
|
37
|
+
* @param data
|
|
38
|
+
*/
|
|
39
|
+
updatedb(wtuimain: number, data: object) {
|
|
40
|
+
const params = {
|
|
41
|
+
wtuimain
|
|
42
|
+
};
|
|
43
|
+
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>(`/gapi/wtui/ttodo/updatedb`, data, params);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default TTodoRequest;
|