Browse Source

fixed: 摘卖,请求仓单数据

huangbin 4 năm trước cách đây
mục cha
commit
3381893b6f

+ 1 - 1
src/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_blocs/components/delisting/setup.ts

@@ -36,7 +36,7 @@ export function handleForm() {
 export function handleSpotWarrant(buyOrSell: BuyOrSell, selectedRow: QueryOrderQuoteMyqQsp, loading: Ref<boolean>) {
     const wrHoldList = ref<Wrhold[]>([])
     const allWrHoldList = ref<WrHoldLB[]>([])
-    if (buyOrSell === BuyOrSell.sell) {
+    if (buyOrSell === BuyOrSell.buy) {
         queryResultLoadingAndInfo(queryHoldLB, loading).then(res => {
             allWrHoldList.value = res
             wrHoldList.value = res.filter((e: WrHoldLB) => e.wrfactortypeid === String(selectedRow.wrfactortypeid)).map((e: WrHoldLB) => {

+ 1 - 1
src/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_blocs/components/delisting/setup.ts

@@ -38,7 +38,7 @@ export function handleForm() {
 export function handleSpotWarrant(buyOrSell: BuyOrSell, selectedRow: QueryOrderQuoteMyqQsp, loading: Ref<boolean>) {
     const wrHoldList = ref<Wrhold[]>([])
     const allWrHoldList = ref<WrHoldLB[]>([])
-    if (buyOrSell === BuyOrSell.sell) {
+    if (buyOrSell === BuyOrSell.buy) {
         queryResultLoadingAndInfo(queryHoldLB, loading).then(res => {
             allWrHoldList.value = res
             wrHoldList.value = res.filter((e: WrHoldLB) => e.wrfactortypeid === String(selectedRow.wrfactortypeid)).map((e: WrHoldLB) => {