From 3e2346f13e086dfe52dea6013e8bb7b1f045db4e Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Thu, 19 Jun 2025 16:52:38 +0800 Subject: [PATCH] 修改报价参数传参; --- src/components/QuickQuote/index.jsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx index e20e894..8c20b58 100644 --- a/src/components/QuickQuote/index.jsx +++ b/src/components/QuickQuote/index.jsx @@ -768,6 +768,8 @@ const QuickQuoteEvent = props => { const sBackendParams = process.sBackendParams || []; if (sBackendParams.length) { const sQuoParams = sBackendParams.map(item => ({ + sParamKey: item.sParamKey, + sParamKeyNew: item.sParamKeyNew, sParamName: item.sParam, sParamValue: item.value !== undefined ? item.value : "", bSelfCbx: !(item.value === "" || item.value === undefined), @@ -2495,7 +2497,8 @@ const BackendParamsExtraComponent = props => { const viewConfigs = backendParamsConfig.map((item, index) => ({ ...item, - sName: item.sFieldName || `sParams${index}`, + sName0: `sParams${index + 1}`, + sName: item.sFieldName || `sParams${index + 1}`, showName: item.sParam, sDropDownType: item.sParamDropDown ? "sql" : "", iColValue: 4, @@ -2515,7 +2518,7 @@ const BackendParamsExtraComponent = props => { tableName: `sBackendParams${boxModel}`, getSqlDropDownData: (...args) => { const showConfig = args[2]; - const { sParamDropDown = "", sName } = showConfig; + const { sParamDropDown = "", sName0, sName } = showConfig; const dropDownData = sParamDropDown.split(","); if (dropDownData?.length) { return { @@ -2524,6 +2527,8 @@ const BackendParamsExtraComponent = props => { value: item, sParam: showConfig.sParam, [sName]: item, + sParamKey: sName0, + sParamKeyNew: sName, })), totalPageCount: 1, currentPageNo: 1, @@ -2544,6 +2549,8 @@ const BackendParamsExtraComponent = props => { value: changeValue[sFieldName], sParam: showConfig.sParam, [sFieldName]: changeValue[sFieldName], + sParamKey: showConfig.sName0, + sParamKeyNew: sFieldName, }; const { sParam } = dropDownDataSelected; const { sBackendParams = [] } = slaveData[iIndex].sBackProcessData[iIndex1]; -- libgit2 0.22.2