Merge pull request 'feat(StoreBranchProductLists): Update product list logic, optimize search conditions, adjust product query fields' (#102) from dev into rose

Reviewed-on: #102
This commit is contained in:
mkm 2024-08-04 17:58:56 +08:00
commit d2ecc8a166

View File

@ -65,7 +65,7 @@ class StoreBranchProductLists extends BaseAdminDataLists implements ListsSearchI
$this->searchWhere[]=$where;
}
return StoreBranchProduct::where($this->searchWhere)
->field(['id','store_id','product_id', 'image', 'store_name', 'cate_id', 'price', 'sales', 'stock', 'unit', 'cost','purchase', 'status','batch','vip_price','manufacturer_information'])
->field(['id','store_id','product_id', 'image', 'store_name','store_info', 'cate_id', 'price', 'sales', 'stock', 'unit', 'cost','purchase', 'status','batch','vip_price','manufacturer_information'])
->when(!empty($this->adminInfo['store_id']), function ($query) {
$query->where('store_id', $this->adminInfo['store_id']);
})