mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
feat: #10000 规格更新
This commit is contained in:
parent
3d40201c17
commit
b20abf00d6
@ -15,7 +15,13 @@ class Goods extends Model
|
||||
'brand_id',
|
||||
];
|
||||
|
||||
protected $guarded = [];
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'img_url',
|
||||
'type_id',
|
||||
'brand_id',
|
||||
'goods_code',
|
||||
];
|
||||
|
||||
/**
|
||||
* 多规格
|
||||
|
||||
@ -19,7 +19,19 @@ class GoodsSku extends Model
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
protected $fillable = [
|
||||
'goods_id',
|
||||
'title',
|
||||
'sku_code',
|
||||
'status',
|
||||
'num',
|
||||
'stock',
|
||||
'cost',
|
||||
'two_days_ago_num',
|
||||
'yesterday_num',
|
||||
'reference_price',
|
||||
'reserve',
|
||||
];
|
||||
|
||||
protected $hidden = ['created_at'];
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ return [
|
||||
'name' => '规格查看',
|
||||
'parent_id' => 2,
|
||||
],
|
||||
'goods_skus.udpate' => [
|
||||
'goods_skus.update' => [
|
||||
'id' => 25,
|
||||
'name' => '规格更新',
|
||||
'parent_id' => 2,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user