|
|
@@ -134,17 +134,17 @@ const Advanced = (props) => { |
|
|
|
tabActiveKey: props.location.query.tabStatus ? props.location.query.tabStatus : 'basis', |
|
|
|
}); |
|
|
|
useEffect(() => { |
|
|
|
if(!props.location?.query?.isAdd){ |
|
|
|
history.push({ |
|
|
|
pathname: '/database/goods/newgoods', |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
// if(!props.location?.query?.values){ |
|
|
|
// history.push({ |
|
|
|
// pathname: '/database/goods/newgoods', |
|
|
|
// }); |
|
|
|
// }else{ |
|
|
|
SetCurrTabKey(tabStatus.tabActiveKey); |
|
|
|
initGoodsUnit(); |
|
|
|
initGoodsType(); |
|
|
|
initGetbomType(); |
|
|
|
intBatching(); |
|
|
|
} |
|
|
|
//} |
|
|
|
|
|
|
|
}, [tabStatus]) |
|
|
|
const onTabChange = (key) => { |
|
|
|