浏览代码

交易下单市价fix

li.shaoyi 3 年之前
父节点
当前提交
eeb23f6819

+ 3 - 0
src/views/business/purchase/list/all/index.vue

@@ -19,6 +19,9 @@
         <template #unsureqty="{ text, record }">
           <span>{{ handleEnumdic(text, record) }}</span>
         </template>
+        <template #goodsid="{ text }">
+          <span>{{ text > 0 ? '期货' : '现货' }}</span>
+        </template>
         <template #qty="{ text, record }">
           <span>{{ handleEnumdic(text, record) }}</span>
         </template>

+ 1 - 1
src/views/market/futures/compoments/futures-trade/setup.ts

@@ -77,7 +77,7 @@ export function handleForm(selectedRow: GoodsQuote) {
         BuyOrSell: 0, // uint32 买卖方向(买卖 - 0:买 1:卖 )
         ChannelBuildType: 0, // uint32 下单类型(开平标志 - 0:无 1:建仓 2:平仓)
         CloseType: 0, // uint32 平仓方式(平仓方式 - 0:无 1:平今 2:平昨)
-        PriceMode: PriceType.limit, // uint32 取价方式 - 1:市价 2: 限价
+        PriceMode: PriceType.market, // uint32 取价方式 - 1:市价 2: 限价
         TimeValidType: 1, // uint32 时间有效类型
     })