index.ts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /** ================================= 现货报表 ================================**/
  2. import APP from '@/services';
  3. import * as type from './interface';
  4. import {commonSearch_go} from '@/goServiceAPI/index';
  5. import {QuerySpotDayReportReq} from "./interface";
  6. import {QuerySpotDayReportDetailReq} from "./interface";
  7. import {QuerySpotMonthReportReq} from "./interface";
  8. import {QuerySpotMonthReportDetailReq} from "./interface";
  9. /**
  10. * 查询现货报表
  11. * @param queryInfo 查询信息
  12. * @returns 现货报表
  13. */
  14. export async function QuerySpotDayReport(queryInfo:QuerySpotDayReportReq):Promise<type.QuerySpotDayReportRsp[]>
  15. {
  16. try {
  17. return commonSearch_go('/Ermcp/QryReportDaySpot', { queryInfo });
  18. } catch (err) {
  19. throw new Error(err.message);
  20. }
  21. }
  22. /**
  23. * 查询现货明细报表
  24. * @param queryInfo 查询信息
  25. * @returns 现货明细报表
  26. */
  27. export async function QuerySpotDayReportDetail(queryInfo:QuerySpotDayReportDetailReq):Promise<type.QuerySpotDayReportDetailRsp[]>
  28. {
  29. try {
  30. return commonSearch_go('/Ermcp/QryReportDaySpotDetail', { queryInfo });
  31. } catch (err) {
  32. throw new Error(err.message);
  33. }
  34. }
  35. /**
  36. * 查询现货月报表
  37. * @param queryInfo 查询信息
  38. * @returns 现货月报表数据
  39. */
  40. export async function QuerySpotMonthReport(queryInfo:QuerySpotMonthReportReq):Promise<type.QuerySpotMonthReportRsp[]>
  41. {
  42. try {
  43. return commonSearch_go('/Ermcp/QryReportMonthSpot', { queryInfo });
  44. } catch (err) {
  45. throw new Error(err.message);
  46. }
  47. }
  48. /**
  49. * 查询现货月报表明细
  50. * @param queryInfo 查询信息
  51. * @returns 现货月报表明细
  52. */
  53. export async function QuerySpotMonthReportDetail(queryInfo:QuerySpotMonthReportDetailReq):Promise<type.QuerySpotMonthReportDetailRsp[]>
  54. {
  55. try {
  56. return commonSearch_go('/Ermcp/QryReportMonthSpotDetail', { queryInfo });
  57. } catch (err) {
  58. throw new Error(err.message);
  59. }
  60. }