更新审核细节
This commit is contained in:
parent
0ef2cfbd51
commit
83bda7ae6a
|
@ -427,10 +427,18 @@ class FinanceExpense extends ApiController
|
||||||
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{
|
||||||
|
|
|
@ -386,10 +386,18 @@ class FinanceInvoice extends ApiController
|
||||||
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{
|
||||||
|
|
|
@ -456,9 +456,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{
|
||||||
|
|
Loading…
Reference in New Issue