Commit 303a24ee37bc621a364d8ac288836efd531a7115

Authored by zhangzzzz
1 parent 6c6718d8

去掉异常信息的图片;

src/mes/common/commonModelComponent/index.js
@@ -1992,49 +1992,19 @@ const CommonRepairComponent = props => { @@ -1992,49 +1992,19 @@ const CommonRepairComponent = props => {
1992 }; 1992 };
1993 1993
1994 let bCenter = false; 1994 let bCenter = false;
1995 - if (title === "异常信息") {  
1996 - style.top = "auto";  
1997 - style.left = -500;  
1998 - style.margin = 0;  
1999 - bCenter = true;  
2000 - }  
2001 -  
2002 - useEffect(  
2003 - () => {  
2004 - if (visible && title === "异常信息") {  
2005 - oBoxImg.current = document.createElement("div");  
2006 - oBoxImg.current.className = styles.boxImg;  
2007 - // oBoxImg.current.innerHTML = "盒形图";  
2008 -  
2009 - const url =  
2010 - "/data/tools/xlyerpfiles/tempPath/240606/12710101117176455089290_Image_1717645454288.png";  
2011 - const fileUrl = `${  
2012 - commonConfig.file_host  
2013 - }file/download?savePathStr=${encodeURIComponent(  
2014 - url  
2015 - )}&sModelsId=100&token=${props.app.token}`;  
2016 - const oImg = document.createElement("img");  
2017 - oImg.src = fileUrl;  
2018 - oBoxImg.current.appendChild(oImg);  
2019 -  
2020 - document.body.appendChild(oBoxImg.current);  
2021 - }  
2022 - },  
2023 - [visible]  
2024 - );  
2025 1995
2026 - // OQC标签弹窗添加清空按钮  
2027 - const onEmptyClick = () =>{  
2028 - setViewRow({  
2029 - ...viewRow,  
2030 - sAbnormalLine: '',  
2031 - sAbnormalType: '',  
2032 - sAbnormalMemo: '',  
2033 - sQcPerson: '',  
2034 - dSampQty: 0,  
2035 - bReturn: false  
2036 - })  
2037 - } 1996 + // OQC标签弹窗添加清空按钮
  1997 + const onEmptyClick = () =>{
  1998 + setViewRow({
  1999 + ...viewRow,
  2000 + sAbnormalLine: '',
  2001 + sAbnormalType: '',
  2002 + sAbnormalMemo: '',
  2003 + sQcPerson: '',
  2004 + dSampQty: 0,
  2005 + bReturn: false
  2006 + })
  2007 + }
2038 const titleNew = title === '异常信息' ? 'Abnormal Info' : title; 2008 const titleNew = title === '异常信息' ? 'Abnormal Info' : title;
2039 return ( 2009 return (
2040 <Modal 2010 <Modal