index.ts 646 B

12345678910111213141516171819
  1. /** ================================= 交易主体 ================================**/
  2. import { getUserId } from '@/services/bus/user';
  3. import { commonSearch_go } from '@/services/go';
  4. import { Ermcp3SubjectReq, Ermcp3SubjectRsp } from './interface';
  5. /**
  6. * 查询交易主体
  7. */
  8. export function QueryPaAreaSubject(req?: Ermcp3SubjectReq): Promise<Ermcp3SubjectRsp[]> {
  9. const param: Ermcp3SubjectReq = {
  10. userid: getUserId()
  11. }
  12. if (req) {
  13. Object.assign(param, req);
  14. }
  15. return commonSearch_go('/Ermcp3/QueryPaAreaSubject', param).catch((err) => {
  16. throw new Error(`查询交易主体: ${err}`);
  17. });
  18. }