zhou zhou
昨天 4a620b306e2e0ff208dbea260f998ffce8d08e39
rsf-admin/src/page/components/WarehouseSelect.jsx
@@ -7,7 +7,7 @@
import { Select, MenuItem, FormControl, InputLabel } from '@mui/material';
const WarehouseSelect = (props) => {
    const { dictTypeCode, label, name, validate, ...params } = props;
    const { dictTypeCode, label, name, validate, onChange, ...params } = props;
    const translate = useTranslate();
    const notify = useNotify();
    const [list, setList] = useState([]);
@@ -47,6 +47,9 @@
    const handleChange = (event) => {
        const selectedValue = event.target.value;
        field.onChange(selectedValue);
        if (onChange) {
            onChange(event);
        }
    };
    const validValue = list.some(item => item.id === field.value) ? field.value : '';