|
|
@@ -2,7 +2,7 @@
|
|
|
<template>
|
|
|
<app-table class="goods-trade" :data="tableList" v-model:columns="tableColumns" :loading="loading"
|
|
|
:summary-method="getSummaries" show-summary>
|
|
|
- <template #headerRight>
|
|
|
+ <!-- <template #headerRight>
|
|
|
<ul class="goods-trade-total">
|
|
|
<li>
|
|
|
<span>{{ t('order.qtyTotal') }}</span>
|
|
|
@@ -17,7 +17,7 @@
|
|
|
<span>{{ plTotal.toFixed(2) }}</span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<!-- 类型' -->
|
|
|
<template #buyorsell="{ value }">
|
|
|
{{ getBuyOrSellName(value) }}
|
|
|
@@ -41,14 +41,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { ref, onUnmounted, computed } from 'vue'
|
|
|
+import { ref, onUnmounted } from 'vue'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { useLocalPagination } from '@/hooks/pagination'
|
|
|
import { useComposeTable } from '@pc/components/base/table'
|
|
|
import { getBuyOrSellName, getBuildTypeName } from '@/constants/order'
|
|
|
import { queryTradeDetail } from '@/services/api/order'
|
|
|
import { formatDate, tmMatchAccountID } from '@/filters'
|
|
|
-import { i18n } from '@/stores'
|
|
|
import eventBus from '@/services/bus'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
|
|
|
@@ -59,8 +58,6 @@ const { getSummaries } = useComposeTable<Model.TradeDetailRsp>({
|
|
|
|
|
|
const { tableList, showLoadMore, initTableData, loadMore } = useLocalPagination<Model.TradeDetailRsp>()
|
|
|
|
|
|
-const { global: { t } } = i18n
|
|
|
-
|
|
|
const { dataList, loading, runAsync } = useRequest(queryTradeDetail, {
|
|
|
params: {
|
|
|
tradeMode: '50,16'
|
|
|
@@ -82,13 +79,13 @@ const tableColumns = ref<Model.TableColumn[]>([
|
|
|
])
|
|
|
|
|
|
// 数量汇总
|
|
|
-const qtyTotal = computed(() => dataList.value.reduce((pre, cur) => pre += cur.tradeqty, 0))
|
|
|
+//const qtyTotal = computed(() => dataList.value.reduce((pre, cur) => pre += cur.tradeqty, 0))
|
|
|
|
|
|
// 手续费汇总
|
|
|
-const feeTotal = computed(() => dataList.value.reduce((pre, cur) => pre += cur.charge, 0))
|
|
|
+//const feeTotal = computed(() => dataList.value.reduce((pre, cur) => pre += cur.charge, 0))
|
|
|
|
|
|
// 盈亏汇总
|
|
|
-const plTotal = computed(() => dataList.value.reduce((pre, cur) => pre += cur.closepl, 0))
|
|
|
+//const plTotal = computed(() => dataList.value.reduce((pre, cur) => pre += cur.closepl, 0))
|
|
|
|
|
|
// 接收成交通知
|
|
|
const orderDealedNtf = eventBus.$on('OrderDealedNtf', () => {
|