feat(expense): 첨부 뷰어 패닝/엑셀 + 체크박스 일괄작업 + 정렬
[첨부 뷰어] - 펜 주석 기능 제거 (요구사항 정정). - 이미지: 마우스 드래그로 패닝, 축소/확대/100%/맞춤 줌 도구. - 엑셀 (xlsx/xls/xlsm/csv/ods): SheetJS lazy load(CDN) 후 시트 탭으로 표시. - 기타 파일: 다운로드/새 창 링크. [경비 내역 / 승인 대기 공통] - 행 단위 첫 컬럼 체크박스 + thead 전체선택 체크박스. - 표 제목 상단에 일괄 동작 버튼 (선택 0이면 disabled). - 카드 헤더와 행 모두 vertical-align: middle 로 일직선 정렬. [경비 내역] - 첨부 추가 버튼의 📎 아이콘 제거. "기타" → "기타 파일". - 행 단위 "제출" 버튼 제거 → 상단 "선택 항목 제출" 단일화. - 행 단위 첨부 보기 아이콘(📎) 추가 — 클릭 시 ErpAttachViewer 호출. [승인 대기] - 일괄 승인 (체크 후 상단 버튼). - 반려는 항목별 유지 (사유 필수라 일괄 부적합). [CSS] - erp-table tbody td vertical-align top → middle (admin 포함 일관).
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* ════════════════════════════════════════════════════
|
||||
첨부 뷰어 모달 — 이미지 미리보기 + 펜 주석
|
||||
첨부 뷰어 모달 — 이미지 패닝 + 엑셀 시트
|
||||
════════════════════════════════════════════════════ */
|
||||
|
||||
.eav-overlay {
|
||||
@@ -14,7 +14,7 @@
|
||||
.eav-modal {
|
||||
background: var(--color-canvas-white, #fff);
|
||||
width: 100%;
|
||||
max-width: 1180px;
|
||||
max-width: 1280px;
|
||||
border-radius: 14px;
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
@@ -26,7 +26,6 @@
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid var(--color-subtle-ash, #e5e5e5);
|
||||
background: var(--color-canvas-white, #fff);
|
||||
}
|
||||
.eav-title { font-weight: 600; font-size: 14px; flex: 1; min-width: 0;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
@@ -36,16 +35,10 @@
|
||||
background: var(--color-canvas-white, #fff);
|
||||
color: var(--color-rich-black, #0a0a0a);
|
||||
padding: 5px 10px; font-size: 12px; border-radius: 8px; cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-family: inherit; text-decoration: none; display: inline-block;
|
||||
}
|
||||
.eav-btn:hover { background: var(--color-ghost-gray, #f2f2f2); }
|
||||
.eav-btn.is-active { background: var(--color-deep-black, #000); color: #fff; border-color: #000; }
|
||||
.eav-color {
|
||||
width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff;
|
||||
box-shadow: 0 0 0 1px var(--color-subtle-ash, #e5e5e5);
|
||||
cursor: pointer; padding: 0;
|
||||
}
|
||||
.eav-color.is-active { box-shadow: 0 0 0 2px var(--color-deep-black, #000); }
|
||||
.eav-close {
|
||||
width: 28px; height: 28px; border-radius: 8px;
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
@@ -54,7 +47,7 @@
|
||||
.eav-close:hover { background: var(--color-ghost-gray, #f2f2f2); }
|
||||
|
||||
.eav-body {
|
||||
display: grid; grid-template-columns: 200px 1fr; min-height: 0; height: 100%;
|
||||
display: grid; grid-template-columns: 220px 1fr; min-height: 0; height: 100%;
|
||||
background: #1a1a1a;
|
||||
}
|
||||
.eav-list {
|
||||
@@ -73,33 +66,53 @@
|
||||
width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0;
|
||||
background: var(--color-ghost-gray, #f2f2f2);
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
font-size: 16px; color: var(--color-midtone-gray, #737373);
|
||||
font-size: 18px; color: var(--color-midtone-gray, #737373);
|
||||
overflow: hidden;
|
||||
}
|
||||
.eav-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.eav-item-meta { flex: 1; min-width: 0; }
|
||||
.eav-item-name { font-weight: 500; color: var(--color-rich-black, #0a0a0a);
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.eav-item-sub { font-size: 11px; color: var(--color-midtone-gray, #737373); }
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
|
||||
.eav-item-sub { font-size: 11px; color: var(--color-midtone-gray, #737373); display: block; }
|
||||
|
||||
/* 이미지 패닝 스테이지 */
|
||||
.eav-canvas-wrap {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
padding: 16px;
|
||||
padding: 0;
|
||||
background: #2a2a2a;
|
||||
}
|
||||
.eav-canvas-stack {
|
||||
position: relative;
|
||||
line-height: 0;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.4);
|
||||
.eav-canvas-wrap.eav-pan { cursor: grab; }
|
||||
.eav-canvas-wrap.eav-pan.is-panning { cursor: grabbing; }
|
||||
.eav-img { display: block; user-select: none; -webkit-user-drag: none; margin: 0 auto; }
|
||||
|
||||
/* 엑셀/시트 */
|
||||
.eav-sheet-wrap {
|
||||
background: #fff;
|
||||
width: 100%; height: 100%;
|
||||
display: grid; grid-template-rows: auto 1fr;
|
||||
}
|
||||
.eav-img { display: block; max-width: 100%; height: auto; user-select: none; }
|
||||
.eav-canvas {
|
||||
position: absolute; left: 0; top: 0;
|
||||
cursor: crosshair;
|
||||
touch-action: none;
|
||||
.eav-sheet-tabs {
|
||||
display: flex; gap: 4px; padding: 8px;
|
||||
border-bottom: 1px solid var(--color-subtle-ash, #e5e5e5);
|
||||
background: var(--color-ghost-gray, #f2f2f2);
|
||||
overflow-x: auto;
|
||||
}
|
||||
.eav-sheet-body {
|
||||
overflow: auto; padding: 12px;
|
||||
}
|
||||
.eav-sheet-body table {
|
||||
border-collapse: collapse;
|
||||
font-family: 'Geist Mono', Menlo, monospace; font-size: 12px;
|
||||
}
|
||||
.eav-sheet-body td, .eav-sheet-body th {
|
||||
border: 1px solid var(--color-subtle-ash, #e5e5e5);
|
||||
padding: 4px 8px;
|
||||
min-width: 60px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.eav-sheet-body th { background: var(--color-ghost-gray, #f2f2f2); font-weight: 600; }
|
||||
.eav-sheet-loading { color: #fff; text-align: center; padding: 40px; }
|
||||
|
||||
.eav-fallback {
|
||||
color: #fff; text-align: center; padding: 40px;
|
||||
@@ -110,7 +123,7 @@
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.eav-body { grid-template-columns: 1fr; grid-template-rows: 80px 1fr; }
|
||||
.eav-body { grid-template-columns: 1fr; grid-template-rows: 100px 1fr; }
|
||||
.eav-list { flex-direction: row; overflow-x: auto; }
|
||||
.eav-item { flex-shrink: 0; min-width: 160px; }
|
||||
.eav-item { flex-shrink: 0; min-width: 180px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user