Commit 3471cf7bfe06e320c7221b276d9af7e4c0061070
1 parent
15f9efb9
1.劲嘉---日报查看详情,跳转默认“待上报”页签
Showing
1 changed file
with
15 additions
and
2 deletions
src/mes/costomPageFun/index.js
| @@ -825,12 +825,25 @@ const mesTableBtnClick3 = props => { | @@ -825,12 +825,25 @@ const mesTableBtnClick3 = props => { | ||
| 825 | 825 | ||
| 826 | const iIndex = table0Data.findIndex(item => item.sId === sId); | 826 | const iIndex = table0Data.findIndex(item => item.sId === sId); |
| 827 | if (iIndex === -1) { | 827 | if (iIndex === -1) { |
| 828 | - message.info("未找到对应报工任务,请检查登录班次!", 3); | 828 | + setTimeout(() => { |
| 829 | + props.onTableSelectRowChange("table0", []); | ||
| 830 | + props.onSaveState({ | ||
| 831 | + refreshTableList: ["table0,table0NotFirstlineSelected"], | ||
| 832 | + }); | ||
| 833 | + }, 200); | ||
| 834 | + | ||
| 835 | + const oTabs = document.querySelectorAll(`.ant-tabs-tab-btn[id*="班组报工"]`); | ||
| 836 | + oTabs?.[0]?.click(); | ||
| 837 | + setTimeout(() => { | ||
| 838 | + const oTabs1 = document.querySelectorAll(`.ant-tabs-tab-btn[id*="产量上报信息"]`); | ||
| 839 | + oTabs1?.[0]?.click(); | ||
| 840 | + }, 200); | ||
| 841 | + return; | ||
| 829 | // props.onExecInstructSet({ | 842 | // props.onExecInstructSet({ |
| 830 | // nextProps: props, | 843 | // nextProps: props, |
| 831 | // btnConfig: config | 844 | // btnConfig: config |
| 832 | // }); | 845 | // }); |
| 833 | - return; | 846 | + // return; |
| 834 | } | 847 | } |
| 835 | 848 | ||
| 836 | props.onSaveState({ | 849 | props.onSaveState({ |