Commit 40be5232 authored by lxd's avatar lxd

feat: 问题修复

parent 5a1335dc
......@@ -91,6 +91,14 @@ const ReconciliationQuery = () => {
setloading(false);
}
};
const queryData = async params => {
const { current, pageSize } = params;
setpages({ current, pageSize });
setselectedRowKeys([]);
setselectedRows([]);
const data = await query({ ...params });
return data;
};
const gather = {
onDownload,
......@@ -134,11 +142,7 @@ const ReconciliationQuery = () => {
<PageHeaderWrapper>
<ProTable
actionRef={actionRef}
request={params => {
const { current, pageSize } = params;
setpages({ current, pageSize });
return query({ ...params });
}}
request={params => queryData(params)}
columns={columns(pages)}
rowKey={r => r.id}
search={{
......
......@@ -4,7 +4,7 @@ import { Button } from 'antd';
export const dateStateEnum = {
1: { text: '一周', maxlength: 8 },
2: { text: '半个月', maxlength: 4 },
3: { text: '个月', maxlength: 2 },
3: { text: '个月', maxlength: 2 },
};
export const orderStateNum = {
......
......@@ -74,7 +74,6 @@ const SettlementSheet = () => {
notification.error({ message: '账单周期不连续' });
return false;
};
const onSelectChange = (selectedRowKeys, selectedRows) => {
if (selectedRowsList.length > selectedRows.length) {
setselectedRowKeys(selectedRowKeys);
......@@ -99,6 +98,14 @@ const SettlementSheet = () => {
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);
......@@ -140,11 +147,7 @@ const SettlementSheet = () => {
<PageHeaderWrapper>
<ProTable
actionRef={actionRef}
request={params => {
const { current, pageSize } = params;
setpages({ current, pageSize });
return query({ ...params });
}}
request={params => queryData(params)}
columns={columns(pages)}
rowKey={r => r.settleBatchNo}
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