Commit 7236585846c37994ea3bf02304cca9289c10a115

Authored by Min
1 parent 8612258d

1.修复当前设备状态整体界面样式,翻译合计数量

src/components/Common/CommonComponent/index.js
@@ -2969,8 +2969,9 @@ export default class CommonComponent extends Component { @@ -2969,8 +2969,9 @@ export default class CommonComponent extends Component {
2969 /* commonClassify 制单日期、制单人员新增时设置保存时自动生成 */ 2969 /* commonClassify 制单日期、制单人员新增时设置保存时自动生成 */
2970 let speacilNote = ''; 2970 let speacilNote = '';
2971 const { record } = this.props; 2971 const { record } = this.props;
  2972 + const afterSave = commonFunc.showLocalMessage(this.props, 'afterSave', '保存后自动生成');
2972 if (commonUtils.isNotEmptyObject(record) && commonUtils.isEmptyObject(record[sName]) && commonUtils.isNotEmptyObject(sName) && (sName === 'tCreateDate' || sName === 'sMakePerson')) { 2973 if (commonUtils.isNotEmptyObject(record) && commonUtils.isEmptyObject(record[sName]) && commonUtils.isNotEmptyObject(sName) && (sName === 'tCreateDate' || sName === 'sMakePerson')) {
2973 - speacilNote = (<div className="speacialNote" style={{ position: 'absolute', padding: '0px 4px' }}> 保存后自动生成</div>); 2974 + speacilNote = (<div className="speacialNote" style={{ position: 'absolute', padding: '0px 4px' }}> {afterSave}</div>);
2974 } 2975 }
2975 2976
2976 /* 如果是图片类型 ,加载图片 */ 2977 /* 如果是图片类型 ,加载图片 */
src/components/Common/CommonTable/index.js
@@ -8815,7 +8815,7 @@ class CommonTableRc extends React.Component { @@ -8815,7 +8815,7 @@ class CommonTableRc extends React.Component {
8815 } 8815 }
8816 > 8816 >
8817 {" "} 8817 {" "}
8818 - {sValue}热热热 8818 + {sValue}
8819 </span> 8819 </span>
8820 </Tooltip> 8820 </Tooltip>
8821 )} 8821 )}
@@ -11893,6 +11893,8 @@ const useCommonTableEvent = props =&gt; { @@ -11893,6 +11893,8 @@ const useCommonTableEvent = props =&gt; {
11893 const Outputproduction = commonFunc.showLocalMessage(props, 'Outputproduction', '报工产量'); 11893 const Outputproduction = commonFunc.showLocalMessage(props, 'Outputproduction', '报工产量');
11894 const Workinghours = commonFunc.showLocalMessage(props, 'Workinghours', '计时工时'); 11894 const Workinghours = commonFunc.showLocalMessage(props, 'Workinghours', '计时工时');
11895 const pieceworkHours = commonFunc.showLocalMessage(props, 'pieceworkHours', '计件工时'); 11895 const pieceworkHours = commonFunc.showLocalMessage(props, 'pieceworkHours', '计件工时');
  11896 + const productQuantity = commonFunc.showLocalMessage(props, 'productQuantity', '成品数量(万套):');
  11897 + const sumSet = commonFunc.showLocalMessage(props, 'sumSet', '合计');
11896 11898
11897 if ( 11899 if (
11898 (["12710101117087404588200", "12710101117260270570210"].includes( 11900 (["12710101117087404588200", "12710101117260270570210"].includes(
@@ -11969,8 +11971,8 @@ const useCommonTableEvent = props =&gt; { @@ -11969,8 +11971,8 @@ const useCommonTableEvent = props =&gt; {
11969 11971
11970 return ( 11972 return (
11971 <div className={styles.totalDiv}> 11973 <div className={styles.totalDiv}>
11972 - <div className="total">合计</div>  
11973 - <div className="totalName">成品数量(万套):</div> 11974 + <div className="total">{sumSet}</div>
  11975 + <div className="totalName">{productQuantity}</div>
11974 <div className="totalValue"> 11976 <div className="totalValue">
11975 {commonUtils.convertFixNum(dProductionCount, maxDigits)} 11977 {commonUtils.convertFixNum(dProductionCount, maxDigits)}
11976 </div> 11978 </div>
src/components/Common/CommonView/index.js
@@ -7,6 +7,7 @@ import ShowType from &#39;@/components/Common/CommonComponent&#39;; @@ -7,6 +7,7 @@ import ShowType from &#39;@/components/Common/CommonComponent&#39;;
7 import AntdDraggableModal from '@/components/Common/AntdDraggableModal'; 7 import AntdDraggableModal from '@/components/Common/AntdDraggableModal';
8 import CommonListSelectTree from '@/components/Common/CommonListSelectTree'; 8 import CommonListSelectTree from '@/components/Common/CommonListSelectTree';
9 import * as commonUtils from '@/utils/utils';/* 通用方法 */ 9 import * as commonUtils from '@/utils/utils';/* 通用方法 */
  10 +import * as commonFunc from "@/components/Common/commonFunc";
10 11
11 const FormItem = Form.Item; 12 const FormItem = Form.Item;
12 // const EachInputHeight = 32; 13 // const EachInputHeight = 32;
@@ -136,6 +137,7 @@ export default class CommonView extends Component { @@ -136,6 +137,7 @@ export default class CommonView extends Component {
136 render() { 137 render() {
137 const { sModelsId, enabled, sUseInfo, app, sModelsType, tableConfigType, isEnabledPlcNo } = this.props; 138 const { sModelsId, enabled, sUseInfo, app, sModelsType, tableConfigType, isEnabledPlcNo } = this.props;
138 const { commonFieldPopupVisible, randomId, previewVisible, previewImage } = this.state; 139 const { commonFieldPopupVisible, randomId, previewVisible, previewImage } = this.state;
  140 + const afterSave = commonFunc.showLocalMessage(this.props, 'afterSave', '保存后自动2222生成');
139 let { masterData } = this.props; 141 let { masterData } = this.props;
140 const masterConfig = this.props.masterconfig ? this.props.masterconfig : this.props.masterConfig; 142 const masterConfig = this.props.masterconfig ? this.props.masterconfig : this.props.masterConfig;
141 masterData = masterData === undefined ? {} : masterData; 143 masterData = masterData === undefined ? {} : masterData;
@@ -241,7 +243,7 @@ export default class CommonView extends Component { @@ -241,7 +243,7 @@ export default class CommonView extends Component {
241 <ShowType {...showTypeProps} /> 243 <ShowType {...showTypeProps} />
242 {masterData !== undefined && commonUtils.isEmptyObject(masterData[child.sName]) && (child.sName === 'sBillNo' || child.sName === 'sMakePerson' || child.sName === 'tCheckDate' || child.sName === 'sCheckPerson') ? 244 {masterData !== undefined && commonUtils.isEmptyObject(masterData[child.sName]) && (child.sName === 'sBillNo' || child.sName === 'sMakePerson' || child.sName === 'tCheckDate' || child.sName === 'sCheckPerson') ?
243 <Col style={{ display: enabled ? 'block' : 'none' }} className="speacialNote" key={child.sId} span="12"> 245 <Col style={{ display: enabled ? 'block' : 'none' }} className="speacialNote" key={child.sId} span="12">
244 - {sModelsType !== 'smg/sendMailMsg' ? '保存后自动生成' : '发送消息无需生成单据号'} 246 + {sModelsType !== 'smg/sendMailMsg' ? afterSave : '发送消息无需生成单据号'}
245 </Col> : '' } 247 </Col> : '' }
246 </Col> 248 </Col>
247 ); 249 );
src/default.less
@@ -936,13 +936,15 @@ @@ -936,13 +936,15 @@
936 } 936 }
937 937
938 .masterLinkSpan { 938 .masterLinkSpan {
939 - width: auto;  
940 - height: 26px;  
941 - line-height: 26px; 939 + font-size: 18px!important;
  940 + width: 120%; /* 设置宽度为100% */
  941 + height: 100%; /* 设置高度为100% */
  942 + //line-height: 26px;
942 overflow: hidden; 943 overflow: hidden;
943 color: #2f54eb; 944 color: #2f54eb;
944 position: absolute; 945 position: absolute;
945 padding-right: 2px; 946 padding-right: 2px;
  947 + background-color: #f3f9ff; /* 添加背景色 */
946 z-index: 10; 948 z-index: 10;
947 cursor: pointer; 949 cursor: pointer;
948 } 950 }
@@ -1012,4 +1014,4 @@ @@ -1012,4 +1014,4 @@
1012 display: none; 1014 display: none;
1013 } 1015 }
1014 } 1016 }
1015 -}  
1016 \ No newline at end of file 1017 \ No newline at end of file
  1018 +}
src/mes/common/commonModelComponent/index.js
@@ -1926,6 +1926,8 @@ const CommonRepairComponent = props =&gt; { @@ -1926,6 +1926,8 @@ const CommonRepairComponent = props =&gt; {
1926 const modalName = "commonRepairModal"; 1926 const modalName = "commonRepairModal";
1927 const { [`${modalName}Params`]: params = {} } = props; 1927 const { [`${modalName}Params`]: params = {} } = props;
1928 1928
  1929 + const BtnCancel = commonFunc.showLocalMessage(props, 'BtnCancel', '取消');
  1930 +
1929 const { 1931 const {
1930 visible, 1932 visible,
1931 title, 1933 title,
@@ -2050,7 +2052,7 @@ const CommonRepairComponent = props =&gt; { @@ -2050,7 +2052,7 @@ const CommonRepairComponent = props =&gt; {
2050 params.tableName=='slaveWyrj2'? <Button size="large" onClick={onEmptyClick}>清空</Button> : null 2052 params.tableName=='slaveWyrj2'? <Button size="large" onClick={onEmptyClick}>清空</Button> : null
2051 } 2053 }
2052 <Button size="large" onClick={onCancel}> 2054 <Button size="large" onClick={onCancel}>
2053 - 取消 2055 + {BtnCancel}
2054 </Button> 2056 </Button>
2055 <Button size="large" type="primary" onClick={onOk}> 2057 <Button size="large" type="primary" onClick={onOk}>
2056 {confirmBtnName} 2058 {confirmBtnName}
src/mes/indexMes/index.less
@@ -294,23 +294,23 @@ @@ -294,23 +294,23 @@
294 top: 0; 294 top: 0;
295 .size(1076px, 100%); 295 .size(1076px, 100%);
296 .flex(flex-start, center); 296 .flex(flex-start, center);
297 - padding-left: 160px; 297 + padding-left: 120px;
298 flex-direction: column; 298 flex-direction: column;
299 text-align: left; 299 text-align: left;
300 color: #FFF; 300 color: #FFF;
301 301
302 :global { 302 :global {
303 .conent1 { 303 .conent1 {
304 - font-size: 64px; 304 + font-size: 50px;
305 } 305 }
306 306
307 .conent2 { 307 .conent2 {
308 - font-size: 160px; 308 + font-size: 120px;
309 font-weight: bold; 309 font-weight: bold;
310 } 310 }
311 311
312 .conent3 { 312 .conent3 {
313 - font-size: 36px; 313 + font-size: 28px;
314 } 314 }
315 315
316 .conent4 { 316 .conent4 {
src/mes/scheduledTasks/machineTasks/index.js
@@ -975,7 +975,7 @@ @@ -975,7 +975,7 @@
975 const FSMaintenance = commonFunc.showLocalMessage(props, 'FSMaintenance', '一级+二级保养'); 975 const FSMaintenance = commonFunc.showLocalMessage(props, 'FSMaintenance', '一级+二级保养');
976 const annualMaintenance = commonFunc.showLocalMessage(props, 'annualMaintenance', '年度保养'); 976 const annualMaintenance = commonFunc.showLocalMessage(props, 'annualMaintenance', '年度保养');
977 977
978 - console.log('2222', switchProduction, props); 978 +
979 979
980 const items = [ 980 const items = [
981 { 981 {
src/mes/scheduledTasks/machineTasks/index.less
@@ -424,7 +424,7 @@ @@ -424,7 +424,7 @@
424 // } 424 // }
425 425
426 .statusDropdown { 426 .statusDropdown {
427 - font-size: 20px; 427 + font-size: 16px;
428 } 428 }
429 429
430 430
@@ -460,4 +460,4 @@ @@ -460,4 +460,4 @@
460 // height: 100%; 460 // height: 100%;
461 // width: 100%; 461 // width: 100%;
462 // position: relative; 462 // position: relative;
463 -// }  
464 \ No newline at end of file 463 \ No newline at end of file
  464 +// }