|
|
@@ -0,0 +1,55 @@
|
|
|
+<template>
|
|
|
+ <!-- 单据记录 商品合约-->
|
|
|
+ <div class="topTableHeight">
|
|
|
+ <a-table :columns="columns"
|
|
|
+ class="srcollYTable"
|
|
|
+ :scroll="{ x: '100%', y: 'calc(100vh - 479px)' }"
|
|
|
+ :pagination="false"
|
|
|
+ :loading="loading"
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
+ :customRow="Rowclick"
|
|
|
+ rowKey="key"
|
|
|
+ :data-source="tableList">
|
|
|
+ </a-table>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts">
|
|
|
+import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
+import { queryTableList, defineComponent, ComposeTableParam } from '@/common/export/commonTable';
|
|
|
+import { QueryOrderQuoteReq, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
+import { queryOrderQuote } from '@/services/go/wrtrade';
|
|
|
+import { handleComposeTable } from '@/views/market/spot_trade/setup';
|
|
|
+
|
|
|
+export default defineComponent({
|
|
|
+ name: EnumRouterName.search_financing_inquiry_apply_order,
|
|
|
+ setup() {
|
|
|
+ // 表格列表数据
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<WrOrderQuote>();
|
|
|
+ // 获取列表数据
|
|
|
+ const queryTableAction = () => {
|
|
|
+ const param: QueryOrderQuoteReq = {
|
|
|
+ wrpricetype: 1,
|
|
|
+ haswr: 0,
|
|
|
+ };
|
|
|
+ queryTable(queryOrderQuote, param);
|
|
|
+ };
|
|
|
+ // 表格通用逻辑
|
|
|
+ const param: ComposeTableParam = {
|
|
|
+ queryFn: queryTableAction,
|
|
|
+ menuType: EnumRouterName.warehouse_pre_sale_price,
|
|
|
+ tableName: 'table_pcweb_spot_trade_warehouse_sale_price',
|
|
|
+ tableFilterKey: [],
|
|
|
+ isDetail: false,
|
|
|
+ };
|
|
|
+
|
|
|
+ return {
|
|
|
+ ...handleComposeTable<WrOrderQuote>(param),
|
|
|
+ loading,
|
|
|
+ tableList,
|
|
|
+ };
|
|
|
+ },
|
|
|
+});
|
|
|
+</script>
|
|
|
+<style lang="less">
|
|
|
+</style>
|