huangbin 4 lat temu
rodzic
commit
2051725f28

+ 1 - 1
src/services/socket/quota/adapter/index.ts

@@ -129,7 +129,7 @@ export function parseReceivePush(quotationData: any) {
                 const fn = (value: number) => +(value / num).toFixed(decimalplace)
                 goodsQuoteTik.decimalplace = decimalplace
                 goodsQuoteTik.last = goodsQuoteTik.last ? fn(goodsQuoteTik.last) : '--'
-                goodsQuoteTik.presettle = goodsQuoteTik.presettle ? (fn(goodsQuoteTik.presettle)) : '--'
+                // goodsQuoteTik.presettle = goodsQuoteTik.presettle ? (fn(goodsQuoteTik.presettle)) : '--'
                 goodsQuoteTik.ask = goodsQuoteTik.ask ? (fn(goodsQuoteTik.ask)) : '--'
                 goodsQuoteTik.ask2 = goodsQuoteTik.ask2 ? (fn(goodsQuoteTik.ask2)) : '--'
                 goodsQuoteTik.ask3 = goodsQuoteTik.ask3 ? (fn(goodsQuoteTik.ask3)) : '--'

+ 4 - 4
src/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/setup.ts

@@ -75,10 +75,10 @@ export const columnsList = [
 
     { title: '标的合约', key: 'refgoodsname' },
 
-    { title: '买价', key: 'bid' },
-    { title: '买量', key: 'bidvolume' },
-    { title: '卖价', key: 'ask' },
-    { title: '卖量', key: 'askvolume' },
+    // { title: '买价', key: 'bid' },
+    // { title: '买量', key: 'bidvolume' },
+    // { title: '卖价', key: 'ask' },
+    // { title: '卖量', key: 'askvolume' },
 
     { title: '当前价', key: 'last' },
     { title: '涨跌', key: 'change' }, // 最新价 - 昨结价

+ 6 - 0
src/views/order/commodity_contract/components/commodity_contract_summary/components/commodity_contract_summary_deal_closed/setup.ts

@@ -45,5 +45,11 @@ export function useCheckd() {
 
 // 计算盈亏
 export function useProfit(item: BargainList) {
+    const { buyorsell, holderprice, agreeunit, holderqty } = item
+    // let result = '--'
+    // if(buyorsell === BuyOrSell.buy) {
 
+    // } else {
+
+    // }
 }