更新审批状态判断后逻辑
This commit is contained in:
parent
340533453b
commit
f1486a6ba4
|
@ -487,12 +487,7 @@ export default class exchangedit extends React.Component{
|
||||||
this.setState({approvalsStatus:true})
|
this.setState({approvalsStatus:true})
|
||||||
this.setState({recall_visible:true})
|
this.setState({recall_visible:true})
|
||||||
}
|
}
|
||||||
if(req.status == 1)
|
if(req.status == 1 || req.status == 2 || req.status == 3){
|
||||||
{
|
|
||||||
Notify.error("进行中的批次不能提交审核")
|
|
||||||
|
|
||||||
}
|
|
||||||
if(req.status == 2 || req.status == 3){
|
|
||||||
|
|
||||||
getIsRequireApproval(code_batch_id,data).then((res)=>{
|
getIsRequireApproval(code_batch_id,data).then((res)=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
|
|
|
@ -540,10 +540,7 @@ export default class acclist extends React.Component{
|
||||||
}
|
}
|
||||||
if(req.status == 1)
|
if(req.status == 1)
|
||||||
{
|
{
|
||||||
Notify.error("进行中的批次不能提交审核")
|
this.setState({audit_visible:true})
|
||||||
setTimeout(()=>{
|
|
||||||
this.props.history.push('/home/key-list/');
|
|
||||||
},2000)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if(req.status == 2 || req.status == 3){
|
if(req.status == 2 || req.status == 3){
|
||||||
|
|
Loading…
Reference in New Issue