Commit 7f8864ea732e5efeae5d69acc96fce9d89cb99ad

Authored by 陈鑫涛
1 parent eeb5d453

拼版

src/components/Common/Typesetting/typesetting.js
@@ -40,8 +40,6 @@ const Typesetting = props => { @@ -40,8 +40,6 @@ const Typesetting = props => {
40 dL = 0, 40 dL = 0,
41 dW = 0 41 dW = 0
42 } = slaveRowData; 42 } = slaveRowData;
43 - console.log("🚀 ~ slaveRowData:", slaveRowData)  
44 -  
45 const { masterData, selectedNode, slaveData } = state; 43 const { masterData, selectedNode, slaveData } = state;
46 if (!masterData) return; 44 if (!masterData) return;
47 // 如果是卷筒类 那么上下左右留白等于左留白 45 // 如果是卷筒类 那么上下左右留白等于左留白
@@ -194,8 +192,6 @@ const Typesetting = props => { @@ -194,8 +192,6 @@ const Typesetting = props => {
194 variabless[key] = 0; 192 variabless[key] = 0;
195 } 193 }
196 }); 194 });
197 - console.log("🚀 ~ Object.keys ~ variabless:", variabless)  
198 -  
199 let DisableMateriallIcon = L ? sPackDetailPath : null; 195 let DisableMateriallIcon = L ? sPackDetailPath : null;
200 // 盒子展长展开公式计算 196 // 盒子展长展开公式计算
201 const innerWidth = slaveRowData.sTypes === "6" ? evaluateFormula(sWidthFormula, variabless) : evaluateFormula(sLengthFormula, variabless); 197 const innerWidth = slaveRowData.sTypes === "6" ? evaluateFormula(sWidthFormula, variabless) : evaluateFormula(sLengthFormula, variabless);
@@ -258,13 +254,10 @@ const Typesetting = props => { @@ -258,13 +254,10 @@ const Typesetting = props => {
258 rows = rows - 1; 254 rows = rows - 1;
259 rowsMaxLength = rows * (innerHeightCombined + boxWidthOffset + (reference ? 0 : dSWidthOffset) + dXBJJ); 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 // const remainingWidth = 261 // const remainingWidth =
269 // outerWidth - 262 // outerWidth -
270 // (cols * (innerWidthCombined + boxLengthOffset + (reference ? 0 : dSLengthOffset)) - boxLengthOffset - (reference ? 0 : dSLengthOffset)); 263 // (cols * (innerWidthCombined + boxLengthOffset + (reference ? 0 : dSLengthOffset)) - boxLengthOffset - (reference ? 0 : dSLengthOffset));
@@ -277,7 +270,9 @@ const Typesetting = props => { @@ -277,7 +270,9 @@ const Typesetting = props => {
277 const isCustomized = bAdvancedSetting; 270 const isCustomized = bAdvancedSetting;
278 271
279 let remaining = isVertical ? commonHeightCheck : commonWidthCheck; 272 let remaining = isVertical ? commonHeightCheck : commonWidthCheck;
280 - 273 + console.log(commonWidthCheck,commonHeightCheck,remainingWidth,remainingHeight,remaining,'remaining');
  274 +
  275 + // 判断
281 // const remaining = false; 276 // const remaining = false;
282 const isOdd = num => { 277 const isOdd = num => {
283 return num % 2 !== 0; 278 return num % 2 !== 0;
src/components/Common/commonFunc.js
@@ -579,6 +579,9 @@ export function showLocalMessage(props, sName, sChineseName) { @@ -579,6 +579,9 @@ export function showLocalMessage(props, sName, sChineseName) {
579 } else { 579 } else {
580 sTitle = sChineseName; 580 sTitle = sChineseName;
581 } 581 }
  582 + if (sTitle === '') {
  583 + sTitle = sChineseName
  584 + }
582 return sTitle; 585 return sTitle;
583 } 586 }
584 /** 获取常量数据 */ 587 /** 获取常量数据 */
src/components/QuickQuote/index.jsx
@@ -2221,7 +2221,6 @@ const BoxComponent = props => { @@ -2221,7 +2221,6 @@ const BoxComponent = props => {
2221 { src: slaveRowData.sPackDetailPathUpLoad, alt: "展开图" }, 2221 { src: slaveRowData.sPackDetailPathUpLoad, alt: "展开图" },
2222 { src: slaveRowData.sPackPath, alt: "立体图" }, 2222 { src: slaveRowData.sPackPath, alt: "立体图" },
2223 ]; 2223 ];
2224 - console.log(state, "activeKey");  
2225 const { activeKey = 0 } = state; 2224 const { activeKey = 0 } = state;
2226 return ( 2225 return (
2227 <Tabs 2226 <Tabs
src/routes/mobile/IndexMobile.js
@@ -116,7 +116,6 @@ class IndexMobile extends React.Component { @@ -116,7 +116,6 @@ class IndexMobile extends React.Component {
116 } 116 }
117 }; 117 };
118 renderContent(pageText) { 118 renderContent(pageText) {
119 - console.log(this.props, "pageText");  
120 119
121 if (pageText === "message") { 120 if (pageText === "message") {
122 if (location.pathname === "/indexMobile/examine") { 121 if (location.pathname === "/indexMobile/examine") {