diff --git a/src/pages/device/deviceBom/index.jsx b/src/pages/device/deviceBom/index.jsx
index 3756af4..0c96dfd 100644
--- a/src/pages/device/deviceBom/index.jsx
+++ b/src/pages/device/deviceBom/index.jsx
@@ -134,10 +134,6 @@ const TableList = () => {
type="primary"
key="primary"
onClick={() => {
- if (DeviceId == undefined) {
- message.error('请选择门店或者设备');
- return;
- }
setStockModalVisible(true);
}}
>
diff --git a/src/pages/device/deviceInfo/components/CreateForm.jsx b/src/pages/device/deviceInfo/components/CreateForm.jsx
index 90f96a0..8e1001d 100644
--- a/src/pages/device/deviceInfo/components/CreateForm.jsx
+++ b/src/pages/device/deviceInfo/components/CreateForm.jsx
@@ -26,13 +26,13 @@ const CreateForm = (props) => {
-
+
-
-
+ prevValues.deviceTypeKey !== currentValues.deviceTypeKey}
+ >
+ {({ getFieldValue }) =>
+ getFieldValue('deviceTypeKey') === 'TMC' ? (
+
+
+ {props.deviceVersions?.map((item, index) => {
+ return (
+
+ {item.name}
+
+ );
+ })}
+
+
+ ) : null
+ }
+
-
+
-
+