Commit 5cf7ebf1141daca2f1d18ad1fca2a38acb4363d1

Authored by 陈鑫涛
1 parent 3534bd0d

卷筒类

src/components/Common/Typesetting/typesetting.js
@@ -223,7 +223,6 @@ const evaluateFormula = (formula, variables) => { @@ -223,7 +223,6 @@ const evaluateFormula = (formula, variables) => {
223 const innerWidthCombined = isVertical 223 const innerWidthCombined = isVertical
224 ? Math.max(jInnerWidth + dFLengthOffset, jInnerWidth + dSLengthOffset) + dYBJJ 224 ? Math.max(jInnerWidth + dFLengthOffset, jInnerWidth + dSLengthOffset) + dYBJJ
225 : jInnerWidth * 2 + dSLengthOffset + dFLengthOffset + dYBJJ; 225 : jInnerWidth * 2 + dSLengthOffset + dFLengthOffset + dYBJJ;
226 -console.log('总高',innerHeightCombined,'总款',innerWidthCombined);  
227 226
228 const style = { 227 const style = {
229 width: `${outerWidth}px`, 228 width: `${outerWidth}px`,
src/components/QuickQuote/index.jsx
@@ -1216,7 +1216,7 @@ const TreeComponent = props => { @@ -1216,7 +1216,7 @@ const TreeComponent = props => {
1216 }; 1216 };
1217 }); 1217 });
1218 }; 1218 };
1219 - if (selectedNode.sProductType === "不干胶") { 1219 + if (selectedNode.sTypeKey === "juantong") {
1220 props.onSaveState({ 1220 props.onSaveState({
1221 masterData: { ...props.masterData, sFormId: "101251240115016002356125200", sOldFormId: props.masterData.sFormId }, 1221 masterData: { ...props.masterData, sFormId: "101251240115016002356125200", sOldFormId: props.masterData.sFormId },
1222 }); 1222 });
@@ -1450,7 +1450,7 @@ const BoxComponent = props => { @@ -1450,7 +1450,7 @@ const BoxComponent = props => {
1450 const [boxTypeList, setBoxTypeList] = useState([]); 1450 const [boxTypeList, setBoxTypeList] = useState([]);
1451 const [boxData, setBoxData] = useState([]); 1451 const [boxData, setBoxData] = useState([]);
1452 useEffect(() => { 1452 useEffect(() => {
1453 - if (selectedNode.sTypeKey === "kapai" || selectedNode.sProductType === "不干胶") { 1453 + if (selectedNode.sTypeKey === "kapai" || selectedNode.sTypeKey === "juantong") {
1454 const getSqlDropDownData = async ({ sId }, cb) => { 1454 const getSqlDropDownData = async ({ sId }, cb) => {
1455 const url = `${commonConfig.server_host}business/getSelectLimit/${sId}`; 1455 const url = `${commonConfig.server_host}business/getSelectLimit/${sId}`;
1456 const body = { 1456 const body = {
@@ -1464,10 +1464,10 @@ const BoxComponent = props => { @@ -1464,10 +1464,10 @@ const BoxComponent = props => {
1464 }; 1464 };
1465 1465
1466 getSqlDropDownData({ sId: "17428091410008594700322758474000" }, dropDownData => { 1466 getSqlDropDownData({ sId: "17428091410008594700322758474000" }, dropDownData => {
1467 - const boxTypeList = Array.from(new Set(dropDownData?.map(item => item.sBoxType || "其它"))); 1467 + const boxTypeList = Array.from(new Set((dropDownData || []).map(item => item.sBoxType || "其它")));
1468 setBoxTypeList(boxTypeList); 1468 setBoxTypeList(boxTypeList);
1469 setBoxData( 1469 setBoxData(
1470 - dropDownData.map((item, index) => ({ 1470 + (dropDownData || []).map((item, index) => ({
1471 ...item, 1471 ...item,
1472 iOrder: index + 1, 1472 iOrder: index + 1,
1473 })) 1473 }))
@@ -1501,6 +1501,7 @@ const BoxComponent = props => { @@ -1501,6 +1501,7 @@ const BoxComponent = props => {
1501 viewRow: slaveRowData, 1501 viewRow: slaveRowData,
1502 tableName: `slaveUp${boxModel}`, 1502 tableName: `slaveUp${boxModel}`,
1503 }; 1503 };
  1504 +console.log(slaveConfig.gdsconfigformslave.filter(item=>{ return item.iTag === 12}),'slaveConfig.gdsconfigformslave');
1504 1505
1505 const getUpViewPropsByITag = iTag => { 1506 const getUpViewPropsByITag = iTag => {
1506 const config = slaveConfig.gdsconfigformslave 1507 const config = slaveConfig.gdsconfigformslave
@@ -1550,14 +1551,14 @@ const BoxComponent = props => { @@ -1550,14 +1551,14 @@ const BoxComponent = props => {
1550 let boxConfigList = []; 1551 let boxConfigList = [];
1551 if (iTag === 20) { 1552 if (iTag === 20) {
1552 let showNameKeyList = ["dZBLB", "dSBLB", "dYBLB", "dXBLB", "dZBJJ", "dYBJJ", "dSBJJ", "dXBJJ"]; 1553 let showNameKeyList = ["dZBLB", "dSBLB", "dYBLB", "dXBLB", "dZBJJ", "dYBJJ", "dSBJJ", "dXBJJ"];
1553 - if (selectedNode.sProductType === "不干胶") { 1554 + if (selectedNode.sTypeKey === "juantong") {
1554 showNameKeyList = ["dZBLB", "dZBJJ", "dYBJJ", "dSBJJ", "dXBJJ"]; 1555 showNameKeyList = ["dZBLB", "dZBJJ", "dYBJJ", "dSBJJ", "dXBJJ"];
1555 } 1556 }
1556 const UlToolPosition = commonFunc.showLocalMessage(props, "UlToolPosition", "上下刀位"); 1557 const UlToolPosition = commonFunc.showLocalMessage(props, "UlToolPosition", "上下刀位");
1557 const RLToolPosition = commonFunc.showLocalMessage(props, "RLToolPosition", "左右刀位"); 1558 const RLToolPosition = commonFunc.showLocalMessage(props, "RLToolPosition", "左右刀位");
1558 const LeftMargin = commonFunc.showLocalMessage(props, "LeftMargin", "左右刀位"); 1559 const LeftMargin = commonFunc.showLocalMessage(props, "LeftMargin", "左右刀位");
1559 boxConfigList = boxConfig?.gdsconfigformslave?.filter(item => item.bVisible && showNameKeyList.includes(item.sName)) || []; 1560 boxConfigList = boxConfig?.gdsconfigformslave?.filter(item => item.bVisible && showNameKeyList.includes(item.sName)) || [];
1560 - if (selectedNode.sProductType === "不干胶") { 1561 + if (selectedNode.sTypeKey === "juantong") {
1561 const mappings = { 1562 const mappings = {
1562 dZBLB: "留边", 1563 dZBLB: "留边",
1563 dXBJJ: "跳距", 1564 dXBJJ: "跳距",
@@ -1584,6 +1585,8 @@ const BoxComponent = props => { @@ -1584,6 +1585,8 @@ const BoxComponent = props => {
1584 } 1585 }
1585 } 1586 }
1586 const newConfig = [...boxConfigList, ...config]; 1587 const newConfig = [...boxConfigList, ...config];
  1588 + console.log(newConfig,'newConfig');
  1589 +
1587 return { 1590 return {
1588 ...props, 1591 ...props,
1589 viewConfigs: newConfig, 1592 viewConfigs: newConfig,
@@ -1598,6 +1601,7 @@ const BoxComponent = props => { @@ -1598,6 +1601,7 @@ const BoxComponent = props => {
1598 // const upViewProps11 = getUpViewPropsByITag(11); 1601 // const upViewProps11 = getUpViewPropsByITag(11);
1599 // 印刷参数表单 1602 // 印刷参数表单
1600 let upViewProps12 = getUpViewPropsByITag(12); 1603 let upViewProps12 = getUpViewPropsByITag(12);
  1604 + console.log("🚀 ~ upViewProps12:", upViewProps12)
1601 1605
1602 const filterConditions = { 1606 const filterConditions = {
1603 juantong: x => 1607 juantong: x =>
@@ -1609,9 +1613,9 @@ const BoxComponent = props => { @@ -1609,9 +1613,9 @@ const BoxComponent = props => {
1609 x.sName === "dBleed" || 1613 x.sName === "dBleed" ||
1610 x.sName === "sPaperDirection", 1614 x.sName === "sPaperDirection",
1611 default: x => 1615 default: x =>
1612 - x.sName === "dBleed" || x.sName === "sMagnification" || x.sName === "dPartsLength" || x.sName === "dPartsWidth" || x.sName === "dSumPQty", 1616 + x.sName === "sPaperDirection"|| x.sName === "dBleed" || x.sName === "sMagnification" || x.sName === "dPartsLength" || x.sName === "dPartsWidth" || x.sName === "dSumPQty",
1613 }; 1617 };
1614 - if (selectedNode.sProductType === "不干胶") { 1618 + if (selectedNode.sTypeKey === "juantong") {
1615 upViewProps12.viewConfigs = upViewProps12.viewConfigs.filter(filterConditions.juantong); 1619 upViewProps12.viewConfigs = upViewProps12.viewConfigs.filter(filterConditions.juantong);
1616 } 1620 }
1617 if (!(selectedNode.sTypeKey === "huace" && slaveRowData.sBoxModel === "封面")) { 1621 if (!(selectedNode.sTypeKey === "huace" && slaveRowData.sBoxModel === "封面")) {
@@ -1891,7 +1895,7 @@ const BoxComponent = props => { @@ -1891,7 +1895,7 @@ const BoxComponent = props => {
1891 }; 1895 };
1892 let juantongConfig = {}; 1896 let juantongConfig = {};
1893 1897
1894 - if (selectedNode.sProductType === "不干胶") { 1898 + if (selectedNode.sTypeKey === "juantong") {
1895 const { dYBJJ, dXBJJ, dZBLB } = slaveData[index]; 1899 const { dYBJJ, dXBJJ, dZBLB } = slaveData[index];
1896 juantongConfig = { 1900 juantongConfig = {
1897 dColGap: dYBJJ, 1901 dColGap: dYBJJ,
@@ -2132,7 +2136,7 @@ const BoxComponent = props => { @@ -2132,7 +2136,7 @@ const BoxComponent = props => {
2132 <div className={styles.boxPart1}> 2136 <div className={styles.boxPart1}>
2133 <div className={styles.boxPart1Left}> 2137 <div className={styles.boxPart1Left}>
2134 <div className={styles.viewTable1}> 2138 <div className={styles.viewTable1}>
2135 - {!(selectedNode.sTypeKey === "kapai" || selectedNode.sProductType === "不干胶") ? <CommonViewTable {...upViewProps} /> : ""} 2139 + {!(selectedNode.sTypeKey === "kapai" || selectedNode.sTypeKey === "juantong") ? <CommonViewTable {...upViewProps} /> : ""}
2136 </div> 2140 </div>
2137 {cailiaoyinshuaDiv} 2141 {cailiaoyinshuaDiv}
2138 </div> 2142 </div>
src/mobile/quotation/detailNew.jsx
@@ -2313,7 +2313,13 @@ const PrintParamsComponent = props =&gt; { @@ -2313,7 +2313,13 @@ const PrintParamsComponent = props =&gt; {
2313 }; 2313 };
2314 }); 2314 });
2315 console.log("🚀 ~ printParamsConfig:", printParamsConfig) 2315 console.log("🚀 ~ printParamsConfig:", printParamsConfig)
2316 - 2316 +// printParamsConfig.forEach(item=>{
  2317 +// const showDropDown = commonUtils.isNotEmptyArr(item.dropDownData)
  2318 +// ? this.props.showConfig.dropDownData
  2319 +// : typeof this.props.showConfig.showDropDown === "object"
  2320 +// ? this.props.showConfig.showDropDown
  2321 +// : commonUtils.objectToArr(commonUtils.convertStrToObj(this.props.showConfig.showDropDown));
  2322 +// })
2317 const result = []; 2323 const result = [];
2318 for (let i = 0; i < printParams.length + 1; i++) { 2324 for (let i = 0; i < printParams.length + 1; i++) {
2319 const printParamsItem = printParams[i - 1]; 2325 const printParamsItem = printParams[i - 1];