fix: 주정차 심사 반영 완료

source freezing
mpower
minuk926 2 years ago
parent fe405f54ac
commit d695f9b5c2

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

Loading…
Cancel
Save