fix: 지료관리 변경 fix

main
Jonguk. Lim 2 years ago
parent 0debc79530
commit cc887b842c

@ -28,7 +28,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav
const [scWdate, setScWdate] = useState(rowData?.scWdate);
const [scCdate, setScCdate] = useState(rowData?.scCdate);
const [scJbtime, setScJbtime] = useState(rowData?.scJbtime);
const [scPos, setScPos] = useState('');
const [scPos, setScPos] = useState(rowData?.scPos ?? '');
const [picads, setPicads] = useState({});
const [frecads, setFrecads] = useState({});
@ -123,7 +123,10 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav
alert.show('우편번호는 필수입니다.');
return;
}
if (scPos.length < 1) {
alert.show('위반장소는 필수입니다.');
return;
}
if (rowData.scPicad1 === null || rowData.scPicad1 === '') {
alert.show('단속사진 하나는 필수입니다.');
return;
@ -317,7 +320,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav
required
label="위반장소"
fullWidth
value={rowData.scPos || ''}
value={scPos}
onChange={(e) => setScPos(e?.target?.value)}
/>
</Grid>

Loading…
Cancel
Save