|
|
@@ -1,32 +1,39 @@
|
|
|
<template>
|
|
|
- <!-- 单据记录 预售仓单 成交记录 -->
|
|
|
- <div class="topTableHeight">
|
|
|
- <a-table
|
|
|
- :columns="columns"
|
|
|
- class="srcollYTable expandLeftTable"
|
|
|
- :scroll="{ x: '100%', y: '190px' }"
|
|
|
- :pagination="false"
|
|
|
- :loading="loading"
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
- :customRow="Rowclick"
|
|
|
- :expandIcon="expandIcon"
|
|
|
- :expandIconAsCell="false"
|
|
|
- rowKey="key"
|
|
|
- :data-source="tableList"
|
|
|
- ></a-table>
|
|
|
- </div>
|
|
|
+ <!-- 单据记录 预售仓单 成交记录 -->
|
|
|
+ <div class="topTableHeight">
|
|
|
+ <a-table :columns="columns"
|
|
|
+ class="srcollYTable expandLeftTable"
|
|
|
+ :scroll="{ x: '100%', y: '190px' }"
|
|
|
+ :pagination="false"
|
|
|
+ :loading="loading"
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
+ :customRow="Rowclick"
|
|
|
+ :expandIcon="expandIcon"
|
|
|
+ :expandIconAsCell="false"
|
|
|
+ rowKey="key"
|
|
|
+ :data-source="tableList">
|
|
|
+ <!-- 成交金额 -->
|
|
|
+ <template #amount="{ record }">
|
|
|
+ <a>{{ (record.tradeqty * record.tradeprice).toFixed(2) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 挂牌类型 -->
|
|
|
+ <template #wrtradetype="{ record }">
|
|
|
+ <a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
-import { queryTableList, BtnList, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
|
|
|
-import { queryWrTradeDetail } from '@/services/go/wrtrade';
|
|
|
-import { QueryWrSpecialMatchOrderReq, WrSpecialMatchOrder } from '@/services/go/wrtrade/interface';
|
|
|
+import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
+import { getWrOrderTypeName } from '@/common/constants/enumsName';
|
|
|
+import { defineComponent, queryTableList } from '@/common/export/commonTable';
|
|
|
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 { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
-import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
+import { queryWrTradeDetail } from '@/services/go/wrtrade';
|
|
|
+import { QueryWrSpecialMatchOrderReq, WrSpecialMatchOrder } from '@/services/go/wrtrade/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: EnumRouterName.search_pre_sale_warehouse_receipt_transaction_record,
|
|
|
@@ -51,6 +58,7 @@ export default defineComponent({
|
|
|
loading,
|
|
|
tableList,
|
|
|
expandIcon,
|
|
|
+ getWrOrderTypeName,
|
|
|
};
|
|
|
},
|
|
|
});
|