|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 商品订单 - 成交 -->
|
|
|
|
|
- <section class="topTableHeight">
|
|
|
|
|
|
|
+ <!-- 商品订单 - 成交 -历史记录-->
|
|
|
|
|
+ <section class="topTableHeight_448 topTableHeight">
|
|
|
|
|
+ <Filter @search="search" />
|
|
|
<a-table
|
|
<a-table
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
class="srcollYTable expandLeftTable"
|
|
class="srcollYTable expandLeftTable"
|
|
@@ -45,26 +46,34 @@ import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
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 { handleNoneValue } from '@/common/setup/table/tableQuote';
|
|
|
|
|
import { queryHisTradeDetail } from '@/services/go/ermcp/order';
|
|
import { queryHisTradeDetail } from '@/services/go/ermcp/order';
|
|
|
import { QueryTradeDetailRsp } from '@/services/go/ermcp/order/interface';
|
|
import { QueryTradeDetailRsp } from '@/services/go/ermcp/order/interface';
|
|
|
-import Bus from '@/utils/eventBus/index';
|
|
|
|
|
|
|
+import Filter from '@/views/search/search_document_records_commission_record_sub/components/filter/index.vue';
|
|
|
|
|
+import { Moment } from 'moment';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: enumOrderComponents.commodity_contract_make_deal,
|
|
name: enumOrderComponents.commodity_contract_make_deal,
|
|
|
|
|
+ components: {
|
|
|
|
|
+ Filter,
|
|
|
|
|
+ },
|
|
|
setup() {
|
|
setup() {
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<QueryTradeDetailRsp>();
|
|
const { loading, tableList, queryTable } = queryTableList<QueryTradeDetailRsp>();
|
|
|
- // 获取列表数据
|
|
|
|
|
- const queryTableAction = () => {
|
|
|
|
|
- queryTable(queryHisTradeDetail, { tradeMode: TradeMode.DiaoQi.toString() });
|
|
|
|
|
- };
|
|
|
|
|
// 表格通用逻辑
|
|
// 表格通用逻辑
|
|
|
const param: ComposeOrderTableParam = {
|
|
const param: ComposeOrderTableParam = {
|
|
|
- queryFn: queryTableAction,
|
|
|
|
|
|
|
+ queryFn: () => { },
|
|
|
tableName: 'table_pcweb_spot_trade_bottom_commodity_contract_make_deal',
|
|
tableName: 'table_pcweb_spot_trade_bottom_commodity_contract_make_deal',
|
|
|
recordList: getRecordItemTab(),
|
|
recordList: getRecordItemTab(),
|
|
|
};
|
|
};
|
|
|
|
|
+ // 查询数据
|
|
|
|
|
+ const search = (value: Moment[]) => {
|
|
|
|
|
+ const param = {
|
|
|
|
|
+ enddate: value[1].format('YYYY-MM-DD'),
|
|
|
|
|
+ begindate: value[0].format('YYYY-MM-DD'),
|
|
|
|
|
+ tradeMode: TradeMode.DiaoQi.toString()
|
|
|
|
|
+ };
|
|
|
|
|
+ queryTable(queryHisTradeDetail, param);
|
|
|
|
|
+ };
|
|
|
// fix: #2063
|
|
// fix: #2063
|
|
|
function handleType(record: QueryTradeDetailRsp, value: string | number) {
|
|
function handleType(record: QueryTradeDetailRsp, value: string | number) {
|
|
|
let result: number | string = '--';
|
|
let result: number | string = '--';
|
|
@@ -73,9 +82,7 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
- Bus.$on('spotTrade', () => {
|
|
|
|
|
- queryTableAction();
|
|
|
|
|
- });
|
|
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
...handleComposeOrderTable<QueryTradeDetailRsp>(param),
|
|
...handleComposeOrderTable<QueryTradeDetailRsp>(param),
|
|
|
loading,
|
|
loading,
|
|
@@ -84,7 +91,7 @@ export default defineComponent({
|
|
|
expandIcon,
|
|
expandIcon,
|
|
|
getOrderStatusName,
|
|
getOrderStatusName,
|
|
|
getBuyOrSellTypeName,
|
|
getBuyOrSellTypeName,
|
|
|
- handleNoneValue,
|
|
|
|
|
|
|
+ search,
|
|
|
handleType,
|
|
handleType,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|