|
|
|
@ -24,7 +24,7 @@ class SelectProduct extends LazyRenderable |
|
|
|
$grid->disableBatchDelete(); |
|
|
|
$grid->disableBatchActions(); |
|
|
|
|
|
|
|
$grid->model()->where('status', ProductStatus::ON_SALE); |
|
|
|
$grid->model()->where('status', ProductStatus::ON_SALE)->orderBy('id'); |
|
|
|
$grid->quickSearch(['title', 'supplier.name'])->placeholder('搜索产品名称、供应商'); |
|
|
|
|
|
|
|
$grid->column('id'); |
|
|
|
|