From 2e3ea610b7108243b40e30a7a84367bac1e10248 Mon Sep 17 00:00:00 2001 From: king Date: Sat, 30 May 2026 06:03:02 +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=202=EC=97=B4=20=EB=B0=B0=EC=B9=98=20+=20?= =?UTF-8?q?=EA=B3=A0=EC=A0=95=ED=8F=AD=20+=20=EC=9E=85=EC=88=98=EB=9F=89?= =?UTF-8?q?=20"=EA=B0=9C"=20=EB=8B=A8=EC=9C=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 추가/수정 480px(좌), 입수량 규칙 900px(우) - 제품명/제품코드/박스이름 입력 140px, 박스당 입수량 60px + "개" 접미 - 캐시 버전 e Co-Authored-By: Claude Opus 4.8 --- .../cupang/templates/cupang/box_rules.html | 55 +++++++++++-------- .../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/static/cupang.css | 22 ++++++++ app/templates/erp_base.html | 4 +- 8 files changed, 61 insertions(+), 32 deletions(-) diff --git a/app/modules/cupang/templates/cupang/box_rules.html b/app/modules/cupang/templates/cupang/box_rules.html index 783efb5..66d1108 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 %}
@@ -9,15 +9,17 @@ ◀◀ 달력 - -
+
+ + +

박스 입수량 추가 / 수정

- 같은 제품코드는 덮어씁니다. 쿠팡박스 1박스당 들어가는 수량. + 같은 제품코드는 덮어씁니다.
-
+
+ + + + + +
@@ -41,24 +46,24 @@ {% if not products %}

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

{% endif %} + +
- - - -
+ +

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

@@ -89,5 +94,7 @@ + + {% endblock %} diff --git a/app/modules/cupang/templates/cupang/centers.html b/app/modules/cupang/templates/cupang/centers.html index bfd5c6c..1e02ee6 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 c4afea1..ef160a0 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 1a54dc4..fae0be9 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 4b125ae..3bd7faf 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 a4c1aca..c4d55ac 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/static/cupang.css b/app/static/cupang.css index afb8aa2..eacf321 100644 --- a/app/static/cupang.css +++ b/app/static/cupang.css @@ -239,6 +239,28 @@ .cpg-src-item.cpg-registered .cpg-src-code { color: #d4d4d4; } .cpg-src-item.cpg-registered:hover { background: #3a3a3a; } +/* ── 박스 입수량 (좌: 추가/수정 480 / 우: 목록 900) ── */ +.cpg-brule-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; } +.cpg-brule-add { flex: 0 0 480px; width: 480px; min-width: 0; margin-bottom: 0; } +.cpg-brule-list { flex: 0 0 900px; width: 900px; min-width: 0; margin-bottom: 0; } +@media (max-width: 1420px) { .cpg-brule-list { flex-basis: auto; width: 100%; } } +@media (max-width: 540px) { .cpg-brule-add { flex-basis: 100%; width: 100%; } } + +.cpg-brule-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; } +/* 제품명·제품코드·박스이름 140px 고정 (erp.css min-width:240 오버라이드) */ +.cpg .cpg-brule-fields .erp-field > .erp-input, +.cpg .cpg-brule-fields .erp-field > .erp-select { + width: 140px; min-width: 140px; max-width: 140px; box-sizing: border-box; +} +/* 박스당 입수량 60px + "개" */ +.cpg-upb-wrap { display: inline-flex; align-items: center; gap: 4px; } +.cpg .cpg-brule-fields .cpg-upb-wrap > .cpg-brule-upb { + width: 60px; min-width: 60px; max-width: 60px; box-sizing: border-box; +} +.cpg-upb-unit { font-size: 13px; color: var(--color-midtone-gray); } +/* 메모는 넓게 */ +.cpg .cpg-brule-fields .cpg-brule-memo { width: 300px; min-width: 300px; max-width: 300px; } + /* ── 상품 검색 드롭다운 ── */ .cpg-search-pop { position: absolute; z-index: 50; diff --git a/app/templates/erp_base.html b/app/templates/erp_base.html index 1f3c17e..23f9c4c 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 %}