Commit 21851882 authored by lxd's avatar lxd

feat: 问题修复

parent d15e1a3e
...@@ -148,7 +148,7 @@ export function columns(res, pages) { ...@@ -148,7 +148,7 @@ export function columns(res, pages) {
<Button <Button
type="primary" type="primary"
disabled={ disabled={
!(row.blueInvoiceState === 1 || row.blueInvoiceState === 3) && row.payState === 3 !((row.blueInvoiceState === 1 || row.blueInvoiceState === 3) && row.payState === 3)
} }
className={styles.button} className={styles.button}
onClick={() => res.edit(1, row)} onClick={() => res.edit(1, row)}
......
...@@ -25,6 +25,7 @@ const PaymentMange = () => { ...@@ -25,6 +25,7 @@ const PaymentMange = () => {
const [loading, setloading] = useState(false); const [loading, setloading] = useState(false);
const [status, setstatus] = useState(1); const [status, setstatus] = useState(1);
const [pages, setpages] = useState({}); const [pages, setpages] = useState({});
const [rest, setrest] = useState(1);
const [toExamineModalVisibel, setToExamineModalVisibel] = useState(false); const [toExamineModalVisibel, setToExamineModalVisibel] = useState(false);
const reload = () => { const reload = () => {
...@@ -132,6 +133,7 @@ const PaymentMange = () => { ...@@ -132,6 +133,7 @@ const PaymentMange = () => {
onClick={() => { onClick={() => {
// eslint-disable-next-line no-unused-expressions // eslint-disable-next-line no-unused-expressions
form?.resetFields(); form?.resetFields();
setrest(2);
reload(); reload();
}} }}
> >
...@@ -159,7 +161,14 @@ const PaymentMange = () => { ...@@ -159,7 +161,14 @@ const PaymentMange = () => {
request={params => { request={params => {
const { current, pageSize } = params; const { current, pageSize } = params;
setpages({ current, pageSize }); setpages({ current, pageSize });
return query({ ...params }); let param = {};
if (rest === 2) {
param = { current, pageSize };
} else {
param = params;
}
setrest(1);
return query({ ...param });
}} }}
columns={columns(res, pages)} columns={columns(res, pages)}
rowKey={r => r.id} rowKey={r => r.id}
......
...@@ -104,30 +104,6 @@ const ReconciliationQuery = () => { ...@@ -104,30 +104,6 @@ const ReconciliationQuery = () => {
onChange: onSelectChange, onChange: onSelectChange,
}; };
const searchRender = ({ searchText, resetText }, { form }) => [
<Button
key="search"
type="primary"
style={{ marginRight: '10px' }}
onClick={() => {
// eslint-disable-next-line no-unused-expressions
form?.submit();
}}
>
{searchText}
</Button>,
<Button
key="rest"
style={{ marginRight: '10px' }}
onClick={() => {
// eslint-disable-next-line no-unused-expressions
form?.resetFields();
reload();
}}
>
{resetText}
</Button>,
];
return ( return (
<Spin tip="处理中..." spinning={loading} delay={100}> <Spin tip="处理中..." spinning={loading} delay={100}>
<PageHeaderWrapper> <PageHeaderWrapper>
...@@ -142,7 +118,6 @@ const ReconciliationQuery = () => { ...@@ -142,7 +118,6 @@ const ReconciliationQuery = () => {
rowKey={r => r.id} rowKey={r => r.id}
search={{ search={{
collapsed: false, collapsed: false,
optionRender: searchRender,
}} }}
rowSelection={rowSelection} rowSelection={rowSelection}
bordered bordered
......
...@@ -109,31 +109,6 @@ const SettlementSheet = () => { ...@@ -109,31 +109,6 @@ const SettlementSheet = () => {
disabled: !(record.settleState === 1 && !record.payBatchNo), // Column configuration not to be checked disabled: !(record.settleState === 1 && !record.payBatchNo), // Column configuration not to be checked
}), }),
}; };
const searchRender = ({ searchText, resetText }, { form }) => [
<Button
key="search"
type="primary"
style={{ marginRight: '10px' }}
onClick={() => {
// eslint-disable-next-line no-unused-expressions
form?.submit();
}}
>
{searchText}
</Button>,
<Button
key="rest"
style={{ marginRight: '10px' }}
onClick={() => {
// eslint-disable-next-line no-unused-expressions
form?.resetFields();
reload();
}}
>
{resetText}
</Button>,
];
return ( return (
<Spin tip="处理中..." spinning={loading} delay={100}> <Spin tip="处理中..." spinning={loading} delay={100}>
<PageHeaderWrapper> <PageHeaderWrapper>
...@@ -148,7 +123,6 @@ const SettlementSheet = () => { ...@@ -148,7 +123,6 @@ const SettlementSheet = () => {
rowKey={r => r.settleBatchNo} rowKey={r => r.settleBatchNo}
search={{ search={{
collapsed: false, collapsed: false,
optionRender: searchRender,
}} }}
rowSelection={rowSelection} rowSelection={rowSelection}
bordered bordered
......
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