DESKTOP-LMJ82IJ\Eno
2025-04-13 cc2984eeb289b54cfa193dde558417c46f309e8f
rsf-admin/src/page/system/serialRule/SerialRuleItemEdit.jsx
@@ -46,13 +46,14 @@
const SerialRuleItemEdit = (props) => {
    const { open, setOpen, record } = props;
    const translate = useTranslate();
    const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_rule_item_type')) || [];
    const handleClose = (event, reason) => {
        if (reason !== "backdropClick") {
            setOpen(false);
        }
    };
    const {data, isPending, } = useGetOne('serialRuleItem', {id: record?.id});
    if (data == null || data == undefined) {return}
    const { data, isPending, } = useGetOne('serialRuleItem', { id: record?.id });
    if (data == null || data == undefined) { return }
    return (
        <Edit
@@ -103,12 +104,14 @@
                                    />
                                </Stack>
                                <Stack direction='row' gap={2}>
                                    <TextInput
                                    <AutocompleteInput
                                        choices={dicts}
                                        optionText="label"
                                        label="table.field.serialRuleItem.wkType"
                                        source="wkType$"
                                        readOnly
                                        source="wkType"
                                        optionValue="value"
                                        parse={v => v}
                                    />
                                     />
                                </Stack>
                                <Stack direction='row' gap={2}>
                                    <TextInput