| | |
| | | const refresh = useRefresh(); |
| | | const translate = useTranslate(); |
| | | const notify = useNotify(); |
| | | const [options, setOptions] = useState({ |
| | | condition: null |
| | | }); |
| | | |
| | | const [formData, setFormData] = useState({ |
| | | areaMatId: null, |
| | |
| | | onChange={(e) => handleChange(e.target.value, 'groupId')} |
| | | /> |
| | | </Grid> |
| | | |
| | | </Grid> |
| | | <Grid item xs={4}> |
| | | <List |
| | | resource="matnr" |
| | | filter={{ groupId: formData.groupId }} |
| | | empty={false} |
| | | queryOptions={{options}} |
| | | actions={<></>} |
| | | > |
| | | <StyledDatagrid |
| | | preferenceKey='matnr' |
| | | bulkActionButtons={<></>} |
| | | onSelectAll={{limit: 1000}} |
| | | rowClick={(id, resource, record) => { }} |
| | | rowClick={false} |
| | | omit={['id', 'createTime', 'createBy', 'memo', 'poDetlId', 'matnrId', 'asnId']} |
| | | > |
| | | <NumberField key="id" source="id" />, |
| | |
| | | </Box> |
| | | </DialogContent> |
| | | <DialogActions sx={{ position: 'sticky', bottom: 0, backgroundColor: 'background.paper', zIndex: 1000 }}> |
| | | <Box sx={{ width: '100%', display: 'flex', justifyContent: 'space-between' }}> |
| | | <Box sx={{ width: '100%', display: 'flex', justifyContent: 'end' }}> |
| | | <Button type="submit" variant="contained" startIcon={<SaveIcon />}> |
| | | {translate('toolbar.confirm')} |
| | | </Button> |