|
@@ -258,6 +258,13 @@ class PurchaseOrderSpecialService extends Service
|
|
->select('id')->get()->toArray();
|
|
->select('id')->get()->toArray();
|
|
$model->whereIn('supplier',array_column($id,'id'));
|
|
$model->whereIn('supplier',array_column($id,'id'));
|
|
}
|
|
}
|
|
|
|
+ if(! empty($data['supplier_man'])) {
|
|
|
|
+ $id = Depart::where('del_time',0)
|
|
|
|
+ ->where('parent_id',0)
|
|
|
|
+ ->where('title', 'LIKE', '%'.$data['supplier_man'].'%')
|
|
|
|
+ ->select('id')->get()->toArray();
|
|
|
|
+ $model->whereIn('supplier',array_column($id,'id'));
|
|
|
|
+ }
|
|
|
|
|
|
return $model;
|
|
return $model;
|
|
}
|
|
}
|