|
|
@@ -34,11 +34,21 @@
|
|
|
</fieldset>
|
|
|
<fieldset class="g-fieldset">
|
|
|
<legend class="g-fieldset__legend">{{ t('report.ordersumary') }}</legend>
|
|
|
- <app-table :data="dpostions" v-model:columns="dpostionsTableColumns" />
|
|
|
+ <app-table :data="dpostions" v-model:columns="dpostionsTableColumns">
|
|
|
+ <!-- 买卖方向 -->
|
|
|
+ <template #buyorsell="{ value }">
|
|
|
+ {{ getBuyOrSellName(value) }}
|
|
|
+ </template>
|
|
|
+ </app-table>
|
|
|
</fieldset>
|
|
|
<fieldset class="g-fieldset">
|
|
|
<legend class="g-fieldset__legend">{{ t('report.tradedetail') }}</legend>
|
|
|
- <app-table :data="tradedetails" v-model:columns="tradeDetailsTableColumns" />
|
|
|
+ <app-table :data="tradedetails" v-model:columns="tradeDetailsTableColumns" >
|
|
|
+ <!-- 买卖方向 -->
|
|
|
+ <template #buyorsell="{ row }">
|
|
|
+ {{ getBuyOrSellName(row.buyorsell) }}/{{ getBuildTypeName(row.buildtype) }}
|
|
|
+ </template>
|
|
|
+ </app-table>
|
|
|
</fieldset>
|
|
|
<template #footer>
|
|
|
<el-button type="info" @click="show = false" v-if="!!reportAgree[agreeIndex]?.isAgree">{{ t('operation.close1') }}</el-button>
|
|
|
@@ -57,7 +67,7 @@ import { useLoginStore, useAccountStore, useUserStore, i18n } from '@/stores'
|
|
|
import { formatDate } from '@/filters'
|
|
|
import { localData } from '@/stores/storage'
|
|
|
import { queryMarketRun } from '@/services/api/market'
|
|
|
-import { getCurrencyName } from '@/constants/order'
|
|
|
+import { getCurrencyName, getBuyOrSellName, getBuildTypeName } from '@/constants/order'
|
|
|
import { queryReportBankAccountOutInLog, queryReportMonthTaaccount, queryReportReckonDayPosition, queryReportReckonDayTaaccount, queryReportTradeDetail } from '@/services/api/report'
|
|
|
import AppDrawer from '@pc/components/base/drawer/index.vue'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
@@ -224,7 +234,7 @@ const logsTableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
/// 持仓汇总
|
|
|
const dpostionsTableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
{ field: 'goodsdisplay', label: 'report.position.goodsdisplay' },
|
|
|
- { field: 'buyorselldisplay', label: 'report.position.buyorselldisplay' },
|
|
|
+ { field: 'buyorsell', label: 'report.position.buyorselldisplay' },
|
|
|
{ field: 'curpositionqty', label: 'report.position.curpositionqty' },
|
|
|
{ field: 'frozenqty', label: 'report.position.frozenqty' },
|
|
|
{ field: 'curholderamount', label: 'report.position.curholderamount' },
|
|
|
@@ -234,7 +244,7 @@ const dpostionsTableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
/// 成交明细
|
|
|
const tradeDetailsTableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
{ field: 'goodsdisplay', label: 'report.trade.goodsdisplay' },
|
|
|
- { field: 'buyorselldisplay', label: 'report.trade.buyorselldisplay', width: 100 },
|
|
|
+ { field: 'buyorsell', label: 'report.trade.buyorselldisplay', width: 100 },
|
|
|
{ field: 'tradeqty', label: 'report.trade.tradeqty', width: 80 },
|
|
|
{ field: 'tradeprice', label: 'report.trade.tradeprice', width: 80 },
|
|
|
{ field: 'tradeamount', label: 'report.trade.tradeamount', width: 100 },
|