From 8ce2fc9e420f68e07512b9addaf514a09effb4a7 Mon Sep 17 00:00:00 2001
From: lbq <1065079612@qq.com>
Date: 星期三, 25 二月 2026 13:45:02 +0800
Subject: [PATCH] 优化出库明细界面
---
rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx b/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
index b73e16b..5534a72 100644
--- a/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
+++ b/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
@@ -35,7 +35,7 @@
import DictionaryArraySelect from "../../components/DictionaryArraySelect";
const BasStationCreate = (props) => {
- const { open, setOpen } = props;
+ const { open, setOpen , copyRecord = null, onClose} = props;
const translate = useTranslate();
const notify = useNotify();
@@ -43,6 +43,7 @@
const handleClose = (event, reason) => {
if (reason !== "backdropClick") {
setOpen(false);
+ if (typeof onClose === 'function') {onClose();}
}
};
@@ -58,7 +59,8 @@
return (
<>
<CreateBase
- record={{}}
+ key={open ? (copyRecord ? 'copy' : 'new') : 'closed'}
+ record={copyRecord || {}}
transform={(data) => {
return data;
}}
--
Gitblit v1.9.1