|
|
@@ -1,36 +1,38 @@
|
|
|
<template>
|
|
|
- <!-- 成交 -->
|
|
|
- <section>
|
|
|
- <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 #expandedRowRender="{ record }">
|
|
|
- <BtnList
|
|
|
- :btnList="btnList"
|
|
|
- class="btn-list-sticky"
|
|
|
- :record="record"
|
|
|
- @click="openComponent"
|
|
|
- />
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- <component
|
|
|
- :is="componentId"
|
|
|
- v-if="componentId"
|
|
|
- :selectedRow="selectedRow"
|
|
|
- @cancel="closeComponent"
|
|
|
- ></component>
|
|
|
- </section>
|
|
|
+ <!-- 成交 -->
|
|
|
+ <section>
|
|
|
+ <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 #expandedRowRender="{ record }">
|
|
|
+ <BtnList :btnList="btnList"
|
|
|
+ class="btn-list-sticky"
|
|
|
+ :record="record"
|
|
|
+ @click="openComponent" />
|
|
|
+ </template>
|
|
|
+ <!-- 成交金额 -->
|
|
|
+ <template #amount="{ record }">
|
|
|
+ <a>{{ record.tradeqty * record.tradeprice }}</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">
|
|
|
@@ -42,6 +44,7 @@ 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';
|
|
|
+import { getWrOrderTypeName } from '@/common/constants/enumsName';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: enumOrderComponents.pre_sale_warehouse_receipt_deal,
|
|
|
@@ -69,6 +72,7 @@ export default defineComponent({
|
|
|
loading,
|
|
|
tableList,
|
|
|
expandIcon,
|
|
|
+ getWrOrderTypeName,
|
|
|
};
|
|
|
},
|
|
|
});
|