From 614747ffcacc93628525364a174408fe7af21dca Mon Sep 17 00:00:00 2001 From: king Date: Thu, 1 Oct 2026 10:39:24 +0900 Subject: [PATCH] =?UTF-8?q?fix(performance):=20=EC=A3=BC=EB=AC=B8=20?= =?UTF-8?q?=EB=82=B4=EC=97=AD=20=EC=B0=BD=20=EA=B0=80=EB=A1=9C=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A1=A4=20=EC=97=86=EC=95=A0=EA=B8=B0=20=E2=80=94=20?= =?UTF-8?q?=EB=84=93=EC=9D=80=20=EC=B0=BD(=EC=B5=9C=EB=8C=80=201640px)=20+?= =?UTF-8?q?=20=EC=83=81=ED=92=88=EB=AA=85=EB=A7=8C=20=EC=A4=84=EB=B0=94?= =?UTF-8?q?=EA=BF=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - openModal opts.wide → .perf-modal-card.is-wide(min(1640px, 100%)), 금액 클릭 주문 내역 창에 사용 - 상품명 열(.perf-ev-name)만 줄바꿈(최소 220px), 나머지 열은 한 줄 그대로 - css·js 캐시 버전 올림 Co-Authored-By: Claude Opus 5.5 --- app/modules/performance/templates/performance/index.html | 4 ++-- .../performance/templates/performance/settings.html | 4 ++-- app/static/performance.css | 3 +++ app/static/performance.js | 9 +++++---- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/modules/performance/templates/performance/index.html b/app/modules/performance/templates/performance/index.html index 98b54da..625a468 100644 --- a/app/modules/performance/templates/performance/index.html +++ b/app/modules/performance/templates/performance/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {%- macro won(v) -%} {%- if v is none -%} @@ -239,4 +239,4 @@ } | tojson }} {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/modules/performance/templates/performance/settings.html b/app/modules/performance/templates/performance/settings.html index 72169ec..fc46907 100644 --- a/app/modules/performance/templates/performance/settings.html +++ b/app/modules/performance/templates/performance/settings.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {%- macro when(v) -%}{{ (v or '')[:16] | replace('T', ' ') or '—' }}{%- endmacro -%} @@ -192,4 +192,4 @@ {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/static/performance.css b/app/static/performance.css index eab47dd..76057f7 100644 --- a/app/static/performance.css +++ b/app/static/performance.css @@ -157,6 +157,7 @@ td.is-link:hover { background: #eef2ff; text-decoration: underline; } .perf-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; padding: 20px; } .perf-modal-card { background: #fff; border-radius: 14px; width: min(1100px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); } .perf-modal-card.is-narrow { width: min(560px, 100%); } +.perf-modal-card.is-wide { width: min(1640px, 100%); } /* 주문 내역 — 열이 많아 넓게 */ .perf-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--perf-line); } .perf-modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; } .perf-modal-body { padding: 12px 16px; overflow: auto; } @@ -229,6 +230,8 @@ td.is-link:hover { background: #eef2ff; text-decoration: underline; } .perf-ev-table thead th { background: var(--perf-soft, #fafafa); box-shadow: 0 1px 0 var(--perf-line, #e5e5e5); } /* 취소 행 — 행 전체를 기울임 + 취소선 + 회색 */ .perf-ev-table tr.is-cancel td { font-style: italic; text-decoration: line-through; color: #9a9a9a; } +/* 상품명만 줄바꿈 — 긴 상품명 때문에 표가 창보다 넓어져 가로 스크롤이 생기지 않게(나머지 열은 한 줄) */ +.perf-ev-table .perf-ev-name { white-space: normal; min-width: 220px; overflow-wrap: anywhere; } /* ── 매출 업데이트 진행 창 — 쇼핑몰별·전체 진행 막대(runSyncWithProgress) ── */ .perf-prog-card { width: min(640px, 100%); } diff --git a/app/static/performance.js b/app/static/performance.js index 5380ce2..695a7ee 100644 --- a/app/static/performance.js +++ b/app/static/performance.js @@ -54,7 +54,8 @@ function openModal(title, opts) { opts = opts || {}; const back = el("div", { class: "perf-modal" }); - const card = el("div", { class: "perf-modal-card" + (opts.narrow ? " is-narrow" : ""), role: "dialog", "aria-modal": "true" }); + const card = el("div", { class: "perf-modal-card" + (opts.narrow ? " is-narrow" : opts.wide ? " is-wide" : ""), + role: "dialog", "aria-modal": "true" }); const head = el("div", { class: "perf-modal-head" }); head.appendChild(el("h3", { text: title })); const x = el("button", { type: "button", class: "perf-modal-x", "aria-label": "닫기" }, "×"); @@ -335,7 +336,7 @@ async function openEvents(code, from, to) { const name = (data.names || {})[code] || code; const title = name + " · " + (from === to ? from : from + " ~ " + to) + " 주문 내역"; - const m = openModal(title); + const m = openModal(title, { wide: true }); // 넓은 창 + 상품명 줄바꿈 → 가로 스크롤 없이 m.body.innerHTML = '

불러오는 중…

'; try { const res = await api("GET", "/performance/api/events?code=" + encodeURIComponent(code) + @@ -351,7 +352,7 @@ "" + esc(r.sales_date) + "" + esc(KIND[r.event_type] || r.event_type) + (r.is_sample ? ' 테스트' : "") + "" + "" + esc(r.external_order_id) + "" + - "" + esc(r.product_name) + (r.option_name ? " " + esc(r.option_name) + "" : "") + "" + + '' + esc(r.product_name) + (r.option_name ? " " + esc(r.option_name) + "" : "") + "" + '' + esc(r.quantity) + "" + '' + fmt(r.amount) + "" + "" + esc(r.order_date || "") + "" + esc(r.payment_date || "") + "" + @@ -360,7 +361,7 @@ m.body.innerHTML = '
' + '' + - '' + + '' + '' + body + '
매출일구분주문번호상품명수량금액주문일상품명수량금액주문일결제일상태
결제 ' + fmt(sales) + " / 취소·반품 " + fmt(minus) + '' + fmt(sum) + '
' +