fix:dish
This commit is contained in:
@@ -26,7 +26,7 @@ class DishRequest extends FormRequest
|
||||
'query_id' => 'sometimes|integer',
|
||||
'query_dish_name' => 'sometimes|string',
|
||||
'query_city_id' => 'sometimes|integer|exists:system_city,id',
|
||||
'query_date_id' => 'sometimes|integer|exists:cycle,id',
|
||||
'query_date' => 'sometimes',
|
||||
'query_status' => 'sometimes|integer',
|
||||
'query_chef_id' => 'sometimes|integer',
|
||||
|
||||
@@ -34,6 +34,6 @@ class DishRequest extends FormRequest
|
||||
}
|
||||
|
||||
protected array $scenes = [
|
||||
'list' => ['limit','query_id','query_dish_name','query_city_id','query_date_id','query_status','query_chef_id'],
|
||||
'list' => ['limit','query_id','query_dish_name','query_city_id','query_date','query_status','query_chef_id'],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -41,6 +41,6 @@ class MaterialRequest extends FormRequest
|
||||
'material_edit' => ['id','category_id', 'name', 'standard', 'unit', 'bar_code','status'],
|
||||
'material_delete' => ['id'],
|
||||
'materialStock_list' => ['limit','query_name','query_materialId','query_depotId','query_supplierId','query_kitchenId'],
|
||||
'chef_cost_list' => ['limit','chef_name','cycle_id','query_kitchen_id'],
|
||||
'chef_cost_list' => ['limit','chef_name','date','query_kitchen_id'],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class DishRequest extends FormRequest
|
||||
return [
|
||||
'limit' => 'required|integer',
|
||||
'dish_name' => 'sometimes|string',
|
||||
'cycle_id' => 'sometimes|integer|exists:cycle,id',
|
||||
'date' => 'sometimes',
|
||||
'city_id' => 'sometimes|integer|exists:system_city,id',
|
||||
'kitchen_id' => 'sometimes|integer|exists:kitchen,id',
|
||||
|
||||
@@ -32,7 +32,7 @@ class DishRequest extends FormRequest
|
||||
}
|
||||
|
||||
protected array $scenes = [
|
||||
'add' => ['dish_name','profile','pre_quantity','price','side_dish','flavor','cycle_id','city_id','kitchen_id'],
|
||||
'add' => ['dish_name','profile','pre_quantity','price','side_dish','flavor','date','city_id','kitchen_id'],
|
||||
'edit' => ['id','dish_name','profile','pre_quantity','price','side_dish','flavor'],
|
||||
'list' =>['limit'],
|
||||
'delete' =>['id'],
|
||||
|
||||
Reference in New Issue
Block a user