This commit is contained in:
linxd
2025-08-05 20:03:05 +08:00
3 changed files with 3 additions and 3 deletions

View File

@ -354,7 +354,7 @@ const CategoryAddModal: React.FC<Props> = ({ visible, onCancel, onSuccess }) =>
<Form.Item shouldUpdate={(prev, curr) => prev.approveType !== curr.approveType}> <Form.Item shouldUpdate={(prev, curr) => prev.approveType !== curr.approveType}>
{() => { {() => {
const isAttachmentRequired = form.getFieldValue('approveType') === 'offline'; const isAttachmentRequired = form.getFieldValue('approveType') === 'online';
return ( return (
<Form.Item <Form.Item

View File

@ -330,7 +330,7 @@ const SupplierAddModal: React.FC<{
</Form.Item> </Form.Item>
<Form.Item shouldUpdate={(prev, curr) => prev.approveType !== curr.approveType}> <Form.Item shouldUpdate={(prev, curr) => prev.approveType !== curr.approveType}>
{() => { {() => {
const isAttachmentRequired = form.getFieldValue('approveType') === 'offline'; const isAttachmentRequired = form.getFieldValue('approveType') === 'online';
return ( return (
<Form.Item <Form.Item

View File

@ -141,7 +141,7 @@ const SupplierChangeReviewManage: React.FC<Props> = ({ dispatch }) => {
dispatch({ dispatch({
type: 'globalModal/show', type: 'globalModal/show',
payload: { payload: {
id: record.id, id: record.supplierId,
}, },
}); });
}} }}