From 8c180c0116b5adc19bd72978c5a0f319f3c83fe5 Mon Sep 17 00:00:00 2001 From: bicochan Date: Mon, 11 May 2026 17:25:06 +0900 Subject: [PATCH] =?UTF-8?q?[st]=20chore:=20IMR=20=EA=B2=80=EC=A6=9D=20?= =?UTF-8?q?=EC=9D=B4=EB=A0=A5=20=EA=B7=B8=EB=A6=AC=EB=93=9C=20=EC=BB=AC?= =?UTF-8?q?=EB=9F=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/st/src/components/module/DataGrid.tsx | 136 ++++++++++-------- .../verification/ImrVerificationHistory.tsx | 2 +- .../detail/HbVerificationDetail.tsx | 3 +- .../verification-list-columns.tsx | 8 +- 4 files changed, 79 insertions(+), 70 deletions(-) diff --git a/apps/st/src/components/module/DataGrid.tsx b/apps/st/src/components/module/DataGrid.tsx index 3ec75073f..acadc607a 100644 --- a/apps/st/src/components/module/DataGrid.tsx +++ b/apps/st/src/components/module/DataGrid.tsx @@ -304,7 +304,13 @@ function buildFieldsFromColumns( "groups" in col.computed && Array.isArray(col.computed.groups) && col.computed.groups.length > 0; - if (hasFields || hasNumeratorDenominator || hasMaxOfFieldAndSum || hasDifferenceOfSums || hasSumOfMaxGroups) { + if ( + hasFields || + hasNumeratorDenominator || + hasMaxOfFieldAndSum || + hasDifferenceOfSums || + hasSumOfMaxGroups + ) { field.valueCallback = getComputedValueCallback( col.computed, ) as ( @@ -592,10 +598,10 @@ const DataGrid = ({ ) { const cell = worksheet[ - XLSX.utils.encode_cell({ - r: rowIndex, - c: col, - }) + XLSX.utils.encode_cell({ + r: rowIndex, + c: col, + }) ]; if ( cell && @@ -671,7 +677,7 @@ const DataGrid = ({ const col = range.s.c + colIndex; const cell = worksheet[ - XLSX.utils.encode_cell({ r: row, c: col }) + XLSX.utils.encode_cell({ r: row, c: col }) ]; const headerName = headers[colIndex] || `Column${colIndex + 1}`; @@ -795,13 +801,13 @@ const DataGrid = ({ onSorting?: (g: unknown, f: unknown[], d: unknown[]) => boolean; } ).onSorting = enableSort - ? createOnSortingHandler( - columns, - setRowData, - sortDirRef, - originalRowsRef, - ) - : () => false; + ? createOnSortingHandler( + columns, + setRowData, + sortDirRef, + originalRowsRef, + ) + : () => false; (gridView.displayOptions as DisplayOptions).fitStyle = GridFitStyle.EVEN; @@ -971,7 +977,7 @@ const DataGrid = ({ ) { ( column.footer[ - index + index ] as FooterItemWithCallback ).valueCallback = footerItem.valueCallback; @@ -1024,11 +1030,11 @@ const DataGrid = ({ getGridDataRef.current = () => { const gv = gridRef.current?.gridView as | { - getDataSource?: () => { - getRowCount(): number; - getValue(r: number, f: string): unknown; - }; - } + getDataSource?: () => { + getRowCount(): number; + getValue(r: number, f: string): unknown; + }; + } | undefined; if (!gv?.getDataSource) return []; const ds = gv.getDataSource(); @@ -1201,41 +1207,45 @@ const DataGrid = ({ style={{ display: "none" }} onChange={handleFileChange} /> -
+
{statusInfo && (
진행상황:{" "} {statusInfo.laeSbmsnSttsCd === null || - statusInfo.laeSbmsnSttsCd === "0" - ? "미작성" - : statusInfo.laeSbmsnSttsCd === "1" - ? 작성중 - : statusInfo.laeSbmsnSttsCd === "2" - ? 제출 - : statusInfo.laeSbmsnSttsCd === "3" - ? 승인 - : statusInfo.laeSbmsnSttsCd === "4" - ? ( - - 반려 - - - - - - ) - : 검증중} + statusInfo.laeSbmsnSttsCd === "0" ? ( + "미작성" + ) : statusInfo.laeSbmsnSttsCd === "1" ? ( + 작성중 + ) : statusInfo.laeSbmsnSttsCd === "2" ? ( + 제출 + ) : statusInfo.laeSbmsnSttsCd === "3" ? ( + 승인 + ) : statusInfo.laeSbmsnSttsCd === "4" ? ( + + 반려 + + + + + + ) : ( + 검증중 + )} 반려사유:{" "} - {statusInfo.rjctOpnnCn ? statusInfo.rjctOpnnCn : "-"} + {statusInfo.rjctOpnnCn + ? statusInfo.rjctOpnnCn + : "-"} 제출일:{" "} {statusInfo.laeSbmsnYmd ? statusInfo.laeSbmsnYmd.length === 8 && - /^\d{8}$/.test(statusInfo.laeSbmsnYmd) + /^\d{8}$/.test(statusInfo.laeSbmsnYmd) ? `${statusInfo.laeSbmsnYmd.slice(0, 4)}-${statusInfo.laeSbmsnYmd.slice(4, 6)}-${statusInfo.laeSbmsnYmd.slice(6, 8)}` : statusInfo.laeSbmsnYmd : "미제출"} @@ -1292,24 +1302,24 @@ const DataGrid = ({ ) => boolean; } ).onSorting = enableSort - ? createOnSortingHandler( - columns, - setRowData, - sortDirRef, - originalRowsRef, - ) - : () => false; + ? createOnSortingHandler( + columns, + setRowData, + sortDirRef, + originalRowsRef, + ) + : () => false; const dataProvider = gridRef.current ?.dataProvider as unknown as | { - setFields?(f: unknown[]): void; - setRows?( - r: Record[], - ): void; - getJsonRow?( - r: number, - ): Record; - } + setFields?(f: unknown[]): void; + setRows?( + r: Record[], + ): void; + getJsonRow?( + r: number, + ): Record; + } | undefined; if (dataProvider?.setFields) { dataProvider.setFields( @@ -1462,14 +1472,14 @@ const DataGrid = ({ })} footer={ column.footer && - !Array.isArray(column.footer) + !Array.isArray(column.footer) ? { - text: column.footer.text, - expression: - column.footer.expression, - numberFormat: - column.footer.numberFormat, - } + text: column.footer.text, + expression: + column.footer.expression, + numberFormat: + column.footer.numberFormat, + } : undefined } mergeRule={ diff --git a/apps/st/src/components/statistics/verification/ImrVerificationHistory.tsx b/apps/st/src/components/statistics/verification/ImrVerificationHistory.tsx index 209856e6a..5be4bd828 100644 --- a/apps/st/src/components/statistics/verification/ImrVerificationHistory.tsx +++ b/apps/st/src/components/statistics/verification/ImrVerificationHistory.tsx @@ -508,7 +508,7 @@ const ImrVerificationHistory = () => { {}} idFieldName="rsltSn" isExcelExport={false} isExcelImport={false} diff --git a/apps/st/src/components/statistics/verification/detail/HbVerificationDetail.tsx b/apps/st/src/components/statistics/verification/detail/HbVerificationDetail.tsx index e9c17bff9..e3d30d3fe 100644 --- a/apps/st/src/components/statistics/verification/detail/HbVerificationDetail.tsx +++ b/apps/st/src/components/statistics/verification/detail/HbVerificationDetail.tsx @@ -5,7 +5,7 @@ import { useQueryClient } from "@tanstack/react-query"; import type { AxiosError } from "axios"; import { ENDPOINT } from "@/shared/config"; -import { useAlertStore, useMutationWrapper } from "@/shared/lib"; +import { useMutationWrapper } from "@/shared/lib"; import type { ApiErrorResponse } from "@/shared/model"; import type { StAnlsDtlConfirmRequest, @@ -51,7 +51,6 @@ const HbVerificationDetail: React.FC = ({ } | null>(null); const queryClient = useQueryClient(); - const { setMessage: alert } = useAlertStore((state) => state); const { confirm } = useConfirm(); const confirmMutation = useMutationWrapper< diff --git a/apps/st/src/entities/statistics/model/statistics-analysis/verification-list-columns.tsx b/apps/st/src/entities/statistics/model/statistics-analysis/verification-list-columns.tsx index bdea4cca9..864e64240 100644 --- a/apps/st/src/entities/statistics/model/statistics-analysis/verification-list-columns.tsx +++ b/apps/st/src/entities/statistics/model/statistics-analysis/verification-list-columns.tsx @@ -108,19 +108,19 @@ export const getVerificationListColumns = ({ }, }, { - header: "μ", + header: "중요도 계수(μ)", accessorKey: "ipcrCntVl", }, { - header: "Percentile", + header: "백분위수 기준값(pct)", accessorKey: "pctlCrtrVl", }, { - header: "A", + header: "스케일 조정 계수(A)", accessorKey: "scopAjmtCntVl", }, { - header: "C", + header: "임계 계수(c)", accessorKey: "thrsCntVl", }, {