From 5f9d7bdf6609a5d6fb1e2ee1e2258151d8f70f30 Mon Sep 17 00:00:00 2001 From: 陈鑫涛 <10125295+chen-xintao97@user.noreply.gitee.com> Date: Fri, 4 Jul 2025 14:21:15 +0800 Subject: [PATCH] 材料长宽 --- src/components/QuickQuote/index.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx index 4ca20e4..a932c8d 100644 --- a/src/components/QuickQuote/index.jsx +++ b/src/components/QuickQuote/index.jsx @@ -441,6 +441,8 @@ const QuickQuoteEvent = props => { dMaterialsKQty: newDMaterialsKQty, newMaterialLength: sFieldName === "dWlcd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlcd, newMaterialWidth: sFieldName === "dWlkd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlkd, + materialLength: sFieldName === "dWlcd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlcd, + materialWidth: sFieldName === "dWlkd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlkd, }; } @@ -1970,8 +1972,8 @@ const BoxComponent = props => { // 获取原始对象并创建一个新的对象进行更新 const updatedProduct = { ...slaveData[index], - materialLength: length, - materialWidth: width, + materialLength: dWlcd, + materialWidth: dWlkd, dMachineLength: length, // 上机长 dMachineWidth: width, // 上机宽 sMaterialsStyle: `${slaveData[index]?.dWlcd || 0}*${slaveData[index]?.dWlkd || 0}`, // 原纸尺寸 -- libgit2 0.22.2