|
|
@@ -1,78 +1,78 @@
|
|
|
<template>
|
|
|
- <!-- 仓单预售 挂单 -->
|
|
|
- <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>
|
|
|
- <!-- 委托状态-->
|
|
|
- <template #wrtradeorderstatus="{ record }">
|
|
|
- <a>{{ getWrTradeOrderStatusName(record.wrtradeorderstatus) }}</a>
|
|
|
- </template>
|
|
|
- <!-- 挂牌类型 -->
|
|
|
- <template #wrtradetype="{ record }">
|
|
|
- <a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- <component :is="componentId"
|
|
|
- v-if="componentId"
|
|
|
- :selectedRow="selectedRow"
|
|
|
- @cancel="closeComponent"></component>
|
|
|
- </section>
|
|
|
+ <!-- 仓单预售 挂单 -->
|
|
|
+ <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>
|
|
|
+ <!-- 委托状态-->
|
|
|
+ <template #wrtradeorderstatus="{ record }">
|
|
|
+ <a>{{ getWrTradeOrderStatusName(record.wrtradeorderstatus) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 挂牌类型 -->
|
|
|
+ <template #wrtradetype="{ record }">
|
|
|
+ <a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ <component :is="componentId"
|
|
|
+ v-if="componentId"
|
|
|
+ :selectedRow="selectedRow"
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
- import {enumOrderComponents} from '@/common/constants/enumOrderComponents';
|
|
|
- import {queryTableList, BtnList, defineAsyncComponent, defineComponent} from '@/common/export/commonTable';
|
|
|
- import {queryWrOrderDetail} from '@/services/go/wrtrade';
|
|
|
- import {QueryWrOrderDetailReq, WrOrderDetail} 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 {getWrOrderTypeName, getWrTradeOrderStatusName} from "@/common/constants/enumsName";
|
|
|
+import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
+import { queryTableList, BtnList, defineAsyncComponent, defineComponent, ModalEnum } from '@/common/export/commonTable';
|
|
|
+import { queryWrOrderDetail } from '@/services/go/wrtrade';
|
|
|
+import { QueryWrOrderDetailReq, WrOrderDetail } 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 { getWrOrderTypeName, getWrTradeOrderStatusName } from '@/common/constants/enumsName';
|
|
|
|
|
|
- export default defineComponent({
|
|
|
- name: enumOrderComponents.pre_sale_warehouse_receipt_pending_order,
|
|
|
- components: {
|
|
|
- BtnList,
|
|
|
- },
|
|
|
- setup() {
|
|
|
- // 表格列表数据
|
|
|
- const {loading, tableList, queryTable} = queryTableList<WrOrderDetail>();
|
|
|
- // 获取列表数据
|
|
|
- const queryTableAction = () => {
|
|
|
- const param: QueryWrOrderDetailReq = {
|
|
|
- haswr: 0,
|
|
|
- };
|
|
|
- queryTable(queryWrOrderDetail, param);
|
|
|
+export default defineComponent({
|
|
|
+ name: enumOrderComponents.pre_sale_warehouse_receipt_pending_order,
|
|
|
+ components: {
|
|
|
+ BtnList,
|
|
|
+ [ModalEnum.pre_sale_warehouse_receipt_pending_order_cancel_order]: defineAsyncComponent(() => import('./components/cancle/index.vue')),
|
|
|
+ },
|
|
|
+ setup() {
|
|
|
+ // 表格列表数据
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<WrOrderDetail>();
|
|
|
+ // 获取列表数据
|
|
|
+ const queryTableAction = () => {
|
|
|
+ const param: QueryWrOrderDetailReq = {
|
|
|
+ haswr: 0,
|
|
|
};
|
|
|
- // 表格通用逻辑
|
|
|
- const param: ComposeOrderTableParam = {
|
|
|
- queryFn: queryTableAction,
|
|
|
- tableName: 'table_pcweb_spot_trade_bottom_pre_sale_pending_order',
|
|
|
- recordList: getRecordItemTab(),
|
|
|
- };
|
|
|
- return {
|
|
|
- ...handleComposeOrderTable<WrOrderDetail>(param),
|
|
|
- loading,
|
|
|
- tableList,
|
|
|
- getWrTradeOrderStatusName,
|
|
|
- getWrOrderTypeName,
|
|
|
- };
|
|
|
- },
|
|
|
- });
|
|
|
+ queryTable(queryWrOrderDetail, param);
|
|
|
+ };
|
|
|
+ // 表格通用逻辑
|
|
|
+ const param: ComposeOrderTableParam = {
|
|
|
+ queryFn: queryTableAction,
|
|
|
+ tableName: 'table_pcweb_spot_trade_bottom_pre_sale_pending_order',
|
|
|
+ recordList: getRecordItemTab(),
|
|
|
+ };
|
|
|
+ return {
|
|
|
+ ...handleComposeOrderTable<WrOrderDetail>(param),
|
|
|
+ loading,
|
|
|
+ tableList,
|
|
|
+ getWrTradeOrderStatusName,
|
|
|
+ getWrOrderTypeName,
|
|
|
+ };
|
|
|
+ },
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|