From f6803e40d624badfc99e9a92187afaf9d4cbb93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sat, 28 Feb 2026 16:03:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[equipment]=20=EB=8B=B4=EB=8B=B9?= =?UTF-8?q?=EC=9E=90=20=E2=86=92=20=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=A0=95?= =?UTF-8?q?/=EB=B6=80=20=EB=9D=BC=EB=B2=A8=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EB=B0=8F=20sub=5Fmanager=5Fid=20=EC=A0=80=EC=9E=A5=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 설비 등록/수정 폼 라벨: 정 담당자 → 관리자 정, 부 담당자 → 관리자 부 - 상세보기(basic-info) 라벨 동일 변경 - StoreEquipmentRequest, UpdateEquipmentRequest에 sub_manager_id 검증 규칙 추가 - 기존에 sub_manager_id가 validated()에서 누락되어 저장되지 않던 버그 수정 --- app/Http/Requests/StoreEquipmentRequest.php | 1 + app/Http/Requests/UpdateEquipmentRequest.php | 1 + resources/views/equipment/create.blade.php | 6 +++--- resources/views/equipment/edit.blade.php | 6 +++--- .../views/equipment/partials/tabs/basic-info.blade.php | 4 ++-- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/Http/Requests/StoreEquipmentRequest.php b/app/Http/Requests/StoreEquipmentRequest.php index a878e71b..a8a77dda 100644 --- a/app/Http/Requests/StoreEquipmentRequest.php +++ b/app/Http/Requests/StoreEquipmentRequest.php @@ -37,6 +37,7 @@ public function rules(): array 'status' => 'nullable|in:active,idle,disposed', 'disposed_date' => 'nullable|date', 'manager_id' => 'nullable|exists:users,id', + 'sub_manager_id' => 'nullable|exists:users,id', 'photo_path' => 'nullable|string|max:500', 'memo' => 'nullable|string', 'is_active' => 'nullable|boolean', diff --git a/app/Http/Requests/UpdateEquipmentRequest.php b/app/Http/Requests/UpdateEquipmentRequest.php index 8a75831d..7216c1a2 100644 --- a/app/Http/Requests/UpdateEquipmentRequest.php +++ b/app/Http/Requests/UpdateEquipmentRequest.php @@ -39,6 +39,7 @@ public function rules(): array 'status' => 'nullable|in:active,idle,disposed', 'disposed_date' => 'nullable|date', 'manager_id' => 'nullable|exists:users,id', + 'sub_manager_id' => 'nullable|exists:users,id', 'photo_path' => 'nullable|string|max:500', 'memo' => 'nullable|string', 'is_active' => 'nullable|boolean', diff --git a/resources/views/equipment/create.blade.php b/resources/views/equipment/create.blade.php index e9da036f..6c67142e 100644 --- a/resources/views/equipment/create.blade.php +++ b/resources/views/equipment/create.blade.php @@ -122,10 +122,10 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc
-

담당자 / 비고

+

관리자 / 비고

- +
- + @@ -143,7 +143,7 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc
- +