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