Explorar o código

工单承运商添加货主过滤

zengjun %!s(int64=4) %!d(string=hai) anos
pai
achega
daf1b3cc1a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/Filters/WorkOrderFilters.php

+ 2 - 0
app/Filters/WorkOrderFilters.php

@@ -153,6 +153,8 @@ class WorkOrderFilters
     {
         if (Gate::allows('订单管理-工单处理-货主编辑') || Gate::allows('订单管理-工单处理-客服编辑')) {
             $this->queryBuilder->whereIn('owner_id', $owner_ids);
+        }else if(Gate::allows('订单管理-工单处理-承运商编辑')){
+            $this->queryBuilder->whereIn('owner_id', $owner_ids);
         }
     }