@ningboyz/types 1.0.166 → 1.0.168
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,8 +1,11 @@
|
|
|
1
1
|
//#固定资产事项登记
|
|
2
2
|
|
|
3
|
+
import _ from "lodash";
|
|
3
4
|
import { IPathResponse } from "../core/IPathResponse";
|
|
4
5
|
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
5
6
|
import * as Const from "../const";
|
|
7
|
+
import {TCore} from "../../index.ts";
|
|
8
|
+
import {ICardMainResponse} from "./ICardMainResponse.ts";
|
|
6
9
|
/**
|
|
7
10
|
车辆保险:dataType=1加001,使用单位(unitDict),投保单位(dddwText),生效日期(handleAt),到期日期(autoBxrq)
|
|
8
11
|
车辆加油:dataType=1002,加油日期(handleAt),油油号(字典)(autoJyyh),加油容量(nowCount)
|
|
@@ -197,4 +200,37 @@ export class TDataResponse implements IDataResponse {
|
|
|
197
200
|
result.menuUUID = card.menuUUID;
|
|
198
201
|
return result;
|
|
199
202
|
}
|
|
203
|
+
|
|
204
|
+
static toTravel(card: ICardMainResponse): TCore.ISysTravelResponse {
|
|
205
|
+
const travel = new TCore.TSysTravelResponse();
|
|
206
|
+
travel.whoBuild = card.whoBuild;
|
|
207
|
+
travel.flowMain = card.flowMain;
|
|
208
|
+
travel.flowNode = card.flowNode;
|
|
209
|
+
travel.billUUID = card.entityID;
|
|
210
|
+
travel.billMain = card.cardIndx;
|
|
211
|
+
travel.billCode = card.cardCode;
|
|
212
|
+
travel.mastName = card.mastName;
|
|
213
|
+
travel.createBy = card.createBy;
|
|
214
|
+
travel.menuUUID = card.menuUUID;
|
|
215
|
+
return travel;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** 转换成记录日志需要的数据(第一层,不包含菜单) */
|
|
219
|
+
static toTravelData(card?: ICardMainResponse | ICardMainResponse[]): TCore.ISysTravelResponse[] {
|
|
220
|
+
if (_.isNil(card)) {
|
|
221
|
+
return [];
|
|
222
|
+
}
|
|
223
|
+
if (_.isArray(card)) {
|
|
224
|
+
return card.map((u) => {
|
|
225
|
+
return this.toTravel(u);
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
return [this.toTravel(card)];
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
constructor(card: Partial<IDataResponse> = {}) {
|
|
232
|
+
if (card) {
|
|
233
|
+
_.merge(this, _.pick(card, Object.keys(this)));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
200
236
|
}
|
|
@@ -95,3 +95,8 @@ export const CONST_MODULE_WARE_HOUSE_LYSH = "CONST_MODULE_WARE_HOUSE_LYSH";
|
|
|
95
95
|
* 公务仓管理-领用确认
|
|
96
96
|
*/
|
|
97
97
|
export const CONST_MODULE_WARE_HOUSE_LYQR = "CONST_MODULE_WARE_HOUSE_LYQR";
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 资产维修-维修登记
|
|
101
|
+
*/
|
|
102
|
+
export const CONST_MODULE_DATA_DJSQ = "CONST_MODULE_DATA_DJSQ";
|