|
@@ -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"
|
|
@@ -23,7 +24,7 @@
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import { BtnList, defineComponent, queryTableList } from '@/common/export/commonTable';
|
|
|
|
|
|
|
+import { defineComponent, queryTableList } from '@/common/export/commonTable';
|
|
|
import { formatTime } from '@/common/methods';
|
|
import { formatTime } from '@/common/methods';
|
|
|
import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
@@ -31,38 +32,37 @@ import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
import { getSelectedAccountId } from '@/services/bus/account';
|
|
import { getSelectedAccountId } from '@/services/bus/account';
|
|
|
import { QueryHisAmountLog } from '@/services/go/TaAccount';
|
|
import { QueryHisAmountLog } from '@/services/go/TaAccount';
|
|
|
-import { QueryAmountLogReq } from '@/services/go/TaAccount/interface';
|
|
|
|
|
import { WrPerformancePlan } from '@/services/go/wrtrade/interface';
|
|
import { WrPerformancePlan } from '@/services/go/wrtrade/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: EnumRouterName.search_capital_flow_tab,
|
|
name: EnumRouterName.search_capital_flow_tab,
|
|
|
components: {
|
|
components: {
|
|
|
- BtnList,
|
|
|
|
|
|
|
+ Filter,
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<WrPerformancePlan>();
|
|
const { loading, tableList, queryTable } = queryTableList<WrPerformancePlan>();
|
|
|
- // 获取列表数据
|
|
|
|
|
- const queryTableAction = () => {
|
|
|
|
|
- const param: QueryAmountLogReq = {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 查询数据
|
|
|
|
|
+ const search = (value: Moment[]) => {
|
|
|
|
|
+ const param = {
|
|
|
|
|
+ endDate: value[1].format('YYYY-MM-DD'),
|
|
|
|
|
+ startDate: value[0].format('YYYY-MM-DD'),
|
|
|
accountID: getSelectedAccountId().toString(),
|
|
accountID: getSelectedAccountId().toString(),
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
queryTable(QueryHisAmountLog, param);
|
|
queryTable(QueryHisAmountLog, param);
|
|
|
};
|
|
};
|
|
|
// 表格通用逻辑
|
|
// 表格通用逻辑
|
|
|
const param: ComposeOrderTableParam = {
|
|
const param: ComposeOrderTableParam = {
|
|
|
- queryFn: queryTableAction,
|
|
|
|
|
|
|
+ queryFn: () => { },
|
|
|
tableName: 'table_pcweb_spot_trade_bottom_funding_info_log',
|
|
tableName: 'table_pcweb_spot_trade_bottom_funding_info_log',
|
|
|
recordList: getRecordItemTab(),
|
|
recordList: getRecordItemTab(),
|
|
|
};
|
|
};
|
|
|
- // 资金变化,重新加载数据
|
|
|
|
|
- Bus.$on('moneyChangedNtf_UI', () => {
|
|
|
|
|
- queryTableAction();
|
|
|
|
|
- });
|
|
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
...handleComposeOrderTable<WrPerformancePlan>(param),
|
|
...handleComposeOrderTable<WrPerformancePlan>(param),
|
|
|
|
|
+ search,
|
|
|
loading,
|
|
loading,
|
|
|
tableList,
|
|
tableList,
|
|
|
formatTime,
|
|
formatTime,
|