|
|
@ -19,11 +19,16 @@ import SaveParkingTargetForm from './SaveParkingTargetForm';
|
|
|
|
import NumberFormat from 'react-number-format';
|
|
|
|
import NumberFormat from 'react-number-format';
|
|
|
|
import ExcelDownload from 'views/cmm/file-ctl/ExcelDownload';
|
|
|
|
import ExcelDownload from 'views/cmm/file-ctl/ExcelDownload';
|
|
|
|
import { findParkingJudgeTargets, saveParkingJudgeTargets } from 'apis/parking';
|
|
|
|
import { findParkingJudgeTargets, saveParkingJudgeTargets } from 'apis/parking';
|
|
|
|
|
|
|
|
import getYear from 'date-fns/getYear';
|
|
|
|
|
|
|
|
import { useAlert } from 'react-alert';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const year = getYear(new Date()).toString();
|
|
|
|
|
|
|
|
|
|
|
|
const ParkingRegister = () => {
|
|
|
|
const ParkingRegister = () => {
|
|
|
|
|
|
|
|
const showAlert = useAlert();
|
|
|
|
const [rcIrTransfer, setRcIrTransfer] = useState('1');
|
|
|
|
const [rcIrTransfer, setRcIrTransfer] = useState('1');
|
|
|
|
const [rcSeq1, setRcSeq1] = useState('2022200801');
|
|
|
|
const [rcSeq1, setRcSeq1] = useState(`${year}000001`);
|
|
|
|
const [rcSeq2, setRcSeq2] = useState('2022200899');
|
|
|
|
const [rcSeq2, setRcSeq2] = useState(`${year}999999`);
|
|
|
|
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({
|
|
|
@ -55,6 +60,15 @@ const ParkingRegister = () => {
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
const search = () => {
|
|
|
|
const search = () => {
|
|
|
|
|
|
|
|
if (rcSeq1.length < 10 || rcSeq2.length < 10) {
|
|
|
|
|
|
|
|
showAlert.show('접수번호를 10자리로 입력해 주세요[ex:2022000001]');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (rcSeq1 > rcSeq2) {
|
|
|
|
|
|
|
|
showAlert.show('접수번호 조건을 확인해 주세요');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const params = {
|
|
|
|
const params = {
|
|
|
|
rcIrTransfer,
|
|
|
|
rcIrTransfer,
|
|
|
|
rcSeq1,
|
|
|
|
rcSeq1,
|
|
|
|