From 2bcb34178087dc00a22c7f7694018c5bedee86a3 Mon Sep 17 00:00:00 2001 From: 陈鑫涛 <10125295+chen-xintao97@user.noreply.gitee.com> Date: Fri, 27 Jun 2025 10:19:02 +0800 Subject: [PATCH] 画册默认p数展示 --- src/components/QuickQuote/index.jsx | 17 ++++++++++++++--- src/mobile/quotation/detailNew.jsx | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 131 insertions(+), 20 deletions(-) diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx index 302b8df..8db84b4 100644 --- a/src/components/QuickQuote/index.jsx +++ b/src/components/QuickQuote/index.jsx @@ -1457,6 +1457,18 @@ const BoxComponent = props => { item.showName = mappings[item.sName]; } }); + }else { + const mappings = { + dZBLB: "左边留白", + dXBJJ: "上下刀位", + dYBJJ: "左右刀位", + }; + + boxConfigList.forEach(item => { + if (mappings[item.sName]) { + item.showName = mappings[item.sName]; + } + }); } } const newConfig = [...boxConfigList, ...config]; @@ -1483,8 +1495,9 @@ const BoxComponent = props => { x.sName === "dRowGap" || x.sName === "dColGap" || x.sName === "sPaperDirection", - default: x => x.sName === "sMagnification" || x.sName === "dPartsLength" || x.sName === "dPartsWidth", + default: x => x.sName === "sMagnification" || x.sName === "dPartsLength" || x.sName === "dPartsWidth" || x.sName === "dSumPQty", }; +console.log(upViewProps12.viewConfigs,'upViewProps12.viewConfigs'); if (selectedNode.sTypeKey === "juantong") { upViewProps12.viewConfigs = upViewProps12.viewConfigs.filter(filterConditions.juantong); @@ -1765,8 +1778,6 @@ const BoxComponent = props => { let juantongConfig = {}; if (selectedNode.sTypeKey === "juantong") { - console.log(selectedNode.sTypeKey, "sTypeKey"); - const { dYBJJ, dXBJJ, dZBLB } = slaveData[index]; juantongConfig = { dColGap: dYBJJ, diff --git a/src/mobile/quotation/detailNew.jsx b/src/mobile/quotation/detailNew.jsx index 9ec2583..dc3b507 100644 --- a/src/mobile/quotation/detailNew.jsx +++ b/src/mobile/quotation/detailNew.jsx @@ -1040,6 +1040,11 @@ const QuotationAllprogressDetail = baseProps => { }; }); }; + if (selectedNode.sTypeKey === "juantong") { + props.onSaveState({ + masterData: { ...props.masterData, sFormId: "101251240115016002356125200" }, + }); + } getDropDownData(props); }, [props.state.slaveConfig]); const getSqlDropDownData = async ({ sId }) => { @@ -1069,7 +1074,10 @@ const QuotationDetail = props => { if (!masterConfig) return ""; const ableConfigs = masterConfig.gdsconfigformslave.filter(item => item.sName && item.bVisible); // 处理长宽样式 - const viewConfigs = selectedNode?.bBox && selectedNode.sTypeKey !== "kapai" ? ableConfigs : ableConfigs.filter(x => x.sName !== "dHeight"); + const viewConfigs = + selectedNode?.bBox && selectedNode.sTypeKey !== "kapai" && selectedNode?.bBox && selectedNode.sTypeKey !== "juantong" + ? ableConfigs + : ableConfigs.filter(x => x.sName !== "dHeight"); if (selectedNode?.bBox && selectedNode.sTypeKey !== "kapai") { viewConfigs.forEach(item => { if (item.sName === "dLength" || item.sName === "dWidth") { @@ -1081,6 +1089,20 @@ const QuotationDetail = props => { item.iColValue = viewConfigs[0].iColValue; }); } + const lengthData = viewConfigs.find(x => x.sName === "dLength"); + if (selectedNode.sTypeKey !== "danye") { + if (lengthData) { + lengthData.showName = "高(D)"; + lengthData.sChinese = "高(D)"; + lengthData.sEnglish = "Height (D)"; + } + } else { + if (lengthData) { + lengthData.showName = "长(L)"; + lengthData.sChinese = "长(L)"; + lengthData.sEnglish = "Length (L)"; + } + } const viewProps = { ...props, viewConfigs: viewConfigs, @@ -1147,9 +1169,7 @@ const MasterComponent = props => { ...props, itemDetail: sDeliverName, }; - const baseProps = { - ...props, - }; + return (