feat: 주정차의견진술 자료 등록 반영

소스 정리
main
minuk926 3 years ago
parent 90ffb0266a
commit 6c6a561992

@ -3,6 +3,9 @@ import { useEffect, useState } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import NumberFormat from 'react-number-format'; import NumberFormat from 'react-number-format';
import { useAlert } from 'react-alert'; import { useAlert } from 'react-alert';
import format from 'date-fns/format';
import getHours from 'date-fns/getHours';
import koLocale from 'date-fns/locale/ko';
import { Grid, TextField, MenuItem, Select, FormControl, InputLabel, InputAdornment } from '@mui/material'; import { Grid, TextField, MenuItem, Select, FormControl, InputLabel, InputAdornment } from '@mui/material';
import Button from '@mui/material/Button'; import Button from '@mui/material/Button';
@ -10,23 +13,28 @@ import { IconFileExport, IconSearch } from '@tabler/icons';
import { getComboCodeList } from 'apis/common'; import { getComboCodeList } from 'apis/common';
import FileInputForms from 'views/form/FileInputForms'; import FileInputForms from 'views/form/FileInputForms';
import DateAdapter from '@mui/lab/AdapterDateFns';
import { DatePicker } from '@mui/lab';
import LocalizationProvider from '@mui/lab/LocalizationProvider';
const toDate = new Date();
const SaveResidentDataForm = ({ handleModalSave }) => { const SaveResidentDataForm = ({ handleModalSave }) => {
const alert = useAlert(); const alert = useAlert();
const [scCarnum, setScCarnum] = useState(); const [scCarnum, setScCarnum] = useState('');
const [scName, setScName] = useState(); const [scName, setScName] = useState('');
const [scDong, setScDong] = useState(); const [scDong, setScDong] = useState('');
const [scContDoc, setScContDoc] = useState(); const [scContDoc, setScContDoc] = useState();
const [selectedContDoc, setSelectedContDoc] = useState(); const [selectedContDoc, setSelectedContDoc] = useState('11');
const [scIngb, setScIngb] = useState(); const [scIngb, setScIngb] = useState();
const [selectedIngb, setSelectedIngb] = useState(); const [selectedIngb, setSelectedIngb] = useState('1');
const [zippost1, setZippost1] = useState(); const [zippost1, setZippost1] = useState(null);
const [scJuso, setScJuso] = useState(); const [scJuso, setScJuso] = useState('');
const [scBunji, setScBunji] = useState(); const [scBunji, setScBunji] = useState('');
const [scWdate, setScWdate] = useState(); const [scWdate, setScWdate] = useState(null);
const [scCdate, setScCdate] = useState(); const [scCdate, setScCdate] = useState(format(toDate, 'yyyyMMdd'));
const [scJbtime, setScJbtime] = useState(); const [scJbtime, setScJbtime] = useState(null);
const [picads, setPicads] = useState({}); const [picads, setPicads] = useState({});
const [frecads, setFrecads] = useState({}); const [frecads, setFrecads] = useState({});
@ -414,7 +422,8 @@ const SaveResidentDataForm = ({ handleModalSave }) => {
</Grid> </Grid>
</Grid> </Grid>
<Grid item sx={{ marginTop: 3 }}> <Grid item sx={{ marginTop: 3 }}>
<Button variant="contained" color="primary" size="small" startIcon={<IconFileExport />} onClick={onSave}> {/* <Button variant="contained" color="primary" size="small" startIcon={<IconFileExport />} onClick={onSave}> */}
<Button variant="contained" color="primary" size="small" onClick={onSave}>
저장 저장
</Button> </Button>
</Grid> </Grid>

Loading…
Cancel
Save