@ningboyz/apis 1.1.68 → 1.1.70
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 +3 -0
- package/package.json +2 -2
- package/packages/card/main.ts +2 -2
- package/packages/index.ts +1 -0
- package/packages/yzht/index.ts +14 -0
- package/packages/yzht/main.ts +50 -0
- package/packages/yzht/type.ts +38 -0
package/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ import ZbysRequest from "./packages/zbys";
|
|
|
24
24
|
import ZbzdRequest from "./packages/zbzd";
|
|
25
25
|
import GzzdRequest from "./packages/gzzd";
|
|
26
26
|
import HzcbRequest from "./packages/hzcb";
|
|
27
|
+
import YzhtRequest from "./packages/yzht";
|
|
27
28
|
import { IAxiosConfig } from "./packages/axios";
|
|
28
29
|
|
|
29
30
|
class Request {
|
|
@@ -53,6 +54,7 @@ class Request {
|
|
|
53
54
|
public static zbzd: ZbzdRequest;
|
|
54
55
|
public static gzzd: GzzdRequest;
|
|
55
56
|
public static hzcb: HzcbRequest;
|
|
57
|
+
public static yzht: YzhtRequest;
|
|
56
58
|
public static createRequest(config: IAxiosConfig) {
|
|
57
59
|
this.zbys = new ZbysRequest(config);
|
|
58
60
|
this.core = new CoreRequest(config);
|
|
@@ -80,6 +82,7 @@ class Request {
|
|
|
80
82
|
this.zbzd = new ZbzdRequest(config);
|
|
81
83
|
this.gzzd = new GzzdRequest(config);
|
|
82
84
|
this.hzcb = new HzcbRequest(config);
|
|
85
|
+
this.yzht = new YzhtRequest(config);
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.70",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政请求库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ningboyz/types": "1.1.
|
|
20
|
+
"@ningboyz/types": "1.1.70",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/card/main.ts
CHANGED
|
@@ -130,7 +130,7 @@ class MainRequest {
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* 生成资产卡片-地点部门
|
|
134
134
|
* @param querys
|
|
135
135
|
* @param params
|
|
136
136
|
* @returns
|
|
@@ -140,7 +140,7 @@ class MainRequest {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* 生成资产卡片
|
|
144
144
|
* @param querys
|
|
145
145
|
* @param params
|
|
146
146
|
* @returns
|
package/packages/index.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import MainRequest from "./main";
|
|
3
|
+
|
|
4
|
+
class YzhtRequest {
|
|
5
|
+
public main: MainRequest;
|
|
6
|
+
|
|
7
|
+
constructor(config: IAxiosConfig) {
|
|
8
|
+
const request = createRequest(config);
|
|
9
|
+
this.main = new MainRequest(request);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default YzhtRequest;
|
|
14
|
+
export * from "./type"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { TYzht } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IYzhtMainSelectdbQuerys, IYzhtMainDeletedbQuerys, IYzhtMainDetaildbQuerys } from "./type";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class YzhtRequest {
|
|
7
|
+
private httpRequest: HttpRequest;
|
|
8
|
+
constructor(httpRequest: HttpRequest) {
|
|
9
|
+
this.httpRequest = httpRequest;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 获取合同订立(gapi)
|
|
14
|
+
*/
|
|
15
|
+
selectdb(querys: IYzhtMainSelectdbQuerys, params: object) {
|
|
16
|
+
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tmain/selectdb", querys, params);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 新增合同订立
|
|
21
|
+
*/
|
|
22
|
+
insertdb(params: object) {
|
|
23
|
+
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tmain/insertdb", undefined, params);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 修改合同订立
|
|
28
|
+
*/
|
|
29
|
+
updatedb(params: object) {
|
|
30
|
+
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tmain/updatedb", undefined, params);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 删除合同订立
|
|
36
|
+
*/
|
|
37
|
+
deletedb(querys: IYzhtMainDeletedbQuerys, params: object) {
|
|
38
|
+
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tmain/deletedb", querys, params);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 获取合同订立详情
|
|
43
|
+
*/
|
|
44
|
+
detaildb(querys: IYzhtMainDetaildbQuerys) {
|
|
45
|
+
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tmain/detaildb", querys, undefined);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default YzhtRequest;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** ========== main ========== */
|
|
2
|
+
export interface IYzhtMainSelectdbQuerys {
|
|
3
|
+
userindx: number;
|
|
4
|
+
datahide: number;
|
|
5
|
+
withflow: number;
|
|
6
|
+
directat: number;
|
|
7
|
+
queuesby: number;
|
|
8
|
+
useronly: number;
|
|
9
|
+
sourcend: number;
|
|
10
|
+
lockonly: number;
|
|
11
|
+
lockmyoa: number;
|
|
12
|
+
viewonly: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class TYzhtMainSelectdbQuerys implements IYzhtMainSelectdbQuerys {
|
|
16
|
+
userindx: number = 0
|
|
17
|
+
datahide: number = -1;
|
|
18
|
+
withflow: number = -1;
|
|
19
|
+
directat: number = -1;
|
|
20
|
+
queuesby: number = -1;
|
|
21
|
+
useronly: number = -1;
|
|
22
|
+
sourcend: number = -1;
|
|
23
|
+
lockonly: number = -1;
|
|
24
|
+
lockmyoa: number = -1;
|
|
25
|
+
viewonly: number = -1;
|
|
26
|
+
}
|
|
27
|
+
export interface IYzhtMainDeletedbQuerys {
|
|
28
|
+
datahide: number; //1:表示作废;
|
|
29
|
+
}
|
|
30
|
+
export class TYzhtMainDeletedbQuerys implements IYzhtMainDeletedbQuerys {
|
|
31
|
+
datahide: number = -1;
|
|
32
|
+
}
|
|
33
|
+
export interface IYzhtMainDetaildbQuerys {
|
|
34
|
+
yzhtmain: number;
|
|
35
|
+
}
|
|
36
|
+
export class TYzhtMainDetaildbQuerys implements IYzhtMainDetaildbQuerys {
|
|
37
|
+
yzhtmain: number = -1;
|
|
38
|
+
}
|