refactor: 수신함 상태 결정 모달에서 불필요한 처리 메모 필드 제거
🗑️ Remove Unnecessary Field: - 처리 메모 (statusNotes) 필드 제거 - 완료됨 선택 시 해결방안 필드가 있어 중복 불필요 - 진행 중 선택 시 별도 메모 불필요 🎨 UI Simplification: - 모달 UI에서 처리 메모 텍스트 영역 제거 - 더 깔끔하고 집중된 사용자 인터페이스 - 필수 정보에만 집중할 수 있도록 개선 🔧 Backend Cleanup: - IssueStatusUpdateRequest에서 notes 필드 제거 - API 엔드포인트에서 notes 처리 로직 제거 - 불필요한 detail_notes 업데이트 로직 제거 💡 User Experience: - 더 간단하고 직관적인 상태 변경 프로세스 - 완료 시에는 해결방안으로 충분한 정보 제공 - 진행 중 시에는 바로 처리 가능 Expected Result: ✅ 처리 메모 필드 완전 제거 ✅ 더 간결한 상태 결정 모달 ✅ 중복 기능 제거로 사용자 혼란 방지 ✅ 핵심 기능에 집중된 워크플로우
This commit is contained in:
Binary file not shown.
@@ -161,7 +161,6 @@ class IssueReviewRequest(BaseModel):
|
||||
class IssueStatusUpdateRequest(BaseModel):
|
||||
"""부적합 상태 변경 요청"""
|
||||
review_status: ReviewStatus
|
||||
notes: Optional[str] = None
|
||||
completion_photo: Optional[str] = None # 완료 사진 (Base64)
|
||||
solution: Optional[str] = None # 해결방안
|
||||
responsible_department: Optional[DepartmentType] = None # 담당부서
|
||||
|
||||
Binary file not shown.
@@ -285,13 +285,6 @@ async def update_issue_status(
|
||||
if status_request.responsible_person:
|
||||
issue.responsible_person = status_request.responsible_person
|
||||
|
||||
# 노트가 있으면 detail_notes에 추가
|
||||
if status_request.notes:
|
||||
current_notes = issue.detail_notes or ""
|
||||
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M")
|
||||
new_note = f"[{timestamp}] {current_user.username}: {status_request.notes}"
|
||||
issue.detail_notes = f"{current_notes}\n{new_note}".strip()
|
||||
|
||||
db.commit()
|
||||
db.refresh(issue)
|
||||
|
||||
|
||||
@@ -421,12 +421,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-2">처리 메모 (선택사항)</label>
|
||||
<textarea id="statusNotes" rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-lg"
|
||||
placeholder="처리 내용이나 특이사항을 입력하세요..."></textarea>
|
||||
</div>
|
||||
|
||||
<!-- 완료 관련 추가 정보 (완료 상태 선택 시에만 표시) -->
|
||||
<div id="completionSection" class="hidden space-y-4">
|
||||
<!-- 완료 사진 업로드 -->
|
||||
@@ -1259,7 +1253,6 @@
|
||||
document.querySelectorAll('input[name="finalStatus"]').forEach(radio => {
|
||||
radio.checked = false;
|
||||
});
|
||||
document.getElementById('statusNotes').value = '';
|
||||
|
||||
document.getElementById('statusModal').classList.remove('hidden');
|
||||
}
|
||||
@@ -1343,12 +1336,10 @@
|
||||
}
|
||||
|
||||
const reviewStatus = selectedStatus.value;
|
||||
const notes = document.getElementById('statusNotes').value.trim();
|
||||
|
||||
try {
|
||||
const requestBody = {
|
||||
review_status: reviewStatus,
|
||||
notes: notes || null
|
||||
review_status: reviewStatus
|
||||
};
|
||||
|
||||
// 완료 상태일 때 추가 정보 수집
|
||||
|
||||
Reference in New Issue
Block a user