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