/** ================================= 现货报表 ================================**/ import APP from '@/services'; import * as type from './interface'; import { commonSearch_go } from '@/services/go/index'; import { QuerySpotDayReportReq } from './interface'; import { QuerySpotDayReportDetailReq } from './interface'; import { QuerySpotMonthReportReq } from './interface'; import { QuerySpotMonthReportDetailReq } from './interface'; /** * 查询现货报表 * @param queryInfo 查询信息 * @returns 现货报表 */ export async function QuerySpotDayReport(queryInfo: QuerySpotDayReportReq): Promise { try { return commonSearch_go('/Ermcp/QryReportDaySpot', queryInfo); } catch (err) { throw new Error(err.message); } } /** * 查询现货明细报表 * @param queryInfo 查询信息 * @returns 现货明细报表 */ export async function QuerySpotDayReportDetail(queryInfo: QuerySpotDayReportDetailReq): Promise { try { return commonSearch_go('/Ermcp/QryReportDaySpotDetail', queryInfo); } catch (err) { throw new Error(err.message); } } /** * 查询现货月报表 * @param queryInfo 查询信息 * @returns 现货月报表数据 */ export async function QuerySpotMonthReport(queryInfo: QuerySpotMonthReportReq): Promise { try { return commonSearch_go('/Ermcp/QryReportMonthSpot', { queryInfo }); } catch (err) { throw new Error(err.message); } } /** * 查询现货月报表明细 * @param queryInfo 查询信息 * @returns 现货月报表明细 */ export async function QuerySpotMonthReportDetail(queryInfo: QuerySpotMonthReportDetailReq): Promise { try { return commonSearch_go('/Ermcp/QryReportMonthSpotDetail', { queryInfo }); } catch (err) { throw new Error(err.message); } }