|
|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<!-- 成交记录 - 现货仓单 - 历史记录-->
|
|
|
- <div class="topTableHeight">
|
|
|
+ <section class="topTableHeight">
|
|
|
<a-table
|
|
|
:columns="columns"
|
|
|
class="srcollYTable expandLeftTable"
|
|
|
- :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }"
|
|
|
+ :scroll="{ x: '100%', y: '190px' }"
|
|
|
:pagination="false"
|
|
|
:loading="loading"
|
|
|
:expandedRowKeys="expandedRowKeys"
|
|
|
@@ -16,51 +16,53 @@
|
|
|
>
|
|
|
<!-- 成交金额 -->
|
|
|
<template #amount="{ record }">
|
|
|
- <a>{{ record.tradeqty * record.tradeprice }}</a>
|
|
|
- </template>
|
|
|
- <template #wrtradedetailid="{ record }">
|
|
|
- <span>{{ record.wrtradeorderid }}</span>
|
|
|
- </template>
|
|
|
- <template #tradetime="{ record }">
|
|
|
- <span>{{ record.ordertime }}</span>
|
|
|
+ <a>{{ (record.tradeqty * record.tradeprice).toFixed(2) }}</a>
|
|
|
</template>
|
|
|
+
|
|
|
<!-- 挂牌类型 -->
|
|
|
<template #wrtradetype="{ record }">
|
|
|
<a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
</template>
|
|
|
</a-table>
|
|
|
- </div>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
+import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import { getWrOrderTypeName } from '@/common/constants/enumsName';
|
|
|
import { defineComponent, queryTableList } from '@/common/export/commonTable';
|
|
|
+import { TableKey } from '@/common/methods/table/interface';
|
|
|
import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
import { queryWrTradeDetail } from '@/services/go/wrtrade';
|
|
|
-import { QueryWrSpecialMatchOrderReq, WrSpecialMatchOrder } from '@/services/go/wrtrade/interface';
|
|
|
+import { QueryWrTradeDetailReq, WrSpecialMatchOrder } from '@/services/go/wrtrade/interface';
|
|
|
+import moment from 'moment';
|
|
|
|
|
|
export default defineComponent({
|
|
|
- name: EnumRouterName.search_spot_warrant_transaction_record,
|
|
|
+ name: enumOrderComponents.spot_warrant_deal,
|
|
|
+
|
|
|
setup() {
|
|
|
+ const tableName: keyof TableKey = 'table_pcweb_spot_trade_bottom_spot_warrant_deal';
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<WrSpecialMatchOrder>();
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
|
- const param: QueryWrSpecialMatchOrderReq = {
|
|
|
+ const param: QueryWrTradeDetailReq = {
|
|
|
+ enddate: moment().format("YYYYMMDD"),
|
|
|
+ begindate: moment().subtract(2, 'months').startOf('month').format("YYYYMMDD"),
|
|
|
haswr: 1,
|
|
|
- };
|
|
|
+ }
|
|
|
queryTable(queryWrTradeDetail, param);
|
|
|
};
|
|
|
// 表格通用逻辑
|
|
|
const param: ComposeOrderTableParam = {
|
|
|
+ tableName,
|
|
|
queryFn: queryTableAction,
|
|
|
- tableName: 'table_pcweb_spot_trade_bottom_spot_warrant_deal',
|
|
|
recordList: getRecordItemTab(),
|
|
|
};
|
|
|
+
|
|
|
return {
|
|
|
...handleComposeOrderTable<WrSpecialMatchOrder>(param),
|
|
|
loading,
|