From c7f67a8d6f4fb7cc4ca8da6dd6da338082b81a9f Mon Sep 17 00:00:00 2001 From: 陈鑫涛 <10125295+chen-xintao97@user.noreply.gitee.com> Date: Fri, 11 Jul 2025 13:03:27 +0800 Subject: [PATCH] 修复新报价盒型没有留白的数据问题 --- src/components/QuickQuote/index.jsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx index 838b5bb..1aef6af 100644 --- a/src/components/QuickQuote/index.jsx +++ b/src/components/QuickQuote/index.jsx @@ -1171,6 +1171,16 @@ const QuickQuoteEvent = props => { // 新报价 addState.onAdd = () => { const restList = ["formData", "manyColumn", "manyConfig", "masterConfig", "slaveConfig", "slaveColumn", "treeData"]; + const sBoxActiveId = formData.find(item => item.sGrd === "slave")?.gdsconfigformslave?.find(item => item.sName === "sName")?.sActiveId; + if (!sBoxActiveId) return; + const { token } = props; + const configUrl = `${commonConfig.server_host}business/getModelBysId/${sBoxActiveId}?sModelsId=${sBoxActiveId}`; + commonServices.getService(token, configUrl).then(({ data: configReturn }) => { + if (configReturn.code === 1) { + const formData = configReturn.dataset.rows[0].formData; + setState(pre => ({ ...pre, boxConfig: formData[0] })); + } + }); const stateNew = { ...restList.reduce((pre, cur) => { pre[cur] = state[cur]; @@ -2263,9 +2273,9 @@ const BoxComponent = props => { { src: slaveRowData.sPackPath, alt: "立体图" }, ]; if (!slaveRowData.sPackDetailPathUpLoad) { - imagesData = [{ src: slaveRowData.sPackPath, alt: "立体图" }] + imagesData = [{ src: slaveRowData.sPackPath, alt: "立体图" }]; } else if (!slaveRowData.sPackPath) { - imagesData = [{ src: slaveRowData.sPackPath, alt: "立体图" }] + imagesData = [{ src: slaveRowData.sPackPath, alt: "立体图" }]; } const { activeKey = 0 } = state; useEffect(() => { -- libgit2 0.22.2