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