@ningboyz/apis 1.0.188 → 1.0.190
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/core/index.ts +4 -1
- package/packages/core/local.ts +29 -0
- package/packages/core/types.ts +22 -36
- package/packages/myoa/main.ts +18 -1
- package/packages/myoa/type.ts +22 -0
- package/packages/myoa/type.ts~ +0 -126
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.190",
|
|
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.0.
|
|
20
|
+
"@ningboyz/types": "1.0.190",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/core/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ import PathRequest from "./path";
|
|
|
13
13
|
import SyskjndRequest from "./syskjnd";
|
|
14
14
|
import LaidRequest from "./laid";
|
|
15
15
|
import SysTravelRequest from "./systravel";
|
|
16
|
+
import LocalRequest from "./local";
|
|
16
17
|
|
|
17
18
|
class CoreRequest {
|
|
18
19
|
public type: TypeRequest;
|
|
@@ -29,6 +30,7 @@ class CoreRequest {
|
|
|
29
30
|
public syskjnd: SyskjndRequest;
|
|
30
31
|
public laid: LaidRequest;
|
|
31
32
|
public systravel: SysTravelRequest;
|
|
33
|
+
public local: LocalRequest;
|
|
32
34
|
|
|
33
35
|
constructor(config: IAxiosConfig) {
|
|
34
36
|
const request = createRequest(config);
|
|
@@ -46,8 +48,9 @@ class CoreRequest {
|
|
|
46
48
|
this.syskjnd = new SyskjndRequest(request);
|
|
47
49
|
this.laid = new LaidRequest(request);
|
|
48
50
|
this.systravel = new SysTravelRequest(request);
|
|
51
|
+
this.local = new LocalRequest();
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
export default CoreRequest;
|
|
53
|
-
export * from "./types";
|
|
56
|
+
export * from "./types";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
|
|
3
|
+
interface IResponseSign {
|
|
4
|
+
errorCode: number;
|
|
5
|
+
errorMsg: string;
|
|
6
|
+
funcName: string;
|
|
7
|
+
result: string;
|
|
8
|
+
serverName: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class localRequest {
|
|
12
|
+
/**
|
|
13
|
+
* 调用签章功能接口
|
|
14
|
+
*/
|
|
15
|
+
TGCtrlApi(data: string): Promise<IResponseSign> {
|
|
16
|
+
return new Promise((resolve, reject) => {
|
|
17
|
+
axios
|
|
18
|
+
.post(`https://localhost:7688/TGCtrlApi`, data)
|
|
19
|
+
.then((res) => {
|
|
20
|
+
resolve(res.data);
|
|
21
|
+
})
|
|
22
|
+
.catch((err) => {
|
|
23
|
+
reject(err);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default localRequest;
|
package/packages/core/types.ts
CHANGED
|
@@ -241,14 +241,14 @@ export class TCoreSysclasSelectdbQuerys implements ICoreSysclasSelectdbQuerys {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/** ========== sysenvr ========== */
|
|
244
|
-
export interface ICoreSysenvrSelectdbQuerys {
|
|
244
|
+
export interface ICoreSysenvrSelectdbQuerys {}
|
|
245
245
|
|
|
246
|
-
export class TCoreSysenvrSelectdbQuerys implements ICoreSysenvrSelectdbQuerys {
|
|
246
|
+
export class TCoreSysenvrSelectdbQuerys implements ICoreSysenvrSelectdbQuerys {}
|
|
247
247
|
|
|
248
248
|
/** ========== syskjnd ========== */
|
|
249
|
-
export interface ICoreSyskjndSelectdbQuerys {
|
|
249
|
+
export interface ICoreSyskjndSelectdbQuerys {}
|
|
250
250
|
|
|
251
|
-
export class TCoreSyskjndSelectdbQuerys implements ICoreSyskjndSelectdbQuerys {
|
|
251
|
+
export class TCoreSyskjndSelectdbQuerys implements ICoreSyskjndSelectdbQuerys {}
|
|
252
252
|
|
|
253
253
|
/** ========== sysmenu ========== */
|
|
254
254
|
export interface ICoreSysmenuWithExpdSelectdbQuerys {
|
|
@@ -263,9 +263,9 @@ export class TCoreSysmenuWithExpdSelectdbQuerys implements ICoreSysmenuWithExpdS
|
|
|
263
263
|
useruuid: string = "";
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
export interface ICoreSysmenuWithExpdDetaildbQuerys {
|
|
266
|
+
export interface ICoreSysmenuWithExpdDetaildbQuerys {}
|
|
267
267
|
|
|
268
|
-
export class TCoreSysmenuWithExpdDetaildbQuerys implements ICoreSysmenuWithExpdDetaildbQuerys {
|
|
268
|
+
export class TCoreSysmenuWithExpdDetaildbQuerys implements ICoreSysmenuWithExpdDetaildbQuerys {}
|
|
269
269
|
|
|
270
270
|
export interface ICoreSysmenuWithCoreDetaildbQuerys {
|
|
271
271
|
entityid: string;
|
|
@@ -315,11 +315,8 @@ export class TCoreTypeDetaildbQuerys implements ICoreTypeDetaildbQuerys {
|
|
|
315
315
|
|
|
316
316
|
/** ========== unit ========== */
|
|
317
317
|
|
|
318
|
-
export interface ICoreUnitGet4UnitQuerys {
|
|
319
|
-
}
|
|
320
|
-
export class TCoreUnitGet4UnitQuerys implements ICoreUnitGet4UnitQuerys {
|
|
321
|
-
}
|
|
322
|
-
|
|
318
|
+
export interface ICoreUnitGet4UnitQuerys {}
|
|
319
|
+
export class TCoreUnitGet4UnitQuerys implements ICoreUnitGet4UnitQuerys {}
|
|
323
320
|
|
|
324
321
|
export interface ICoreUnitDetaildbQuerys {
|
|
325
322
|
unitmain: number;
|
|
@@ -329,8 +326,8 @@ export class TCoreUnitDetaildbQuerys implements ICoreUnitDetaildbQuerys {
|
|
|
329
326
|
}
|
|
330
327
|
|
|
331
328
|
/** ========== user ========== */
|
|
332
|
-
export interface ICoreUserDetaildbQuerys {
|
|
333
|
-
export class TCoreUserDetaildbQuerys implements ICoreUserDetaildbQuerys {
|
|
329
|
+
export interface ICoreUserDetaildbQuerys {}
|
|
330
|
+
export class TCoreUserDetaildbQuerys implements ICoreUserDetaildbQuerys {}
|
|
334
331
|
|
|
335
332
|
export interface ICoreUserSelectdbCamelcaseQuerys {
|
|
336
333
|
unitmain: number;
|
|
@@ -369,35 +366,25 @@ export class TCoreUserGet4WlzfQuerys implements ICoreUserGet4WlzfQuerys {
|
|
|
369
366
|
unitmain: number = -1;
|
|
370
367
|
sourcedw: string = "";
|
|
371
368
|
}
|
|
372
|
-
export interface ICoreSet4userQuerys {
|
|
373
|
-
}
|
|
369
|
+
export interface ICoreSet4userQuerys {}
|
|
374
370
|
|
|
375
|
-
export class TCoreSet4userQuerys implements ICoreSet4userQuerys {
|
|
376
|
-
}
|
|
371
|
+
export class TCoreSet4userQuerys implements ICoreSet4userQuerys {}
|
|
377
372
|
|
|
378
|
-
export interface ICoreSet4laidQuerys {
|
|
379
|
-
}
|
|
373
|
+
export interface ICoreSet4laidQuerys {}
|
|
380
374
|
|
|
381
|
-
export class TCoreSet4laidQuerys implements ICoreSet4laidQuerys {
|
|
382
|
-
}
|
|
375
|
+
export class TCoreSet4laidQuerys implements ICoreSet4laidQuerys {}
|
|
383
376
|
|
|
384
|
-
export interface ICoreDel4laidQuerys {
|
|
385
|
-
}
|
|
377
|
+
export interface ICoreDel4laidQuerys {}
|
|
386
378
|
|
|
387
|
-
export class TCoreDel4laidQuerys implements ICoreDel4laidQuerys {
|
|
388
|
-
}
|
|
379
|
+
export class TCoreDel4laidQuerys implements ICoreDel4laidQuerys {}
|
|
389
380
|
|
|
390
|
-
export interface ICoreDel4deptQuerys {
|
|
391
|
-
}
|
|
381
|
+
export interface ICoreDel4deptQuerys {}
|
|
392
382
|
|
|
393
|
-
export class TCoreDel4deptQuerys implements ICoreDel4deptQuerys {
|
|
394
|
-
}
|
|
383
|
+
export class TCoreDel4deptQuerys implements ICoreDel4deptQuerys {}
|
|
395
384
|
|
|
396
|
-
export interface ICoreDel4userQuerys {
|
|
397
|
-
}
|
|
385
|
+
export interface ICoreDel4userQuerys {}
|
|
398
386
|
|
|
399
|
-
export class TCoreDel4userQuerys implements ICoreDel4userQuerys {
|
|
400
|
-
}
|
|
387
|
+
export class TCoreDel4userQuerys implements ICoreDel4userQuerys {}
|
|
401
388
|
|
|
402
389
|
export interface ICoreUserGet4DeptQuerys {
|
|
403
390
|
unitmain: number;
|
|
@@ -417,9 +404,9 @@ export class TCoreUserGet4LaidQuerys implements ICoreUserGet4LaidQuerys {
|
|
|
417
404
|
unitmain: number = -1;
|
|
418
405
|
}
|
|
419
406
|
|
|
420
|
-
export interface ICoreUserVerifydbCamelcaseQuery {
|
|
407
|
+
export interface ICoreUserVerifydbCamelcaseQuery {}
|
|
421
408
|
|
|
422
|
-
export class TCoreUserVerifydbCamelcaseQuery implements ICoreUserVerifydbCamelcaseQuery {
|
|
409
|
+
export class TCoreUserVerifydbCamelcaseQuery implements ICoreUserVerifydbCamelcaseQuery {}
|
|
423
410
|
|
|
424
411
|
export interface ICoreUserSendMessageQuerys {
|
|
425
412
|
whobuild: number;
|
|
@@ -546,4 +533,3 @@ export class TCoreUserUploadd3Querys implements ICoreUserUploadd3Querys {
|
|
|
546
533
|
usrpartn: string = "";
|
|
547
534
|
override: number = 0;
|
|
548
535
|
}
|
|
549
|
-
|
package/packages/myoa/main.ts
CHANGED
|
@@ -4,7 +4,11 @@ import {
|
|
|
4
4
|
TMyoaMainDetaildbQuerys,
|
|
5
5
|
IMyoaMainSelectdbQuerys,
|
|
6
6
|
IMyoaMainInsertdb2Querys,
|
|
7
|
-
IMyoaMainUpdated4Querys,
|
|
7
|
+
IMyoaMainUpdated4Querys,
|
|
8
|
+
TMyoaMainMrokdbQuerys,
|
|
9
|
+
IMyoaMainDetail2dbQuerys,
|
|
10
|
+
IMyoaMainSet4pathQuerys,
|
|
11
|
+
IMyoaMainUsesdzqzUpdatedbQuerys
|
|
8
12
|
} from "./type";
|
|
9
13
|
import { IEmptyQuerys, IParams } from "../type";
|
|
10
14
|
|
|
@@ -106,6 +110,19 @@ class ParaRequest {
|
|
|
106
110
|
return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/myoa/tmain/chkinsert", querys, params);
|
|
107
111
|
}
|
|
108
112
|
|
|
113
|
+
/**
|
|
114
|
+
* 根据myoamain进行其附件的替换
|
|
115
|
+
*/
|
|
116
|
+
set4path(querys: IMyoaMainSet4pathQuerys, params: object) {
|
|
117
|
+
return this.httpRequest.post<TCore.IMyoaMainResponse[]>("/gapi/myoa/tmain/set4path", querys, params);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 根据myoamain修改其是否签章的标记
|
|
122
|
+
*/
|
|
123
|
+
usesdzqzUpdatedb(querys: IMyoaMainUsesdzqzUpdatedbQuerys, params: object) {
|
|
124
|
+
return this.httpRequest.post<TCore.IMyoaMainResponse[]>("/gapi/myoa/tmain/usesdzqz/updatedb", querys, params);
|
|
125
|
+
}
|
|
109
126
|
}
|
|
110
127
|
|
|
111
128
|
export default ParaRequest;
|
package/packages/myoa/type.ts
CHANGED
|
@@ -128,3 +128,25 @@ export class TMyoaMainChkinsertQuerys implements IMyoaMainChkinsertQuerys {
|
|
|
128
128
|
cardkjnd: number = -1;
|
|
129
129
|
cardkjqj: number = -1;
|
|
130
130
|
}
|
|
131
|
+
|
|
132
|
+
export interface IMyoaMainSet4pathQuerys {
|
|
133
|
+
/** 单据主键 */
|
|
134
|
+
myoamain: number;
|
|
135
|
+
}
|
|
136
|
+
export class TMyoaMainSet4pathQuerys implements IMyoaMainSet4pathQuerys {
|
|
137
|
+
/** 单据主键 */
|
|
138
|
+
myoamain: number = 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface IMyoaMainUsesdzqzUpdatedbQuerys {
|
|
142
|
+
/** 单据主键 */
|
|
143
|
+
myoamain: number;
|
|
144
|
+
/** 签章状态 */
|
|
145
|
+
usesdzqz: number;
|
|
146
|
+
}
|
|
147
|
+
export class TMyoaMainUsesdzqzUpdatedbQuerys implements IMyoaMainUsesdzqzUpdatedbQuerys {
|
|
148
|
+
/** 单据主键 */
|
|
149
|
+
myoamain: number = 0;
|
|
150
|
+
/** 签章状态 */
|
|
151
|
+
usesdzqz: number = 0;
|
|
152
|
+
}
|
package/packages/myoa/type.ts~
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/** ========== main ========== */
|
|
2
|
-
export interface IMyoaMainSelectdbQuerys {
|
|
3
|
-
withflow: number;
|
|
4
|
-
viewonly: number;
|
|
5
|
-
useronly: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export class TMyoaMainSelectdbQuerys implements IMyoaMainSelectdbQuerys {
|
|
9
|
-
withflow: number = 0;
|
|
10
|
-
viewonly: number = -1;
|
|
11
|
-
useronly: number = -1;
|
|
12
|
-
}
|
|
13
|
-
/** ========== main ========== */
|
|
14
|
-
export interface IMyoaMainInsertdb2Querys {
|
|
15
|
-
/** 结账年度 */
|
|
16
|
-
cardkjnd: number;
|
|
17
|
-
/** 结账期间 */
|
|
18
|
-
cardkjqj: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export class TMyoaMainInsertdb2Querys implements IMyoaMainInsertdb2Querys {
|
|
22
|
-
cardkjnd: number = -1;
|
|
23
|
-
cardkjqj: number = -1;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface IMyoaMainUpdated4Querys {
|
|
27
|
-
/** 结账年度 */
|
|
28
|
-
cardkjnd: number;
|
|
29
|
-
/** 结账期间 */
|
|
30
|
-
cardkjqj: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export class TMyoaMainUpdated4Querys implements IMyoaMainUpdated4Querys {
|
|
34
|
-
cardkjnd: number = -1;
|
|
35
|
-
cardkjqj: number = -1;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface IMyoaMainDetaildbQuerys {
|
|
39
|
-
myoamain: number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export class TMyoaMainDetaildbQuerys implements IMyoaMainDetaildbQuerys {
|
|
43
|
-
myoamain: number = -1;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export interface IMyoaMainDetail2dbQuerys {
|
|
48
|
-
/** 单据主键 */
|
|
49
|
-
myoamain: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export class TMyoaMainDetail2dbQuerys implements IMyoaMainDetail2dbQuerys {
|
|
53
|
-
myoamain: number = -1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/** ========== WithCardRequest ========== */
|
|
58
|
-
export interface IMyoaMainSelectd2Querys {
|
|
59
|
-
withflow: number;
|
|
60
|
-
viewonly: number;
|
|
61
|
-
useronly: number;
|
|
62
|
-
sourcend: number;
|
|
63
|
-
myoatype: number;
|
|
64
|
-
queuesby: number;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export class TMyoaMainSelectd2Querys implements IMyoaMainSelectd2Querys {
|
|
68
|
-
withflow: number = 0;
|
|
69
|
-
viewonly: number = -1;
|
|
70
|
-
useronly: number = -1;
|
|
71
|
-
sourcend: number = -1;
|
|
72
|
-
myoatype: number = -1;
|
|
73
|
-
queuesby: number = -1;
|
|
74
|
-
}
|
|
75
|
-
export interface IMyoaWithCardFinishedQuerys {
|
|
76
|
-
sourcend: number;
|
|
77
|
-
unitmain: number;
|
|
78
|
-
myoatype: number;
|
|
79
|
-
queuesby: number;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export class TMyoaWithCardFinishedQuerys implements IMyoaWithCardFinishedQuerys {
|
|
83
|
-
sourcend: number = -1;
|
|
84
|
-
unitmain: number = -1;
|
|
85
|
-
myoatype: number = -1;
|
|
86
|
-
queuesby: number = -1;
|
|
87
|
-
}
|
|
88
|
-
export interface IMyoaWithCardTodosizeQuerys {
|
|
89
|
-
sourcend: number;
|
|
90
|
-
myoatype: number;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export class TMyoaWithCardTodosizeQuerys implements IMyoaWithCardTodosizeQuerys {
|
|
94
|
-
sourcend: number = -1;
|
|
95
|
-
myoatype: number = -1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface IMyoaWithCardTodolistQuerys {
|
|
99
|
-
sourcend: number;
|
|
100
|
-
myoatype: number;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export class TMyoaWithCardTodolistQuerys implements IMyoaWithCardTodolistQuerys {
|
|
104
|
-
sourcend: number = -1;
|
|
105
|
-
myoatype: number = -1;
|
|
106
|
-
}
|
|
107
|
-
export interface IMyoaMainMrokdbQuerys {
|
|
108
|
-
/** 领用 */
|
|
109
|
-
mrokstat: number;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export class TMyoaMainMrokdbQuerys implements IMyoaMainMrokdbQuerys {
|
|
113
|
-
mrokstat: number = -1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface IMyoaMainUpdated4Querys {
|
|
117
|
-
/** 结账年度 */
|
|
118
|
-
cardkjnd: number;
|
|
119
|
-
/** 结账期间 */
|
|
120
|
-
cardkjqj: number;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export class TMyoaMainChkinsertQuerys implements IMyoaMainUpdated4Querys {
|
|
124
|
-
cardkjnd: number = -1;
|
|
125
|
-
cardkjqj: number = -1;
|
|
126
|
-
}
|