@ningboyz/types 1.1.47 → 1.1.49
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
package/src/enums/editMode.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
1
2
|
import { IGzzdBillResponse } from "./IGzzdBillResponse";
|
|
3
|
+
import _ from "lodash";
|
|
2
4
|
|
|
3
5
|
export interface IGzzdMainResponse {
|
|
4
6
|
whoBuild: number;
|
|
@@ -169,4 +171,39 @@ export class TGzzdMainResponse implements IGzzdMainResponse {
|
|
|
169
171
|
fromGzjgQueuesBy: number = 0; // 工资结构按照Y中的顺序进行排序
|
|
170
172
|
taskPara: string = "";
|
|
171
173
|
listBill: Array<IGzzdBillResponse> = [];
|
|
174
|
+
|
|
175
|
+
constructor(card: keyof IGzzdMainResponse | object) {
|
|
176
|
+
if (card) {
|
|
177
|
+
_.merge(this, _.pick(card, Object.keys(this)));
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
static toFlowDatas(card: IGzzdMainResponse[]): TFlowDataResponse[] {
|
|
182
|
+
return card.map((u) => this.toFlowData(u));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
//#进入流程
|
|
186
|
+
static toFlowData(myoa: IGzzdMainResponse): TFlowDataResponse {
|
|
187
|
+
const result = new TFlowDataResponse();
|
|
188
|
+
result.whoBuild = myoa.whoBuild;
|
|
189
|
+
result.userIndx = myoa.userIndx;
|
|
190
|
+
result.flowMain = myoa.flowMain;
|
|
191
|
+
result.flowNode = myoa.flowNode;
|
|
192
|
+
// result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HTQD_WAIT;
|
|
193
|
+
result.entityID = myoa.entityID;
|
|
194
|
+
result.billMain = myoa.gzzdIndx;
|
|
195
|
+
result.billCode = myoa.gzzdCode;
|
|
196
|
+
result.billMemo = myoa.gzzdMemo;
|
|
197
|
+
result.billUses = "";
|
|
198
|
+
result.ysxmText = "";
|
|
199
|
+
result.outMoney = 0;
|
|
200
|
+
result.createAt = myoa.createAt;
|
|
201
|
+
result.mastName = myoa.mastName;
|
|
202
|
+
result.createBy = myoa.createBy;
|
|
203
|
+
result.unitMain = myoa.unitMain;
|
|
204
|
+
result.menuUUID = myoa.menuUUID;
|
|
205
|
+
result.deptMain = myoa.deptMain;
|
|
206
|
+
result.flowStat = myoa.gzzdStat;
|
|
207
|
+
return result;
|
|
208
|
+
}
|
|
172
209
|
}
|