feat(cupang): 출고리스트 작성 — 입고센터별 입력·기본 택배·완료 진행 막대(%)
- 팝업에 입고센터 카드: [+ 입고센터 추가]·[센터 삭제], 센터마다 입고센터·출고방식·제품·출고를 따로 입력 (작성일·출고일·센터입고일·작업자는 공통), 출고방식 기본값 택배 - POST /cupang/api/outbound-sheet: centers 목록을 받아 센터 순서대로 출고일 시트 아래에 덧붙임 (엑셀 내려받기·올리기 1번씩, 순번 이어짐, 파렛트 센터만 배경색). centers 없으면 예전처럼 센터 1곳 - ?stream=1 이면 단계별 진행률을 NDJSON 으로 흘려보냄(내려받기 → 센터별 추가 → 올리기 → 완료/오류), 팝업은 막대 그래프와 %로 표시하고 단계 사이에도 조금씩 채움, 실패하면 빨간 막대 + 사유 - 테스트: pytest(센터별 입력 검사·여러 센터 한 번에 쓰기·진행 단계·스트림·충돌), Playwright(카드·진행 막대·완료·실패·모바일) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+22
-3
@@ -1608,7 +1608,7 @@ a.cpg-boxno-dl:hover { background: #1a5c38; border-color: #1a5c38; font-weight:
|
||||
.cpg-btn-excel { background: #217346; color: #fff; padding: 8px 16px; }
|
||||
.cpg-btn-excel:hover { background: #185c37; }
|
||||
.cpg-btn-excel:disabled { opacity: .6; cursor: default; }
|
||||
.cpg-ol-box { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; gap: 12px; }
|
||||
.cpg-ol-box { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; gap: 12px; }
|
||||
.cpg-ol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
|
||||
.cpg-ol-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.cpg-ol-box .erp-input { box-sizing: border-box; }
|
||||
@@ -1642,6 +1642,25 @@ a.cpg-boxno-dl:hover { background: #1a5c38; border-color: #1a5c38; font-weight:
|
||||
.cpg-ol-target { margin: 0; font-size: 12px; }
|
||||
.cpg-ol-error { margin: 0; font-size: 13px; color: #c22b10; }
|
||||
.cpg-ol-actions { display: flex; gap: 6px; justify-content: flex-end; }
|
||||
@media (max-width: 640px) {
|
||||
.cpg-ol-grid, .cpg-ol-grid-2 { grid-template-columns: minmax(0, 1fr); }
|
||||
.cpg-ol-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
/* 입고센터 카드 — 센터마다 출고방식·제품·출고 */
|
||||
.cpg-ol-centers { display: flex; flex-direction: column; gap: 10px; }
|
||||
.cpg-ol-center {
|
||||
display: flex; flex-direction: column; gap: 10px; padding: 12px;
|
||||
border: 1px solid var(--color-subtle-ash); border-radius: 10px; background: #f7faf8;
|
||||
}
|
||||
.cpg-ol-center-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.cpg-ol-center-no { font-size: 14px; color: #217346; }
|
||||
.cpg-ol-center-del[hidden] { display: none; }
|
||||
.cpg-ol-add-center { align-self: flex-start; }
|
||||
/* 완료 진행 막대 */
|
||||
.cpg-ol-progress { display: flex; flex-direction: column; gap: 6px; }
|
||||
.cpg-ol-progress[hidden] { display: none; }
|
||||
.cpg-ol-progress-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--color-rich-black); }
|
||||
.cpg-ol-progress-top b { color: #217346; font-variant-numeric: tabular-nums; }
|
||||
.cpg-ol-progress-track { height: 12px; border-radius: 999px; background: #e3ece6; overflow: hidden; }
|
||||
.cpg-ol-progress-bar { width: 0; height: 100%; border-radius: 999px; background: #217346; transition: width .25s ease; }
|
||||
.cpg-ol-progress.is-error .cpg-ol-progress-bar { background: #c22b10; }
|
||||
@media (max-width: 640px) {
|
||||
.cpg-ol-grid, .cpg-ol-grid-2, .cpg-ol-grid-4 { grid-template-columns: minmax(0, 1fr); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user