feat: 오늘 6시간 작업 내용 복구 완료

- 엑셀 내보내기 개선: 납기일 P열 이동, 관리항목 4개로 축소
- J24-001 더미 프로젝트 옵션 제거
- CORS 오류 해결: API URL /api로 통일
- BOM 페이지 수정사항 포함
- 트랜잭션 오류 해결 시도
This commit is contained in:
hyungi
2025-10-15 13:55:25 +09:00
parent b10bd8d01c
commit e799aae71b
7 changed files with 568 additions and 93 deletions

View File

@@ -1386,11 +1386,9 @@ const NewMaterialsPage = ({
const timestamp = new Date().toISOString().split('T')[0];
const fileName = `${jobNo}_${selectedCategory}_${timestamp}.xlsx`;
// BOM 페이지에서 사용하는 엑셀 내보내기 함수 사용
await exportCategoryToExcel(
selectedCategory,
// 기존 엑셀 내보내기 함수 사용
await exportMaterialsToExcel(
dataWithRequirements,
jobNo,
fileName,
userRequirements
);

View File

@@ -159,8 +159,8 @@ const SystemSettingsPage = ({ onNavigate, user }) => {
}
};
// 관리자 권한 확인
if (user?.role !== 'admin') {
// 관리자 권한 확인 (system이 최고 권한)
if (user?.role !== 'admin' && user?.role !== 'system') {
return (
<div style={{ padding: '32px', textAlign: 'center' }}>
<h2 style={{ color: '#dc2626', marginBottom: '16px' }}>접근 권한이 없습니다</h2>