This commit is contained in:
weiz 2024-05-29 16:19:10 +08:00
parent 98ae69a8d6
commit 70380e97a8

View File

@ -740,10 +740,14 @@
if(empty($data)){
return $this->success('申请信息不存在');
}
if($data['check_status'] !== 2){
return $this->success('当前申请未审核通过');
if($data['check_status'] < 5){
return $this->success('当前申请未开票');
}
if($data['check_status']==5){
$res = Db::name('oa_invoice')->where('id',$params['id'])->update(['check_status'=>10]);
}else{
$res = Db::name('oa_invoice')->where('id',$params['id'])->update(['check_status'=>5]);
}
$res = Db::name('oa_invoice')->where('id',$params['id'])->update(['check_status'=>10]);
return $res ? $this->success('ok') : $this->fail('fail');
}
}