feat(WarehouseProductLists): 根据商品ID或条形码搜索仓库商品
This commit is contained in:
parent
e1bece7622
commit
1ff5168a01
@ -51,7 +51,7 @@ class WarehouseProductLists extends BaseAdminDataLists implements ListsSearchInt
|
||||
{
|
||||
if($this->request->get('product_id')){
|
||||
$this->product_id=$this->request->get('product_id');
|
||||
$ids=StoreProduct::where('store_name','like','%'.$this->request->get('product_id').'%')->column('id');
|
||||
$ids=StoreProduct::where('store_name|bar_code','like','%'.$this->request->get('product_id').'%')->column('id');
|
||||
if($ids){
|
||||
$this->searchWhere[]=['product_id','in',$ids];
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user