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

Loading…
Cancel
Save