Commit 08e288e3dd1099d398b0e25a51a2158d62dd6d0f
Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main
Showing
2 changed files
with
29 additions
and
11 deletions
src/components/QuickQuote/index.jsx
| ... | ... | @@ -681,7 +681,7 @@ const QuickQuoteEvent = props => { |
| 681 | 681 | sProductName: tableDataRowNew.sProductName, |
| 682 | 682 | sProductStyle: tableDataRowNew.sProductStyle, |
| 683 | 683 | sProductUnit: tableDataRowNew.sProductUnit, |
| 684 | - sProductNo: tableDataRowNew.sProductNo, | |
| 684 | + sProductNo: tableDataRowNew.sProductNo || "XP0001", | |
| 685 | 685 | sCustomerProductNo: tableDataRowNew.sCustomerProductNo, |
| 686 | 686 | sProductClassifyId: tableDataRowNew.sProductClassifyId, |
| 687 | 687 | sProductClassifyName: tableDataRowNew.sProductClassifyName, |
| ... | ... | @@ -1160,7 +1160,7 @@ const TreeComponent = props => { |
| 1160 | 1160 | const downAbleConfigs = await getSqlDropDownData({ ...showDownConfig }); |
| 1161 | 1161 | |
| 1162 | 1162 | props.setState(pre => { |
| 1163 | - const { slaveData = [], slaveConfig } = pre; | |
| 1163 | + const { slaveData = [], slaveConfig, manyData = [] } = pre; | |
| 1164 | 1164 | const addState = {}; |
| 1165 | 1165 | const defaultData = commonFunc.getDefaultData(slaveConfig, { tree: selectedNode }); |
| 1166 | 1166 | const slaveDataNew = slaveData.filter(item => item.sTreeNodeName === selectedNode.showName); |
| ... | ... | @@ -1189,6 +1189,10 @@ const TreeComponent = props => { |
| 1189 | 1189 | if (timeRef.current > 1) { |
| 1190 | 1190 | addState.slaveData = slaveDataNew; |
| 1191 | 1191 | addState.extraParts = {}; |
| 1192 | + addState.calcPriceFinished = false; | |
| 1193 | + if (manyData.some(item => Object.keys(item).length > 4)) { | |
| 1194 | + addState.manyData = []; | |
| 1195 | + } | |
| 1192 | 1196 | } |
| 1193 | 1197 | return { |
| 1194 | 1198 | ...pre, | ... | ... |
src/components/QuickQuote/index.less
| ... | ... | @@ -133,7 +133,7 @@ |
| 133 | 133 | flex: 0 0 25px !important; |
| 134 | 134 | max-width: 25px !important; |
| 135 | 135 | |
| 136 | - > label { | |
| 136 | + >label { | |
| 137 | 137 | display: flex; |
| 138 | 138 | width: 100%; |
| 139 | 139 | align-items: center; |
| ... | ... | @@ -156,7 +156,7 @@ |
| 156 | 156 | max-width: calc(100% - 25px); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - .viewStyle > .ant-col-24 { | |
| 159 | + .viewStyle>.ant-col-24 { | |
| 160 | 160 | padding-left: 100px; |
| 161 | 161 | } |
| 162 | 162 | } |
| ... | ... | @@ -207,9 +207,12 @@ |
| 207 | 207 | height: auto; |
| 208 | 208 | display: flex; |
| 209 | 209 | align-items: center; |
| 210 | - :global .ant-carousel .slick-dots li button { | |
| 211 | - background-color: #000; /* 未激活时的指示器颜色 */ | |
| 210 | + | |
| 211 | + :global .ant-carousel .slick-dots li button { | |
| 212 | + background-color: #000; | |
| 213 | + /* 未激活时的指示器颜色 */ | |
| 212 | 214 | } |
| 215 | + | |
| 213 | 216 | :global { |
| 214 | 217 | .ant-image { |
| 215 | 218 | padding: 15px; |
| ... | ... | @@ -249,13 +252,13 @@ |
| 249 | 252 | display: flex; |
| 250 | 253 | position: relative; |
| 251 | 254 | |
| 252 | - > div:first-child { | |
| 255 | + >div:first-child { | |
| 253 | 256 | flex: 1; |
| 254 | 257 | border-right: 1px solid #d7d7d7; |
| 255 | 258 | } |
| 256 | 259 | |
| 257 | - > div:nth-child(2) { | |
| 258 | - > div:first-child { | |
| 260 | + >div:nth-child(2) { | |
| 261 | + >div:first-child { | |
| 259 | 262 | display: flex; |
| 260 | 263 | } |
| 261 | 264 | } |
| ... | ... | @@ -360,6 +363,16 @@ |
| 360 | 363 | justify-content: space-around; |
| 361 | 364 | |
| 362 | 365 | :global { |
| 366 | + button { | |
| 367 | + padding: 0; | |
| 368 | + width: 16px; | |
| 369 | + height: 16px; | |
| 370 | + | |
| 371 | + >span { | |
| 372 | + font-size: 10px; | |
| 373 | + } | |
| 374 | + } | |
| 375 | + | |
| 363 | 376 | .ant-btn:nth-child(2) { |
| 364 | 377 | background-color: #53b637; |
| 365 | 378 | border-color: #53b637; |
| ... | ... | @@ -412,6 +425,7 @@ |
| 412 | 425 | |
| 413 | 426 | :global { |
| 414 | 427 | .ant-tree { |
| 428 | + | |
| 415 | 429 | .ant-tree-title, |
| 416 | 430 | .ant-badge { |
| 417 | 431 | color: #5c6374; |
| ... | ... | @@ -464,7 +478,7 @@ |
| 464 | 478 | width: 16px; |
| 465 | 479 | height: 16px; |
| 466 | 480 | |
| 467 | - > span { | |
| 481 | + >span { | |
| 468 | 482 | font-size: 10px; |
| 469 | 483 | } |
| 470 | 484 | } |
| ... | ... | @@ -487,4 +501,4 @@ |
| 487 | 501 | } |
| 488 | 502 | } |
| 489 | 503 | } |
| 490 | 504 | -} |
| 505 | +} | |
| 491 | 506 | \ No newline at end of file | ... | ... |