Commit 5f9d7bdf6609a5d6fb1e2ee1e2258151d8f70f30
1 parent
23137225
材料长宽
Showing
1 changed file
with
4 additions
and
2 deletions
src/components/QuickQuote/index.jsx
| ... | ... | @@ -441,6 +441,8 @@ const QuickQuoteEvent = props => { |
| 441 | 441 | dMaterialsKQty: newDMaterialsKQty, |
| 442 | 442 | newMaterialLength: sFieldName === "dWlcd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlcd, |
| 443 | 443 | newMaterialWidth: sFieldName === "dWlkd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlkd, |
| 444 | + materialLength: sFieldName === "dWlcd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlcd, | |
| 445 | + materialWidth: sFieldName === "dWlkd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlkd, | |
| 444 | 446 | }; |
| 445 | 447 | } |
| 446 | 448 | |
| ... | ... | @@ -1970,8 +1972,8 @@ const BoxComponent = props => { |
| 1970 | 1972 | // 获取原始对象并创建一个新的对象进行更新 |
| 1971 | 1973 | const updatedProduct = { |
| 1972 | 1974 | ...slaveData[index], |
| 1973 | - materialLength: length, | |
| 1974 | - materialWidth: width, | |
| 1975 | + materialLength: dWlcd, | |
| 1976 | + materialWidth: dWlkd, | |
| 1975 | 1977 | dMachineLength: length, // 上机长 |
| 1976 | 1978 | dMachineWidth: width, // 上机宽 |
| 1977 | 1979 | sMaterialsStyle: `${slaveData[index]?.dWlcd || 0}*${slaveData[index]?.dWlkd || 0}`, // 原纸尺寸 | ... | ... |