skyouc
4 天以前 f34089d1d321efe55c98e6f2638d924ae515effd
rsf-admin/src/page/stockManage/locRevise/LocReviseEdit.jsx
@@ -28,12 +28,24 @@
import CustomerTopToolBar from "@/page/components/EditTopToolBar";
import MemoInput from "@/page/components/MemoInput";
import StatusSelectInput from "@/page/components/StatusSelectInput";
import ReviseLogList from "./ReviseLogList";
const LocReviseEdit = () => {
    const translate = useTranslate();
    const [disabled, setDisabled] = useState(false);
    const FormToolbar = () => {
        return (
            <Toolbar sx={{ justifyContent: 'flex-end' }}>
                <SaveButton disabled={disabled} />
                <DeleteButton mutationMode="optimistic" />
            </Toolbar>
        )
    }
    return (
        <>
        <Edit
            redirect="list"
            mutationMode={EDIT_MODE}
@@ -43,21 +55,21 @@
            <SimpleForm
                shouldUnregister
                warnWhenUnsavedChanges
                toolbar={false}
                    toolbar={<FormToolbar />}
                mode="onTouched"
                defaultValues={{}}
                sx={{
                    "& .MuiFormLabel-root.MuiInputLabel-root.Mui-disabled": {
                        bgcolor: 'white',
                        WebkitTextFillColor: "rgba(0, 0, 0)"
                    },
                    // sx={{
                    //     "& .MuiFormLabel-root.MuiInputLabel-root.Mui-disabled": {
                    //         bgcolor: 'white',
                    //         WebkitTextFillColor: "rgba(0, 0, 0)"
                    //     },
                    "& .MuiInputBase-input.MuiFilledInput-input.Mui-disabled": {
                        bgcolor: 'white',
                        WebkitTextFillColor: "rgba(0, 0, 0)"
                    }
                }}
            // validate={(values) => { }}
                    //     "& .MuiInputBase-input.MuiFilledInput-input.Mui-disabled": {
                    //         bgcolor: 'white',
                    //         WebkitTextFillColor: "rgba(0, 0, 0)"
                    //     }
                    // }}
                    validate={(values) => { }}
            >
                <Grid container width={{ xs: '100%', xl: '80%' }} rowSpacing={3} columnSpacing={3}>
                    <Grid item xs={24} md={12}>
@@ -78,19 +90,16 @@
                                    { id: 0, name: ' 库存调整' },
                                    { id: 2, name: ' 盘点调整' },
                                ]}
                                readOnly
                            />
                            <NumberInput
                                label="table.field.locRevise.anfme"
                                source="anfme"
                                readOnly
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <NumberInput
                                label="table.field.locRevise.reviseQty"
                                source="reviseQty"
                                readOnly
                            />
                            <SelectInput
                                label="table.field.locRevise.exceStatus"
@@ -100,19 +109,19 @@
                                    { id: 1, name: '执行中' },
                                    { id: 2, name: '执行完成' },
                                ]}
                                readOnly
                            />
                            <TextInput
                                label="table.field.locRevise.areaName"
                                source="orgAreaName"
                                parse={v => v}
                                readOnly
                            />
                        </Stack>
                    </Grid>
                </Grid>
            </SimpleForm>
        </Edit >
            <ReviseLogList />
        </>
    )
}