Commit 5cf7ebf1141daca2f1d18ad1fca2a38acb4363d1

Authored by 陈鑫涛
1 parent 3534bd0d

卷筒类

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