From c9b15b605e175fe594b17d4f5b470211cce20803 Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Wed, 15 Jun 2022 18:28:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/device/deviceBom/index.jsx | 4 --- .../deviceInfo/components/CreateForm.jsx | 31 +++++++++++++++---- src/pages/device/deviceInfo/index.jsx | 14 +++++++++ src/pages/device/deviceInfo/services.js | 8 +++++ 4 files changed, 47 insertions(+), 10 deletions(-) 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) => { - + - + {props.dicData.map((item, index) => { return ( {item.value} @@ -62,7 +62,26 @@ const CreateForm = (props) => { })} - + prevValues.deviceTypeKey !== currentValues.deviceTypeKey} + > + {({ getFieldValue }) => + getFieldValue('deviceTypeKey') === 'TMC' ? ( + + + + ) : null + } + - + - +