From 8449b0232031823e2228f59f186aa2c999002cdc Mon Sep 17 00:00:00 2001 From: king Date: Thu, 5 Nov 2026 14:58:44 +0900 Subject: [PATCH] =?UTF-8?q?style(=EC=9E=85=EC=B6=9C=EA=B3=A0):=20=EB=B0=9C?= =?UTF-8?q?=EC=A3=BC=20=EB=AA=A9=EB=A1=9D=20=ED=91=9C=20=EB=A8=B8=EB=A6=AC?= =?UTF-8?q?=EA=B8=80=20=EA=B0=95=EC=A1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 가운데 정렬, 굵게, 글자 11% 확대(12px → 13.32px), 회색 배경. Co-Authored-By: Claude Opus 5.5 --- app/modules/inout/CLAUDE.md | 1 + app/modules/inout/templates/inout/index.html | 4 ++-- app/modules/inout/templates/inout/order_detail.html | 2 +- app/modules/inout/templates/inout/order_form.html | 2 +- app/modules/inout/templates/inout/pending.html | 2 +- app/static/inout.css | 2 ++ tests/js/inout_datepop.browser.test.js | 6 ++++++ 7 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/modules/inout/CLAUDE.md b/app/modules/inout/CLAUDE.md index 3a97d26..ea60fce 100644 --- a/app/modules/inout/CLAUDE.md +++ b/app/modules/inout/CLAUDE.md @@ -12,6 +12,7 @@ - 미입고 현황(제품별 합계·발주별·지연). - 발주 목록 상태 보기(진행 중·완료·종결·취소·전체)는 **사람마다 기억**(2026-11-04) — `inout_settings` 키 `list_status:{이메일}`(마이그레이션 없음, 005 미적용이면 기억만 안 함). 주소에 `status` 가 있으면 저장, 없으면 저장값, 그것도 없으면 진행 중. - 발주 목록 **입고일** 열(2026-11-05, 입고 예정일과 발주 사이, `db.list_orders` `receipt_dates`) — 여러 날에 나눠 입고하면 칸 안에서 줄바꿈(오래된 날부터), 같은 날 여러 번은 한 번만, 입고 전 `-`. +- 발주 목록 표 머리글(2026-11-05, `.io-list-table`) = 가운데·굵게·`--text-caption` × 111%·회색 배경. 미입고 현황 등 다른 표는 그대로. - [남은 수량 모두 채우기]를 한 번 더 누르면(= [채운 수량 되돌리기]) 채우기 전 값으로(2026-10-19, `inout.js`). - 초과 입고는 확인 화면 후 허용(트랜잭션 안에서 발주서 잠그고 판단, `confirm_over`). - **전체 입고 완료(모든 품목 입고 ≥ 발주, 상태 done·over)면 더 입고 못 함**(2026-10-19) — 화면은 입고 칸·[입고 저장]·사진·[남은 수량 채우기]를 흐리게 disabled, 서버 `_add_receipt` 도 잠근 뒤 거절. 입고 기록을 지우면 다시 열림. diff --git a/app/modules/inout/templates/inout/index.html b/app/modules/inout/templates/inout/index.html index db9c90e..9023984 100644 --- a/app/modules/inout/templates/inout/index.html +++ b/app/modules/inout/templates/inout/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} {% from "inout/_macros.html" import order_badge, progress, due, n, ymd %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} @@ -30,7 +30,7 @@
- +
diff --git a/app/modules/inout/templates/inout/order_detail.html b/app/modules/inout/templates/inout/order_detail.html index a99f7fa..7864252 100644 --- a/app/modules/inout/templates/inout/order_detail.html +++ b/app/modules/inout/templates/inout/order_detail.html @@ -20,7 +20,7 @@ {%- endmacro -%} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %} {% set active = order.status in ('open', 'partial') %} diff --git a/app/modules/inout/templates/inout/order_form.html b/app/modules/inout/templates/inout/order_form.html index aaa4b75..5e45727 100644 --- a/app/modules/inout/templates/inout/order_form.html +++ b/app/modules/inout/templates/inout/order_form.html @@ -1,5 +1,5 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} diff --git a/app/modules/inout/templates/inout/pending.html b/app/modules/inout/templates/inout/pending.html index ef3c78c..8fc48ab 100644 --- a/app/modules/inout/templates/inout/pending.html +++ b/app/modules/inout/templates/inout/pending.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} {% from "inout/_macros.html" import due, n, ymd %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} diff --git a/app/static/inout.css b/app/static/inout.css index 9e8fa90..7e30fac 100644 --- a/app/static/inout.css +++ b/app/static/inout.css @@ -28,6 +28,8 @@ .io-table td, .io-table th { white-space: nowrap; } .io-table td.io-items { white-space: normal; min-width: 160px; } .io-num { text-align: right !important; font-variant-numeric: tabular-nums; } +/* 발주 목록 머리글 — 숫자 열도 가운데(.io-num 의 !important 를 덮음) */ +.io-table.io-list-table thead th { text-align: center !important; font-size: calc(var(--text-caption, 12px) * 1.11); font-weight: 700; background: var(--color-ghost-gray, #f2f2f2); } .io-code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; } .io-order-no { font-weight: 600; color: var(--color-rich-black); text-decoration: none; font-family: ui-monospace, Consolas, monospace; } .io-order-no:hover { text-decoration: underline; } diff --git a/tests/js/inout_datepop.browser.test.js b/tests/js/inout_datepop.browser.test.js index b1ae52f..6ecdfc6 100644 --- a/tests/js/inout_datepop.browser.test.js +++ b/tests/js/inout_datepop.browser.test.js @@ -65,6 +65,12 @@ function check(name, cond, extra) { check("필터 줄 높이가 맞음", Math.abs((box.y + box.height / 2) - (search.y + search.height / 2)) < 4, { box: box, search: search }); await p.screenshot({ path: path.join(__dirname, ".out", "inout_list.png") }); + // 목록 머리글(2026-11-05) — 숫자 열까지 가운데, 굵게, 12px × 1.11, 회색 배경 + const headStyles = await p.locator(".io-table thead th").evaluateAll(function (els) { + return els.map(function (el) { const c = getComputedStyle(el); return [c.textAlign, c.fontWeight, c.fontSize, c.backgroundColor].join("|"); }); + }); + check("머리글 모양", headStyles.length > 0 && headStyles.every(function (s) { return s === "center|700|13.32px|rgb(242, 242, 242)"; }), headStyles); + // 목록 입고일 열(2026-11-05) — 입고 예정일과 발주 사이, 여러 날은 한 칸에서 줄바꿈, 입고 전 "-" const heads = await p.locator(".io-table thead th").allInnerTexts(); check("입고일 열 위치", heads.indexOf("입고일") === heads.indexOf("입고 예정일") + 1 && heads.indexOf("발주") === heads.indexOf("입고일") + 1, heads);
발주번호공장제품발주일입고 예정일입고일 발주입고미입고진행상태