备货单与审批数据过滤
This commit is contained in:
@@ -60,7 +60,7 @@ class ApprovalRecordsService
|
||||
// $config['where']['approver_id'] = $request->user->uid;
|
||||
// }
|
||||
$roles_id = array_intersect([1,5,6], $request->user->role_ids);
|
||||
if(count($roles_id) === 0){
|
||||
if(count($roles_id) == 0){
|
||||
$config['where']['approver_id'] = $request->user->uid;
|
||||
}
|
||||
$config['where']['status'] = 'pending';
|
||||
|
||||
@@ -36,7 +36,7 @@ class StockOrdersService extends \app\common\service\StockOrdersService
|
||||
$config['order']['id'] = 'desc';
|
||||
|
||||
$roles_id = array_intersect([1,5,6], $request->user->role_ids);
|
||||
if(count($roles_id) === 0){
|
||||
if(count($roles_id) == 0){
|
||||
$config['where']['salesperson_id'] = $request->user->uid;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user