|
@@ -1,18 +1,63 @@
|
|
|
<template>
|
|
<template>
|
|
|
<!-- 订单汇总 -->
|
|
<!-- 订单汇总 -->
|
|
|
- <section class="pre_sale_warehouse_receipt_order_summary">
|
|
|
|
|
- 订单汇总
|
|
|
|
|
|
|
+ <section>
|
|
|
|
|
+ <a-table :columns="columns"
|
|
|
|
|
+ class="srcollYTable"
|
|
|
|
|
+ :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
+ :customRow="Rowclick"
|
|
|
|
|
+ rowKey="key"
|
|
|
|
|
+ :data-source="tableList">
|
|
|
|
|
+ <!-- 额外的展开行 -->
|
|
|
|
|
+ <template #expandedRowRender="{ record }">
|
|
|
|
|
+ <BtnList :btnList="btnList"
|
|
|
|
|
+ :record="record"
|
|
|
|
|
+ @click="openComponent" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ <component :is="componentId"
|
|
|
|
|
+ v-if="componentId"
|
|
|
|
|
+ :selectedRow="selectedRow"
|
|
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
</section>
|
|
</section>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent } from 'vue';
|
|
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
|
|
+import { queryTableList, BtnList, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
|
|
|
|
|
+import { queryWrPosition } from '@/services/go/wrtrade';
|
|
|
|
|
+import { QueryWrPositionReq, 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';
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: enumOrderComponents.pre_sale_warehouse_receipt_order_summary,
|
|
name: enumOrderComponents.pre_sale_warehouse_receipt_order_summary,
|
|
|
- components: {},
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ BtnList,
|
|
|
|
|
+ },
|
|
|
setup() {
|
|
setup() {
|
|
|
- return {};
|
|
|
|
|
|
|
+ // 表格列表数据
|
|
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<WrPosition>();
|
|
|
|
|
+ // 获取列表数据
|
|
|
|
|
+ const queryTableAction = () => {
|
|
|
|
|
+ const param: QueryWrPositionReq = {
|
|
|
|
|
+ querytype: 2,
|
|
|
|
|
+ };
|
|
|
|
|
+ queryTable(queryWrPosition, param);
|
|
|
|
|
+ };
|
|
|
|
|
+ // 表格通用逻辑
|
|
|
|
|
+ const param: ComposeOrderTableParam = {
|
|
|
|
|
+ queryFn: queryTableAction,
|
|
|
|
|
+ tableName: 'table_pcweb_spot_trade_bottom_spot_warrant_designated_deal',
|
|
|
|
|
+ recordList: getRecordItemTab(),
|
|
|
|
|
+ };
|
|
|
|
|
+ return {
|
|
|
|
|
+ ...handleComposeOrderTable<WrPosition>(param),
|
|
|
|
|
+ loading,
|
|
|
|
|
+ tableList,
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|