Handy_Cao пре 2 година
родитељ
комит
c3c43e37ce

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

@@ -102,6 +102,14 @@ const { dataList: buyList, run: getBuyList } = useRequest(queryTjmdTradeOrderDet
     },
 })
 
+const { dataList: sellList, run: getSellList } = useRequest(queryTjmdTradeOrderDetail, {
+    params: {
+        pagesize: 20,
+        goodsid: props.goodsId,
+        buyorsell: BuyOrSell.Sell
+    },
+})
+
 const onDelisting = (row: Model.TjmdTradeOrderDetailRsp) => {
     switch (status(row)) {
         case 4: /// 已签署
@@ -117,14 +125,6 @@ const onDelisting = (row: Model.TjmdTradeOrderDetailRsp) => {
     }
 }
 
-const { dataList: sellList, run: getSellList } = useRequest(queryTjmdTradeOrderDetail, {
-    params: {
-        pagesize: 20,
-        goodsid: props.goodsId,
-        buyorsell: BuyOrSell.Sell
-    },
-})
-
 /// 每隔 30 秒去刷新请求数据信息
 setTimeout(() => {
     // 获取买大厅数据

+ 2 - 2
src/packages/pc/views/market/trade/swap/detail/order/protocol/index.vue

@@ -1,7 +1,7 @@
 <!-- 掉期市场 - 买卖大厅 - 合同签署 -->
 <template>
-    <app-drawer title="实名认证" v-model:show="show" :refresh="refresh">
-        <div class="g-text-message">请前往手机App进行合同签署</div>
+    <app-drawer title="合同签署" v-model:show="show" :refresh="refresh">
+        <div class="g-text-message">请前往手机App进行合同签署操作!</div>
         <template #footer>
             <el-button type="info" @click="onCancel(false)">确认</el-button>
         </template>

+ 2 - 0
src/services/api/swap/index.ts

@@ -1,6 +1,7 @@
 import { useLoginStore, useUserStore } from '@/stores'
 import http from '@/services/http'
 import { RequestConfig } from '@/services/http/types'
+import { getMemberUserId } from '@/services/methods/user'
 
 const loginStore = useLoginStore()
 const userStore = useUserStore()
@@ -54,6 +55,7 @@ export function queryTjmdTradeOrderDetail(config: RequestConfig<Model.TjmdTradeO
         params: {
             userid: loginStore.userId,
             usertype: userStore.userType,
+            memberuserid: getMemberUserId(),
             ...config.data
         },
     })

+ 2 - 1
src/types/model/swap.d.ts

@@ -257,7 +257,8 @@ declare namespace Model {
         goodsid: number
         /// 买卖方向 0-买 1-卖
         buyorsell?: number
-        
+        /// 所属会员ID,传入后会将此机构的单放在最前面,主要给麦顿使用
+        memberuserid?: number
     }
 
     /** 查询掉期买卖大厅 响应 */