@ningboyz/types 1.2.189 → 1.2.191
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 +1 -1
- package/src/axios/IAxiosConfig.ts +9 -0
- package/src/axios/index.ts +3 -0
- package/src/card/ICardMainFindResponse.ts +2 -2
- package/src/hzcb/IHzcbTdssResponse.ts +36 -0
- package/src/hznj/IHznjMainResponse.ts +6 -0
- package/src/hznj/IHznjZbczResponse.ts +7 -1
- package/src/hznj/IHznjZbjgResponse.ts +13 -1
- package/src/hznj/IHznjZblrResponse.ts +6 -0
- package/src/hznj/IHznjZblyResponse.ts +22 -1
- package/src/hznk/IHznkFytqResponse.ts +7 -2
- package/src/index.ts +7 -4
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { THzcb, TCore } from "..";
|
|
2
|
+
import { TFlowDataResponse } from "../flow";
|
|
3
|
+
import _ from "lodash";
|
|
2
4
|
|
|
3
5
|
export interface IHzcbTdssResponse {
|
|
4
6
|
whoBuild: number;
|
|
@@ -148,4 +150,38 @@ export class THzcbTdssResponse implements IHzcbTdssResponse {
|
|
|
148
150
|
|
|
149
151
|
listPath: TCore.IPathResponse[] = [];
|
|
150
152
|
listFrom: THzcb.IHzcbMainResponse[] = [];
|
|
153
|
+
|
|
154
|
+
constructor(response: any = {}) {
|
|
155
|
+
if (response) {
|
|
156
|
+
_.merge(this, _.pick(response, Object.keys(this)));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
static toFlowDatas(notis: THzcbTdssResponse[]): TFlowDataResponse[] {
|
|
161
|
+
return notis.map((u) => this.toFlowData(u));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
static toFlowData(xmss: THzcbTdssResponse): TFlowDataResponse {
|
|
165
|
+
const result = new TFlowDataResponse();
|
|
166
|
+
result.whoBuild = xmss.whoBuild;
|
|
167
|
+
result.userIndx = xmss.userIndx;
|
|
168
|
+
result.flowMain = xmss.flowMain;
|
|
169
|
+
result.flowNode = xmss.flowNode;
|
|
170
|
+
result.notified = "";
|
|
171
|
+
result.entityID = xmss.entityID;
|
|
172
|
+
result.billMain = xmss.tdssIndx;
|
|
173
|
+
result.billCode = xmss.tdssCode;
|
|
174
|
+
result.billMemo = xmss.tdssMemo;
|
|
175
|
+
result.billUses = "";
|
|
176
|
+
result.ysxmText = "";
|
|
177
|
+
result.outMoney = 0;
|
|
178
|
+
result.createAt = xmss.createAt;
|
|
179
|
+
result.mastName = xmss.mastName;
|
|
180
|
+
result.createBy = xmss.createBy;
|
|
181
|
+
result.unitMain = xmss.unitMain;
|
|
182
|
+
result.menuUUID = xmss.menuUUID;
|
|
183
|
+
result.deptMain = xmss.deptMain;
|
|
184
|
+
result.flowStat = xmss.tdssStat;
|
|
185
|
+
return result;
|
|
186
|
+
}
|
|
151
187
|
}
|
|
@@ -64,6 +64,10 @@ export interface IHznjMainResponse {
|
|
|
64
64
|
k9kmKmmc: string;
|
|
65
65
|
/**检验项目,默认:见检验结果报告书 */
|
|
66
66
|
itemText: string;
|
|
67
|
+
/**联系人 */
|
|
68
|
+
wContact: string;
|
|
69
|
+
/**联系方式 */
|
|
70
|
+
dContact: string;
|
|
67
71
|
|
|
68
72
|
coverURL: string;
|
|
69
73
|
touchURL: string;
|
|
@@ -136,6 +140,8 @@ export class THznjMainResponse implements IHznjMainResponse {
|
|
|
136
140
|
deviceBy: string = "";
|
|
137
141
|
k9kmKmmc: string = "";
|
|
138
142
|
itemText: string = "";
|
|
143
|
+
wContact: string = "";
|
|
144
|
+
dContact: string = "";
|
|
139
145
|
|
|
140
146
|
coverURL: string = "";
|
|
141
147
|
touchURL: string = "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { THznj, TCore } from "..";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import {TFlowDataResponse} from "../flow";
|
|
3
|
+
import { TFlowDataResponse } from "../flow";
|
|
4
4
|
|
|
5
5
|
export interface IHznjZbczResponse {
|
|
6
6
|
whoBuild: number;
|
|
@@ -54,6 +54,10 @@ export interface IHznjZbczResponse {
|
|
|
54
54
|
zbczUses: string;
|
|
55
55
|
/**备注说明 */
|
|
56
56
|
zbczMemo: string;
|
|
57
|
+
/**联系人 */
|
|
58
|
+
wContact: string;
|
|
59
|
+
/**联系方式 */
|
|
60
|
+
dContact: string;
|
|
57
61
|
|
|
58
62
|
coverURL: string;
|
|
59
63
|
touchURL: string;
|
|
@@ -122,6 +126,8 @@ export class THznjZbczResponse implements IHznjZbczResponse {
|
|
|
122
126
|
zbczName: string = "";
|
|
123
127
|
zbczUses: string = "";
|
|
124
128
|
zbczMemo: string = "";
|
|
129
|
+
wContact: string = "";
|
|
130
|
+
dContact: string = "";
|
|
125
131
|
|
|
126
132
|
coverURL: string = "";
|
|
127
133
|
touchURL: string = "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { THznj, TCore } from "..";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import {TFlowDataResponse} from "../flow";
|
|
3
|
+
import { TFlowDataResponse } from "../flow";
|
|
4
4
|
|
|
5
5
|
export interface IHznjZbjgResponse {
|
|
6
6
|
whoBuild: number;
|
|
@@ -54,6 +54,14 @@ export interface IHznjZbjgResponse {
|
|
|
54
54
|
zbjgUses: string;
|
|
55
55
|
/**备注说明 */
|
|
56
56
|
zbjgMemo: string;
|
|
57
|
+
/**联系人 */
|
|
58
|
+
wContact: string;
|
|
59
|
+
/**联系方式 */
|
|
60
|
+
dContact: string;
|
|
61
|
+
/**仪器 */
|
|
62
|
+
yqsbMain: number;
|
|
63
|
+
/**仪器 */
|
|
64
|
+
yqsbText: string;
|
|
57
65
|
|
|
58
66
|
coverURL: string;
|
|
59
67
|
touchURL: string;
|
|
@@ -122,6 +130,10 @@ export class THznjZbjgResponse implements IHznjZbjgResponse {
|
|
|
122
130
|
zbjgName: string = "";
|
|
123
131
|
zbjgUses: string = "";
|
|
124
132
|
zbjgMemo: string = "";
|
|
133
|
+
wContact: string = "";
|
|
134
|
+
dContact: string = "";
|
|
135
|
+
yqsbMain: number = 0;
|
|
136
|
+
yqsbText: string = "";
|
|
125
137
|
|
|
126
138
|
coverURL: string = "";
|
|
127
139
|
touchURL: string = "";
|
|
@@ -54,6 +54,10 @@ export interface IHznjZblrResponse {
|
|
|
54
54
|
zblrUses: string;
|
|
55
55
|
/**备注说明 */
|
|
56
56
|
zblrMemo: string;
|
|
57
|
+
/**联系人 */
|
|
58
|
+
wContact: string;
|
|
59
|
+
/**联系方式 */
|
|
60
|
+
dContact: string;
|
|
57
61
|
|
|
58
62
|
coverURL: string;
|
|
59
63
|
touchURL: string;
|
|
@@ -122,6 +126,8 @@ export class THznjZblrResponse implements IHznjZblrResponse {
|
|
|
122
126
|
zblrName: string = "";
|
|
123
127
|
zblrUses: string = "";
|
|
124
128
|
zblrMemo: string = "";
|
|
129
|
+
wContact: string = "";
|
|
130
|
+
dContact: string = "";
|
|
125
131
|
|
|
126
132
|
coverURL: string = "";
|
|
127
133
|
touchURL: string = "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { THznj, TCore } from "..";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import {TFlowDataResponse} from "../flow";
|
|
3
|
+
import { TFlowDataResponse } from "../flow";
|
|
4
4
|
|
|
5
5
|
export interface IHznjZblyResponse {
|
|
6
6
|
whoBuild: number;
|
|
@@ -54,6 +54,20 @@ export interface IHznjZblyResponse {
|
|
|
54
54
|
zblyUses: string;
|
|
55
55
|
/**备注说明 */
|
|
56
56
|
zblyMemo: string;
|
|
57
|
+
/**联系人 */
|
|
58
|
+
wContact: string;
|
|
59
|
+
/**联系方式 */
|
|
60
|
+
dContact: string;
|
|
61
|
+
/**样品类型 */
|
|
62
|
+
lybmMain: number;
|
|
63
|
+
/**领用人 */
|
|
64
|
+
lyyhText: string;
|
|
65
|
+
/**样品类型 */
|
|
66
|
+
lybmText: string;
|
|
67
|
+
/**样品类型 */
|
|
68
|
+
yplxMain: number;
|
|
69
|
+
/**样品类型 */
|
|
70
|
+
yplxText: string;
|
|
57
71
|
|
|
58
72
|
coverURL: string;
|
|
59
73
|
touchURL: string;
|
|
@@ -122,6 +136,13 @@ export class THznjZblyResponse implements IHznjZblyResponse {
|
|
|
122
136
|
zblyName: string = "";
|
|
123
137
|
zblyUses: string = "";
|
|
124
138
|
zblyMemo: string = "";
|
|
139
|
+
wContact: string = "";
|
|
140
|
+
dContact: string = "";
|
|
141
|
+
lybmMain: number = 0;
|
|
142
|
+
lyyhText: string = "";
|
|
143
|
+
lybmText: string = "";
|
|
144
|
+
yplxMain: number = 0;
|
|
145
|
+
yplxText: string = "";
|
|
125
146
|
|
|
126
147
|
coverURL: string = "";
|
|
127
148
|
touchURL: string = "";
|
|
@@ -52,6 +52,10 @@ export interface IHznkFytqResponse {
|
|
|
52
52
|
baseMemo: string;
|
|
53
53
|
/**是否已提交档案 */
|
|
54
54
|
diskStat: number;
|
|
55
|
+
/**联系人 */
|
|
56
|
+
wContact: string;
|
|
57
|
+
/**联系方式 */
|
|
58
|
+
dContact: string;
|
|
55
59
|
|
|
56
60
|
coverURL: string;
|
|
57
61
|
touchURL: string;
|
|
@@ -67,7 +71,7 @@ export interface IHznkFytqResponse {
|
|
|
67
71
|
lastMemo: string;
|
|
68
72
|
userName: string;
|
|
69
73
|
userGUID: string;
|
|
70
|
-
|
|
74
|
+
|
|
71
75
|
/**附件 */
|
|
72
76
|
listPath: TCore.IPathResponse[];
|
|
73
77
|
/**关联项目 */
|
|
@@ -122,6 +126,8 @@ export class THznkFytqResponse implements IHznkFytqResponse {
|
|
|
122
126
|
baseUses: string = "";
|
|
123
127
|
baseMemo: string = "";
|
|
124
128
|
diskStat: number = 0;
|
|
129
|
+
wContact: string = "";
|
|
130
|
+
dContact: string = "";
|
|
125
131
|
|
|
126
132
|
coverURL: string = "";
|
|
127
133
|
touchURL: string = "";
|
|
@@ -137,7 +143,6 @@ export class THznkFytqResponse implements IHznkFytqResponse {
|
|
|
137
143
|
lastMemo: string = "";
|
|
138
144
|
userName: string = "";
|
|
139
145
|
userGUID: string = "";
|
|
140
|
-
dContact: string = "";
|
|
141
146
|
|
|
142
147
|
listPath: TCore.IPathResponse[] = [];
|
|
143
148
|
listFrom: THznk.IHznkFydwBillResponse[] = [];
|
package/src/index.ts
CHANGED
|
@@ -28,7 +28,6 @@ import * as Micro from "./micro";
|
|
|
28
28
|
import * as TMyoa from "./myoa";
|
|
29
29
|
import * as TNoti from "./noti";
|
|
30
30
|
import * as TPzpt from "./pzpt";
|
|
31
|
-
import { IResponse } from "./response/IResponse";
|
|
32
31
|
import * as TStore from "./store";
|
|
33
32
|
import * as TTabl from "./tabl";
|
|
34
33
|
import * as TTake from "./take";
|
|
@@ -46,9 +45,13 @@ import * as TZbzd from "./zbzd";
|
|
|
46
45
|
import * as TZfht from "./zfht";
|
|
47
46
|
import * as TZfsq from "./zfsq";
|
|
48
47
|
import * as TVary from "./vary";
|
|
48
|
+
import * as TResponse from "./response/IResponse";
|
|
49
|
+
import * as TAxios from "./axios"
|
|
49
50
|
|
|
50
51
|
export {
|
|
51
|
-
Const,
|
|
52
|
+
Const,
|
|
53
|
+
Decorators,
|
|
54
|
+
Enums,
|
|
52
55
|
Micro,
|
|
53
56
|
TAntv,
|
|
54
57
|
TApp,
|
|
@@ -91,11 +94,11 @@ export {
|
|
|
91
94
|
TZfht,
|
|
92
95
|
TZfsq,
|
|
93
96
|
TVary,
|
|
97
|
+
TResponse,
|
|
98
|
+
TAxios,
|
|
94
99
|
type IAboutConfig,
|
|
95
100
|
type IBaseConfig,
|
|
96
101
|
type IBaseResponse,
|
|
97
102
|
type IConfig,
|
|
98
103
|
type IPathConfig,
|
|
99
|
-
type IResponse
|
|
100
104
|
};
|
|
101
|
-
|