import { httpRequest } from '@/services/http' import { HttpParams } from '@/services/http/interface' import { tradeServerRequest } from '@/services/socket/trade' import { TradeParams } from '@/services/socket/trade/interface' /** * 履约违约申请 */ export function performanceContractedApply(params: TradeParams) { return tradeServerRequest('PerformanceContractedApplyReq', 'PerformanceContractedApplyRsp', params); } /** * 履约延期申请 */ export function performanceDelayApply(params: TradeParams) { return tradeServerRequest('PerformanceDelayApplyReq', 'PerformanceDelayApplyRsp', params); } /** * 履约手动申请 */ export function performanceManualConfirm(params: TradeParams) { return tradeServerRequest('PerformanceManualConfirmReq', 'PerformanceManualConfirmRsp', params); } /** * 履约修改联络信息 */ export function performanceModifyContact(params: TradeParams) { return tradeServerRequest('PerformanceModifyContactReq', 'PerformanceModifyContactRsp', params); } /** * 查询我的履约 */ export function queryMyPerformance(params: HttpParams<{ req: Ermcp.MyPerformancReq, rsp: Ermcp.MyPerformancRsp[] }>) { return httpRequest('/Guangzuan/QueryMyPerformanc', 'get', params); } /** * 查询履约模板 */ export function queryPermancePlanTmp(params: HttpParams<{ req: Ermcp.PermancePlanTmpReq, rsp: Ermcp.PermancePlanTmpRsp[] }>) { return httpRequest('/WrTrade2/QueryPermancePlanTmp', 'get', params); } /** * 查询履约步骤枚举 */ export function queryWrPerformanceStepType(params: HttpParams<{ rsp: Ermcp.WrPerformanceStepTypeRsp[] }>) { return httpRequest('/WrTrade2/QueryWrPerformanceStepType', 'get', params); } /** * 查询履约信息详情 */ export function queryWrPerformancePlanStep(params: HttpParams<{ req: Ermcp.WrPerformancePlanStepReq, rsp: Ermcp.WrPerformancePlanStepRsp[] }>) { return httpRequest('/WrTrade2/QueryWrPerformancePlanStep', 'get', params); }