Commit 8a6c495930ae81f54b432ee2ff3391ada17eb4c3
1 parent
2e335e53
书刊展示出血
Showing
2 changed files
with
4 additions
and
9 deletions
src/components/Common/Typesetting/typesetting.js
| ... | ... | @@ -515,7 +515,6 @@ const Typesetting = props => { |
| 515 | 515 | } |
| 516 | 516 | } |
| 517 | 517 | |
| 518 | - console.log(cols,rows,'dadadad'); | |
| 519 | 518 | |
| 520 | 519 | // 判断展开长展开宽是否变化 |
| 521 | 520 | if (dPartsLength !== innerWidth && !innerDivs.length) { |
| ... | ... | @@ -534,7 +533,6 @@ const Typesetting = props => { |
| 534 | 533 | // 判断列是否是单独的 |
| 535 | 534 | const newMaterialLength = propsDataLeft + (remaining ? jInnerWidth : innerWidthCombined) - dYBJJ; // 原纸长 |
| 536 | 535 | const newMaterialWidth = propsDataTop + propsDataHeight - dSBLB; |
| 537 | - console.log("🚀 ~ newMaterialLength:", newMaterialLength,newMaterialWidth) | |
| 538 | 536 | |
| 539 | 537 | // 计算开数 |
| 540 | 538 | const dSinglePQty = isVertical | ... | ... |
src/components/QuickQuote/index.jsx
| ... | ... | @@ -1141,8 +1141,6 @@ const TreeComponent = props => { |
| 1141 | 1141 | }; |
| 1142 | 1142 | }); |
| 1143 | 1143 | }; |
| 1144 | -console.log(selectedNode,'selectedNode'); | |
| 1145 | - | |
| 1146 | 1144 | getDropDownData(props); |
| 1147 | 1145 | }, [selectedNode.sId, commonUtils.isEmptyObject(slaveConfig)]); |
| 1148 | 1146 | |
| ... | ... | @@ -1675,7 +1673,7 @@ const BoxComponent = props => { |
| 1675 | 1673 | const [materialWidth, setMaterialWidth] = useState(0); |
| 1676 | 1674 | |
| 1677 | 1675 | // 使用 useCallback 确保回调函数的稳定性 |
| 1678 | - const handleSaveState = useCallback( | |
| 1676 | + const handleSaveState = | |
| 1679 | 1677 | ( |
| 1680 | 1678 | length, |
| 1681 | 1679 | width, |
| ... | ... | @@ -1698,7 +1696,6 @@ const BoxComponent = props => { |
| 1698 | 1696 | const { selectedNode } = props.state; |
| 1699 | 1697 | |
| 1700 | 1698 | const index = slaveData?.findIndex(x => x.sTreeNodeName === selectedNode.showName && x.sBoxModel === props.boxModel); |
| 1701 | - console.log("🚀 ~ selectedNode:", index,slaveData,selectedNode.showName,props.boxModel,props) | |
| 1702 | 1699 | // 判断展长展宽是否可以放下原纸 |
| 1703 | 1700 | const isDPartsLength = |
| 1704 | 1701 | slaveData[index]?.dPartsLength < slaveData[index]?.dMaxLength && slaveData[index]?.dPartsWidth < slaveData[index]?.dMaxWidth; |
| ... | ... | @@ -1747,9 +1744,9 @@ const BoxComponent = props => { |
| 1747 | 1744 | |
| 1748 | 1745 | setMaterialLength(length); |
| 1749 | 1746 | setMaterialWidth(width); |
| 1750 | - }, | |
| 1751 | - [] | |
| 1752 | - ); | |
| 1747 | + } | |
| 1748 | + | |
| 1749 | + ; | |
| 1753 | 1750 | const onSaveDPartsLength = useCallback((innerWidth, innerHeight, slaveData) => { |
| 1754 | 1751 | const { selectedNode } = props.state; |
| 1755 | 1752 | const index = slaveData?.findIndex(x => x.sTreeNodeName === selectedNode.showName && x.sBoxModel === props.boxModel); | ... | ... |