리비전 업로드 시 정확한 수량 차이분 계산 로직 구현
Some checks failed
SonarQube Analysis / SonarQube Scan (push) Has been cancelled

- 기존 자재와 새 자재의 수량을 비교하여 증가분만 저장
- Rev.0: 엘보 10개, Rev.1: 엘보 12개 → Rev.1에는 2개만 저장
- 완전 신규 자재는 전체 수량 저장
- 수량 감소/동일한 자재는 저장하지 않음
- 리비전별 정확한 차이분 관리 구현
This commit is contained in:
Hyungi Ahn
2025-09-09 12:03:47 +09:00
parent 83b90ef05c
commit 881fc13580
5 changed files with 579 additions and 99 deletions

View File

@@ -15,6 +15,47 @@
background: white;
border-bottom: 1px solid #e5e7eb;
padding: 16px 24px;
}
.header-center {
display: flex;
align-items: center;
gap: 16px;
}
.revision-selector {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 6px;
}
.revision-selector label {
font-size: 14px;
font-weight: 500;
color: #495057;
margin: 0;
}
.revision-dropdown {
padding: 4px 8px;
border: 1px solid #ced4da;
border-radius: 4px;
background: white;
font-size: 14px;
color: #495057;
cursor: pointer;
min-width: 180px;
}
.revision-dropdown:focus {
outline: none;
border-color: #4299e1;
box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}
display: flex;
align-items: center;
justify-content: space-between;
@@ -46,6 +87,29 @@
transform: translateY(-1px);
}
/* 심플한 뒤로가기 버튼 */
.back-button-simple {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
background: #86efac;
color: #166534;
border: 1px solid #bbf7d0;
border-radius: 6px;
font-size: 18px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.back-button-simple:hover {
background: #6ee7b7;
transform: translateX(-2px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.materials-header h1 {
font-size: 20px;
font-weight: 600;