Merge branch 'feat/inout-recv-bar-buttons'
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% extends "erp_base.html" %}
|
||||
{% from "inout/_macros.html" import order_badge, progress, due, n, ymd %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/inout.css?v=20261019c" />{% endblock %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/inout.css?v=20261019d" />{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="io">
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</footer>
|
||||
</dialog>
|
||||
{%- endmacro -%}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/inout.css?v=20261019c" />{% endblock %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/inout.css?v=20261019d" />{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% set active = order.status in ('open', 'partial') %}
|
||||
@@ -158,8 +158,8 @@
|
||||
<span>입고증 사진 <small>(최대 {{ max_photos }}장)</small></span>
|
||||
<label class="io-photo-pick">
|
||||
<input type="file" name="photos" accept="image/*" multiple id="io-photo-input" class="io-photo-input" data-max="{{ max_photos }}"{{ dis }} />
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 8h3l2-3h6l2 3h3v11H4z"/><circle cx="12" cy="13" r="3.5"/></svg>
|
||||
사진 고르기·찍기
|
||||
<svg class="io-photo-pick-icon" viewBox="0 0 24 24" width="28" height="28" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 8h3l2-3h6l2 3h3v11H4z"/><circle cx="12" cy="13" r="3.5"/></svg>
|
||||
입고증 업로드
|
||||
</label>
|
||||
</div>
|
||||
<button type="button" class="erp-btn erp-btn-outline" id="io-fill-remaining"{{ dis }}>남은 수량 모두 채우기</button>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% extends "erp_base.html" %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/inout.css?v=20261019c" />{% endblock %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/inout.css?v=20261019d" />{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="io">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "erp_base.html" %}
|
||||
{% from "inout/_macros.html" import due, n, ymd %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/inout.css?v=20261019c" />{% endblock %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/inout.css?v=20261019d" />{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="io">
|
||||
|
||||
@@ -305,3 +305,10 @@
|
||||
.io-receipt-bar.is-locked .erp-btn, .io-receipt-bar.is-locked .io-photo-pick, .io-receipt-bar.is-locked input { cursor: not-allowed; pointer-events: none; }
|
||||
.io-table .io-recv:disabled { opacity: .5; cursor: not-allowed; background: #f3f4f6; }
|
||||
.io-recv-done-note { color: #1e7a34; font-weight: 600; }
|
||||
|
||||
/* 입고 줄 — 입력칸·[입고증 업로드]·[남은 수량 모두 채우기]·[입고 저장] 높이를 34px 로 맞춤(2026-10-19).
|
||||
입고증 업로드의 사진 아이콘은 버튼 높이에 거의 꽉 차게(28px, 위아래 여백 없이) */
|
||||
.io-receipt-bar .erp-field input, .io-receipt-bar .erp-btn, .io-receipt-bar .io-photo-pick { height: 34px; box-sizing: border-box; }
|
||||
.io-receipt-bar .erp-btn { display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
|
||||
.io-receipt-bar .io-photo-pick { padding: 0 12px 0 8px; gap: 6px; }
|
||||
.io-receipt-bar .io-photo-pick-icon { flex: none; width: 28px; height: 28px; }
|
||||
|
||||
@@ -128,7 +128,7 @@ cupang·malaysia 와 같은 DSN). 화면에서 코드·이름으로 검색(`GET
|
||||
|
||||
## 6-2. 입고증 사진(2026-10-16, 마이그레이션 003)
|
||||
|
||||
- 입고 담당이 **입고 저장 때** [사진 고르기·찍기](여러 장, 휴대폰은 카메라) — 브라우저가 긴 변 2000px JPEG 로 줄여 올린다
|
||||
- 입고 담당이 **입고 저장 때** [입고증 업로드](2026-10-19 이름 변경 — 예전 "사진 고르기·찍기", 여러 장, 휴대폰은 카메라) — 브라우저가 긴 변 2000px JPEG 로 줄여 올린다
|
||||
(4032×3024 7.9MB → 2000×1500 약 0.8MB, 줄인 게 더 크면 원본, HEIC·GIF 는 그대로). 입고 한 건에 **10장**, 한 장 **10MB**까지.
|
||||
- 서버는 파일 머리로 종류를 판단(`store.sniff_image` — JPG·PNG·WEBP·GIF·HEIC, SVG·PDF 등 거절)하고 **입고와 한 트랜잭션**으로
|
||||
`inout_receipt_photos`(bytea — 백업에 함께)에 넣는다 — 사진이 틀리면 입고도 저장 안 함, 초과 확인에 막혀도 사진 저장 안 함.
|
||||
|
||||
Reference in New Issue
Block a user