|
|
@@ -102,18 +102,18 @@ class WorkOrderFilters
|
|
|
{
|
|
|
$status = [];
|
|
|
if (Gate::allows('订单管理-工单处理-宝时编辑')) {
|
|
|
- $status[]= 4;
|
|
|
+ array_push($status,1,4);
|
|
|
}
|
|
|
if (Gate::allows('订单管理-工单处理-承运商编辑')) {
|
|
|
- $status[]= 3;
|
|
|
+ array_push($status,3);
|
|
|
}
|
|
|
if (Gate::allows('订单管理-工单处理-货主编辑')) {
|
|
|
- $status[]= 1;
|
|
|
+ array_push($status,2);
|
|
|
}
|
|
|
if (!isset($this->params['is_end'])) {
|
|
|
$this->queryBuilder->where('status', '!=', 5); // 过滤已完成
|
|
|
} else {
|
|
|
- $status[]= 5;
|
|
|
+ array_push($status,5);
|
|
|
}
|
|
|
$this->queryBuilder->whereIn('status',$status);
|
|
|
}
|