260625_01_ENH: 연구, 실사 수정사항 적용 1차

This commit is contained in:
2026-06-25 13:05:37 +09:00
parent 8e3c4302c5
commit 29dd9d628e
15 changed files with 197 additions and 65 deletions

View File

@@ -16,10 +16,13 @@ export const USER_FIELD_LABELS = {
} as const;
export const PERFORMANCE_FIELD_LABELS = {
no: "No.",
id: "연번",
monitoringAdd: "추가 모니터링",
businessType: "사업유형",
performanceGenre: "분야(장르)",
performanceArea: "지역",
performanceAreaDetail: "지역 세부",
artistName: "단체(인)명",
performanceName: "사업명",
performanceStartMonth: "사업 수행 월",
@@ -30,7 +33,12 @@ export const PERFORMANCE_FIELD_LABELS = {
performanceMemo: "메모",
monitoringDate: "모니터링 일정",
monitoringTimeInfo: "모니터링 시간",
needMonitoring: "모니터링 필요여부",
needWrittenReview: "서면평가 필요여부",
checkDeliver: "교부여부",
timeTreeCheckDt: "타임트리 확인일시",
monitoringAddress: "방문 장소",
checkReport: "보고서 확인여부",
performanceId: "사업 ID",
monitoringPaymentDate: "요원 비용지급일",
} as const;

View File

@@ -52,6 +52,15 @@ export const buildReviewPdfPreviewUrl = (
return `/file-preview?type=pdf&src=${encodeURIComponent(src)}&title=${encodeURIComponent(title || getReviewPdfDownloadName(performanceId, reviewType))}`;
};
export const buildReviewTemplatePdfPreviewUrl = (
reviewType: number,
classification: number,
title?: string
) => {
const src = `/api/review/template/pdf/${reviewType}/${classification}?disposition=inline`;
return `/file-preview?type=pdf&src=${encodeURIComponent(src)}&title=${encodeURIComponent(title || `review-template-${reviewType}-${classification}.pdf`)}`;
};
export const buildEvidenceImageSrc = (
performanceId: number,
userId: string,

View File

@@ -125,7 +125,6 @@ export const getReviewRows = (performance: Partial<PerformanceFull>) => {
export const getMonitoringReviewByIndex = (
performance: Partial<PerformanceFull>,
index: 0 | 1,
slot?: MonitoringSlot
) => {
const assignedUserId = slot?.assign?.assignUser;
@@ -140,10 +139,11 @@ export const getMonitoringReviewByIndex = (
export const getMonitoringDisplayRow = (
performance: Partial<PerformanceFull>,
index: 0 | 1
index: 0 | 1,
isWrittenReviewer: boolean = false
): MonitoringDisplayRow => {
const slot = getMonitoringSlots(performance)[index];
const reviewRow = getMonitoringReviewByIndex(performance, index, slot);
const reviewRow = getMonitoringReviewByIndex(performance, slot);
const visit = slot.visit?.[0];
return {