| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /** ================================= 现货报表 ================================**/
- 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';
- import { QuerySpotPLReportReq } from './interface';
- /**
- * 查询现货损益报表
- * @param queryInfo 查询条件
- * @returns 现货损益报表
- */
- export async function QuerySpotPLReport(queryInfo: QuerySpotPLReportReq): Promise<type.QuerySpotPLReportRsp[]> {
- try {
- return commonSearch_go('/Ermcp3/QryReportAreaSpotPL', queryInfo);
- } catch (err) {
- throw new Error(`查询现货损益报表: ${err.message}`);
- }
- }
- /**
- * 查询现货报表
- * @param queryInfo 查询信息
- * @returns 现货报表
- */
- export async function QuerySpotDayReport(queryInfo: QuerySpotDayReportReq): Promise<type.QuerySpotDayReportRsp[]> {
- try {
- return commonSearch_go('/Ermcp3/QryReportDaySpot', queryInfo);
- } catch (err) {
- throw new Error(`查询现货报表: ${err.message}`);
- }
- }
- /**
- * 查询现货明细报表
- * @param queryInfo 查询信息
- * @returns 现货明细报表
- */
- export async function QuerySpotDayReportDetail(queryInfo: QuerySpotDayReportDetailReq): Promise<type.QuerySpotDayReportDetailRsp[]> {
- try {
- return commonSearch_go('/Ermcp3/QryReportDaySpotDetail', queryInfo);
- } catch (err) {
- throw new Error(`查询现货明细报表: ${err.message}`);
- }
- }
- /**
- * 查询现货月报表
- * @param queryInfo 查询信息
- * @returns 现货月报表数据
- */
- export async function QuerySpotMonthReport(queryInfo: QuerySpotMonthReportReq): Promise<type.QuerySpotMonthReportRsp[]> {
- try {
- return commonSearch_go('/Ermcp3/QryReportMonthSpot', { queryInfo });
- } catch (err) {
- throw new Error(`查询现货月报表: ${err.message}`);
- }
- }
- /**
- * 查询现货月报表明细
- * @param queryInfo 查询信息
- * @returns 现货月报表明细
- */
- export async function QuerySpotMonthReportDetail(queryInfo: QuerySpotMonthReportDetailReq): Promise<type.QuerySpotMonthReportDetailRsp[]> {
- try {
- return commonSearch_go('/Ermcp3/QryReportMonthSpotDetail', { queryInfo });
- } catch (err) {
- throw new Error(`查询现货月报表明细: ${err.message}`);
- }
- }
|