feat: 修改了StoreProductLists.php文件,调整了商品列表的查询字段,添加了'store_info'字段,并更新了相应的字典翻译。

This commit is contained in:
mkm 2024-09-03 17:17:21 +08:00
parent b0a6d7da50
commit 60c7b154a5

View File

@ -62,7 +62,7 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa
}
}
return StoreProduct::where($this->searchWhere)
->field(['id', 'image', 'store_name', 'swap', 'product_type', 'cate_id', 'batch', 'price', 'vip_price', 'sales', 'stock', 'is_show', 'unit', 'cost', 'rose', 'purchase', 'bar_code', 'manufacturer_information'])
->field(['id', 'image', 'store_info','store_name', 'swap', 'product_type', 'cate_id', 'batch', 'price', 'vip_price', 'sales', 'stock', 'is_show', 'unit', 'cost', 'rose', 'purchase', 'bar_code', 'manufacturer_information'])
->limit($this->limitOffset, $this->limitLength)
->order(['id' => 'desc'])
->select()->each(function ($item) {
@ -125,6 +125,7 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa
'store_name' => '商品名称',
'cate_name'=>'分类',
'unit_name'=>'单位',
'store_info'=>'规格',
'stock' => '库存',
'purchase' => '采购价',
'cost' => '商户',