@ningboyz/apis 1.6.155 → 1.6.157
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/card/main.ts +17 -0
- package/packages/card/types.ts +49 -0
- package/packages/core/dict.ts +10 -0
- package/packages/core/type.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.157",
|
|
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.6.
|
|
20
|
+
"@ningboyz/types": "1.6.157",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/card/main.ts
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
ICardMainSelectd2Querys,
|
|
21
21
|
ICardMainSelectd4Querys,
|
|
22
22
|
ICardMainSelectd5Querys,
|
|
23
|
+
ICardMainSelectd6Querys,
|
|
23
24
|
ICardMainUpdated3Querys,
|
|
24
25
|
ICardMainUpdated5Querys,
|
|
25
26
|
ICardMainUpdated6Querys,
|
|
@@ -313,6 +314,22 @@ class MainRequest {
|
|
|
313
314
|
return this.httpRequest.post<TCard.ICardMainResponse[]>("/gapi/card/tmain/selectd5", querys, params);
|
|
314
315
|
}
|
|
315
316
|
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* 用车查询用
|
|
320
|
+
* @param querys
|
|
321
|
+
* @param params
|
|
322
|
+
* @returns
|
|
323
|
+
*/
|
|
324
|
+
selectd6(querys: ICardMainSelectd6Querys, params: object) {
|
|
325
|
+
// 待处理:withflow=1&cansplit=-1&viewonly=-1&canclose=-1
|
|
326
|
+
// 查询:withflow=0&cansplit=-1&viewonly=1&canclose=-1
|
|
327
|
+
// 关联变动卡片:withflow=0&cansplit=-1&viewonly=1&canclose=0
|
|
328
|
+
// 关联拆分卡片:withflow=0&cansplit=1&viewonly=1&canclose=0
|
|
329
|
+
// by xf-dev
|
|
330
|
+
return this.httpRequest.post<TCard.ICardMainResponse[]>("/gapi/card/tmain/selectd6", querys, params);
|
|
331
|
+
}
|
|
332
|
+
|
|
316
333
|
/**
|
|
317
334
|
* 修复资产编码
|
|
318
335
|
* @param querys
|
package/packages/card/types.ts
CHANGED
|
@@ -116,6 +116,55 @@ export class TCardMainSelectd2Querys implements ICardMainSelectd2Querys {
|
|
|
116
116
|
withroom: number = -1;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
/** ========== main ==========*/
|
|
120
|
+
export interface ICardMainSelectd6Querys {
|
|
121
|
+
/** 1为待处理中数据,0为选择卡片(关联区数据以及所有业务中)\*/
|
|
122
|
+
withflow: number;
|
|
123
|
+
cardkjnd: number;
|
|
124
|
+
cardkjqj: number;
|
|
125
|
+
/** 年度 */
|
|
126
|
+
sourcend: number;
|
|
127
|
+
realkjnd: number;
|
|
128
|
+
realkjqj: number;
|
|
129
|
+
unitmain: number;
|
|
130
|
+
/** 是否需要筛选只能拆分的资产卡片 */
|
|
131
|
+
cansplit: number;
|
|
132
|
+
/** 0为根据单位权限 */
|
|
133
|
+
viewonly: number;
|
|
134
|
+
/** 0为去除业务在途卡片 */
|
|
135
|
+
canclose: number;
|
|
136
|
+
/** 只显示当前用户单据 */
|
|
137
|
+
useronly: number;
|
|
138
|
+
/** (可选)-1为获取所有的资产,1为获取数量不为0的资产 */
|
|
139
|
+
normalonly: number;
|
|
140
|
+
realpage: number;
|
|
141
|
+
pagesize: number;
|
|
142
|
+
datatype: number;
|
|
143
|
+
withbook: number;
|
|
144
|
+
withroom: number;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class TCardMainSelectd6Querys implements ICardMainSelectd6Querys {
|
|
148
|
+
withflow: number = -1;
|
|
149
|
+
cardkjnd: number = -1;
|
|
150
|
+
cardkjqj: number = -1;
|
|
151
|
+
sourcend: number = -1;
|
|
152
|
+
realkjnd: number = -1;
|
|
153
|
+
realkjqj: number = -1;
|
|
154
|
+
unitmain: number = -1;
|
|
155
|
+
cansplit: number = -1;
|
|
156
|
+
viewonly: number = -1;
|
|
157
|
+
canclose: number = -1;
|
|
158
|
+
// 默认为1
|
|
159
|
+
normalonly: number = 1;
|
|
160
|
+
useronly: number = -1;
|
|
161
|
+
realpage: number = -1;
|
|
162
|
+
pagesize: number = -1;
|
|
163
|
+
datatype: number = -1;
|
|
164
|
+
withbook: number = -1;
|
|
165
|
+
withroom: number = -1;
|
|
166
|
+
}
|
|
167
|
+
|
|
119
168
|
export interface ICardMainSelectd4Querys {
|
|
120
169
|
cardkjnd: number;
|
|
121
170
|
cardkjqj: number;
|
package/packages/core/dict.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import { ICoreDictDetaildbQuerys, ICoreDictDetaildpQuerys, ICoreDictSelectdbQuerys, ICoreDictUploaddbQuerys } from "./types";
|
|
4
|
+
import {IEmptyQuerys, IParams} from "../type";
|
|
4
5
|
|
|
5
6
|
class DictRequest {
|
|
6
7
|
private httpRequest: HttpRequest;
|
|
@@ -17,6 +18,15 @@ class DictRequest {
|
|
|
17
18
|
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/selectdb", querys, undefined);
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
/**
|
|
22
|
+
* 字典排序
|
|
23
|
+
* @param querys
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
queuesby(querys: IEmptyQuerys, params: IParams<TCore.IDictResponse[]>) {
|
|
27
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/queuesby", querys, params);
|
|
28
|
+
}
|
|
29
|
+
|
|
20
30
|
/**
|
|
21
31
|
* 按字典类型获取
|
|
22
32
|
* @param querys
|
package/packages/core/type.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import { ICoreTypeDetaildbQuerys, ICoreTypeSelectdbQuerys, ICoreTypeUploaditQuerys } from "./types";
|
|
4
|
+
import {IParams} from "../type";
|
|
4
5
|
|
|
5
6
|
class TypeRequest {
|
|
6
7
|
private httpRequest: HttpRequest;
|
|
@@ -17,6 +18,16 @@ class TypeRequest {
|
|
|
17
18
|
return this.httpRequest.post<TCore.ITypeResponse[]>("/core/ttype/selectdb", querys, undefined);
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
/**
|
|
22
|
+
* 字典类型排序
|
|
23
|
+
* @param querys
|
|
24
|
+
* @param params
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
queuesby(querys: ICoreTypeSelectdbQuerys, params: IParams<TCore.ITypeResponse[]> ) {
|
|
28
|
+
return this.httpRequest.post<TCore.ITypeResponse[]>("/core/ttype/queuesby", querys, undefined);
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
/**
|
|
21
32
|
* 获取字典类型列表
|
|
22
33
|
* @returns
|