Commit c6622bb14eb8c343eb8a434ed93538fbf3905b94

Authored by 陈鑫涛
1 parent de832460

排版

src/components/Common/BoxShowImgMaterial/indexNew.js
... ... @@ -219,7 +219,7 @@ const BoxShowImgMaterial = props => {
219 219 fontSize: `${size || 11}px`,
220 220 textAlign: "center",
221 221 height: "30px",
222   - bottom: `-${100}px`,
  222 + bottom: `-${20}px`,
223 223 lineHeight: "30px",
224 224 }}
225 225 >
... ... @@ -288,7 +288,7 @@ const BoxShowImgMaterial = props => {
288 288 style={{
289 289 position: "absolute",
290 290 top: "0",
291   - right: "-140px",
  291 + right: "-20px",
292 292 height: `${dWlkd * scaleY}px`,
293 293 lineHeight: `${dWlkd * scaleY}px`,
294 294 fontSize: `${size || 11}px`,
... ...
src/components/Common/Typesetting/typesetting.js
... ... @@ -202,7 +202,6 @@ const Typesetting = props => {
202 202 const boxWidthOffset = evaluateFormula(sSecondLongitudinalOffset, variabless); // 第二列纵向偏移
203 203 const isVertical = sSettingMethod === "从上到下"; // true 表示竖向排列,false 表示横向排列 sSettingMethod === '从上到下'
204 204 const reference = sSGroupOffset === "首盒"; // 第三列参考
205   - console.log(innerWidth, innerHeight, dFWidthOffset, dFLengthOffset, dSWidthOffset, dSLengthOffset, boxLengthOffset, boxWidthOffset, "typeSetting");
206 205  
207 206 // 计算内层盒子尺寸 加上间距
208 207 let jInnerHeight = innerHeight;
... ... @@ -227,8 +226,6 @@ const Typesetting = props => {
227 226 ? Math.max(jInnerWidth + dFLengthOffset, jInnerWidth + dSLengthOffset) + dYBJJ
228 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 230 const style = {
234 231 width: `${outerWidth}px`,
... ... @@ -273,16 +270,7 @@ const Typesetting = props => {
273 270 const isCustomized = bAdvancedSetting;
274 271  
275 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 576 const propsDataHeight = Number(propsData.props.style.height.slice(0, -2));
589 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 580 const newMaterialLength = parseFloat(propsDataLeft + (remaining ? jInnerWidth : innerWidthCombined) + dZBLB + dYBLB).toFixed(2); // 原纸长
594 581 const newMaterialWidth = parseFloat(propsDataTop + propsDataHeight + dSBLB + dXBLB).toFixed(2);
... ... @@ -713,16 +700,7 @@ const Typesetting = props => {
713 700 Number(slaveDataDetail?.dMaxWidth) >= Number(slaveRowData?.dMachineWidth);
714 701  
715 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 704 const confirmParam = commonFunc.showLocalMessage(props, "confirmParam", "排版尺寸大于上机尺寸,请确认参数!");
727 705  
728 706 if (isCustomized && !isShow) {
... ... @@ -916,7 +894,7 @@ const Typesetting = props => {
916 894 style={{
917 895 position: "absolute",
918 896 left: 0,
919   - bottom: "-70px",
  897 + bottom: "-30px",
920 898 textAlign: "center",
921 899 width: `${maxWidth * scaleXD}px`,
922 900 height: "30px",
... ... @@ -969,7 +947,7 @@ const Typesetting = props => {
969 947 <div
970 948 style={{
971 949 position: "absolute",
972   - right: "-120px",
  950 + right: "-10px",
973 951 top: 0,
974 952 textAlign: "center",
975 953 width: `${30}px`,
... ... @@ -1266,7 +1244,7 @@ const Typesetting = props =&gt; {
1266 1244 style={{
1267 1245 position: "absolute",
1268 1246 left: 0,
1269   - bottom: "-70px",
  1247 + bottom: "-30px",
1270 1248 textAlign: "center",
1271 1249 width: `${maxWidth}px`,
1272 1250 height: "30px",
... ... @@ -1332,7 +1310,7 @@ const Typesetting = props =&gt; {
1332 1310 <div
1333 1311 style={{
1334 1312 position: "absolute",
1335   - right: "-90px",
  1313 + right: "-40px",
1336 1314 top: 0,
1337 1315 textAlign: "center",
1338 1316 width: `${30}px`,
... ...
src/components/QuickQuote/index.jsx
... ... @@ -1922,8 +1922,8 @@ const BoxComponent = props =&gt; {
1922 1922 100
1923 1923 ).toFixed(2)
1924 1924 ),
1925   - dWlcd: dWlcd,
1926   - dWlkd: dWlkd,
  1925 + dWlcd:slaveData[index].dWlcd || dWlcd,
  1926 + dWlkd: slaveData[index].dWlkd || dWlkd,
1927 1927 dMachineQty: Math.floor(dProductQty / dSinglePQty),
1928 1928 dSinglePQty: dSinglePQty,
1929 1929 dMaterialsKQty: dMaterialsKQty,
... ...