Commit 996bb84bddb49cda243857d934f997b90b20792c
Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main
Showing
2 changed files
with
15 additions
and
18 deletions
src/components/QuickQuote/index.jsx
| ... | ... | @@ -1316,15 +1316,16 @@ const TreeComponent = props => { |
| 1316 | 1316 | addState.slaveData = slaveDataNew; |
| 1317 | 1317 | } |
| 1318 | 1318 | |
| 1319 | + addState.slaveData = slaveDataNew.map(item => { | |
| 1320 | + const { sPackDetailPathUpLoad, sPackPath } = selectedNode; | |
| 1321 | + return { | |
| 1322 | + ...item, | |
| 1323 | + ...(sPackDetailPathUpLoad ? { sPackDetailPathUpLoad } : {}), | |
| 1324 | + ...(sPackPath ? { sPackPath } : {}), | |
| 1325 | + }; | |
| 1326 | + }); | |
| 1327 | + | |
| 1319 | 1328 | if (timeRef.current > 1) { |
| 1320 | - addState.slaveData = slaveDataNew.map(item => { | |
| 1321 | - const { sPackDetailPathUpLoad, sPackPath } = selectedNode; | |
| 1322 | - return { | |
| 1323 | - ...item, | |
| 1324 | - ...(sPackDetailPathUpLoad ? { sPackDetailPathUpLoad } : {}), | |
| 1325 | - ...(sPackPath ? { sPackPath } : {}), | |
| 1326 | - }; | |
| 1327 | - }); | |
| 1328 | 1329 | delete masterData.cpProcessName; |
| 1329 | 1330 | delete masterData.productProcessInfo; |
| 1330 | 1331 | addState.masterData = masterData; |
| ... | ... | @@ -1360,7 +1361,6 @@ const TreeComponent = props => { |
| 1360 | 1361 | }; |
| 1361 | 1362 | }); |
| 1362 | 1363 | }; |
| 1363 | - console.log(selectedNode, "selectedNode"); | |
| 1364 | 1364 | if (selectedNode.sTypeKey === "juantong") { |
| 1365 | 1365 | props.onSaveState({ |
| 1366 | 1366 | masterData: { ...props.masterData, sFormId: "101251240115016002356125200" }, |
| ... | ... | @@ -1378,6 +1378,7 @@ const TreeComponent = props => { |
| 1378 | 1378 | <Tree |
| 1379 | 1379 | className={"hide-file-icon"} |
| 1380 | 1380 | onSelect={(e, select) => { |
| 1381 | + props.onSaveState({ currentBoxModel: undefined }); | |
| 1381 | 1382 | props.setState(pre => { |
| 1382 | 1383 | const { masterData = {} } = pre; |
| 1383 | 1384 | const { sProductName, sProductUnit } = masterData; |
| ... | ... | @@ -1647,9 +1648,6 @@ const BoxComponent = props => { |
| 1647 | 1648 | ) { |
| 1648 | 1649 | return false; |
| 1649 | 1650 | } |
| 1650 | - if (item.sName === "iRateType") { | |
| 1651 | - console.log(item, "iRateType"); | |
| 1652 | - } | |
| 1653 | 1651 | if (Number(selectedNode.iRateType) === 0 && item.sName === "iPage") { |
| 1654 | 1652 | return false; |
| 1655 | 1653 | } else { |
| ... | ... | @@ -2205,7 +2203,6 @@ const BoxComponent = props => { |
| 2205 | 2203 | dSvgBoxHeight: 200, |
| 2206 | 2204 | showNew: 1, |
| 2207 | 2205 | }; |
| 2208 | - console.log(boxList, "boxList"); | |
| 2209 | 2206 | |
| 2210 | 2207 | // upViewProps.viewRow = |
| 2211 | 2208 | |
| ... | ... | @@ -2570,18 +2567,18 @@ const MaterialsComponent = props => { |
| 2570 | 2567 | return { |
| 2571 | 2568 | ...item, |
| 2572 | 2569 | sVisColumnName: "sMaterialsName", |
| 2573 | - iColValue: 14, | |
| 2570 | + iColValue: 8, | |
| 2574 | 2571 | }; |
| 2575 | 2572 | } else if (sName === "dMaterialPrice") { |
| 2576 | 2573 | return { |
| 2577 | 2574 | ...item, |
| 2578 | - iColValue: 6, | |
| 2575 | + iColValue: 8, | |
| 2579 | 2576 | }; |
| 2580 | 2577 | } else if (sName === "sComMaterials") { |
| 2581 | 2578 | return { |
| 2582 | 2579 | ...item, |
| 2583 | 2580 | sName: "bComMaterials", |
| 2584 | - iColValue: 4, | |
| 2581 | + iColValue: 8, | |
| 2585 | 2582 | }; |
| 2586 | 2583 | } else { |
| 2587 | 2584 | return item; | ... | ... |
src/components/QuickQuote/index.less
| ... | ... | @@ -100,7 +100,7 @@ |
| 100 | 100 | |
| 101 | 101 | .ant-form-item-control { |
| 102 | 102 | flex: 1; |
| 103 | - max-width: calc(100% - 70x); | |
| 103 | + max-width: calc(100% - 70px); | |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | .viewStyle { |
| ... | ... | @@ -386,7 +386,7 @@ |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | 388 | .materialsBtns { |
| 389 | - width: 80px; | |
| 389 | + width: 10%; | |
| 390 | 390 | display: flex; |
| 391 | 391 | align-items: center; |
| 392 | 392 | justify-content: space-around; | ... | ... |