refactor(tkfb): "구매 관리" → "소모품 관리" 리네이밍 — UI 라벨을 실제 기능에 맞게 변경

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-16 13:19:31 +09:00
parent 817002f798
commit cc47d25851
39 changed files with 56 additions and 56 deletions

View File

@@ -1,4 +1,4 @@
/* ===== 구매신청 페이지 ===== */
/* ===== 소모품 신청 페이지 ===== */
const TKUSER_BASE_URL = location.hostname.includes('technicalkorea.net')
? 'https://tkuser.technicalkorea.net'
: location.protocol + '//' + location.hostname + ':30180';
@@ -247,7 +247,7 @@ function removePhoto() {
document.getElementById('prPhotoStatus').textContent = '';
}
/* ===== 구매신청 제출 ===== */
/* ===== 소모품 신청 제출 ===== */
async function submitPurchaseRequest() {
const itemId = document.getElementById('prItemId').value;
const customItemName = document.getElementById('prCustomItemName').value;
@@ -273,7 +273,7 @@ async function submitPurchaseRequest() {
method: 'POST',
body: JSON.stringify(body)
});
showToast('구매신청이 등록되었습니다.');
showToast('소모품 신청이 등록되었습니다.');
// 폼 초기화
document.getElementById('prItemSearch').value = '';
document.getElementById('prItemId').value = '';
@@ -306,7 +306,7 @@ async function loadRequests() {
function renderRequests() {
const tbody = document.getElementById('prRequestList');
if (!requestsList.length) {
tbody.innerHTML = '<tr><td colspan="7" class="px-4 py-8 text-center text-gray-400">구매신청 내역이 없습니다.</td></tr>';
tbody.innerHTML = '<tr><td colspan="7" class="px-4 py-8 text-center text-gray-400">소모품 신청 내역이 없습니다.</td></tr>';
return;
}
tbody.innerHTML = requestsList.map(r => {
@@ -495,7 +495,7 @@ async function revertRequest(requestId) {
}
async function deleteRequest(requestId) {
if (!confirm('이 구매신청을 삭제하시겠습니까?')) return;
if (!confirm('이 소모품 신청을 삭제하시겠습니까?')) return;
try {
await api(`/purchase-requests/${requestId}`, { method: 'DELETE' });
showToast('삭제되었습니다.');