feat: 添加商品仓库列表显示字段
This commit is contained in:
parent
ae0faa68c2
commit
4dab9bc4c9
@ -75,6 +75,9 @@ class WarehouseProductLists extends BaseAdminDataLists implements ListsSearchInt
|
|||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()->each(function ($item) {
|
->select()->each(function ($item) {
|
||||||
|
$item->store_name = '';
|
||||||
|
$item->image = '';
|
||||||
|
$item->price = '';
|
||||||
if ($item->financial_pm == 0) {
|
if ($item->financial_pm == 0) {
|
||||||
$item->financial_pm_name = '出库';
|
$item->financial_pm_name = '出库';
|
||||||
} else {
|
} else {
|
||||||
@ -104,10 +107,6 @@ class WarehouseProductLists extends BaseAdminDataLists implements ListsSearchInt
|
|||||||
$item->image = $find->image;
|
$item->image = $find->image;
|
||||||
$item->price = $find->price;
|
$item->price = $find->price;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$item->store_name = '';
|
|
||||||
$item->image = '';
|
|
||||||
$item->price = '';
|
|
||||||
}
|
}
|
||||||
if ($item->warehouse_id) {
|
if ($item->warehouse_id) {
|
||||||
$item->warehouse_name = Warehouse::where('id', $item->warehouse_id)->value('name');
|
$item->warehouse_name = Warehouse::where('id', $item->warehouse_id)->value('name');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user