소스 검색

修改掉期市场成交单成交金额不正确的问题

Handy_Cao 1 년 전
부모
커밋
e346b66314

+ 1 - 0
src/packages/mobile/views/order/list/components/swaptrade/detail/Index.vue

@@ -12,6 +12,7 @@
                     <Cell title="类型" :value="getBuildTypeName(selectedRow.buildtype)" />
                     <Cell title="成交数量" :value="formatDecimal(selectedRow.tradeqty)" />
                     <Cell title="成交价格" :value="formatDecimal(selectedRow.tradeprice)" />
+                    <Cell title="成交金额" :value="formatDecimal(selectedRow.tradeamount)" />
                     <Cell title="手续费" :value="formatDecimal(selectedRow.charge)" />
                     <Cell title="平仓盈亏" :value="formatDecimal(selectedRow.closepl)" />
                     <Cell title="对手方" :value="tmMatchAccountID(selectedRow.matchaccountid)" />

+ 1 - 5
src/packages/pc/views/footer/swap/trade/index.vue

@@ -13,10 +13,6 @@
         <template #goodsname="{ row }">
             {{ row.goodscode }}/{{ row.goodsname }}
         </template>
-        <!-- 成交金额 -->
-        <template #tradeamount="{ row }">
-            {{ formatDecimal(row.tradeqty*row.tradeprice) }}
-        </template>
         <!-- 时间 -->
         <template #tradetime="{ value }">
             {{ formatDate(value) }}
@@ -26,7 +22,7 @@
 
 <script lang="ts" setup>
 import { shallowRef } from 'vue'
-import { formatDate, formatDecimal } from '@/filters'
+import { formatDate } from '@/filters'
 import { useRequest } from '@/hooks/request'
 import { queryTradeDetail } from '@/services/api/order'
 import { getBuildTypeName, getBuyOrSellName } from '@/constants/order'

+ 1 - 5
src/packages/pc/views/query/trade/swap/history/index.vue

@@ -26,10 +26,6 @@
         <template #goodsname="{ row }">
             {{ row.goodscode }}/{{ row.goodsname }}
         </template>
-        <!-- 成交金额 -->
-        <template #tradeamount="{ row }">
-            {{ formatDecimal(row.tradeqty * row.tradeprice) }}
-        </template>
         <!-- 时间 -->
         <template #tradetime="{ value }">
             {{ formatDate(value) }}
@@ -42,7 +38,7 @@
 
 <script lang="ts" setup>
 import { ref, computed } from 'vue'
-import { formatDate, formatDecimal, tmMatchAccountID } from '@/filters'
+import { formatDate, tmMatchAccountID } from '@/filters'
 import { useRequest } from '@/hooks/request'
 import { useDataFilter } from '@/hooks/datatable'
 import { useDateRange } from '@/hooks/date-picker'

+ 1 - 5
src/packages/pc/views/query/trade/swap/list/index.vue

@@ -17,10 +17,6 @@
         <template #goodsname="{ row }">
             {{ row.goodscode }}/{{ row.goodsname }}
         </template>
-        <!-- 成交金额 -->
-        <template #tradeamount="{ row }">
-            {{ formatDecimal(row.tradeqty*row.tradeprice) }}
-        </template>
         <!-- 成交时间 -->
         <template #tradetime="{ value }">
             {{ formatDate(value) }}
@@ -30,7 +26,7 @@
 
 <script lang="ts" setup>
 import { shallowRef } from 'vue'
-import { formatDate, formatDecimal, tmMatchAccountID } from '@/filters'
+import { formatDate, tmMatchAccountID } from '@/filters'
 import { useRequest } from '@/hooks/request'
 import { queryTradeDetail } from '@/services/api/order'
 import { getBuildTypeName, getBuyOrSellName } from '@/constants/order'