Commit 40be5232 authored by lxd's avatar lxd

feat: 问题修复

parent 5a1335dc
...@@ -91,6 +91,14 @@ const ReconciliationQuery = () => { ...@@ -91,6 +91,14 @@ const ReconciliationQuery = () => {
setloading(false); setloading(false);
} }
}; };
const queryData = async params => {
const { current, pageSize } = params;
setpages({ current, pageSize });
setselectedRowKeys([]);
setselectedRows([]);
const data = await query({ ...params });
return data;
};
const gather = { const gather = {
onDownload, onDownload,
...@@ -134,11 +142,7 @@ const ReconciliationQuery = () => { ...@@ -134,11 +142,7 @@ const ReconciliationQuery = () => {
<PageHeaderWrapper> <PageHeaderWrapper>
<ProTable <ProTable
actionRef={actionRef} actionRef={actionRef}
request={params => { request={params => queryData(params)}
const { current, pageSize } = params;
setpages({ current, pageSize });
return query({ ...params });
}}
columns={columns(pages)} columns={columns(pages)}
rowKey={r => r.id} rowKey={r => r.id}
search={{ search={{
......
...@@ -4,7 +4,7 @@ import { Button } from 'antd'; ...@@ -4,7 +4,7 @@ import { Button } from 'antd';
export const dateStateEnum = { export const dateStateEnum = {
1: { text: '一周', maxlength: 8 }, 1: { text: '一周', maxlength: 8 },
2: { text: '半个月', maxlength: 4 }, 2: { text: '半个月', maxlength: 4 },
3: { text: '个月', maxlength: 2 }, 3: { text: '个月', maxlength: 2 },
}; };
export const orderStateNum = { export const orderStateNum = {
......
...@@ -74,7 +74,6 @@ const SettlementSheet = () => { ...@@ -74,7 +74,6 @@ const SettlementSheet = () => {
notification.error({ message: '账单周期不连续' }); notification.error({ message: '账单周期不连续' });
return false; return false;
}; };
const onSelectChange = (selectedRowKeys, selectedRows) => { const onSelectChange = (selectedRowKeys, selectedRows) => {
if (selectedRowsList.length > selectedRows.length) { if (selectedRowsList.length > selectedRows.length) {
setselectedRowKeys(selectedRowKeys); setselectedRowKeys(selectedRowKeys);
...@@ -99,6 +98,14 @@ const SettlementSheet = () => { ...@@ -99,6 +98,14 @@ const SettlementSheet = () => {
setloading(false); setloading(false);
} }
}; };
const queryData = async params => {
const { current, pageSize } = params;
setpages({ current, pageSize });
setselectedRowKeys([]);
setselectedRows([]);
const data = await query({ ...params });
return data;
};
const onToolBarRender = toolBarRender(paymentOrder); const onToolBarRender = toolBarRender(paymentOrder);
...@@ -140,11 +147,7 @@ const SettlementSheet = () => { ...@@ -140,11 +147,7 @@ const SettlementSheet = () => {
<PageHeaderWrapper> <PageHeaderWrapper>
<ProTable <ProTable
actionRef={actionRef} actionRef={actionRef}
request={params => { request={params => queryData(params)}
const { current, pageSize } = params;
setpages({ current, pageSize });
return query({ ...params });
}}
columns={columns(pages)} columns={columns(pages)}
rowKey={r => r.settleBatchNo} rowKey={r => r.settleBatchNo}
search={{ search={{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment