Files
sam-api/app/Http/Requests/Leave/IndexRequest.php
권혁성 7246ac003f fix(WEB): 수주 페이지 필드 매핑 및 제품-부품 트리 구조 개선
- ApiClient 인터페이스: representative → manager_name, contact_person 변경
- transformApiToFrontend: client.representative → client.manager_name 수정
- ApiOrderItem에 floor_code, symbol_code 필드 추가 (제품-부품 매핑)
- ApiOrder에 options 타입 정의 추가
- ApiQuote에 calculation_inputs 타입 정의 추가
- 수주 상세 페이지 제품-부품 트리 구조 UI 개선
2026-01-20 16:14:46 +09:00

34 lines
1.0 KiB
PHP

<?php
namespace App\Http\Requests\Leave;
use App\Http\Requests\Traits\HasPagination;
use Illuminate\Foundation\Http\FormRequest;
class IndexRequest extends FormRequest
{
use HasPagination;
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'user_id' => 'nullable|integer',
'status' => 'nullable|string|in:pending,approved,rejected,cancelled',
'leave_type' => 'nullable|string|in:annual,half_am,half_pm,sick,family,maternity,parental',
'date_from' => 'nullable|date',
'date_to' => 'nullable|date|after_or_equal:date_from',
'year' => 'nullable|integer|min:2020|max:2099',
'department_id' => 'nullable|integer',
'sort_by' => 'nullable|string|in:created_at,start_date,end_date,days,status',
'sort_dir' => 'nullable|string|in:asc,desc',
'per_page' => 'nullable|integer|min:1',
'page' => 'nullable|integer|min:1',
];
}
}