|
@@ -1,8 +1,20 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 委托记录 - 现货仓单 - 当前记录 -->
|
|
|
|
|
- <section class="topTableHeight_413 topTableHeight">
|
|
|
|
|
|
|
+ <!-- 委托记录 - 现货仓单 - 历史记录 -->
|
|
|
|
|
+ <section class="topTableHeight_448 topTableHeight">
|
|
|
<Filter @search="search" />
|
|
<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">
|
|
|
|
|
|
|
+ <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 }">
|
|
<template #wrtradeorderstatus="{ record }">
|
|
|
<a>{{ getOrderStatusName(record.wrtradeorderstatus) }}</a>
|
|
<a>{{ getOrderStatusName(record.wrtradeorderstatus) }}</a>
|
|
@@ -25,6 +37,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
|
|
+import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import { getOrderStatusName, getWrOrderTypeName } from '@/common/constants/enumsName';
|
|
import { getOrderStatusName, getWrOrderTypeName } from '@/common/constants/enumsName';
|
|
|
import { defineComponent, queryTableList } from '@/common/export/commonTable';
|
|
import { defineComponent, queryTableList } from '@/common/export/commonTable';
|
|
@@ -33,11 +46,9 @@ import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
import { queryWrOrderDetail } from '@/services/go/wrtrade';
|
|
import { queryWrOrderDetail } from '@/services/go/wrtrade';
|
|
|
-import { QueryWrOrderDetailReq, WrOrderDetail } from '@/services/go/wrtrade/interface';
|
|
|
|
|
-import Bus from '@/utils/eventBus';
|
|
|
|
|
|
|
+import { WrOrderDetail } from '@/services/go/wrtrade/interface';
|
|
|
import { useOrderWarrant } from '@/views/order/setup';
|
|
import { useOrderWarrant } from '@/views/order/setup';
|
|
|
-import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
|
|
-import moment, { Moment } from 'moment';
|
|
|
|
|
|
|
+import { Moment } from 'moment';
|
|
|
import Filter from '../../components/filter/index.vue';
|
|
import Filter from '../../components/filter/index.vue';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -50,25 +61,12 @@ export default defineComponent({
|
|
|
|
|
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<WrOrderDetail>();
|
|
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 search = (value: Moment[]) => {
|
|
|
- const param: QueryWrOrderDetailReq = {
|
|
|
|
|
|
|
+ const param = {
|
|
|
enddate: value[1].format('YYYYMMDD'),
|
|
enddate: value[1].format('YYYYMMDD'),
|
|
|
- begindate: value[0].subtract(2, 'months').startOf('month').format('YYYYMMDD'),
|
|
|
|
|
|
|
+ begindate: value[0].format('YYYYMMDD'),
|
|
|
haswr: 1,
|
|
haswr: 1,
|
|
|
};
|
|
};
|
|
|
queryTable(queryWrOrderDetail, param);
|
|
queryTable(queryWrOrderDetail, param);
|
|
@@ -77,7 +75,7 @@ export default defineComponent({
|
|
|
const { tableColumns, getWrPriceType, isShowBarginBtn, showPriceOrMove } = useOrderWarrant(1);
|
|
const { tableColumns, getWrPriceType, isShowBarginBtn, showPriceOrMove } = useOrderWarrant(1);
|
|
|
// 表格通用逻辑
|
|
// 表格通用逻辑
|
|
|
const param: ComposeOrderTableParam = {
|
|
const param: ComposeOrderTableParam = {
|
|
|
- queryFn: queryTableAction,
|
|
|
|
|
|
|
+ queryFn: () => { },
|
|
|
recordList: getRecordItemTab(),
|
|
recordList: getRecordItemTab(),
|
|
|
isDetail: true,
|
|
isDetail: true,
|
|
|
};
|
|
};
|