|
|
@@ -25,26 +25,26 @@
|
|
|
</td>
|
|
|
<td>
|
|
|
<span class="text-small">委托状态</span>
|
|
|
- <span>{{ item.status }}</span>
|
|
|
+ <span>{{ getOrderhandleStatusName(item.status) }}</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <span class="text-small">成交价格(USDT)</span>
|
|
|
+ <span class="text-small">成交价格( {{ enumName(item.goodsid) }} )</span>
|
|
|
<span>{{ formatDecimal(item.tradeprice) }}</span>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <span class="text-small">手续费(USDT)</span>
|
|
|
+ <span class="text-small">手续费({{ enumName(item.goodsid) }})</span>
|
|
|
<span>{{ formatDecimal(item.charge) }}</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <span class="text-small">成交数量(Gold)</span>
|
|
|
+ <span class="text-small">成交数量({{ enumName(item.goodsid) }})</span>
|
|
|
<span>{{ item.tradeqty }}</span>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <span class="text-small">平仓盈亏(USDT)</span>
|
|
|
+ <span class="text-small">平仓盈亏({{ enumName(item.goodsid) }})</span>
|
|
|
<span>{{ formatDecimal(item.closepl) }}</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -56,9 +56,10 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { PropType, shallowRef } from 'vue'
|
|
|
import { formatDate, formatDecimal } from '@/filters'
|
|
|
-import { getBuyOrSellName } from '@/constants/order'
|
|
|
+import { getBuyOrSellName, getGoodsCurrencyItemName } from '@/constants/order'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryHisTradeDetail } from '@/services/api/order'
|
|
|
+import { useFuturesStore } from '@/stores'
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
|
|
|
const props = defineProps({
|
|
|
@@ -68,6 +69,7 @@ const props = defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const futuresStore = useFuturesStore()
|
|
|
const pullRefreshRef = shallowRef()
|
|
|
const dataList = shallowRef<Model.HisTradeDetailRsp[]>([])
|
|
|
|
|
|
@@ -86,6 +88,11 @@ const { loading, pageIndex, pageCount, run } = useRequest(queryHisTradeDetail, {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const enumName = (goodsid: number) => {
|
|
|
+ const item = futuresStore.getQuoteItem({ goodsid })
|
|
|
+ return item ? getGoodsCurrencyItemName(item.currencyid) : 0
|
|
|
+}
|
|
|
+
|
|
|
const onRefresh = () => {
|
|
|
run(props.params)
|
|
|
}
|