Commit 7f8864ea732e5efeae5d69acc96fce9d89cb99ad
1 parent
eeb5d453
拼版
Showing
4 changed files
with
8 additions
and
12 deletions
src/components/Common/Typesetting/typesetting.js
| ... | ... | @@ -40,8 +40,6 @@ const Typesetting = props => { |
| 40 | 40 | dL = 0, |
| 41 | 41 | dW = 0 |
| 42 | 42 | } = slaveRowData; |
| 43 | - console.log("🚀 ~ slaveRowData:", slaveRowData) | |
| 44 | - | |
| 45 | 43 | const { masterData, selectedNode, slaveData } = state; |
| 46 | 44 | if (!masterData) return; |
| 47 | 45 | // 如果是卷筒类 那么上下左右留白等于左留白 |
| ... | ... | @@ -194,8 +192,6 @@ const Typesetting = props => { |
| 194 | 192 | variabless[key] = 0; |
| 195 | 193 | } |
| 196 | 194 | }); |
| 197 | - console.log("🚀 ~ Object.keys ~ variabless:", variabless) | |
| 198 | - | |
| 199 | 195 | let DisableMateriallIcon = L ? sPackDetailPath : null; |
| 200 | 196 | // 盒子展长展开公式计算 |
| 201 | 197 | const innerWidth = slaveRowData.sTypes === "6" ? evaluateFormula(sWidthFormula, variabless) : evaluateFormula(sLengthFormula, variabless); |
| ... | ... | @@ -258,13 +254,10 @@ const Typesetting = props => { |
| 258 | 254 | rows = rows - 1; |
| 259 | 255 | rowsMaxLength = rows * (innerHeightCombined + boxWidthOffset + (reference ? 0 : dSWidthOffset) + dXBJJ); |
| 260 | 256 | } |
| 261 | - | |
| 262 | - // console.log(cols, rows, outerWidth, outerHeight, colsMaxLength,rowsMaxLength,"cols rows outerWidth outerHeight"); | |
| 263 | - | |
| 264 | 257 | // 最大上机长 上机宽 开料尺寸 |
| 265 | 258 | // 计算剩余空间 每组都算上偏移量 那么剩余需要加上后面偏移的总量 |
| 266 | - const remainingWidth = outerWidth - colsMaxLength; | |
| 267 | - const remainingHeight = outerHeight - rowsMaxLength; | |
| 259 | + const remainingWidth = outerWidth - colsMaxLength - (boxLengthOffset + (reference ? 0 : dSLengthOffset) + dYBJJ); | |
| 260 | + const remainingHeight = outerHeight - rowsMaxLength - (boxWidthOffset + (reference ? 0 : dSWidthOffset) + dXBJJ); | |
| 268 | 261 | // const remainingWidth = |
| 269 | 262 | // outerWidth - |
| 270 | 263 | // (cols * (innerWidthCombined + boxLengthOffset + (reference ? 0 : dSLengthOffset)) - boxLengthOffset - (reference ? 0 : dSLengthOffset)); |
| ... | ... | @@ -277,7 +270,9 @@ const Typesetting = props => { |
| 277 | 270 | const isCustomized = bAdvancedSetting; |
| 278 | 271 | |
| 279 | 272 | let remaining = isVertical ? commonHeightCheck : commonWidthCheck; |
| 280 | - | |
| 273 | + console.log(commonWidthCheck,commonHeightCheck,remainingWidth,remainingHeight,remaining,'remaining'); | |
| 274 | + | |
| 275 | + // 判断 | |
| 281 | 276 | // const remaining = false; |
| 282 | 277 | const isOdd = num => { |
| 283 | 278 | return num % 2 !== 0; | ... | ... |
src/components/Common/commonFunc.js
src/components/QuickQuote/index.jsx
| ... | ... | @@ -2221,7 +2221,6 @@ const BoxComponent = props => { |
| 2221 | 2221 | { src: slaveRowData.sPackDetailPathUpLoad, alt: "展开图" }, |
| 2222 | 2222 | { src: slaveRowData.sPackPath, alt: "立体图" }, |
| 2223 | 2223 | ]; |
| 2224 | - console.log(state, "activeKey"); | |
| 2225 | 2224 | const { activeKey = 0 } = state; |
| 2226 | 2225 | return ( |
| 2227 | 2226 | <Tabs | ... | ... |
src/routes/mobile/IndexMobile.js