From 248782fffb7b6ed932623196c09abda30d4a6f7c Mon Sep 17 00:00:00 2001 From: king Date: Fri, 23 Oct 2026 16:31:10 +0900 Subject: [PATCH] =?UTF-8?q?feat(cupang):=20=EC=B6=9C=EA=B3=A0=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=9E=91=EC=84=B1=20=ED=8C=9D=EC=97=85=20?= =?UTF-8?q?=E2=80=94=20=EC=9E=85=EA=B3=A0=EC=84=BC=ED=84=B0=EB=B3=84=20?= =?UTF-8?q?=EC=B9=B4=EB=93=9C=20=EB=B0=B0=EA=B2=BD=EC=83=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 센터를 고르면 카드 배경·왼쪽 띠·제목 색이 센터마다 달라진다(팝업에 나온 순서대로 8색, 같은 센터는 같은 색, 미선택은 회색). Co-Authored-By: Claude Opus 5.5 --- app/modules/cupang/CLAUDE.md | 1 + .../cupang/templates/cupang/index.html | 4 ++-- app/static/cupang-outbound.js | 23 ++++++++++++++++++- app/static/cupang.css | 15 ++++++++++-- tests/js/cupang_outbound.browser.test.js | 17 +++++++++++++- 5 files changed, 54 insertions(+), 6 deletions(-) diff --git a/app/modules/cupang/CLAUDE.md b/app/modules/cupang/CLAUDE.md index 28aef26..60c5733 100644 --- a/app/modules/cupang/CLAUDE.md +++ b/app/modules/cupang/CLAUDE.md @@ -64,6 +64,7 @@ (`PJLib.enhanceDateInput`, project.js 를 `PJ_LIB_ONLY` 로 로드). - **입고센터 카드**(`#cpg-ol-center-tpl`, [+ 입고센터 추가]·[센터 삭제], 최대 20곳): 센터마다 입고센터(시트 F열 + 등록 센터, 직접 입력 가능), 출고방식(**기본 택배**/파렛트), 제품(코드표 `GET /cupang/api/products/all` 검색 → 코드·이름 자동, 수량 수기), 출고(수기). + 카드 배경색은 센터마다 다르다(JS `recolor` → `data-tone` 0~7, 팝업에 나온 순서대로 배정·같은 센터는 같은 색·미선택은 회색, 색은 cupang.css). - `POST /cupang/api/outbound-sheet` 본문 `{document_date, ship_date, center_arrival_date, worker, centers: [{center, ship_method, outbound, lines}]}` (`centers` 없으면 본문 자체가 센터 1곳 — `_clean_outbound_entries`). 센터 순서대로 시트 `YYYYMMDD(요일)`(출고일) 맨 아래에 `export.build_block` 으로 덧붙임(순번 B열 이어짐, 파렛트 센터만 배경색). 시트가 없거나 5행 머리글이 없으면 첫 센터는 양식째 새로 쓴다(`write_table`). diff --git a/app/modules/cupang/templates/cupang/index.html b/app/modules/cupang/templates/cupang/index.html index 07c1171..c4c0813 100644 --- a/app/modules/cupang/templates/cupang/index.html +++ b/app/modules/cupang/templates/cupang/index.html @@ -4,7 +4,7 @@ {# 출고리스트 작성 팝업의 날짜 칸은 프로젝트 화면의 날짜 팝업을 그대로 쓴다 — project.js 는 PJ_LIB_ONLY 로 부품만 #} - + {% endblock %} @@ -250,7 +250,7 @@ {% block scripts %} - +