From c10139c098a33ab487051755f396b30862e649c4 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Sun, 4 Feb 2024 16:33:52 +0800 Subject: [PATCH] 111 --- app/adminapi/logic/oa/FlowApproveLogic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/adminapi/logic/oa/FlowApproveLogic.php b/app/adminapi/logic/oa/FlowApproveLogic.php index 2006bda3e..025d62285 100644 --- a/app/adminapi/logic/oa/FlowApproveLogic.php +++ b/app/adminapi/logic/oa/FlowApproveLogic.php @@ -38,7 +38,7 @@ class FlowApproveLogic extends BaseLogic $current_check_user = ''; $current_check_user_ids = ''; //获取审核步骤 - $step = FlowStep::field('flow_step,flow_user,is_active')->where('approve_id',$data['id'])->order('sort asc')->select()->each(function($item)use($create_user,&$current_check_user){ + $step = FlowStep::field('flow_step,flow_user,is_active')->where('approve_id',$data['id'])->order('sort asc')->select()->each(function($item)use($create_user,&$current_check_user,&$current_check_user_ids){ $item['flow_step_text'] = $item->flow_step_text; if($item['flow_step'] == 0){ $item['flow_step_text'] = $create_user['name'].'创建'; @@ -50,7 +50,7 @@ class FlowApproveLogic extends BaseLogic } if($item['is_active'] == 1){ $current_check_user = $item['flow_user_name']; - $current_check_user_ids = $item['flow_user']; + $current_check_user_ids = explode(',',$item['flow_user']); } })->toArray(); //获取审批记录 @@ -60,6 +60,7 @@ class FlowApproveLogic extends BaseLogic $data['flow_name'] = $flow['name']; $data['check_status_text'] = $data->check_status_text; $data['current_check_user'] = $current_check_user; + $data['current_check_user_ids'] = $current_check_user_ids; $data['create_user_name'] = $create_user['name']; $data['copy_user'] = implode(',',$copy); $data['step'] = $step;