|
@@ -3,8 +3,14 @@ import { getUserId } from "@/services/bus/account";
|
|
|
import { commonSearch_go } from "@/services/go";
|
|
import { commonSearch_go } from "@/services/go";
|
|
|
import {
|
|
import {
|
|
|
AreaExpourseReportReq,
|
|
AreaExpourseReportReq,
|
|
|
- AreaSpotplReportReq, AreaStockReportReq, Ermcp3AreaSpotPLReport, Ermcp3AreaStockReport, Ermcp3ExpourseReport,
|
|
|
|
|
- Ermcp3FinanceReport, FinanceReportReq
|
|
|
|
|
|
|
+ AreaSpotplReportReq,
|
|
|
|
|
+ AreaStockReportReq,
|
|
|
|
|
+ Ermcp3ArealSumPL,
|
|
|
|
|
+ Ermcp3AreaSpotPLReport,
|
|
|
|
|
+ Ermcp3AreaStockReport,
|
|
|
|
|
+ Ermcp3ExpourseReport,
|
|
|
|
|
+ Ermcp3FinanceReport, Ermcp3TaFutuReDataReport,
|
|
|
|
|
+ FinanceReportReq, QryAreaSumPLReq, QryTaFutureDataReportReq
|
|
|
} from "@/services/go/ermcp/report/interface";
|
|
} from "@/services/go/ermcp/report/interface";
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -13,7 +19,9 @@ import {
|
|
|
* @param req.querytype 查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日]) 4-日报表明细
|
|
* @param req.querytype 查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日]) 4-日报表明细
|
|
|
*/
|
|
*/
|
|
|
export function qryAreaExpourseReport(req: AreaExpourseReportReq): Promise<Ermcp3ExpourseReport[]> {
|
|
export function qryAreaExpourseReport(req: AreaExpourseReportReq): Promise<Ermcp3ExpourseReport[]> {
|
|
|
- req.userid = getUserId()
|
|
|
|
|
|
|
+ if (!req.userid) {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ }
|
|
|
return commonSearch_go('/Ermcp3/QryAreaExpourseReport', req).catch((err) => {
|
|
return commonSearch_go('/Ermcp3/QryAreaExpourseReport', req).catch((err) => {
|
|
|
throw new Error(`查询敞口报表: ${err.message}`);
|
|
throw new Error(`查询敞口报表: ${err.message}`);
|
|
|
});
|
|
});
|
|
@@ -23,7 +31,9 @@ export function qryAreaExpourseReport(req: AreaExpourseReportReq): Promise<Ermcp
|
|
|
* 查询现货报表 /Ermcp3/QryAreaSpotplReport
|
|
* 查询现货报表 /Ermcp3/QryAreaSpotplReport
|
|
|
*/
|
|
*/
|
|
|
export function qryAreaSpotplReport(req: AreaSpotplReportReq): Promise<Ermcp3AreaSpotPLReport[]> {
|
|
export function qryAreaSpotplReport(req: AreaSpotplReportReq): Promise<Ermcp3AreaSpotPLReport[]> {
|
|
|
- req.userid = getUserId()
|
|
|
|
|
|
|
+ if (!req.userid) {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ }
|
|
|
return commonSearch_go('/Ermcp3/QryAreaSpotplReport', req).catch((err) => {
|
|
return commonSearch_go('/Ermcp3/QryAreaSpotplReport', req).catch((err) => {
|
|
|
throw new Error(`查询现货报表: ${err.message}`);
|
|
throw new Error(`查询现货报表: ${err.message}`);
|
|
|
});
|
|
});
|
|
@@ -34,7 +44,9 @@ export function qryAreaSpotplReport(req: AreaSpotplReportReq): Promise<Ermcp3Are
|
|
|
* @param req
|
|
* @param req
|
|
|
*/
|
|
*/
|
|
|
export function qryAreaStockReport(req: AreaStockReportReq): Promise<Ermcp3AreaStockReport[]> {
|
|
export function qryAreaStockReport(req: AreaStockReportReq): Promise<Ermcp3AreaStockReport[]> {
|
|
|
- req.userid = getUserId()
|
|
|
|
|
|
|
+ if (!req.userid) {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ }
|
|
|
return commonSearch_go('/Ermcp3/QryAreaStockReport', req).catch((err) => {
|
|
return commonSearch_go('/Ermcp3/QryAreaStockReport', req).catch((err) => {
|
|
|
throw new Error(`查询库存报表: ${err.message}`);
|
|
throw new Error(`查询库存报表: ${err.message}`);
|
|
|
});
|
|
});
|
|
@@ -45,8 +57,30 @@ export function qryAreaStockReport(req: AreaStockReportReq): Promise<Ermcp3AreaS
|
|
|
* @param req
|
|
* @param req
|
|
|
*/
|
|
*/
|
|
|
export function qryFinanceReport(req: FinanceReportReq): Promise<Ermcp3FinanceReport[]> {
|
|
export function qryFinanceReport(req: FinanceReportReq): Promise<Ermcp3FinanceReport[]> {
|
|
|
- req.userid = getUserId()
|
|
|
|
|
|
|
+ if (!req.userid) {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ }
|
|
|
return commonSearch_go('/Ermcp3/QryFinanceReport', req).catch((err) => {
|
|
return commonSearch_go('/Ermcp3/QryFinanceReport', req).catch((err) => {
|
|
|
throw new Error(`查询财务报表: ${err.message}`);
|
|
throw new Error(`查询财务报表: ${err.message}`);
|
|
|
});
|
|
});
|
|
|
-}
|
|
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 查询汇总损益表 /Ermcp3/QryAreaSumPL
|
|
|
|
|
+ */
|
|
|
|
|
+export function qryAreaSumPL(req: QryAreaSumPLReq): Promise<Ermcp3ArealSumPL[]> {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ return commonSearch_go('/Ermcp3/QryAreaSumPL', req).catch((err) => {
|
|
|
|
|
+ throw new Error(`查询汇总损益表: ${err.message}`);
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 查询期货报表 /Ermcp3/QryTaFutureDataReport
|
|
|
|
|
+ */
|
|
|
|
|
+export function qryTaFutureDataReport(req: QryTaFutureDataReportReq): Promise<Ermcp3TaFutuReDataReport[]> {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ return commonSearch_go('/Ermcp3/QryTaFutureDataReport', req).catch((err) => {
|
|
|
|
|
+ throw new Error(`查询期货报表: ${err.message}`);
|
|
|
|
|
+ });
|
|
|
|
|
+}
|