From ce2b90b7819e5069e17418785b7ee9b6a7f9da89 Mon Sep 17 00:00:00 2001 From: 陈鑫涛 <10125295+chen-xintao97@user.noreply.gitee.com> Date: Mon, 14 Jul 2025 09:01:36 +0800 Subject: [PATCH] 处理报价不能核算的问题 --- src/components/QuickQuote/index.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx index f1f06ae..e722a91 100644 --- a/src/components/QuickQuote/index.jsx +++ b/src/components/QuickQuote/index.jsx @@ -686,7 +686,8 @@ const QuickQuoteEvent = props => { } const errMsgList = []; - const masterConfigMust = masterConfig.gdsconfigformslave.filter(item => item.bVisible && item.bNotEmpty); + const masterConfigMust = masterConfig?.gdsconfigformslave.filter(item => item.bVisible && item.bNotEmpty); + if (!masterConfigMust) return const checkResult = masterConfigMust.filter(item => !masterData[item.sName]); if (checkResult.length) { errMsgList.push( @@ -1215,6 +1216,7 @@ const QuickQuoteEvent = props => { // 入口 const QuickQuote = baseProps => { const props = QuickQuoteEvent(baseProps); + console.log("🚀 ~ QuickQuote:", props,baseProps) const [treeClassName, setTreeClassName] = useState(""); // 监听页面滚动事件 @@ -2770,7 +2772,8 @@ const ManyComponent = props => { const onCalcPrice = () => { const { state } = props; const { masterData = {}, slaveConfig, slaveData = [], selectedNode = {}, backendConfig = {}, boxModelKey = 0, bestAlgorithm,activeKey } = state; - if (activeKey === 0) { + const {bBox} = selectedNode + if (bBox && activeKey === 0) { const radios = GetBestAlgorithm(props); slaveData[boxModelKey] = { ...slaveData[boxModelKey], -- libgit2 0.22.2