index.ts 1.9 KB

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