feat:material
This commit is contained in:
@@ -36,10 +36,10 @@ class MaterialRequest extends FormRequest
|
||||
}
|
||||
|
||||
protected array $scenes = [
|
||||
'material_list' => ['limit','query_name'],
|
||||
'material_list' => ['limit','query_name','query_kitchenId'],
|
||||
'material_add' => ['category_id', 'name', 'standard', 'unit', 'bar_code', 'city_id', 'kitchen_id'],
|
||||
'material_edit' => ['id','category_id', 'name', 'standard', 'unit', 'bar_code','status'],
|
||||
'material_delete' => ['id'],
|
||||
'materialStock_list' => ['limit','query_name','query_depotId','query_supplierId'],
|
||||
'materialStock_list' => ['limit','query_name','query_depotId','query_supplierId','query_kitchenId'],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@ class MaterialRequest extends FormRequest
|
||||
return [
|
||||
'limit' => 'required|integer',
|
||||
'query_name' =>'sometimes|string',
|
||||
'city_id' => 'sometimes|integer|exists:system_city,id',
|
||||
'kitchen_id' => 'sometimes|integer|exists:kitchen,id',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user