261026_01_ENH: 공연 상세정보에 관리번호(NCAS), 변경 메모 추가

This commit is contained in:
2026-10-26 16:21:42 +09:00
parent 0708ddd936
commit 2667c40086
21 changed files with 534 additions and 86 deletions

View File

@@ -28,6 +28,7 @@ import {useDownloadReviewOriginalByPerformanceMutation, useDownloadReviewOrigina
import {
filterPerformance,
getCodeLabel,
includesText,
isInternalRole,
isResearcherRole,
isWrittenReviewerRole
@@ -236,14 +237,18 @@ const PerformancePage = () => {
const monitoring2Row = getMonitoringDisplayRow(item, 1);
const monitoring2LatestVisit = monitoring2Row.slot.visit?.[0];
const baseFilters = {
businessType: debouncedFilters.businessType,
genre: debouncedFilters.genre,
area: debouncedFilters.area,
monitoringDate: debouncedFilters.monitoringDate,
};
return (
filterPerformance(item, {
businessType: debouncedFilters.businessType,
genre: debouncedFilters.genre,
area: debouncedFilters.area,
monitoringDate: debouncedFilters.monitoringDate,
keyword: debouncedFilters.keyword,
}) &&
(
filterPerformance(item, {...baseFilters, keyword: debouncedFilters.keyword}) ||
(filterPerformance(item, baseFilters) && includesText(item.performanceDetail["NCAS"], debouncedFilters.keyword.trim()))
) &&
matchesStatus(debouncedFilters.startMonth, String(item.performanceStartMonth)) &&
matchesStatus(debouncedFilters.monitoringAdd, item.id % 100 === 1 ? "0" : "1") &&
matchesStatus(debouncedFilters.localReviewStatus, getReviewStatusFilterValue(
@@ -430,6 +435,10 @@ const PerformancePage = () => {
cell: ({row}) => row.original.performanceDetail["performanceNo"] ?? "",
},
{accessorKey: "id", header: PERFORMANCE_FIELD_LABELS.id, cell: ({row}) => row.original.id},
{id: "ncas", header: PERFORMANCE_FIELD_LABELS.NCAS,
accessorFn: (row) => row.performanceDetail["NCAS"] ?? "",
cell: ({row}) => row.original.performanceDetail["NCAS"] ?? "",
},
...(!isWrittenReviewer ? [
{accessorKey: "monitoringAdd", header: PERFORMANCE_FIELD_LABELS.monitoringAdd,
accessorFn: (row) => row.id % 100 !== 1? "추가" : "",
@@ -592,7 +601,7 @@ const PerformancePage = () => {
{!isWrittenReviewer && (
<DatePicker value={filters.monitoringDate} onChange={(value) => updateFilters((prev) => ({...prev, monitoringDate: value}))} placeholder={PERFORMANCE_FIELD_LABELS.monitoringDate} />
)}
<Input value={filters.keyword} onChange={(event) => updateFilters((prev) => ({...prev, keyword: event.target.value}))} placeholder={`${PERFORMANCE_FIELD_LABELS.id} or ${PERFORMANCE_FIELD_LABELS.performanceName}`} />
<Input value={filters.keyword} onChange={(event) => updateFilters((prev) => ({...prev, keyword: event.target.value}))} placeholder={`${PERFORMANCE_FIELD_LABELS.id}, ${PERFORMANCE_FIELD_LABELS.NCAS} or ${PERFORMANCE_FIELD_LABELS.performanceName}`} />
<Button type="button" variant="outline" onClick={refreshPerformanceList}>
<Search className="h-4 w-4" />
검색
@@ -657,6 +666,7 @@ const PerformancePage = () => {
open={performanceRegisterOpen}
onOpenChange={handlePerformanceRegisterOpenChange}
title="사업 등록"
notice={`${PERFORMANCE_FIELD_LABELS.NCAS} 열이 추가되었습니다. 새 양식을 다운로드해 사용해 주세요.`}
onDownloadTemplate={downloadPerformanceTemplate}
onUpload={(file) => performanceUploadMutation.mutateAsync(file)}
isUploading={performanceUploadMutation.isPending}