feat(WarehouseProductLists): 根据商品ID或条形码搜索仓库商品

This commit is contained in:
mkm 2024-08-13 14:44:20 +08:00
parent e1bece7622
commit 1ff5168a01

View File

@ -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{