<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>
</template>

<script lang="ts">
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
import { EnumRouterName } from '@/common/constants/enumRouterName';
import { queryTableList, BtnList, contextMenu, defineAsyncComponent, defineComponent, ModalEnum, ComposeTableParam, handleComposeTable } from '@/common/export/commonTable';
import { queryHoldLB, queryWrOrderDetail, queryWrPosition } from '@/services/go/wrtrade';
import { QueryHoldLBReq, QueryWrOrderDetailReq, QueryWrPositionReq, WrHoldLB, WrOrderDetail, WrPosition } from '@/services/go/wrtrade/interface';
import { getRecordItemTab } from '@/common/setup/order/orderData';
import { handleComposeOrderTable } from '@/common/setup/table/compose';
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
import { expandIcon } from '@/common/setup/table/clolumn';
export default defineComponent({
    name: EnumRouterName.search_spot_warrant_warehouse_receipt_details,
    setup() {
        // 表格列表数据
        const { loading, tableList, queryTable } = queryTableList<WrHoldLB>();
        // 获取列表数据
        const queryTableAction = () => {
            queryTable(queryHoldLB);
        };
        // 表格通用逻辑
        const param: ComposeOrderTableParam = {
            queryFn: queryTableAction,
            tableName: 'table_pcweb_spot_trade_bottom_spot_warrant_spot_detail',
            recordList: getRecordItemTab(),
        };
        return {
            ...handleComposeOrderTable<WrHoldLB>(param),
            loading,
            tableList,
            expandIcon,
        };
    },
});
</script>

<style lang="less">
</style>;
