@ningboyz/apis 1.2.82 → 1.2.84
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/package.json +2 -2
- package/packages/antv/index.ts +0 -2
- package/packages/axios.ts +2 -2
- package/packages/bill/cnfg.ts +1 -5
- package/packages/card/hyhb.ts +1 -1
- package/packages/card/index.ts +0 -1
- package/packages/card/main.ts +0 -3
- package/packages/card/tdata.ts +80 -85
- package/packages/card/types.ts +0 -9
- package/packages/card/tzclbgblb.ts +22 -25
- package/packages/card/zccz.ts +1 -1
- package/packages/card/zcdb.ts +1 -1
- package/packages/cnfg/index.ts +0 -1
- package/packages/core/dddw.ts +1 -2
- package/packages/core/index.ts +0 -1
- package/packages/core/types.ts +0 -1
- package/packages/core/user.ts +4 -4
- package/packages/cron/index.ts +0 -1
- package/packages/elem/data.ts +1 -1
- package/packages/elem/index.ts +0 -1
- package/packages/expd/index.ts +0 -1
- package/packages/flow/index.ts +0 -1
- package/packages/flow/void.ts +1 -1
- package/packages/grow/index.ts +0 -1
- package/packages/grow/types.ts +2 -6
- package/packages/gzjg/index.ts +1 -1
- package/packages/gztb/index.ts +0 -1
- package/packages/gztb/types.ts +0 -1
- package/packages/gzzd/index.ts +0 -1
- package/packages/gzzd/main.ts +11 -1
- package/packages/hzcb/index.ts +0 -1
- package/packages/index.ts +0 -1
- package/packages/load/index.ts +0 -1
- package/packages/myoa/index.ts +1 -2
- package/packages/myoa/main.ts +10 -10
- package/packages/myoa/withcard.ts +125 -123
- package/packages/noti/index.ts +0 -1
- package/packages/ocri/index.ts +0 -1
- package/packages/ocri/path.ts +0 -1
- package/packages/ocri/types.ts +5 -5
- package/packages/pzpt/cnfg.ts +11 -2
- package/packages/pzpt/glkm.ts +1 -1
- package/packages/pzpt/pzpz.ts +52 -52
- package/packages/tabl/index.ts +0 -1
- package/packages/tabl/main.ts +5 -9
- package/packages/tabl/types.ts +0 -1
- package/packages/take/index.ts +0 -1
- package/packages/take/main.ts +25 -25
- package/packages/take/types.ts +54 -62
- package/packages/task/main.ts +0 -2
- package/packages/wldy/index.ts +0 -1
- package/packages/wlzf/index.ts +2 -2
- package/packages/wlzf/types.ts +1 -2
- package/packages/wtui/index.ts +0 -1
- package/packages/wtui/menu.ts +1 -1
- package/packages/wtui/node.ts +1 -1
- package/packages/wtui/todo.ts +1 -1
- package/packages/wtui/view.ts +1 -1
- package/packages/wzpz/index.ts +0 -1
- package/packages/wzpz/k0km.ts +36 -4
- package/packages/wzpz/types.ts +3 -4
- package/packages/yzcg/index.ts +0 -1
- package/packages/yzcg/main.ts +0 -2
- package/packages/yzcg/types.ts +1 -1
- package/packages/yzht/bill.ts +0 -1
- package/packages/yzht/glpz.ts +0 -1
- package/packages/yzht/main.ts +0 -1
- package/packages/yzht/types.ts +2 -5
- package/packages/yzpz/index.ts +0 -1
- package/packages/yzpz/item.ts +1 -1
- package/packages/yzpz/k8km.ts +1 -1
- package/packages/yzpz/kbkm.ts +1 -1
- package/packages/zbzd/index.ts +0 -1
- package/packages/zbzd/zbfl.ts +1 -4
|
@@ -2,148 +2,150 @@ import { TCard, TCore, TMyoa } from "@ningboyz/types";
|
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import { IEmptyQuerys, IParams } from "../type";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
IMyoaMainDetail2dbQuerys,
|
|
6
|
+
IMyoaMainInsertdb2Querys,
|
|
7
|
+
IMyoaMainMrokdbQuerys,
|
|
8
|
+
IMyoaMainUpdated4Querys,
|
|
9
|
+
IMyoaWithCardFinishedQuerys,
|
|
10
|
+
IMyoaWithCardTodolistQuerys,
|
|
11
|
+
IMyoaWithCardTodosizeQuerys,
|
|
12
|
+
TMyoaMainChkinsertQuerys,
|
|
13
|
+
TMyoaMainSelectd2Querys
|
|
12
14
|
} from "./types";
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* 公物仓
|
|
16
18
|
* */
|
|
17
19
|
class WithCardRequest {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
private httpRequest: HttpRequest;
|
|
21
|
+
constructor(httpRequest: HttpRequest) {
|
|
22
|
+
this.httpRequest = httpRequest;
|
|
23
|
+
}
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
/**
|
|
26
|
+
* 获取公物仓入仓/领用列表
|
|
27
|
+
* @param querys
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
selectd2(querys: TMyoaMainSelectd2Querys) {
|
|
31
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/selectd2", querys, undefined);
|
|
32
|
+
}
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
/**
|
|
35
|
+
* 新增公物仓入仓/领用
|
|
36
|
+
* @param querys
|
|
37
|
+
* @param params
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
insertdb(querys: IMyoaMainInsertdb2Querys, params: IParams<TMyoa.IMyoaMainResponse>) {
|
|
41
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/insertdb", querys, params);
|
|
42
|
+
}
|
|
41
43
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
/**
|
|
45
|
+
* 修改公物仓入仓/领用
|
|
46
|
+
* @param querys
|
|
47
|
+
* @param params
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
updatedb(querys: IMyoaMainUpdated4Querys, params: IParams<TMyoa.IMyoaMainResponse>) {
|
|
51
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/updatedb", querys, params);
|
|
52
|
+
}
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
/**
|
|
55
|
+
* 获取公物仓入仓/领用详情
|
|
56
|
+
* @param querys
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
detaildb(querys: IMyoaMainDetail2dbQuerys) {
|
|
60
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/detaildb", querys, undefined);
|
|
61
|
+
}
|
|
60
62
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
/**
|
|
64
|
+
* 删除公物仓入仓/领用关联资产卡片
|
|
65
|
+
* @param querys
|
|
66
|
+
* @param params
|
|
67
|
+
* @returns
|
|
68
|
+
*/
|
|
69
|
+
deletedb(querys: IEmptyQuerys, params: IParams<TCard.ICardMainResponse[]>) {
|
|
70
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/deletedb", querys, params);
|
|
71
|
+
}
|
|
70
72
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
/**
|
|
74
|
+
* 获取公物仓入仓/领用己办申请
|
|
75
|
+
* @param querys
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
78
|
+
finished(querys: IMyoaWithCardFinishedQuerys) {
|
|
79
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/finished", querys, undefined);
|
|
80
|
+
}
|
|
79
81
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
/**
|
|
83
|
+
* 获取公物仓入仓/领用待办数量
|
|
84
|
+
* @param querys
|
|
85
|
+
* @returns
|
|
86
|
+
*/
|
|
87
|
+
todosize(querys: IMyoaWithCardTodosizeQuerys) {
|
|
88
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/todosize", querys, undefined);
|
|
89
|
+
}
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
/**
|
|
92
|
+
* 获取公物仓入仓/领用待办列表
|
|
93
|
+
* @param querys
|
|
94
|
+
* @returns
|
|
95
|
+
*/
|
|
96
|
+
todolist(querys: IMyoaWithCardTodolistQuerys) {
|
|
97
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/todolist", querys, undefined);
|
|
98
|
+
}
|
|
97
99
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
/**
|
|
101
|
+
* 公物仓入仓终审
|
|
102
|
+
* @param querys
|
|
103
|
+
* @param params
|
|
104
|
+
* @returns
|
|
105
|
+
*/
|
|
106
|
+
executed(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
|
|
107
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/executed", querys, params);
|
|
108
|
+
}
|
|
107
109
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
/**
|
|
111
|
+
* 公物仓入仓/领用终审判断
|
|
112
|
+
* @param querys
|
|
113
|
+
* @param params
|
|
114
|
+
* @returns
|
|
115
|
+
*/
|
|
116
|
+
chkexist(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
|
|
117
|
+
return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/myoa/tmain/withcard/chkexist", querys, params);
|
|
118
|
+
}
|
|
117
119
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
/**
|
|
121
|
+
* 公物仓入仓撤销终审
|
|
122
|
+
* @param querys
|
|
123
|
+
* @param params
|
|
124
|
+
* @returns
|
|
125
|
+
*/
|
|
126
|
+
canceled(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse>) {
|
|
127
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/canceled", querys, params);
|
|
128
|
+
}
|
|
127
129
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
/**
|
|
131
|
+
* 公物仓领用确认/取消确认
|
|
132
|
+
* @param querys
|
|
133
|
+
* @param params
|
|
134
|
+
* @returns
|
|
135
|
+
*/
|
|
136
|
+
mrokdb(querys: IMyoaMainMrokdbQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
|
|
137
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/mrokdb", querys, params);
|
|
138
|
+
}
|
|
137
139
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
140
|
+
/**
|
|
141
|
+
* 公物仓入仓/领用新增判断
|
|
142
|
+
* @param querys
|
|
143
|
+
* @param params
|
|
144
|
+
* @returns
|
|
145
|
+
*/
|
|
146
|
+
chkinsert(querys: TMyoaMainChkinsertQuerys, params: IParams<TMyoa.IMyoaMainResponse>) {
|
|
147
|
+
return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/myoa/tmain/withcard/chkinsert", querys, params);
|
|
148
|
+
}
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
export default WithCardRequest;
|
package/packages/noti/index.ts
CHANGED
package/packages/ocri/index.ts
CHANGED
package/packages/ocri/path.ts
CHANGED
package/packages/ocri/types.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface IOcriPathPdfmergeQuerys{
|
|
2
|
-
|
|
1
|
+
export interface IOcriPathPdfmergeQuerys {
|
|
2
|
+
url: string;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
export class TOcriPathPdfmergeQuerys implements IOcriPathPdfmergeQuerys{
|
|
6
|
-
|
|
7
|
-
}
|
|
5
|
+
export class TOcriPathPdfmergeQuerys implements IOcriPathPdfmergeQuerys {
|
|
6
|
+
url: string = "";
|
|
7
|
+
}
|
package/packages/pzpt/cnfg.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { TCore, TPzpt } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
ICnfgBaseQuerys,
|
|
5
|
+
IPzptCnfgDetaildbQuerys,
|
|
6
|
+
IPzptCnfgExportDBQuerys,
|
|
7
|
+
IPzptCnfgExportG1Querys,
|
|
8
|
+
IPzptCnfgMoreSaveitdbQuerys,
|
|
9
|
+
IPzptCnfgMoreSelectdbQuerys,
|
|
10
|
+
IPzptCnfgSelectdbQuerys,
|
|
11
|
+
IPzptCnfgUpdatedbQuerys
|
|
12
|
+
} from "./types";
|
|
4
13
|
|
|
5
14
|
class CnfgRequest {
|
|
6
15
|
private httpRequest: HttpRequest;
|
|
@@ -13,7 +22,7 @@ class CnfgRequest {
|
|
|
13
22
|
* @param params
|
|
14
23
|
* @returns
|
|
15
24
|
*/
|
|
16
|
-
insertdb(querys: ICnfgBaseQuerys,params: object) {
|
|
25
|
+
insertdb(querys: ICnfgBaseQuerys, params: object) {
|
|
17
26
|
return this.httpRequest.post<TPzpt.IPzptCnfgResponse[]>("/gapi/pzpt/tcnfg/insertdb", querys, params);
|
|
18
27
|
}
|
|
19
28
|
|
package/packages/pzpt/glkm.ts
CHANGED
package/packages/pzpt/pzpz.ts
CHANGED
|
@@ -3,64 +3,64 @@ import type { HttpRequest } from "../axios";
|
|
|
3
3
|
import { IPzptPzpzInsertdbQuerys, IPzptPzpzSelectdbDetails, IPzptPzpzSelectdbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class PzpzRequest {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
/**
|
|
12
|
+
* 获取凭证配置列表
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
selectdb(querys: IPzptPzpzSelectdbQuerys) {
|
|
17
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/selectdb", querys, undefined);
|
|
18
|
+
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
/**
|
|
21
|
+
* 新增凭证配置
|
|
22
|
+
* @param params
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
insertdb(params: object) {
|
|
26
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/insertdb", undefined, params);
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
/**
|
|
30
|
+
* 修改凭证配置
|
|
31
|
+
* @param params
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
updatedb(params: object) {
|
|
35
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/updatedb", undefined, params);
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
/**
|
|
39
|
+
* 删除凭证配置
|
|
40
|
+
* @param params
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
deletedb(params: object) {
|
|
44
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/deletedb", undefined, params);
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
/**
|
|
48
|
+
* 获取凭证配置详情
|
|
49
|
+
* @param querys
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
detaildb(querys: IPzptPzpzSelectdbDetails) {
|
|
53
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/detaildb", querys, undefined);
|
|
54
|
+
}
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
/**
|
|
57
|
+
* 恢复凭证配置
|
|
58
|
+
* @param querys
|
|
59
|
+
* @returns
|
|
60
|
+
*/
|
|
61
|
+
uploadit(querys: IPzptPzpzInsertdbQuerys, params: object) {
|
|
62
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/uploadit", querys, params);
|
|
63
|
+
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export default PzpzRequest;
|
package/packages/tabl/index.ts
CHANGED
package/packages/tabl/main.ts
CHANGED
|
@@ -135,15 +135,14 @@ class MainRequest {
|
|
|
135
135
|
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get4data", querys, undefined);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
* 预算编辑调用
|
|
138
|
+
/**
|
|
139
|
+
* 预算编辑调用
|
|
140
140
|
* @param params
|
|
141
141
|
* @returns
|
|
142
142
|
*/
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
detaild4(querys: ITablMainDetaild5Querys) {
|
|
144
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild4", querys, undefined);
|
|
145
|
+
}
|
|
147
146
|
|
|
148
147
|
/**
|
|
149
148
|
* 判断存在
|
|
@@ -174,9 +173,6 @@ class MainRequest {
|
|
|
174
173
|
get5formula(querys: ITablMainGet5formulaQuerys, params: object) {
|
|
175
174
|
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get5formula", querys, params);
|
|
176
175
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
176
|
}
|
|
181
177
|
|
|
182
178
|
export default MainRequest;
|
package/packages/tabl/types.ts
CHANGED
package/packages/take/index.ts
CHANGED
package/packages/take/main.ts
CHANGED
|
@@ -3,35 +3,35 @@ import type { TTake } from "@ningboyz/types";
|
|
|
3
3
|
import { ITakeMainDeletedsQuerys, ITakeMainDetaildbQuerys, ITakeMainInsertdsQuerys, ITakeMainSelectdbQuerys, ITakeMainUpdatedsQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class MainRequest {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
// 获取出入库单据列表
|
|
12
|
+
selectdb(querys: ITakeMainSelectdbQuerys) {
|
|
13
|
+
return this.httpRequest.post<TTake.ITakeMainResponse[]>("/gapi/take/tmain/selectdb", querys, undefined);
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
// 新增出入库单据
|
|
17
|
+
insertds(querys: ITakeMainInsertdsQuerys, params: object) {
|
|
18
|
+
return this.httpRequest.post<TTake.ITakeMainResponse>("/gapi/take/tmain/insertds", querys, params);
|
|
19
|
+
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
//修改出入库单据列表
|
|
22
|
+
updateds(querys: ITakeMainUpdatedsQuerys, params: object) {
|
|
23
|
+
return this.httpRequest.post<TTake.ITakeMainResponse>("/gapi/take/tmain/updateds", querys, params);
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
// 删除出入库单据列表
|
|
27
|
+
deleteds(querys: ITakeMainDeletedsQuerys, params: object) {
|
|
28
|
+
return this.httpRequest.post<TTake.ITakeMainResponse>("/gapi/take/tmain/deleteds", querys, params);
|
|
29
|
+
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
// 获取出入库单详情
|
|
32
|
+
detaildb(querys: ITakeMainDetaildbQuerys, params: object) {
|
|
33
|
+
return this.httpRequest.post<TTake.ITakeMainResponse>("/gapi/take/tmain/detaildb", querys, params);
|
|
34
|
+
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export default MainRequest;
|
|
37
|
+
export default MainRequest;
|