| | |
| | | import CustomerTopToolBar from "../components/EditTopToolBar"; |
| | | import MemoInput from "../components/MemoInput"; |
| | | import StatusSelectInput from "../components/StatusSelectInput"; |
| | | import WaitPakinItem from "../waitPakinItem"; |
| | | import WaitPakinItemList from "../waitPakinItem/WaitPakinItemList"; |
| | | import WaitPakinItemList from "./WaitPakinItemList"; |
| | | |
| | | const FormToolbar = () => { |
| | | const { getValues } = useFormContext(); |
| | |
| | | aside={<EditBaseAside />} |
| | | > |
| | | <SimpleForm |
| | | sx={{ |
| | | '& .MuiInputBase-input.MuiFilledInput-input.Mui-disabled': { |
| | | bgcolor: "white", |
| | | color: "black", |
| | | '-webkit-text-fill-color': "rgba(0, 0, 0)" |
| | | }, |
| | | '& .MuiFormLabel-root.MuiInputLabel-root.Mui-disabled': { |
| | | color: 'rgba(0, 0, 0, 0.77)' |
| | | } |
| | | }} |
| | | shouldUnregister |
| | | warnWhenUnsavedChanges |
| | | toolbar={<FormToolbar />} |
| | | toolbar={<></>} |
| | | mode="onTouched" |
| | | defaultValues={{}} |
| | | > |
| | |
| | | parse={v => v} |
| | | autoFocus |
| | | /> |
| | | <NumberInput |
| | | label="table.field.waitPakin.ansId" |
| | | readOnly |
| | | source="ansId" |
| | | /> |
| | | <TextInput |
| | | label="table.field.waitPakin.asnCode" |
| | | readOnly |
| | | source="asnCode" |
| | | parse={v => v} |
| | | /> |
| | | <SelectInput |
| | | label="table.field.waitPakin.flagDefect" |
| | | readOnly |
| | | source="flagDefect" |
| | | parse={v => v} |
| | | choices={[ |
| | | { id: 0, name: '否' }, |
| | | { id: 1, name: ' 是' }, |
| | | ]} |
| | | /> |
| | | </Stack> |
| | | <Stack direction='row' gap={2}> |