Handy_Cao 2 年之前
父节点
当前提交
de97a9162e

+ 7 - 2
src/packages/pc/views/footer/swap/order/index.vue

@@ -6,10 +6,14 @@
         <template #wrtradetype="{ row }">
             {{ row.goodscode }}/{{ row.goodsname }}
         </template>
-        <!-- 方向 -->
-        <template #buyorsell="{ value }">
+         <!-- 方向 -->
+         <template #buyorsell="{ value }">
             {{ getBuyOrSellName(value) }}
         </template>
+        <!-- 类型 -->
+        <template #pricemode="{ value }">
+            {{ value === 2 ? '固定价' : '浮动价' }}
+        </template>
         <!-- 委托状态 -->
         <template #orderstatus="{ value }">
             {{ getWRTradeOrderStatusName(value) }}
@@ -63,6 +67,7 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
     { prop: 'orderid', label: '委托单号' },
     { prop: 'goodsname', label: '商品代码/名称' },
     { prop: 'buyorsell', label: '方向' },
+    { prop: 'pricemode', label: '类型' },
     { prop: 'orderqty', label: '委托数量' },
     { prop: 'orderprice', label: '委托价格' },
     { prop: 'tradeqty', label: '成交数量' },

+ 9 - 1
src/packages/pc/views/market/trade/swap/detail/order/delisting/index.vue

@@ -20,6 +20,12 @@
             <el-form-item label="挂牌价格">
                 <span>{{ selectedRow.orderprice }}</span>
             </el-form-item>
+            <el-form-item label="卖出价格" v-if="selectedRow.pricemode === 3" prop="PriceMode">
+                <el-radio-group v-model="priceMode">
+                    <el-radio :label="1">市价</el-radio>
+                    <el-radio :label="2">限价</el-radio>
+                </el-radio-group>
+            </el-form-item>
             <el-form-item label="可摘数量">
                 <span>{{ selectedRow.orderqty }}</span>
             </el-form-item>
@@ -84,6 +90,8 @@ const userStore = useUserStore()
 
 /// 价格类型
 const priceMove = shallowRef(props.selectedRow.pricemode)
+/// 价格类型
+const priceMode = shallowRef(EPriceMode.PRICEMODE_MARKET)
 /// 挂牌金额
 const amount = shallowRef(0.0)
 /// 履约保证金
@@ -187,7 +195,7 @@ const onSubmit = (buildType: number) => {
 
                 /// 获取对应的市场ID
                 formData.MarketID = marketid
-                formData.PriceMode = priceMove.value === EPriceMode.PRICEMODE_LIMIT ? EPriceMode.PRICEMODE_LIMIT : EPriceMode.PRICEMODE_MARKET
+                formData.PriceMode = priceMove.value === EPriceMode.PRICEMODE_LIMIT ? EPriceMode.PRICEMODE_LIMIT : priceMode.value
                 formData.RelatedID = handleRequestBigNumber(orderid)
                 formData.BuyOrSell = buyorsell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
                 formData.GoodsID = goodsid

+ 8 - 0
src/packages/pc/views/market/trade/swap/detail/order/index.vue

@@ -74,6 +74,14 @@ const { dataList: sellList, run: getSellList } = useRequest(queryTjmdTradeOrderD
     },
 })
 
+/// 每隔 30 秒去刷新请求数据信息
+setTimeout(() => {
+    // 获取买大厅数据
+    getBuyList()
+    // 获取卖大厅数据
+    getSellList()
+}, 30*1000)
+
 const buyColumns = shallowRef<Model.TableColumn[]>([
     { prop: 'orderprice', label: '买价' },
     { prop: 'orderqty', label: '买量' },

+ 5 - 0
src/packages/pc/views/query/order/swap/history/index.vue

@@ -13,6 +13,10 @@
          <template #buyorsell="{ value }">
             {{ getBuyOrSellName(value) }}
         </template>
+        <!-- 类型 -->
+        <template #pricemode="{ value }">
+            {{ value === 2 ? '固定价' : '浮动价' }}
+        </template>
         <!-- 商品代码/名称 -->
         <template #goodsname="{ row }">
             {{ row.goodscode }}/{{ row.goodsname }}
@@ -56,6 +60,7 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
     { prop: 'orderid', label: '委托单号' },
     { prop: 'goodsname', label: '商品代码/名称' },
     { prop: 'buyorsell', label: '方向' },
+    { prop: 'pricemode', label: '类型' },
     { prop: 'orderqty', label: '委托数量' },
     { prop: 'orderprice', label: '委托价格' },
     { prop: 'tradeqty', label: '成交数量' },

+ 5 - 0
src/packages/pc/views/query/order/swap/list/index.vue

@@ -5,6 +5,10 @@
         <template #buyorsell="{ value }">
             {{ getBuyOrSellName(value) }}
         </template>
+        <!-- 类型 -->
+        <template #pricemode="{ value }">
+            {{ value === 2 ? '固定价' : '浮动价' }}
+        </template>
         <!-- 商品代码/名称 -->
         <template #goodsname="{ row }">
             {{ row.goodscode }}/{{ row.goodsname }}
@@ -38,6 +42,7 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
     { prop: 'orderid', label: '委托单号' },
     { prop: 'goodsname', label: '商品代码/名称' },
     { prop: 'buyorsell', label: '方向' },
+    { prop: 'pricemode', label: '类型' },
     { prop: 'orderqty', label: '委托数量' },
     { prop: 'orderprice', label: '委托价格' },
     { prop: 'tradeqty', label: '成交数量' },