Commit c6622bb14eb8c343eb8a434ed93538fbf3905b94
1 parent
de832460
排版
Showing
3 changed files
with
10 additions
and
32 deletions
src/components/Common/BoxShowImgMaterial/indexNew.js
| @@ -219,7 +219,7 @@ const BoxShowImgMaterial = props => { | @@ -219,7 +219,7 @@ const BoxShowImgMaterial = props => { | ||
| 219 | fontSize: `${size || 11}px`, | 219 | fontSize: `${size || 11}px`, |
| 220 | textAlign: "center", | 220 | textAlign: "center", |
| 221 | height: "30px", | 221 | height: "30px", |
| 222 | - bottom: `-${100}px`, | 222 | + bottom: `-${20}px`, |
| 223 | lineHeight: "30px", | 223 | lineHeight: "30px", |
| 224 | }} | 224 | }} |
| 225 | > | 225 | > |
| @@ -288,7 +288,7 @@ const BoxShowImgMaterial = props => { | @@ -288,7 +288,7 @@ const BoxShowImgMaterial = props => { | ||
| 288 | style={{ | 288 | style={{ |
| 289 | position: "absolute", | 289 | position: "absolute", |
| 290 | top: "0", | 290 | top: "0", |
| 291 | - right: "-140px", | 291 | + right: "-20px", |
| 292 | height: `${dWlkd * scaleY}px`, | 292 | height: `${dWlkd * scaleY}px`, |
| 293 | lineHeight: `${dWlkd * scaleY}px`, | 293 | lineHeight: `${dWlkd * scaleY}px`, |
| 294 | fontSize: `${size || 11}px`, | 294 | fontSize: `${size || 11}px`, |
src/components/Common/Typesetting/typesetting.js
| @@ -202,7 +202,6 @@ const Typesetting = props => { | @@ -202,7 +202,6 @@ const Typesetting = props => { | ||
| 202 | const boxWidthOffset = evaluateFormula(sSecondLongitudinalOffset, variabless); // 第二列纵向偏移 | 202 | const boxWidthOffset = evaluateFormula(sSecondLongitudinalOffset, variabless); // 第二列纵向偏移 |
| 203 | const isVertical = sSettingMethod === "从上到下"; // true 表示竖向排列,false 表示横向排列 sSettingMethod === '从上到下' | 203 | const isVertical = sSettingMethod === "从上到下"; // true 表示竖向排列,false 表示横向排列 sSettingMethod === '从上到下' |
| 204 | const reference = sSGroupOffset === "首盒"; // 第三列参考 | 204 | const reference = sSGroupOffset === "首盒"; // 第三列参考 |
| 205 | - console.log(innerWidth, innerHeight, dFWidthOffset, dFLengthOffset, dSWidthOffset, dSLengthOffset, boxLengthOffset, boxWidthOffset, "typeSetting"); | ||
| 206 | 205 | ||
| 207 | // 计算内层盒子尺寸 加上间距 | 206 | // 计算内层盒子尺寸 加上间距 |
| 208 | let jInnerHeight = innerHeight; | 207 | let jInnerHeight = innerHeight; |
| @@ -227,8 +226,6 @@ const Typesetting = props => { | @@ -227,8 +226,6 @@ const Typesetting = props => { | ||
| 227 | ? Math.max(jInnerWidth + dFLengthOffset, jInnerWidth + dSLengthOffset) + dYBJJ | 226 | ? Math.max(jInnerWidth + dFLengthOffset, jInnerWidth + dSLengthOffset) + dYBJJ |
| 228 | : jInnerWidth * 2 + dSLengthOffset + dFLengthOffset + dYBJJ; | 227 | : jInnerWidth * 2 + dSLengthOffset + dFLengthOffset + dYBJJ; |
| 229 | 228 | ||
| 230 | - console.log(innerWidthCombined,dFLengthOffset,dSLengthOffset,jInnerWidth,'innerHeightCombined'); | ||
| 231 | - console.log(innerHeightCombined,dFWidthOffset,dSWidthOffset,innerHeightCombined,'innerHeightCombined'); | ||
| 232 | 229 | ||
| 233 | const style = { | 230 | const style = { |
| 234 | width: `${outerWidth}px`, | 231 | width: `${outerWidth}px`, |
| @@ -273,16 +270,7 @@ const Typesetting = props => { | @@ -273,16 +270,7 @@ const Typesetting = props => { | ||
| 273 | const isCustomized = bAdvancedSetting; | 270 | const isCustomized = bAdvancedSetting; |
| 274 | 271 | ||
| 275 | let remaining = isVertical ? commonHeightCheck : commonWidthCheck; | 272 | let remaining = isVertical ? commonHeightCheck : commonWidthCheck; |
| 276 | - console.log('剩余长',remainingWidth); | ||
| 277 | - console.log('剩余高',remainingHeight); | ||
| 278 | - console.log('剩余长是否放下',commonWidthCheck); | ||
| 279 | - console.log('剩余高是否放下',commonHeightCheck); | ||
| 280 | - console.log('剩余是否放下',remaining,cols,rows); | ||
| 281 | - console.log('剩余 总高 盒高' , outerHeight, rowsCombined); | ||
| 282 | - console.log('剩余 总长 盒长' , outerWidth, dSWidthOffsetCombined); | ||
| 283 | - console.log('剩余 根据列排最大长高',colsMaxLength,rowsMaxLength); | ||
| 284 | - console.log('剩余 一组盒长盒高', innerWidthCombined,innerHeightCombined,boxLengthOffset,boxWidthOffset); | ||
| 285 | - console.log('剩余 次盒偏移量',dSLengthOffset,dSWidthOffset); | 273 | + |
| 286 | 274 | ||
| 287 | 275 | ||
| 288 | 276 | ||
| @@ -588,7 +576,6 @@ const Typesetting = props => { | @@ -588,7 +576,6 @@ const Typesetting = props => { | ||
| 588 | const propsDataHeight = Number(propsData.props.style.height.slice(0, -2)); | 576 | const propsDataHeight = Number(propsData.props.style.height.slice(0, -2)); |
| 589 | const propsDataTop = Number(propsData.props.style.top.slice(0, -2)); | 577 | const propsDataTop = Number(propsData.props.style.top.slice(0, -2)); |
| 590 | // 判断列是否是单独的 | 578 | // 判断列是否是单独的 |
| 591 | - console.log(propsDataLeft, propsDataWidth, propsDataHeight, propsDataTop, "propsDataLeft propsDataWidth propsDataHeight propsDataTop"); | ||
| 592 | 579 | ||
| 593 | const newMaterialLength = parseFloat(propsDataLeft + (remaining ? jInnerWidth : innerWidthCombined) + dZBLB + dYBLB).toFixed(2); // 原纸长 | 580 | const newMaterialLength = parseFloat(propsDataLeft + (remaining ? jInnerWidth : innerWidthCombined) + dZBLB + dYBLB).toFixed(2); // 原纸长 |
| 594 | const newMaterialWidth = parseFloat(propsDataTop + propsDataHeight + dSBLB + dXBLB).toFixed(2); | 581 | const newMaterialWidth = parseFloat(propsDataTop + propsDataHeight + dSBLB + dXBLB).toFixed(2); |
| @@ -713,16 +700,7 @@ const Typesetting = props => { | @@ -713,16 +700,7 @@ const Typesetting = props => { | ||
| 713 | Number(slaveDataDetail?.dMaxWidth) >= Number(slaveRowData?.dMachineWidth); | 700 | Number(slaveDataDetail?.dMaxWidth) >= Number(slaveRowData?.dMachineWidth); |
| 714 | 701 | ||
| 715 | const isShow = slaveRowData && slaveRowData.dMachineLength && slaveRowData.dMaxWidth && slaveRowData.dMaxLength && isMax && innerDivs.length > 0; | 702 | const isShow = slaveRowData && slaveRowData.dMachineLength && slaveRowData.dMaxWidth && slaveRowData.dMaxLength && isMax && innerDivs.length > 0; |
| 716 | - console.log( | ||
| 717 | - slaveDataDetail?.dMaxLength, | ||
| 718 | - slaveDataDetail?.dMaxWidth, | ||
| 719 | - slaveRowData?.dMachineLength, | ||
| 720 | - slaveRowData?.dMachineWidth, | ||
| 721 | - innerDivs, | ||
| 722 | - isMax, | ||
| 723 | - isShow, | ||
| 724 | - "isMax" | ||
| 725 | - ); | 703 | + |
| 726 | const confirmParam = commonFunc.showLocalMessage(props, "confirmParam", "排版尺寸大于上机尺寸,请确认参数!"); | 704 | const confirmParam = commonFunc.showLocalMessage(props, "confirmParam", "排版尺寸大于上机尺寸,请确认参数!"); |
| 727 | 705 | ||
| 728 | if (isCustomized && !isShow) { | 706 | if (isCustomized && !isShow) { |
| @@ -916,7 +894,7 @@ const Typesetting = props => { | @@ -916,7 +894,7 @@ const Typesetting = props => { | ||
| 916 | style={{ | 894 | style={{ |
| 917 | position: "absolute", | 895 | position: "absolute", |
| 918 | left: 0, | 896 | left: 0, |
| 919 | - bottom: "-70px", | 897 | + bottom: "-30px", |
| 920 | textAlign: "center", | 898 | textAlign: "center", |
| 921 | width: `${maxWidth * scaleXD}px`, | 899 | width: `${maxWidth * scaleXD}px`, |
| 922 | height: "30px", | 900 | height: "30px", |
| @@ -969,7 +947,7 @@ const Typesetting = props => { | @@ -969,7 +947,7 @@ const Typesetting = props => { | ||
| 969 | <div | 947 | <div |
| 970 | style={{ | 948 | style={{ |
| 971 | position: "absolute", | 949 | position: "absolute", |
| 972 | - right: "-120px", | 950 | + right: "-10px", |
| 973 | top: 0, | 951 | top: 0, |
| 974 | textAlign: "center", | 952 | textAlign: "center", |
| 975 | width: `${30}px`, | 953 | width: `${30}px`, |
| @@ -1266,7 +1244,7 @@ const Typesetting = props => { | @@ -1266,7 +1244,7 @@ const Typesetting = props => { | ||
| 1266 | style={{ | 1244 | style={{ |
| 1267 | position: "absolute", | 1245 | position: "absolute", |
| 1268 | left: 0, | 1246 | left: 0, |
| 1269 | - bottom: "-70px", | 1247 | + bottom: "-30px", |
| 1270 | textAlign: "center", | 1248 | textAlign: "center", |
| 1271 | width: `${maxWidth}px`, | 1249 | width: `${maxWidth}px`, |
| 1272 | height: "30px", | 1250 | height: "30px", |
| @@ -1332,7 +1310,7 @@ const Typesetting = props => { | @@ -1332,7 +1310,7 @@ const Typesetting = props => { | ||
| 1332 | <div | 1310 | <div |
| 1333 | style={{ | 1311 | style={{ |
| 1334 | position: "absolute", | 1312 | position: "absolute", |
| 1335 | - right: "-90px", | 1313 | + right: "-40px", |
| 1336 | top: 0, | 1314 | top: 0, |
| 1337 | textAlign: "center", | 1315 | textAlign: "center", |
| 1338 | width: `${30}px`, | 1316 | width: `${30}px`, |
src/components/QuickQuote/index.jsx
| @@ -1922,8 +1922,8 @@ const BoxComponent = props => { | @@ -1922,8 +1922,8 @@ const BoxComponent = props => { | ||
| 1922 | 100 | 1922 | 100 |
| 1923 | ).toFixed(2) | 1923 | ).toFixed(2) |
| 1924 | ), | 1924 | ), |
| 1925 | - dWlcd: dWlcd, | ||
| 1926 | - dWlkd: dWlkd, | 1925 | + dWlcd:slaveData[index].dWlcd || dWlcd, |
| 1926 | + dWlkd: slaveData[index].dWlkd || dWlkd, | ||
| 1927 | dMachineQty: Math.floor(dProductQty / dSinglePQty), | 1927 | dMachineQty: Math.floor(dProductQty / dSinglePQty), |
| 1928 | dSinglePQty: dSinglePQty, | 1928 | dSinglePQty: dSinglePQty, |
| 1929 | dMaterialsKQty: dMaterialsKQty, | 1929 | dMaterialsKQty: dMaterialsKQty, |