| | |
| | | import MatnrList from '../basicInfo/matnr/MatnrList'; |
| | | import request from '@/utils/request' |
| | | |
| | | const ImportModal = ({ open, onClose, importTemp, useCodeImport, onceBatch = 10, value, parmas = {} }) => { |
| | | const ImportModal = ({ open, onClose, importTemp, useCodeImport, onceBatch = 10, value, parmas = {}}) => { |
| | | const refresh = useRefresh(); |
| | | const translate = useTranslate(); |
| | | |
| | |
| | | } |
| | | form.append('file', file); |
| | | const { data: { code, data, msg } } = await request.post(`/${value}/import`, form) |
| | | |
| | | if (code === 200) { |
| | | handleClose() |
| | | notify(msg); |
| | | refresh() |
| | | } else { |
| | | notify(msg); |
| | | |
| | | } |
| | | |
| | | }; |
| | | |
| | | |
| | | |
| | | const handleClose = () => { |
| | | reset(); |