From 18cee3f153e61fb04b17701d63fbd51a9276122a Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期五, 09 五月 2025 19:04:01 +0800 Subject: [PATCH] 新增收货单打印预览界面 --- rsf-admin/src/page/components/ImportModal.jsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rsf-admin/src/page/components/ImportModal.jsx b/rsf-admin/src/page/components/ImportModal.jsx index 703a018..63c2edf 100644 --- a/rsf-admin/src/page/components/ImportModal.jsx +++ b/rsf-admin/src/page/components/ImportModal.jsx @@ -22,7 +22,7 @@ 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(); @@ -57,17 +57,17 @@ } form.append('file', file); const { data: { code, data, msg } } = await request.post(`/${value}/import`, form) - if (code === 200) { handleClose() - } else { notify(msg); - + refresh() + } else { + handleClose() + notify(msg); + refresh() } }; - - const handleClose = () => { reset(); -- Gitblit v1.9.1