Commit a30c3563222d70ed5b867bae1a98d73c0c3bfa69
1 parent
3d9d864e
1.处理首签样点击模块 ,不出来首签样通知模块的bug
Showing
4 changed files
with
10 additions
and
8 deletions
src/mes/common/buttonComponent/index.js
| ... | ... | @@ -284,7 +284,7 @@ const ButtonComponent = props => { |
| 284 | 284 | const { id, disabled, sName } = e; |
| 285 | 285 | if (id == sModelsId || disabled) return; |
| 286 | 286 | |
| 287 | - if (e.name !== "首签样通知" || e.name !== "First Approval Sample Notice") { | |
| 287 | + if (e.name !== "首签样通知" && e.name?.trim() !== "First Approval Sample Notice") { | |
| 288 | 288 | props.onChangeRouter({ |
| 289 | 289 | routerPath: [currentContent], |
| 290 | 290 | sModelsId: id, | ... | ... |
src/mes/productionExec/index.js
| ... | ... | @@ -31,7 +31,7 @@ const ProductionExec = props => { |
| 31 | 31 | let obj = { |
| 32 | 32 | ...props, |
| 33 | 33 | openFirstNotice: ({ id, sName, name }) => { |
| 34 | - if (name == "首签样通知") { | |
| 34 | + if (name == "首签样通知" || name?.trim() === 'First Approval Sample Notice') { | |
| 35 | 35 | setModal(true); |
| 36 | 36 | } |
| 37 | 37 | }, | ... | ... |
src/mes/productionExec/noticeModal/index.js
| ... | ... | @@ -266,10 +266,11 @@ const firstNoticeModal = _props => { |
| 266 | 266 | viewRow, |
| 267 | 267 | tableName: viewName |
| 268 | 268 | }; |
| 269 | - | |
| 269 | + const firstNotice = commonFunc.showLocalMessage(props, 'firstNotice', '首签样通知'); | |
| 270 | + const firstNoticeList = commonFunc.showLocalMessage(props, 'firstNoticeList', '版材消耗登记'); | |
| 270 | 271 | return ( |
| 271 | 272 | <Modal |
| 272 | - title="首签样通知" | |
| 273 | + title={firstNotice} | |
| 273 | 274 | footer={null} |
| 274 | 275 | open={props.modalValue} |
| 275 | 276 | width="65%" |
| ... | ... | @@ -365,7 +366,7 @@ const firstNoticeModal = _props => { |
| 365 | 366 | </div> |
| 366 | 367 | </div> |
| 367 | 368 | <div class="noticeList"> |
| 368 | - <h2>首签样通知列表</h2> | |
| 369 | + <h2>{firstNoticeList}</h2> | |
| 369 | 370 | <div> |
| 370 | 371 | <StaticEditTable {...tableProps} /> |
| 371 | 372 | </div> | ... | ... |
src/mes/productionExec/productionExecMain/index.js
| ... | ... | @@ -1332,7 +1332,8 @@ const ProductionExecContent1 = props => { |
| 1332 | 1332 | if (!oNavList) return; |
| 1333 | 1333 | oNavList.childNodes[index].click(); |
| 1334 | 1334 | }; |
| 1335 | - | |
| 1335 | + const MCR = commonFunc.showLocalMessage(props, 'MCR', '物料消耗登记'); | |
| 1336 | + const PMCR = commonFunc.showLocalMessage(props, 'PMCR', '版材消耗登记'); | |
| 1336 | 1337 | return ( |
| 1337 | 1338 | <div className={styles.type1}> |
| 1338 | 1339 | <div className="topPart"> |
| ... | ... | @@ -1393,14 +1394,14 @@ const ProductionExecContent1 = props => { |
| 1393 | 1394 | size="large" |
| 1394 | 1395 | onClick={changeTab.bind(this, 0)} |
| 1395 | 1396 | > |
| 1396 | - 物料消耗登记 | |
| 1397 | + {MCR} | |
| 1397 | 1398 | </Button> |
| 1398 | 1399 | <Button |
| 1399 | 1400 | type="primary" |
| 1400 | 1401 | size="large" |
| 1401 | 1402 | onClick={changeTab.bind(this, 2)} |
| 1402 | 1403 | > |
| 1403 | - 版材消耗登记 | |
| 1404 | + {PMCR} | |
| 1404 | 1405 | </Button> |
| 1405 | 1406 | </Space> |
| 1406 | 1407 | </div> | ... | ... |