新增厂家详情

This commit is contained in:
liu 2024-06-21 09:39:32 +08:00
parent aeb74daca9
commit 5cadc7aaa0
2 changed files with 6 additions and 1 deletions

View File

@ -49,6 +49,7 @@ class StoreProductLogic extends BaseLogic
'purchase' => $params['purchase'], 'purchase' => $params['purchase'],
'rose' => $params['rose'], 'rose' => $params['rose'],
'is_return' => $params['is_return'], 'is_return' => $params['is_return'],
'manufacturer_information' => $params['manufacturer_information']??'',
'swap' => $params['swap'] ?? 0, 'swap' => $params['swap'] ?? 0,
'batch' => $params['batch'] ?? 0, 'batch' => $params['batch'] ?? 0,
]; ];
@ -149,6 +150,7 @@ class StoreProductLogic extends BaseLogic
'price' => $params['price'], 'price' => $params['price'],
'vip_price' => $params['vip_price'], 'vip_price' => $params['vip_price'],
'batch' => $params['batch'], 'batch' => $params['batch'],
'manufacturer_information' => $params['manufacturer_information']??'',
'swap' => $params['swap'] ?? 0, 'swap' => $params['swap'] ?? 0,
]; ];
@ -177,7 +179,8 @@ class StoreProductLogic extends BaseLogic
StoreBranchProduct::where('product_id', $params['id'])->update([ StoreBranchProduct::where('product_id', $params['id'])->update([
'price' => $params['price'], 'vip_price' => $params['vip_price'], 'price' => $params['price'], 'vip_price' => $params['vip_price'],
'cost' => $params['cost'], 'cost' => $params['cost'],
'batch'=>$params['batch'],'store_name'=>$params['store_name'] 'batch'=>$params['batch'],'store_name'=>$params['store_name'],
'manufacturer_information' => $params['manufacturer_information']??'',
]); ]);
Db::commit(); Db::commit();
@ -290,6 +293,7 @@ class StoreProductLogic extends BaseLogic
'store_id' => $store_id, 'store_id' => $store_id,
'sales' => 0, 'sales' => 0,
'stock' => $stock, 'stock' => $stock,
'manufacturer_information' => $find['manufacturer_information']??'',
]; ];
StoreBranchProduct::create($product); StoreBranchProduct::create($product);
$arr = [ $arr = [

View File

@ -59,6 +59,7 @@ class StoreStorageSend implements Consumer
'cost' => $find['cost'], 'cost' => $find['cost'],
'purchase' => $find['purchase'], 'purchase' => $find['purchase'],
'vip_price' => $find['vip_price'], 'vip_price' => $find['vip_price'],
'manufacturer_information' => $find['manufacturer_information']??'',
'unit' => $find['unit'], 'unit' => $find['unit'],
'batch' => $find['batch'], 'batch' => $find['batch'],
'store_id' => $store_id, 'store_id' => $store_id,