feat: [approval] 지출결의서 전용 폼 UI 추가
- Alpine.js 기반 지출결의서 전용 폼 컴포넌트 (_expense-form.blade.php) - 지출형식/세금계산서 라디오, 내역 테이블(동적 행 추가/삭제), 금액 자동합계 - 양식 code === 'expense' 시 Quill 대신 전용 폼 표시 (create/edit) - content JSON 구조화 저장, show 페이지 읽기전용 테이블 렌더링 - 기존 Quill 방식 하위 호환 유지
This commit is contained in:
@@ -95,6 +95,7 @@ public function store(Request $request): JsonResponse
|
||||
'form_id' => 'required|exists:approval_forms,id',
|
||||
'title' => 'required|string|max:200',
|
||||
'body' => 'nullable|string',
|
||||
'content' => 'nullable|array',
|
||||
'is_urgent' => 'boolean',
|
||||
'steps' => 'nullable|array',
|
||||
'steps.*.user_id' => 'required_with:steps|exists:users,id',
|
||||
@@ -118,6 +119,7 @@ public function update(Request $request, int $id): JsonResponse
|
||||
$request->validate([
|
||||
'title' => 'sometimes|string|max:200',
|
||||
'body' => 'nullable|string',
|
||||
'content' => 'nullable|array',
|
||||
'is_urgent' => 'boolean',
|
||||
'steps' => 'nullable|array',
|
||||
'steps.*.user_id' => 'required_with:steps|exists:users,id',
|
||||
|
||||
Reference in New Issue
Block a user