From c11c5733dea49372387646de47bfa2657d4d5c44 Mon Sep 17 00:00:00 2001 From: king Date: Sat, 30 May 2026 05:52:57 +0900 Subject: [PATCH] =?UTF-8?q?ui(cupang):=20=EB=B0=95=EC=8A=A4=20=EC=9E=85?= =?UTF-8?q?=EC=88=98=EB=9F=89=20=ED=8F=BC=20=EC=A0=9C=ED=92=88=EB=AA=85=20?= =?UTF-8?q?=EB=93=9C=EB=A1=AD=EB=8B=A4=EC=9A=B4=20+=20=EB=9D=BC=EB=B2=A8?= =?UTF-8?q?=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 제품명*(등록 제품 드롭다운, 코드 오름차순) 선택 시 제품코드/스냅샷 자동 - 라벨: 제품명* / 제품코드 / 박스이름 / 박스당 입수량* - 캐시 버전 d Co-Authored-By: Claude Opus 4.8 --- app/modules/cupang/router.py | 1 + .../cupang/templates/cupang/box_rules.html | 35 +++++++++++++++---- .../cupang/templates/cupang/centers.html | 2 +- .../cupang/templates/cupang/detail.html | 2 +- app/modules/cupang/templates/cupang/form.html | 4 +-- .../cupang/templates/cupang/index.html | 2 +- .../cupang/templates/cupang/products.html | 2 +- app/templates/erp_base.html | 4 +-- 8 files changed, 38 insertions(+), 14 deletions(-) diff --git a/app/modules/cupang/router.py b/app/modules/cupang/router.py index b90c4d0..4c79b53 100644 --- a/app/modules/cupang/router.py +++ b/app/modules/cupang/router.py @@ -552,6 +552,7 @@ async def box_rules_page(request: Request) -> HTMLResponse: "page_title": "쿠팡 밀크런 — 박스 입수량", "page_subtitle": "제품코드별 쿠팡박스 1박스당 입수량 설정", "box_rules": store.list_box_rules(include_inactive=True), + "products": store.list_products(), "search_enabled": bool((_itemcode(request)) and _itemcode(request).enabled), }, ) diff --git a/app/modules/cupang/templates/cupang/box_rules.html b/app/modules/cupang/templates/cupang/box_rules.html index e133def..783efb5 100644 --- a/app/modules/cupang/templates/cupang/box_rules.html +++ b/app/modules/cupang/templates/cupang/box_rules.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
@@ -16,12 +16,18 @@ 같은 제품코드는 덮어씁니다. 쿠팡박스 1박스당 들어가는 수량.
+
- - -
+ {% if not products %} +

설정에서 제품명을 먼저 등록하면 드롭다운에 표시됩니다.

+ {% endif %} + +

입수량 규칙 ({{ box_rules|length }})

diff --git a/app/modules/cupang/templates/cupang/centers.html b/app/modules/cupang/templates/cupang/centers.html index 0db703b..bfd5c6c 100644 --- a/app/modules/cupang/templates/cupang/centers.html +++ b/app/modules/cupang/templates/cupang/centers.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/detail.html b/app/modules/cupang/templates/cupang/detail.html index aa6d8f8..c4afea1 100644 --- a/app/modules/cupang/templates/cupang/detail.html +++ b/app/modules/cupang/templates/cupang/detail.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/form.html b/app/modules/cupang/templates/cupang/form.html index 6212529..1a54dc4 100644 --- a/app/modules/cupang/templates/cupang/form.html +++ b/app/modules/cupang/templates/cupang/form.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
@@ -118,4 +118,4 @@ {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/modules/cupang/templates/cupang/index.html b/app/modules/cupang/templates/cupang/index.html index 229d532..4b125ae 100644 --- a/app/modules/cupang/templates/cupang/index.html +++ b/app/modules/cupang/templates/cupang/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/products.html b/app/modules/cupang/templates/cupang/products.html index 5f90e79..a4c1aca 100644 --- a/app/modules/cupang/templates/cupang/products.html +++ b/app/modules/cupang/templates/cupang/products.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/templates/erp_base.html b/app/templates/erp_base.html index b56dce1..1f3c17e 100644 --- a/app/templates/erp_base.html +++ b/app/templates/erp_base.html @@ -4,8 +4,8 @@ {{ page_title or "ERP" }} — DBX Corporation - - + + {% block head_extra %}{% endblock %}