|
|
@@ -1,6 +1,10 @@
|
|
|
<!-- 挂牌点价-持仓明细 按账户风控 -->
|
|
|
<template>
|
|
|
<app-table :data="orderComputedList" v-model:columns="tableColumns" :loading="loading" v-model:error="error">
|
|
|
+ <!-- 市场名称 -->
|
|
|
+ <template #marketname="{ row }">
|
|
|
+ {{ getMarketName(row.tHDetailEx.marketID) }}
|
|
|
+ </template>
|
|
|
<!-- 商品代码/名称 -->
|
|
|
<template #goodsname="{ row }">
|
|
|
{{ row.goodsCode }}/{{ row.goodsName }}
|
|
|
@@ -58,14 +62,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, defineAsyncComponent, onUnmounted } from 'vue'
|
|
|
+import { shallowRef, defineAsyncComponent, onUnmounted, computed } from 'vue'
|
|
|
import { getBuyOrSellName } from '@/constants/order'
|
|
|
import { formatDecimal, formatDate, parsePercent, handlePriceColor } from '@/filters'
|
|
|
import { getGoodsUnitName } from '@/constants/unit'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { useLocalPagination } from '@/hooks/pagination'
|
|
|
import { useTableColumnsStore, i18n } from '@/stores'
|
|
|
-import { useSBYJOrderStore } from '@/stores'
|
|
|
+import { useSBYJOrderStore, useUserStore } from '@/stores'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import eventBus from '@/services/bus'
|
|
|
|
|
|
@@ -79,6 +83,7 @@ const selectedRow = shallowRef<Model.SBYJMyOrderRsp>()
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([])
|
|
|
const { t } = i18n.global
|
|
|
|
|
|
+const { getMarketName } = useUserStore()
|
|
|
const { getSBYJMyOrders, $toRefs } = useSBYJOrderStore()
|
|
|
const { orderComputedList, loading, error } = $toRefs()
|
|
|
|