feat(cupang): 달력 상세에서 출고 삭제 (건별 / 날짜 전체)

분배 확정으로 만든 출고를 지우려면 상세 페이지까지 들어가야 했다. 달력에서
날짜를 고른 뒤 오른쪽 카드에서 바로 지울 수 있게 한다. 센터가 여러 건일 때를
위해 목록 헤더에 "이 날짜 전체 삭제" 도 둔다. 둘 다 가운데 확인 팝업을 거친다.

삭제는 기존 정책대로 status='취소' soft delete 이고, 대신 달력·목록에서
취소 건을 걸러내 사용자에게는 삭제로 보이게 했다(기록은 DB 에 남는다).

- router: /{id}/delete 에 next 폼값(내부 경로만 허용) 추가, POST /cupang/day-delete 신설
- index.html: 카드 헤더에 삭제 버튼, 앵커 안에 버튼이 들어가지 않게 구조 정리
This commit is contained in:
2026-08-31 17:13:10 +09:00
parent 7a01c140b0
commit 1dc4cfc097
9 changed files with 149 additions and 12 deletions
+15
View File
@@ -836,6 +836,21 @@ body.cpg-dragging { cursor: grabbing; user-select: none; }
.cpg-ship-iqty { color: var(--color-midtone-gray); }
.cpg-ship-ibox { font-weight: 600; }
/* 달력 오른쪽 — 삭제 버튼 / 확인 팝업 */
.cpg-list-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cpg-list-head > h2 { flex: 0 0 auto; }
.cpg-list-head > .erp-muted { flex: 1 1 auto; }
.cpg-day-del { flex: 0 0 auto; }
.cpg-ship-name {
flex: 1 1 auto; min-width: 0;
font-size: 14px; font-weight: 700; text-decoration: none; color: inherit;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cpg-ship-name:hover { text-decoration: underline; }
.cpg-del-box { width: min(400px, calc(100vw - 32px)); }
.cpg-del-msg { margin: 0; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.cpg-del-act { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
/* ③ 헤더의 분배 확정 버튼 */
.cpg-dist-head-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cpg-dist-head-bar > .erp-muted { flex: 1 1 auto; min-width: 0; }