index.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { httpRequest } from '@/services/http'
  2. import { HttpParams } from '@/services/http/interface'
  3. import { tradeServerRequest } from '@/services/socket/trade'
  4. import { TradeParams } from '@/services/socket/trade/interface'
  5. /**
  6. * 履约违约申请
  7. */
  8. export function performanceContractedApply(params: TradeParams<Proto.PerformanceContractedApplyReq, Proto.PerformanceContractedApplyRsp>) {
  9. return tradeServerRequest('PerformanceContractedApplyReq', 'PerformanceContractedApplyRsp', params);
  10. }
  11. /**
  12. * 履约延期申请
  13. */
  14. export function performanceDelayApply(params: TradeParams<Proto.PerformanceDelayApplyReq, Proto.PerformanceDelayApplyRsp>) {
  15. return tradeServerRequest('PerformanceDelayApplyReq', 'PerformanceDelayApplyRsp', params);
  16. }
  17. /**
  18. * 履约手动申请
  19. */
  20. export function performanceManualConfirm(params: TradeParams<Proto.PerformanceManualConfirmReq, Proto.PerformanceManualConfirmRsp>) {
  21. return tradeServerRequest('PerformanceManualConfirmReq', 'PerformanceManualConfirmRsp', params);
  22. }
  23. /**
  24. * 履约修改联络信息
  25. */
  26. export function performanceModifyContact(params: TradeParams<Proto.PerformanceModifyContactReq, Proto.PerformanceModifyContactRsp>) {
  27. return tradeServerRequest('PerformanceModifyContactReq', 'PerformanceModifyContactRsp', params);
  28. }
  29. /**
  30. * 查询我的履约
  31. */
  32. export function queryMyPerformance(params: HttpParams<{ req: Ermcp.MyPerformancReq, rsp: Ermcp.MyPerformancRsp[] }>) {
  33. return httpRequest('/Guangzuan/QueryMyPerformanc', 'get', params);
  34. }
  35. /**
  36. * 查询履约模板
  37. */
  38. export function queryPermancePlanTmp(params: HttpParams<{ req: Ermcp.PermancePlanTmpReq, rsp: Ermcp.PermancePlanTmpRsp[] }>) {
  39. return httpRequest('/WrTrade2/QueryPermancePlanTmp', 'get', params);
  40. }
  41. /**
  42. * 查询履约步骤枚举
  43. */
  44. export function queryWrPerformanceStepType(params: HttpParams<{ rsp: Ermcp.WrPerformanceStepTypeRsp[] }>) {
  45. return httpRequest('/WrTrade2/QueryWrPerformanceStepType', 'get', params);
  46. }
  47. /**
  48. * 查询履约信息详情
  49. */
  50. export function queryWrPerformancePlanStep(params: HttpParams<{ req: Ermcp.WrPerformancePlanStepReq, rsp: Ermcp.WrPerformancePlanStepRsp[] }>) {
  51. return httpRequest('/WrTrade2/QueryWrPerformancePlanStep', 'get', params);
  52. }