Commit 15f17fb2 authored by shida.liu's avatar shida.liu

feat: 默认100条,批量操作也是最大100条

parent 4a13425a
...@@ -31,13 +31,13 @@ const ReconciliationQuery = props => { ...@@ -31,13 +31,13 @@ const ReconciliationQuery = props => {
const checkedBillType = data => { const checkedBillType = data => {
const billType = data[0]?.billType; const billType = data[0]?.billType;
const sameData = data.filter(item => item.billType === billType); const sameData = data.filter(item => item.billType === billType);
if (data.length === sameData.length && sameData.length < 32) { if (data.length === sameData.length && sameData.length < 101) {
const billName = billType === 10 ? '销售' : '售后'; const billName = billType === 10 ? '销售' : '售后';
setbillName(billName); setbillName(billName);
return true; return true;
} }
if (sameData.length > 31) { if (sameData.length > 100) {
notification.error({ message: '一次最多选择31个账单批次' }); notification.error({ message: '一次最多选择100个账单批次' });
return false; return false;
} }
notification.error({ message: '不同账单类型不可批量操作' }); notification.error({ message: '不同账单类型不可批量操作' });
...@@ -161,6 +161,9 @@ const ReconciliationQuery = props => { ...@@ -161,6 +161,9 @@ const ReconciliationQuery = props => {
bordered bordered
toolBarRender={onToolBarRender} toolBarRender={onToolBarRender}
scroll={{ x: '100%', y: 400 }} scroll={{ x: '100%', y: 400 }}
pagination={{
pageSize: 100,
}}
/> />
</PageHeaderWrapper> </PageHeaderWrapper>
</Spin> </Spin>
......
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