지도점검 엑셀 오류 및 변경이력 삭제

This commit is contained in:
leedj312
2025-10-28 18:22:59 +09:00
parent ede1e14a03
commit 231c8a213e
3 changed files with 7 additions and 2 deletions
@@ -208,7 +208,8 @@ export const excelToRainChkData = (excelData: any, year: string) => {
`과태료부과금액(천원): 숫자 형식 아님 /입력값:${key.levyAmt}`
);
}
if (key.vltnDt?.length > 2 && isInvalidDate(key.vltnDt)) {
if (key.vltnDt?.length >= 1 && isInvalidDate(key.vltnDt)) {
issues.push(
defaultMessage +
`과태료 부과일(위반일): 날짜 형식 아님 /입력값:${key.vltnDt}`
@@ -1,5 +1,6 @@
import type { TableUpperProps } from "@/app/store/common/type/header";
import {
deleteFectch,
fetchType,
getFetchWithCount,
postFectch,
@@ -244,6 +245,8 @@ export const rainFacActionsExport: (set: any) => rainFacSActions = (
toast.error("건축물 증축/개축/중축 오류입니다.");
}
} else {
await deleteFectch("/reuseFc/DeleteChgBuilding" , data.bdstInfoSn);
toast.success("건축물 수정이 완료되었습니다.");
}
} else {
@@ -1,4 +1,4 @@
import { getFetchWithCount, postFectch, putFectch } from "@/components/lib/api";
import { deleteFectch, getFetchWithCount, postFectch, putFectch } from "@/components/lib/api";
import { upHeadList, type chgBuilding } from "../rainReg";
import type { TableUpperProps } from "@/app/store/common/type/header";
@@ -181,6 +181,7 @@ export const rswtFacActionsExport: (set: any) => rswtFacSActions = (
toast.error("중수도 건축물 증축/개축/중축 오류입니다.");
}
} else {
await deleteFectch("/reuseFc/DeleteChgBuilding" , data.bdstInfoSn);
toast.success("중수도 건축물 수정이 완료되었습니다.");
}
} else {