From 5951956d551858eb72ae4cc0fdd177b85e289033 Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Mon, 16 Jun 2025 16:55:00 +0800 Subject: [PATCH] 快速报价支持保存工序报价参数; --- src/components/QuickQuote/index.jsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx index 897109e..a90103d 100644 --- a/src/components/QuickQuote/index.jsx +++ b/src/components/QuickQuote/index.jsx @@ -436,7 +436,7 @@ const QuickQuoteEvent = props => { loading: true, }, () => { - props.onButtonClick("BtnDraft"); + props.onButtonClick("BtnDraft", true); } ); }; @@ -763,6 +763,17 @@ const QuickQuoteEvent = props => { processAfterDataRow.sId = commonUtils.createSid(); processAfterDataRow.sParentId = masterData.sId; processAfterDataRow.sControlId = partsDataRow.sId; + + const sBackendParams = process.sBackendParams || []; + if (sBackendParams.length) { + const sQuoParams = sBackendParams.map(item => ({ + sParamName: item.sParam, + sParamValue: item.value !== undefined ? item.value : "", + bSelfCbx: !(item.value === "" || item.value === undefined), + })); + processAfterDataRow.sQuoParams = JSON.stringify(sQuoParams); + } + // processAfterDataRow.sSlaveId = ' '; processData.push(processAfterDataRow); // 配套工序 -- libgit2 0.22.2