diff --git a/src/views/biz/admin/judge/JudgeRegistReview.jsx b/src/views/biz/admin/judge/JudgeRegistReview.jsx index 30c7964..8a65898 100644 --- a/src/views/biz/admin/judge/JudgeRegistReview.jsx +++ b/src/views/biz/admin/judge/JudgeRegistReview.jsx @@ -23,7 +23,7 @@ import PropTypes from 'prop-types'; import getYear from 'date-fns/getYear'; import { useAlert } from 'react-alert'; -const year = getYear(new Date()); +const year = getYear(new Date()).toString(); const JudgeRegistReview = ({ scDatagb, menuName }) => { const showAlert = useAlert(); @@ -61,6 +61,14 @@ const JudgeRegistReview = ({ scDatagb, menuName }) => { ]; const search = () => { + if (scSeq1.length < 10 || scSeq2.length < 10) { + showAlert.show('접수번호를 10자리로 입력해 주세요[ex:2022000001]'); + return; + } + if (scSeq1 > scSeq2) { + showAlert.show('접수번호 조건을 확인해 주세요'); + return; + } const params = { scDatagb, // 거주자 scTransfer, @@ -114,9 +122,7 @@ const JudgeRegistReview = ({ scDatagb, menuName }) => { }; const handleSearch = () => { - if (scSeq1 && scSeq2) { - search(); - } + search(); }; const handleOnKeyDown = (event) => {