Commit cb2f69c5f841d6bfd5bd45fabecc7e27d02b69f5
1 parent
c6622bb1
修改材料
Showing
5 changed files
with
46 additions
and
12 deletions
src/components/Common/BoxDesignCompontent/svg.js
| @@ -288,6 +288,10 @@ const SvgBox = props => { | @@ -288,6 +288,10 @@ const SvgBox = props => { | ||
| 288 | svgContainerRef.current.style.transformOrigin = "top left"; | 288 | svgContainerRef.current.style.transformOrigin = "top left"; |
| 289 | svgContainerRef.current.style.paddingTop = dSvgBoxWidth ? "0" : "25px"; | 289 | svgContainerRef.current.style.paddingTop = dSvgBoxWidth ? "0" : "25px"; |
| 290 | svgContainerRef.current.style.backgroundColor = props.isMobile ? "#EDF4FF" : ""; | 290 | svgContainerRef.current.style.backgroundColor = props.isMobile ? "#EDF4FF" : ""; |
| 291 | + // svgContainerRef.current.style.position = 'absolute'; | ||
| 292 | + // svgContainerRef.current.style.left = '50%'; | ||
| 293 | + // svgContainerRef.current.style.top = '50%'; | ||
| 294 | + // svgContainerRef.current.style.transform = 'translate(-50%, -50%)'; | ||
| 291 | } else if (props.showNew === 2) { | 295 | } else if (props.showNew === 2) { |
| 292 | // g.setAttribute("transform", `rotate(${iFAngle, dSvgBoxWidth/2,dSvgBoxHeight*2})`); | 296 | // g.setAttribute("transform", `rotate(${iFAngle, dSvgBoxWidth/2,dSvgBoxHeight*2})`); |
| 293 | let ySvg = topOffect(boxList, boxLength, boxWidth, boxHeight) * scale; | 297 | let ySvg = topOffect(boxList, boxLength, boxWidth, boxHeight) * scale; |
src/components/Common/Typesetting/typesetting.js
| @@ -612,8 +612,7 @@ const Typesetting = props => { | @@ -612,8 +612,7 @@ const Typesetting = props => { | ||
| 612 | newMaterialWidth !== materialWidth || | 612 | newMaterialWidth !== materialWidth || |
| 613 | materialName !== sMaterialsName || | 613 | materialName !== sMaterialsName || |
| 614 | newDHorizontalType !== dHorizontalType || | 614 | newDHorizontalType !== dHorizontalType || |
| 615 | - newDPortraitType !== dPortraitType || | ||
| 616 | - oldVariables !== JSON.stringify(slaveRowData) | 615 | + newDPortraitType !== dPortraitType |
| 617 | ) { | 616 | ) { |
| 618 | setMaterialLength(newMaterialLength); | 617 | setMaterialLength(newMaterialLength); |
| 619 | setMaterialWidth(newMaterialWidth); | 618 | setMaterialWidth(newMaterialWidth); |
| @@ -622,7 +621,6 @@ const Typesetting = props => { | @@ -622,7 +621,6 @@ const Typesetting = props => { | ||
| 622 | setDPartsLength(innerWidth); | 621 | setDPartsLength(innerWidth); |
| 623 | setNewDHorizontalType(dHorizontalType); | 622 | setNewDHorizontalType(dHorizontalType); |
| 624 | setNewDPortraitType(dPortraitType); | 623 | setNewDPortraitType(dPortraitType); |
| 625 | - setOldVariables(JSON.stringify(slaveRowData)); | ||
| 626 | // setDMaterialsKQty(newDMaterialsKQty) | 624 | // setDMaterialsKQty(newDMaterialsKQty) |
| 627 | const scaleX = (clientWidth - 50) / (outerWidth + 110); | 625 | const scaleX = (clientWidth - 50) / (outerWidth + 110); |
| 628 | const scaleY = (clientHeight - 5) / (outerHeight + 90); | 626 | const scaleY = (clientHeight - 5) / (outerHeight + 90); |
src/components/QuickQuote/index.css
| @@ -15,6 +15,10 @@ | @@ -15,6 +15,10 @@ | ||
| 15 | .quickQuote .content :global .ant-col-23 { | 15 | .quickQuote .content :global .ant-col-23 { |
| 16 | display: flex !important; | 16 | display: flex !important; |
| 17 | } | 17 | } |
| 18 | +.quickQuote .content :global .ant-divider { | ||
| 19 | + margin: 0 0 5px 0; | ||
| 20 | + height: 26px; | ||
| 21 | +} | ||
| 18 | .quickQuote .content .back { | 22 | .quickQuote .content .back { |
| 19 | position: absolute; | 23 | position: absolute; |
| 20 | top: 5px; | 24 | top: 5px; |
| @@ -39,6 +43,9 @@ | @@ -39,6 +43,9 @@ | ||
| 39 | .quickQuote .content .rightContent .tabs { | 43 | .quickQuote .content .rightContent .tabs { |
| 40 | height: auto; | 44 | height: auto; |
| 41 | } | 45 | } |
| 46 | +.quickQuote .content .rightContent .tabs :global .ant-tabs .ant-tabs-nav { | ||
| 47 | + margin-bottom: 0; | ||
| 48 | +} | ||
| 42 | .quickQuote .content .rightContent .tabs :global .ant-tabs-nav-wrap { | 49 | .quickQuote .content .rightContent .tabs :global .ant-tabs-nav-wrap { |
| 43 | padding-left: 20px; | 50 | padding-left: 20px; |
| 44 | } | 51 | } |
| @@ -82,6 +89,7 @@ | @@ -82,6 +89,7 @@ | ||
| 82 | } | 89 | } |
| 83 | .quickQuote .content .rightContent .viewTableDownView :global .viewStyle, | 90 | .quickQuote .content .rightContent .viewTableDownView :global .viewStyle, |
| 84 | .quickQuote .content .rightContent .viewTableDownView1 :global .viewStyle { | 91 | .quickQuote .content .rightContent .viewTableDownView1 :global .viewStyle { |
| 92 | + margin-top: 0 !important; | ||
| 85 | padding-right: 14px; | 93 | padding-right: 14px; |
| 86 | } | 94 | } |
| 87 | .quickQuote .content .rightContent .viewTableDownView :global .viewStyle .ant-form-item-label, | 95 | .quickQuote .content .rightContent .viewTableDownView :global .viewStyle .ant-form-item-label, |
| @@ -139,13 +147,16 @@ | @@ -139,13 +147,16 @@ | ||
| 139 | .quickQuote .content .rightContent .viewTableDownView2 { | 147 | .quickQuote .content .rightContent .viewTableDownView2 { |
| 140 | background-color: #3275b734; | 148 | background-color: #3275b734; |
| 141 | } | 149 | } |
| 150 | +.quickQuote .content .rightContent .viewTableDownView2 :global .viewStyle { | ||
| 151 | + margin-top: 5px !important; | ||
| 152 | +} | ||
| 142 | .quickQuote .content .rightContent .viewTable1 { | 153 | .quickQuote .content .rightContent .viewTable1 { |
| 143 | padding: 0 20px 0 0; | 154 | padding: 0 20px 0 0; |
| 144 | } | 155 | } |
| 145 | .quickQuote .content .rightContent .boxRadio { | 156 | .quickQuote .content .rightContent .boxRadio { |
| 146 | width: 100%; | 157 | width: 100%; |
| 147 | height: 30px; | 158 | height: 30px; |
| 148 | - padding: 10px 0 0 10px; | 159 | + padding: 5px 0 0 10px; |
| 149 | } | 160 | } |
| 150 | .quickQuote .content .rightContent .boxPart1 { | 161 | .quickQuote .content .rightContent .boxPart1 { |
| 151 | width: 100%; | 162 | width: 100%; |
| @@ -166,6 +177,12 @@ | @@ -166,6 +177,12 @@ | ||
| 166 | height: auto; | 177 | height: auto; |
| 167 | display: flex; | 178 | display: flex; |
| 168 | } | 179 | } |
| 180 | +.quickQuote .content .rightContent .boxPart1 .boxPart1Right .boxRreview .svgBox { | ||
| 181 | + position: absolute; | ||
| 182 | + left: 50%; | ||
| 183 | + top: 50%; | ||
| 184 | + transform: translate(-50%, -50%); | ||
| 185 | +} | ||
| 169 | .quickQuote .content .rightContent .boxPart1 .boxPart1Right .boxRreview :global .ant-carousel .slick-dots li button { | 186 | .quickQuote .content .rightContent .boxPart1 .boxPart1Right .boxRreview :global .ant-carousel .slick-dots li button { |
| 170 | background-color: #000; | 187 | background-color: #000; |
| 171 | /* 未激活时的指示器颜色 */ | 188 | /* 未激活时的指示器颜色 */ |
| @@ -251,7 +268,7 @@ | @@ -251,7 +268,7 @@ | ||
| 251 | } | 268 | } |
| 252 | .quickQuote .content .rightContent .many .btns { | 269 | .quickQuote .content .rightContent .many .btns { |
| 253 | position: absolute; | 270 | position: absolute; |
| 254 | - top: -50px; | 271 | + top: -40px; |
| 255 | right: 10px; | 272 | right: 10px; |
| 256 | height: 40px; | 273 | height: 40px; |
| 257 | min-width: 40px; | 274 | min-width: 40px; |
| @@ -275,6 +292,9 @@ | @@ -275,6 +292,9 @@ | ||
| 275 | .quickQuote .content .rightContent .materialsLine .materialsViewTable { | 292 | .quickQuote .content .rightContent .materialsLine .materialsViewTable { |
| 276 | flex: 1; | 293 | flex: 1; |
| 277 | } | 294 | } |
| 295 | +.quickQuote .content .rightContent .materialsLine .materialsViewTable :global .viewStyle { | ||
| 296 | + margin-top: 0 !important; | ||
| 297 | +} | ||
| 278 | .quickQuote .content .rightContent .materialsLine .materialsViewTable :global .ant-col-4 .ant-col-7 { | 298 | .quickQuote .content .rightContent .materialsLine .materialsViewTable :global .ant-col-4 .ant-col-7 { |
| 279 | flex-basis: 50px !important; | 299 | flex-basis: 50px !important; |
| 280 | } | 300 | } |
| @@ -357,6 +377,10 @@ | @@ -357,6 +377,10 @@ | ||
| 357 | width: calc(100% - 200px); | 377 | width: calc(100% - 200px); |
| 358 | height: 100%; | 378 | height: 100%; |
| 359 | } | 379 | } |
| 380 | +.boxModal .boxTable :global .ant-table-body tr .ant-table-cell:nth-child(3), | ||
| 381 | +.boxModal .boxTable :global .ant-table-body tr .ant-table-cell:nth-child(4) { | ||
| 382 | + text-align: center; | ||
| 383 | +} | ||
| 360 | .downOperations { | 384 | .downOperations { |
| 361 | position: absolute; | 385 | position: absolute; |
| 362 | top: 6px; | 386 | top: 6px; |
src/components/QuickQuote/index.jsx
| @@ -763,7 +763,7 @@ const QuickQuoteEvent = props => { | @@ -763,7 +763,7 @@ const QuickQuoteEvent = props => { | ||
| 763 | slaveRowData.dMachineQty = item.dMachineQty; | 763 | slaveRowData.dMachineQty = item.dMachineQty; |
| 764 | slaveRowData.dAuxiliaryQty = item.materialsInfo?.[0]?.dAuxiliaryQty; | 764 | slaveRowData.dAuxiliaryQty = item.materialsInfo?.[0]?.dAuxiliaryQty; |
| 765 | slaveRowData.sPrint = item.sProcessName; | 765 | slaveRowData.sPrint = item.sProcessName; |
| 766 | - if (bCalculatingArea) { | 766 | + if (!bCalculatingArea) { |
| 767 | // todo 核价成功后 判断bSpecialRules 为false 就要给材料长材料款赋值 | 767 | // todo 核价成功后 判断bSpecialRules 为false 就要给材料长材料款赋值 |
| 768 | // partsNewInfo | 768 | // partsNewInfo |
| 769 | slaveRowData.dWlcd = item.dMaterialsLength; | 769 | slaveRowData.dWlcd = item.dMaterialsLength; |
| @@ -1922,8 +1922,8 @@ const BoxComponent = props => { | @@ -1922,8 +1922,8 @@ const BoxComponent = props => { | ||
| 1922 | 100 | 1922 | 100 |
| 1923 | ).toFixed(2) | 1923 | ).toFixed(2) |
| 1924 | ), | 1924 | ), |
| 1925 | - dWlcd:slaveData[index].dWlcd || dWlcd, | ||
| 1926 | - dWlkd: slaveData[index].dWlkd || dWlkd, | 1925 | + dWlcd: dWlcd, |
| 1926 | + dWlkd: dWlkd, | ||
| 1927 | dMachineQty: Math.floor(dProductQty / dSinglePQty), | 1927 | dMachineQty: Math.floor(dProductQty / dSinglePQty), |
| 1928 | dSinglePQty: dSinglePQty, | 1928 | dSinglePQty: dSinglePQty, |
| 1929 | dMaterialsKQty: dMaterialsKQty, | 1929 | dMaterialsKQty: dMaterialsKQty, |
| @@ -2095,7 +2095,7 @@ const BoxComponent = props => { | @@ -2095,7 +2095,7 @@ const BoxComponent = props => { | ||
| 2095 | ...props, | 2095 | ...props, |
| 2096 | boxList, | 2096 | boxList, |
| 2097 | dSvgBoxWidth: 300, | 2097 | dSvgBoxWidth: 300, |
| 2098 | - dSvgBoxHeight: 290, | 2098 | + dSvgBoxHeight: 200, |
| 2099 | showNew: 1, | 2099 | showNew: 1, |
| 2100 | }; | 2100 | }; |
| 2101 | // upViewProps.viewRow = | 2101 | // upViewProps.viewRow = |
| @@ -2192,12 +2192,15 @@ const BoxComponent = props => { | @@ -2192,12 +2192,15 @@ const BoxComponent = props => { | ||
| 2192 | style={{ | 2192 | style={{ |
| 2193 | width: " 300px", | 2193 | width: " 300px", |
| 2194 | height: "290px", | 2194 | height: "290px", |
| 2195 | - lineHeight: "290px", | ||
| 2196 | backgroundColor: "#fff", | 2195 | backgroundColor: "#fff", |
| 2197 | borderRight: "1px solid #ccc", | 2196 | borderRight: "1px solid #ccc", |
| 2197 | + position:'relative' | ||
| 2198 | }} | 2198 | }} |
| 2199 | > | 2199 | > |
| 2200 | - <DynamicSVG {...svgProps} /> | 2200 | + <div style={{position:'absolute',left:'50%',top:'50%',transform:' translate(-50%, -50%)',width:'100%',height:'200px'}}> |
| 2201 | + <DynamicSVG {...svgProps} /> | ||
| 2202 | + | ||
| 2203 | + </div> | ||
| 2201 | </div> | 2204 | </div> |
| 2202 | ) : ( | 2205 | ) : ( |
| 2203 | <div className={styles.noImg}>{noImage}</div> | 2206 | <div className={styles.noImg}>{noImage}</div> |
src/components/QuickQuote/index.less
| @@ -226,7 +226,12 @@ | @@ -226,7 +226,12 @@ | ||
| 226 | height: auto; | 226 | height: auto; |
| 227 | display: flex; | 227 | display: flex; |
| 228 | // align-items: center; | 228 | // align-items: center; |
| 229 | - | 229 | + .svgBox{ |
| 230 | + position: absolute; | ||
| 231 | + left: 50%; | ||
| 232 | + top: 50%; | ||
| 233 | + transform: translate(-50%, -50%); | ||
| 234 | + } | ||
| 230 | :global .ant-carousel .slick-dots li button { | 235 | :global .ant-carousel .slick-dots li button { |
| 231 | background-color: #000; | 236 | background-color: #000; |
| 232 | /* 未激活时的指示器颜色 */ | 237 | /* 未激活时的指示器颜色 */ |