|
|
@@ -1,9 +1,6 @@
|
|
|
-import { useLoginStore, useAccountStore } from '@/stores'
|
|
|
-import http from '@/services/http'
|
|
|
+import { getUserId, getAccountId } from '@/services/methods/user'
|
|
|
import { RequestConfig } from '@/services/http/types'
|
|
|
-
|
|
|
-const loginStore = useLoginStore()
|
|
|
-const accountStore = useAccountStore()
|
|
|
+import http from '@/services/http'
|
|
|
|
|
|
/**
|
|
|
* 查询仓单成交明细
|
|
|
@@ -12,7 +9,7 @@ export function queryWrTradeDetail(config: RequestConfig<Model.WrTradeDetailReq>
|
|
|
return http.commonRequest<Model.WrTradeDetailRsp[]>({
|
|
|
url: '/WrTrade2/QueryWrTradeDetail',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -25,7 +22,7 @@ export function queryWrOrderDetail(config: RequestConfig<Model.WrOrderDetailReq>
|
|
|
return http.commonRequest<Model.WrOrderDetailRsp[]>({
|
|
|
url: '/WrTrade2/QueryWrOrderDetail',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -38,7 +35,7 @@ export function queryTHJPurchaseTradeDetail(config: RequestConfig<Model.THJPurch
|
|
|
return http.commonRequest<Model.THJPurchaseTradeDetailRsp[]>({
|
|
|
url: '/Ferroalloy/QueryTHJPurchaseTradeDetail',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -51,7 +48,7 @@ export function queryHoldLB(config: RequestConfig<Model.HoldLBReq> = {}) {
|
|
|
return http.commonRequest<Model.HoldLBRsp[]>({
|
|
|
url: '/WrTrade2/QueryHoldLB',
|
|
|
params: {
|
|
|
- accountid: accountStore.currentAccountId,
|
|
|
+ accountid: getAccountId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -64,7 +61,7 @@ export function queryWrOutInApply(config: RequestConfig<Model.WrOutInApplyReq> =
|
|
|
return http.commonRequest<Model.WrOutInApplyRsp[]>({
|
|
|
url: '/WrTrade2/QueryWrOutInApply',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -77,7 +74,7 @@ export function queryTHJPromotionIncome(config: RequestConfig<Model.THJPromotion
|
|
|
return http.commonRequest<Model.THJPromotionIncomeRsp[]>({
|
|
|
url: '/Ferroalloy/QueryTHJPromotionIncome',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -90,7 +87,7 @@ export function queryTHJPromotionIncomeDetail(config: RequestConfig<Model.THJPro
|
|
|
return http.commonRequest<Model.THJPromotionIncomeDetailRsp[]>({
|
|
|
url: '/Ferroalloy/QueryTHJPromotionIncomeDetail',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -103,7 +100,7 @@ export function queryTHJPurchaseTransferOrder(config: RequestConfig<Model.THJPur
|
|
|
return http.commonRequest<Model.THJPurchaseTransferOrderRsp[]>({
|
|
|
url: '/Ferroalloy/QueryTHJPurchaseTransferOrder',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -126,7 +123,7 @@ export function queryHisTradeDetail(config: RequestConfig<Model.HisTradeDetailRe
|
|
|
return http.commonRequest<Model.HisTradeDetailRsp[]>({
|
|
|
url: '/Order/QueryHisTradeDetail',
|
|
|
params: {
|
|
|
- accountID: accountStore.currentAccountId,
|
|
|
+ accountID: getAccountId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -139,7 +136,7 @@ export function queryHisTradeOrderDetail(config: RequestConfig<Model.HisTradeOrd
|
|
|
return http.commonRequest<Model.HisTradeOrderDetailRsp[]>({
|
|
|
url: '/Order/QueryHisTradeOrderDetail',
|
|
|
params: {
|
|
|
- accountID: accountStore.currentAccountId,
|
|
|
+ accountID: getAccountId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -152,7 +149,7 @@ export function queryTradeDetail(config: RequestConfig<Model.TradeDetailReq> = {
|
|
|
return http.commonRequest<Model.TradeDetailRsp[]>({
|
|
|
url: '/Order/QueryTradeDetail',
|
|
|
params: {
|
|
|
- accountID: accountStore.currentAccountId,
|
|
|
+ accountID: getAccountId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -165,8 +162,8 @@ export function queryTradeHolderDetail(config: RequestConfig<Model.TradeHolderDe
|
|
|
return http.commonRequest<Model.TradeHolderDetailRsp[]>({
|
|
|
url: '/Order/QueryTradeHolderDetail',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
- accids: accountStore.currentAccountId.toString(),
|
|
|
+ userid: getUserId(),
|
|
|
+ accids: getAccountId().toString(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -179,7 +176,7 @@ export function queryTradeOrderDetail(config: RequestConfig<Model.TradeOrderDeta
|
|
|
return http.commonRequest<Model.TradeOrderDetailRsp[]>({
|
|
|
url: '/Order/QueryTradeOrderDetail',
|
|
|
params: {
|
|
|
- accountID: accountStore.currentAccountId,
|
|
|
+ accountID: getAccountId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -192,7 +189,7 @@ export function queryTradePosition(config: RequestConfig<Model.TradePositionReq>
|
|
|
return http.commonRequest<Model.TradePositionRsp[]>({
|
|
|
url: '/Order/QueryTradePosition',
|
|
|
params: {
|
|
|
- accountID: accountStore.currentAccountId,
|
|
|
+ accountID: getAccountId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -207,7 +204,7 @@ export function querySBYJMyOrders(config: RequestConfig<Model.SBYJMyOrderReq> =
|
|
|
return http.commonRequest<Model.SBYJMyOrderRsp[]>({
|
|
|
url: '/sbyj/GetMyOrders',
|
|
|
params: {
|
|
|
- userId: loginStore.userId,
|
|
|
+ userId: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -220,7 +217,7 @@ export function queryMyTradeGoodsDeliveryOfflines(config: RequestConfig<Model.My
|
|
|
return http.commonRequest<Model.MyTradeGoodsDeliveryOfflineRsp[]>({
|
|
|
url: '/sbyj/QueryMyTradegoodsdeliveryoffline',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|
|
|
@@ -233,7 +230,7 @@ export function queryMyDeliveryofflinedetails(config: RequestConfig<Model.MyDeli
|
|
|
return http.commonRequest<Model.MyDeliveryofflinedetailRsp[]>({
|
|
|
url: '/sbyj/QueryMyDeliveryofflinedetail',
|
|
|
params: {
|
|
|
- userid: loginStore.userId,
|
|
|
+ userid: getUserId(),
|
|
|
...config.data
|
|
|
},
|
|
|
})
|