|
|
@ -20,11 +20,16 @@ import NumberFormat from 'react-number-format';
|
|
|
|
import ExcelDownload from 'views/cmm/file-ctl/ExcelDownload';
|
|
|
|
import ExcelDownload from 'views/cmm/file-ctl/ExcelDownload';
|
|
|
|
import { findJudgeTargets, saveJudgeTargets } from 'apis/judge';
|
|
|
|
import { findJudgeTargets, saveJudgeTargets } from 'apis/judge';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import getYear from 'date-fns/getYear';
|
|
|
|
|
|
|
|
import { useAlert } from 'react-alert';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const year = getYear(new Date());
|
|
|
|
|
|
|
|
|
|
|
|
const JudgeRegistReview = ({ scDatagb, menuName }) => {
|
|
|
|
const JudgeRegistReview = ({ scDatagb, menuName }) => {
|
|
|
|
|
|
|
|
const showAlert = useAlert();
|
|
|
|
const [scTransfer, setScTransfer] = useState('1');
|
|
|
|
const [scTransfer, setScTransfer] = useState('1');
|
|
|
|
const [scSeq1, setScSeq1] = useState(2022000001);
|
|
|
|
const [scSeq1, setScSeq1] = useState(year);
|
|
|
|
const [scSeq2, setScSeq2] = useState(2022000899);
|
|
|
|
const [scSeq2, setScSeq2] = useState(year);
|
|
|
|
const [selectionModel, setSelectionModel] = useState([]);
|
|
|
|
const [selectionModel, setSelectionModel] = useState([]);
|
|
|
|
const [totalCount, setTotalCount] = useState(0);
|
|
|
|
const [totalCount, setTotalCount] = useState(0);
|
|
|
|
const [rowsState, setRowsState] = useState({
|
|
|
|
const [rowsState, setRowsState] = useState({
|
|
|
@ -56,6 +61,10 @@ const JudgeRegistReview = ({ scDatagb, menuName }) => {
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
const search = () => {
|
|
|
|
const search = () => {
|
|
|
|
|
|
|
|
if (scSeq1.toString().length < 10 || scSeq2.toString().length < 10) {
|
|
|
|
|
|
|
|
showAlert.show('접수번호는 10자리 입니다.');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
const params = {
|
|
|
|
const params = {
|
|
|
|
scDatagb, // 거주자
|
|
|
|
scDatagb, // 거주자
|
|
|
|
scTransfer,
|
|
|
|
scTransfer,
|
|
|
|