|
|
@@ -3,13 +3,14 @@
|
|
|
import { getUsrId } from "@/services/bus/user";
|
|
|
import { commonSearch_go } from "@/services/go";
|
|
|
import {
|
|
|
+ QueryHoldLBReq,
|
|
|
QueryOrderQuoteDetailReq,
|
|
|
QueryOrderQuoteReq,
|
|
|
QueryWrGoodsInfoReq,
|
|
|
QueryWrOrderDetailReq,
|
|
|
QueryWrPositionReq, QueryWrSpecialMatchOrderReq,
|
|
|
QueryWrTradeDetailReq,
|
|
|
- WrGoodsInfo,
|
|
|
+ WrGoodsInfo, WrHoldLB,
|
|
|
WrOrderDetail,
|
|
|
WrOrderQuote,
|
|
|
WrOrderQuoteDetail,
|
|
|
@@ -43,7 +44,7 @@ export function queryOrderQuoteDetail(req: QueryOrderQuoteDetailReq): Promise<Wr
|
|
|
* @param req
|
|
|
*/
|
|
|
export function queryWrGoodsInfo(req: QueryWrGoodsInfoReq): Promise<WrGoodsInfo[]> {
|
|
|
- return commonSearch_go('/WrTrade2/QueryWrGoodsInfo', { req }).catch((err) => {
|
|
|
+ return commonSearch_go('/WrTrade2/QueryWrGoodsInfo', req ).catch((err) => {
|
|
|
throw new Error(`查询仓单商品信息: ${err}`);
|
|
|
});
|
|
|
}
|
|
|
@@ -77,7 +78,7 @@ export function queryWrPosition(req: QueryWrPositionReq): Promise<WrPosition[]>
|
|
|
* 页面 现货仓单 | 预售仓单 -> 指定成交
|
|
|
*/
|
|
|
export function queryWrSpecialMatchOrder(req: QueryWrSpecialMatchOrderReq): Promise<WrSpecialMatchOrder[]> {
|
|
|
- return commonSearch_go('/WrTrade2/QueryWrSpecialMatchOrder', { req }).catch((err) => {
|
|
|
+ return commonSearch_go('/WrTrade2/QueryWrSpecialMatchOrder', req ).catch((err) => {
|
|
|
throw new Error(`查询指定成交: ${err}`);
|
|
|
});
|
|
|
}
|
|
|
@@ -89,4 +90,16 @@ export function queryWrTradeDetail(req: QueryWrTradeDetailReq): Promise<WrTradeD
|
|
|
return commonSearch_go('/WrTrade2/QueryWrTradeDetail', req).catch((err) => {
|
|
|
throw new Error(`查询仓单成交明细: ${err}`);
|
|
|
});
|
|
|
-}
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 查询仓单持有记录 /WrTrade2/QueryHoldLB
|
|
|
+ * 页面 现货仓单 -> 现货明细
|
|
|
+ * @param req
|
|
|
+ */
|
|
|
+export function queryHoldLB(req: QueryHoldLBReq): Promise<WrHoldLB[]> {
|
|
|
+ return commonSearch_go('/WrTrade2/QueryHoldLB', req).catch((err) => {
|
|
|
+ throw new Error(`查询仓单持有记录: ${err}`);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|