feat(performance): 일자별 표 날짜 mm/dd(요일)·폭 210px, 주문 내역 창 열 제목 고정·취소 표시
- 일자별 × 쇼핑몰: 날짜 "09/01(화)" 형식, 공휴일 이름은 날짜 바로 오른쪽, 날짜 열 너비 210px 고정 - 주문 내역 창: 열 제목 가운데·굵게·150%(18px), 창을 스크롤해도 위에 고정 - 구분 "취소"는 기울임 + 취소선 + 회색 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -109,12 +109,13 @@ a.perf-seg.is-active, a.perf-seg.is-active:link, a.perf-seg.is-active:visited {
|
||||
.perf-zero { color: #c9c9c9; }
|
||||
.perf-na::before { content: ""; }
|
||||
.perf-th-total, .perf-td-total { background: #f6f6f6; font-weight: 600; }
|
||||
.perf-main .perf-td-label { min-width: 88px; }
|
||||
/* 날짜 열 너비 고정(210px) — 공휴일 이름이 날짜 오른쪽에 붙는다 */
|
||||
.perf-main thead th.perf-th-label, .perf-main .perf-td-label { width: 210px; min-width: 210px; max-width: 210px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
|
||||
.perf-row-day.is-sat .perf-td-label { color: var(--perf-sat); }
|
||||
.perf-row-day.is-sun .perf-td-label { color: var(--perf-sun); }
|
||||
.perf-row-day.is-today .perf-td-label::after { content: "오늘"; margin-left: 6px; font-size: 10px; padding: 0 5px; border-radius: 999px; background: var(--color-deep-black); color: #fff; vertical-align: 1px; }
|
||||
.perf-row-day.is-future td, .perf-row-month.is-future td, .perf-year tr.is-future td { color: #c9c9c9; }
|
||||
.perf-hol { display: block; font-size: 10.5px; font-weight: 400; }
|
||||
.perf-hol { display: inline; margin-left: 6px; font-size: 11px; font-weight: 400; }
|
||||
.perf-row-week th, .perf-row-week td { background: #f3f3f3; font-weight: 600; border-bottom: 1px solid var(--perf-line); }
|
||||
.perf-row-week .perf-td-total { background: #e9e9e9; }
|
||||
.perf-row-total th, .perf-row-total td { background: var(--color-deep-black); color: #fff; font-weight: 600; border-bottom: 0; }
|
||||
@@ -215,3 +216,11 @@ td.is-link:hover { background: #eef2ff; text-decoration: underline; }
|
||||
.perf-diff-bad { color: var(--perf-down); font-weight: 600; }
|
||||
.perf-diff-ok { color: #0f8a3a; }
|
||||
.perf-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline dotted; cursor: pointer; }
|
||||
|
||||
/* 주문 내역 창 — 열 제목은 가운데·굵게·150%, 창을 스크롤해도 위에 고정 */
|
||||
.perf-ev-wrap { overflow: visible; }
|
||||
.perf-ev-table thead th, .perf-ev-table thead th.perf-th-label {
|
||||
text-align: center; font-weight: 700; font-size: 18px; color: var(--color-deep-black, #111);
|
||||
position: sticky; top: -12px; z-index: 2;
|
||||
}
|
||||
.perf-ev-table td.perf-ev-kind-cancel { font-style: italic; text-decoration: line-through; color: #9a9a9a; }
|
||||
|
||||
@@ -188,7 +188,8 @@
|
||||
sum += r.amount;
|
||||
if (r.amount >= 0) sales += r.amount; else minus += r.amount;
|
||||
return '<tr class="' + (r.amount < 0 ? "perf-ev-cancel" : "") + '">' +
|
||||
"<td>" + esc(r.sales_date) + "</td><td>" + esc(KIND[r.event_type] || r.event_type) +
|
||||
"<td>" + esc(r.sales_date) + "</td><td" + (r.event_type === "CANCEL" ? ' class="perf-ev-kind-cancel"' : "") + ">" +
|
||||
esc(KIND[r.event_type] || r.event_type) +
|
||||
(r.is_sample ? ' <span class="perf-pill">테스트</span>' : "") + "</td>" +
|
||||
"<td>" + esc(r.external_order_id) + "</td>" +
|
||||
"<td>" + esc(r.product_name) + (r.option_name ? " <span class='perf-muted'>" + esc(r.option_name) + "</span>" : "") + "</td>" +
|
||||
@@ -198,7 +199,7 @@
|
||||
"<td>" + esc(r.order_status) + "</td></tr>";
|
||||
}).join("");
|
||||
m.body.innerHTML =
|
||||
'<div class="erp-table-wrap"><table class="perf-table"><thead><tr>' +
|
||||
'<div class="perf-ev-wrap"><table class="perf-table perf-ev-table"><thead><tr>' +
|
||||
'<th class="perf-th-label">매출일</th><th class="perf-th-label">구분</th><th class="perf-th-label">주문번호</th>' +
|
||||
'<th class="perf-th-label">상품명</th><th>수량</th><th>금액</th><th class="perf-th-label">주문일</th>' +
|
||||
'<th class="perf-th-label">결제일</th><th class="perf-th-label">상태</th></tr></thead><tbody>' + body +
|
||||
|
||||
Reference in New Issue
Block a user