更新审核细节

This commit is contained in:
yaooo 2023-11-18 15:46:03 +08:00
parent 04555d198c
commit 0ef2cfbd51
5 changed files with 53 additions and 7 deletions

View File

@ -295,9 +295,15 @@ class Common extends ApiController
if($next_step){ if($next_step){
//存在下一步审核 //存在下一步审核
if($next_step['flow_type'] == 1){ 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){ 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); $param['check_admin_ids'] = get_department_leader($detail['admin_id'],1);
} }
else{ else{
@ -345,9 +351,15 @@ class Common extends ApiController
if($next_step){ if($next_step){
//存在下一步审核 //存在下一步审核
if($next_step['flow_type'] == 1){ 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){ 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); $param['check_admin_ids'] = get_department_leader($detail['admin_id'],1);
} }
else{ else{

View File

@ -398,9 +398,15 @@ class Index extends BaseController
if($next_step){ if($next_step){
//存在下一步审核 //存在下一步审核
if($next_step['flow_type'] == 1){ 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){ 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); $param['check_admin_ids'] = get_department_leader($detail['admin_id'],1);
} }
else{ else{
@ -448,9 +454,15 @@ class Index extends BaseController
if($next_step){ if($next_step){
//存在下一步审核 //存在下一步审核
if($next_step['flow_type'] == 1){ 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){ 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); $param['check_admin_ids'] = get_department_leader($detail['admin_id'],1);
} }
else{ else{

View File

@ -400,9 +400,15 @@ class OaApprove extends ApiController
if($next_step){ if($next_step){
//存在下一步审核 //存在下一步审核
if($next_step['flow_type'] == 1){ 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){ 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); $param['check_admin_ids'] = get_department_leader($detail['admin_id'],1);
} }
else{ else{

View File

@ -445,10 +445,18 @@ class Expense extends BaseController
if($detail['check_status']==1){ if($detail['check_status']==1){
if($flows['flow_type']==1){ if($flows['flow_type']==1){
$detail['check_user'] = '部门负责人'; $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){ else if($flows['flow_type']==2){
$detail['check_user'] = '上级部门负责人'; $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); $check_user_ids[]=get_department_leader($detail['admin_id'],1);
} }
else{ else{

View File

@ -387,10 +387,18 @@ class Invoice extends BaseController
if($detail['check_status'] == 1){ if($detail['check_status'] == 1){
if($flows['flow_type']==1){ if($flows['flow_type']==1){
$detail['check_user'] = '部门负责人'; $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){ else if($flows['flow_type']==2){
$detail['check_user'] = '上级部门负责人'; $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); $check_user_ids[]=get_department_leader($detail['admin_id'],1);
} }
else{ else{