feat: 添加'rose'属性到产品库存管理
This commit is contained in:
parent
26dd7aaeb7
commit
31d4826466
@ -182,6 +182,7 @@ class StoreProductLogic extends BaseLogic
|
|||||||
'batch' => $params['batch'],
|
'batch' => $params['batch'],
|
||||||
'manufacturer_information' => $params['manufacturer_information']??'',
|
'manufacturer_information' => $params['manufacturer_information']??'',
|
||||||
'swap' => $params['swap'] ?? 0,
|
'swap' => $params['swap'] ?? 0,
|
||||||
|
'rose' => $params['rose'] ?? 0,
|
||||||
];
|
];
|
||||||
|
|
||||||
StoreProduct::where('id', $params['id'])->update($data);
|
StoreProduct::where('id', $params['id'])->update($data);
|
||||||
@ -213,6 +214,7 @@ class StoreProductLogic extends BaseLogic
|
|||||||
'top_cate_id'=>$dealCate['top_cate_id'],'two_cate_id'=>$dealCate['two_cate_id'],
|
'top_cate_id'=>$dealCate['top_cate_id'],'two_cate_id'=>$dealCate['two_cate_id'],
|
||||||
'bar_code'=> $params['bar_code'],
|
'bar_code'=> $params['bar_code'],
|
||||||
'purchase'=> $params['purchase'],
|
'purchase'=> $params['purchase'],
|
||||||
|
'rose'=> $params['rose']??0,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Db::commit();
|
Db::commit();
|
||||||
|
@ -69,6 +69,7 @@ class StoreStorageSend implements Consumer
|
|||||||
'sales' => 0,
|
'sales' => 0,
|
||||||
'product_type' => $find['product_type'],
|
'product_type' => $find['product_type'],
|
||||||
'stock' => 0,
|
'stock' => 0,
|
||||||
|
'rose' => $find['rose'],
|
||||||
];
|
];
|
||||||
$branch = StoreBranchProduct::create($product);
|
$branch = StoreBranchProduct::create($product);
|
||||||
$arr = [
|
$arr = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user