@ningboyz/types 1.4.118 → 1.4.119
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {THznj, TCore, TStim} from "..";
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
|
|
4
4
|
export interface IHznjBaseResponse {
|
|
@@ -79,7 +79,8 @@ export interface IHznjBaseResponse {
|
|
|
79
79
|
listRange: THznj.IHznjBaseItemResponse[];
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
type Type = IHznjBaseResponse
|
|
83
|
+
export class THznjBaseResponse implements Type {
|
|
83
84
|
whoBuild: number = 0;
|
|
84
85
|
userIndx: number = 0;
|
|
85
86
|
baseIndx: number = 0;
|
|
@@ -148,9 +149,20 @@ export class THznjBaseResponse implements IHznjBaseResponse {
|
|
|
148
149
|
/**检测依据范围 */
|
|
149
150
|
listRange: THznj.IHznjBaseItemResponse[] = [];
|
|
150
151
|
|
|
151
|
-
constructor(data: Partial<
|
|
152
|
+
constructor(data: Partial<Type> = {}) {
|
|
152
153
|
if (data) {
|
|
153
154
|
_.merge(this, _.pick(data, Object.keys(this)));
|
|
154
155
|
}
|
|
155
156
|
}
|
|
157
|
+
|
|
158
|
+
static toWldyPrintData(noti: Type) {
|
|
159
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
160
|
+
data.billMain = noti.baseIndx;
|
|
161
|
+
data.menuUUID = noti.menuUUID;
|
|
162
|
+
return data;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
static toWldyPrintDatas(listNoti: Type[]) {
|
|
166
|
+
return listNoti.map((u) => this.toWldyPrintData(u));
|
|
167
|
+
}
|
|
156
168
|
}
|