更新审核细节

This commit is contained in:
yaooo 2023-11-18 15:53:07 +08:00
parent 0ef2cfbd51
commit 83bda7ae6a
3 changed files with 25 additions and 3 deletions

View File

@ -427,10 +427,18 @@ class FinanceExpense extends ApiController
if($detail['check_status']==1){
if($flows['flow_type']==1){
$detail['check_user'] = '部门负责人';
$check_user_ids[]=get_department_leader($detail['admin_id']);
$check_user_ids[]=get_department_manager($detail['admin_id']);
}
else if($flows['flow_type']==2){
$detail['check_user'] = '上级部门负责人';
$check_user_ids[]=get_department_manager($detail['admin_id'],1);
}
else if($flows['flow_type']==5){
$detail['check_user'] = '部门分管领导';
$check_user_ids[]=get_department_leader($detail['admin_id']);
}
else if($flows['flow_type']==6){
$detail['check_user'] = '上级部门分管领导';
$check_user_ids[]=get_department_leader($detail['admin_id'],1);
}
else{

View File

@ -386,10 +386,18 @@ class FinanceInvoice extends ApiController
if($detail['check_status'] == 1){
if($flows['flow_type']==1){
$detail['check_user'] = '部门负责人';
$check_user_ids[]=get_department_leader($detail['admin_id']);
$check_user_ids[]=get_department_manager($detail['admin_id']);
}
else if($flows['flow_type']==2){
$detail['check_user'] = '上级部门负责人';
$check_user_ids[]=get_department_manager($detail['admin_id'],1);
}
else if($flows['flow_type']==5){
$detail['check_user'] = '部门分管领导';
$check_user_ids[]=get_department_leader($detail['admin_id']);
}
else if($flows['flow_type']==6){
$detail['check_user'] = '上级部门分管领导';
$check_user_ids[]=get_department_leader($detail['admin_id'],1);
}
else{

View File

@ -456,9 +456,15 @@ class OaApprove extends ApiController
if($next_step){
//存在下一步审核
if($next_step['flow_type'] == 1){
$param['check_admin_ids'] = get_department_leader($detail['admin_id']);
$param['check_admin_ids'] = get_department_manager($detail['admin_id']);
}
else if($next_step['flow_type'] == 2){
$param['check_admin_ids'] = get_department_manager($detail['admin_id'],1);
}
else if($next_step['flow_type'] == 5){
$param['check_admin_ids'] = get_department_leader($detail['admin_id']);
}
else if($next_step['flow_type'] == 6){
$param['check_admin_ids'] = get_department_leader($detail['admin_id'],1);
}
else{