feat: [equipment] 다중 점검주기 + 정/부 담당자 체계 구현

- InspectionCycle enum: 6종 점검주기 상수, 열 라벨, check_date 계산
- Equipment 모델: subManager 관계, canInspect() 권한 체크
- Template/Inspection 모델: inspection_cycle fillable 추가
- EquipmentInspectionService: 주기별 점검 조회/토글/권한 체크
- 점검표 UI: 주기 탭, 동적 필터(월/연도), 주기별 그리드 열
- 점검항목 템플릿: 주기별 탭 그룹핑, 모달에 주기 선택
- 설비 등록/수정/상세: 부 담당자 필드 추가
- 권한 없는 장비 셀 비활성(cursor-not-allowed, opacity-50)
This commit is contained in:
김보곤
2026-02-28 12:37:37 +09:00
parent 0aab609dcc
commit beecf0851e
14 changed files with 554 additions and 90 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Enums\InspectionCycle;
use App\Services\EquipmentInspectionService;
use App\Services\EquipmentRepairService;
use App\Services\EquipmentService;
@@ -72,8 +73,9 @@ public function inspections(Request $request): View|Response
}
$equipmentList = $this->equipmentService->getEquipmentList();
$cycles = InspectionCycle::all();
return view('equipment.inspections.index', compact('equipmentList'));
return view('equipment.inspections.index', compact('equipmentList', 'cycles'));
}
public function repairs(Request $request): View|Response