备货单与审批数据过滤
This commit is contained in:
@@ -56,7 +56,11 @@ class ApprovalRecordsService
|
||||
case 'todo':
|
||||
|
||||
if ($p['scene'] === 'todo') {
|
||||
if (!in_array(1, $request->user->role_ids)) {
|
||||
// if (!in_array(1, $request->user->role_ids)) {
|
||||
// $config['where']['approver_id'] = $request->user->uid;
|
||||
// }
|
||||
$roles_id = array_intersect([1,5,6], $request->user->role_ids);
|
||||
if(count($roles_id) === 0){
|
||||
$config['where']['approver_id'] = $request->user->uid;
|
||||
}
|
||||
$config['where']['status'] = 'pending';
|
||||
|
||||
Reference in New Issue
Block a user