| import { useEffect, useState, createContext, useContext } from 'react'; | 
| import { Box, CircularProgress, Stack, Typography } from '@mui/material'; | 
| import Alert from '@mui/material/Alert'; | 
| import Dialog from '@mui/material/Dialog'; | 
| import DialogActions from '@mui/material/DialogActions'; | 
| import DialogContent from '@mui/material/DialogContent'; | 
| import DialogTitle from '@mui/material/DialogTitle'; | 
| import MuiLink from '@mui/material/Link'; | 
| import { | 
|     Button, | 
|     FileField, | 
|     FileInput, | 
|     Form, | 
|     Toolbar, | 
|     useRefresh, | 
|     useTranslate, | 
|     useNotify | 
| } from 'react-admin'; | 
| import { Link } from 'react-router-dom'; | 
| import DialogCloseButton from './DialogCloseButton'; | 
| import { usePapaParse } from './usePapaParse'; | 
| import MatnrList from '../basicInfo/matnr/MatnrList'; | 
| import request from '@/utils/request' | 
| import SaveIcon from '@mui/icons-material/Save'; | 
|   | 
| const ImportModal = ({ open, onClose, importTemp, useCodeImport, onceBatch = 10, value, parmas = {} }) => { | 
|     const refresh = useRefresh(); | 
|     const translate = useTranslate(); | 
|   | 
|   | 
|     const notify = useNotify(); | 
|   | 
|   | 
|   | 
|     const handleClose = () => { | 
|         onClose(); | 
|     }; | 
|   | 
|     const handleReset = (e) => { | 
|         e.preventDefault(); | 
|     }; | 
|   | 
|     const handleSubmit = () => { | 
|     }; | 
|   | 
|   | 
|     return ( | 
|         <Dialog open={open} maxWidth="md" fullWidth> | 
|             <DialogCloseButton onClose={handleClose} /> | 
|             <DialogTitle>{translate('common.action.batch')}</DialogTitle> | 
|             <DialogContent> | 
|                 <div>1</div> | 
|             </DialogContent> | 
|             <DialogActions sx={{ position: 'sticky', bottom: 0, backgroundColor: 'background.paper', zIndex: 1000 }}> | 
|                 <Box sx={{ width: '100%', display: 'flex', justifyContent: 'space-between' }}> | 
|                     <Button onClick={handleSubmit} variant="contained" startIcon={<SaveIcon />}> | 
|                         确认 | 
|                     </Button> | 
|                 </Box> | 
|             </DialogActions> | 
|         </Dialog> | 
|     ); | 
| } | 
|   | 
| export default ImportModal; |