|
|
@@ -1,27 +1,27 @@
|
|
|
<template>
|
|
|
- <!-- 委托记录 - 现货仓单 - 当前记录 -->
|
|
|
- <section class="topTableHeight_413 topTableHeight">
|
|
|
- <Filter />
|
|
|
- <a-table :columns="tableColumns" class="srcollYTable" :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>
|
|
|
- </section>
|
|
|
+ <!-- 委托记录 - 现货仓单 - 当前记录 -->
|
|
|
+ <section class="topTableHeight_413 topTableHeight">
|
|
|
+ <Filter @search="search" />
|
|
|
+ <a-table :columns="tableColumns" :class="['srcollYTable', isBottom ? 'secondTabTable' : 'secondTabTableNoBottom', tableList.length ? 'noPlaceHolder' : 'hasPlaceHolder']" :scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 407px)' : 'calc(100vh - 201px)' }" :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>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -36,49 +36,65 @@ import { queryWrOrderDetail } from '@/services/go/wrtrade';
|
|
|
import { QueryWrOrderDetailReq, WrOrderDetail } from '@/services/go/wrtrade/interface';
|
|
|
import Bus from '@/utils/eventBus';
|
|
|
import { useOrderWarrant } from '@/views/order/setup';
|
|
|
-import moment from 'moment';
|
|
|
+import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
+import moment, { Moment } from 'moment';
|
|
|
import Filter from '../../components/filter/index.vue';
|
|
|
|
|
|
export default defineComponent({
|
|
|
- name: enumOrderComponents.spot_warrant_pending_order,
|
|
|
- components: {
|
|
|
- Filter,
|
|
|
- },
|
|
|
- setup() {
|
|
|
- // 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList<WrOrderDetail>();
|
|
|
- // 获取列表数据
|
|
|
- const queryTableAction = () => {
|
|
|
- const param: QueryWrOrderDetailReq = {
|
|
|
- enddate: moment().format("YYYYMMDD"),
|
|
|
- begindate: moment().subtract(2, 'months').startOf('month').format("YYYYMMDD"),
|
|
|
- haswr: 1,
|
|
|
- }
|
|
|
- queryTable(queryWrOrderDetail, param);
|
|
|
- };
|
|
|
- Bus.$on('blocsTrade', () => {
|
|
|
- queryTableAction();
|
|
|
- });
|
|
|
+ name: enumOrderComponents.spot_warrant_pending_order,
|
|
|
+ components: {
|
|
|
+ Filter,
|
|
|
+ },
|
|
|
+ setup() {
|
|
|
+ const isBottom = getShowBottomValue();
|
|
|
|
|
|
- const { tableColumns, getWrPriceType, isShowBarginBtn, showPriceOrMove } = useOrderWarrant(1);
|
|
|
- // 表格通用逻辑
|
|
|
- const param: ComposeOrderTableParam = {
|
|
|
- queryFn: queryTableAction,
|
|
|
- recordList: getRecordItemTab(),
|
|
|
- isDetail: true,
|
|
|
- };
|
|
|
- return {
|
|
|
- ...handleComposeOrderTable<WrOrderDetail>(param),
|
|
|
- loading,
|
|
|
- tableList,
|
|
|
- getOrderStatusName,
|
|
|
- getWrOrderTypeName,
|
|
|
- expandIcon,
|
|
|
- tableColumns,
|
|
|
- getWrPriceType,
|
|
|
- showPriceOrMove,
|
|
|
- };
|
|
|
- },
|
|
|
+ // 表格列表数据
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<WrOrderDetail>();
|
|
|
+ // 获取列表数据
|
|
|
+ const queryTableAction = () => {
|
|
|
+ const param: QueryWrOrderDetailReq = {
|
|
|
+ enddate: moment().format('YYYYMMDD'),
|
|
|
+ begindate: moment().subtract(2, 'months').startOf('month').format('YYYYMMDD'),
|
|
|
+ haswr: 1,
|
|
|
+ };
|
|
|
+ queryTable(queryWrOrderDetail, param);
|
|
|
+ };
|
|
|
+
|
|
|
+ Bus.$on('blocsTrade', () => {
|
|
|
+ queryTableAction();
|
|
|
+ });
|
|
|
+
|
|
|
+ // 查询数据
|
|
|
+ const search = (value: Moment[]) => {
|
|
|
+ const param: QueryWrOrderDetailReq = {
|
|
|
+ enddate: value[1].format('YYYYMMDD'),
|
|
|
+ begindate: value[0].subtract(2, 'months').startOf('month').format('YYYYMMDD'),
|
|
|
+ haswr: 1,
|
|
|
+ };
|
|
|
+ queryTable(queryWrOrderDetail, param);
|
|
|
+ };
|
|
|
+
|
|
|
+ const { tableColumns, getWrPriceType, isShowBarginBtn, showPriceOrMove } = useOrderWarrant(1);
|
|
|
+ // 表格通用逻辑
|
|
|
+ const param: ComposeOrderTableParam = {
|
|
|
+ queryFn: queryTableAction,
|
|
|
+ recordList: getRecordItemTab(),
|
|
|
+ isDetail: true,
|
|
|
+ };
|
|
|
+ return {
|
|
|
+ ...handleComposeOrderTable<WrOrderDetail>(param),
|
|
|
+ isBottom,
|
|
|
+ loading,
|
|
|
+ tableList,
|
|
|
+ getOrderStatusName,
|
|
|
+ getWrOrderTypeName,
|
|
|
+ expandIcon,
|
|
|
+ tableColumns,
|
|
|
+ getWrPriceType,
|
|
|
+ showPriceOrMove,
|
|
|
+ search,
|
|
|
+ };
|
|
|
+ },
|
|
|
});
|
|
|
</script>
|
|
|
|