index.ts 739 B

12345678910111213141516
  1. import { commonSearch_go } from '@/services/go';
  2. import { Ermcp3HedgePlan } from '@/services/go/ermcp/plan/interface';
  3. /** ================================= 计划 ================================**/
  4. /**
  5. * 查询套保计划 /Ermcp3/QueryHedgePlan
  6. * @param userId 用户ID
  7. * @param hedgeplanstatus 套保计划状态(允许多个,逗号隔开) - 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回
  8. * @constructor
  9. */
  10. export function QueryHedgePlan(userId: number, hedgeplanstatus: string): Promise<Ermcp3HedgePlan[]> {
  11. return commonSearch_go('/Erms3/QueryHedgePlan', { userId, hedgeplanstatus }).catch((err) => {
  12. throw new Error(`查询套保计划: ${err.message}`);
  13. });
  14. }