|
|
@@ -1,29 +1,35 @@
|
|
|
<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"
|
|
|
- >
|
|
|
- <!-- 委托状态-->
|
|
|
- <template #wrtradeorderstatus="{ record }">
|
|
|
- <a>{{ getOrderStatusName(record.wrtradeorderstatus) }}</a>
|
|
|
- </template>
|
|
|
- <!-- 挂牌类型 -->
|
|
|
- <template #wrtradetype="{ record }">
|
|
|
- <a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- </div>
|
|
|
+ <!-- 单据记录 预售仓单 委托记录 -->
|
|
|
+ <div class="topTableHeight">
|
|
|
+ <a-table :columns="tableColumns"
|
|
|
+ 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 #wrtradeorderstatus="{ record }">
|
|
|
+ <a>{{ getOrderStatusName(record.wrtradeorderstatus) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 挂牌类型 -->
|
|
|
+ <template #wrtradetype="{ record }">
|
|
|
+ <a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 挂牌方式 -->
|
|
|
+ <template #wrpricetype="{ record }">
|
|
|
+ <span>{{ getWrPriceType(record) }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 价格/基差 -->
|
|
|
+ <template #futushow="{ record }">
|
|
|
+ <span>{{ showPriceOrMove(record) }}</span>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -38,12 +44,14 @@ import { getWrOrderTypeName, getOrderStatusName } from '@/common/constants/enums
|
|
|
import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
+import { useOrderWarrant } from '@/views/order/setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: EnumRouterName.search_pre_sale_warehouse_receipt_commission_record,
|
|
|
setup() {
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<WrOrderDetail>();
|
|
|
+ const { tableColumns, getWrPriceType, isShowBarginBtn, showPriceOrMove } = useOrderWarrant(0);
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
|
const param: QueryWrOrderDetailReq = {
|
|
|
@@ -64,6 +72,10 @@ export default defineComponent({
|
|
|
expandIcon,
|
|
|
getOrderStatusName,
|
|
|
getWrOrderTypeName,
|
|
|
+ tableColumns,
|
|
|
+ getWrPriceType,
|
|
|
+ isShowBarginBtn,
|
|
|
+ showPriceOrMove,
|
|
|
};
|
|
|
},
|
|
|
});
|