yu jie 4 vuotta sitten
vanhempi
commit
378259f2f6
2 muutettua tiedostoa jossa 56 lisäystä ja 5 poistoa
  1. 17 4
      src/services/go/wrtrade/index.ts
  2. 39 1
      src/services/go/wrtrade/interface.ts

+ 17 - 4
src/services/go/wrtrade/index.ts

@@ -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}`);
+    });
+}
+

+ 39 - 1
src/services/go/wrtrade/interface.ts

@@ -322,4 +322,42 @@ export interface WrSpecialMatchOrder {
 //:挂牌部分成交 11:仓单生成失败 12:首付扣款失败 13:履约失败 14:撤单解冻贷款失败 15:部成部撤
     wrtradetype	:number;//仓单贸易类型 - 1:挂牌 2:摘牌 3:提货卖(文化中国) 4:提货买(文化中国)
     wrtypename	:string;//商品
-}
+}
+
+/**
+ * 查询仓单持有记录请求
+ */
+export interface QueryHoldLBReq {
+    accountid: number
+}
+
+export interface WrHoldLB {
+    accountid	:number;//持有人帐户ID
+    createtime	:string;//创建时间(过户时间)
+    deliverygoodscode	:string;//品种代码
+    deliverygoodsid	:number;//品种ID
+    deliverygoodsname	:string;//品种名称
+    enableqty	:number;//可用数量
+    enumdicname	:string;//单位名称
+    freezerqty	:number;//冻结数量
+    ladingbillid	:number;//提单ID(2number;
+//8+Unix秒时间戳(1number;
+//位)+xxxxxx)
+    optioncompare	:string;//选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较
+    parentsubnum	:number;//拆分父子单号
+    qty	:number;//数量
+    subnum	:number;//提单子单号
+    tradedate	:string;//交易日(yyyyMMdd)
+    userid	:number;//持有人ID
+    warehouseid	:number;//仓库ID
+    warehousename	:string;//仓库名称
+    wrfactortypeid	:number;//仓单要素类型ID(212+Unix秒时间戳(1number;
+//位)+xxxxxx)
+    wrfactortypename	:string;//仓单要素类型名称(选择项要素的名称合并显示,逗号分隔)
+    wrholdeno	:string;//仓单编号
+    wrid	:number;//仓单变更ID
+    wrstandardcode	:string;//现货商品代码
+    wrstandardid	:number;//现货商品ID
+    wrstandardname	:string;//商品名称
+    wrtypename	:string;//商品
+}