|
|
|
@ -11,6 +11,7 @@ import LocalizationProvider from '@mui/lab/LocalizationProvider';
|
|
|
|
|
import { DatePicker, TimePicker } from '@mui/lab';
|
|
|
|
|
import Button from '@mui/material/Button';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import { IconFileExport } from '@tabler/icons';
|
|
|
|
|
|
|
|
|
|
const teams = [
|
|
|
|
|
{ code: '001', value: '1팀' },
|
|
|
|
@ -20,12 +21,12 @@ const teams = [
|
|
|
|
|
];
|
|
|
|
|
const toDate = new Date();
|
|
|
|
|
|
|
|
|
|
const SaveParkingSimsaForm = ({ handleModalSave }) => {
|
|
|
|
|
const SaveParkingSimsaForm = ({ isDisabled = true, handleModalSave }) => {
|
|
|
|
|
const [msuTeam, setMsuTeam] = useState(teams[0].code);
|
|
|
|
|
const [msSdate, setMsSdate] = useState(format(toDate, 'yyyy-MM-dd'));
|
|
|
|
|
const [msStartsi, setMsStartsi] = useState(getHours(toDate));
|
|
|
|
|
const [msEdate, setMsEdate] = useState(format(toDate, 'yyyy-MM-dd'));
|
|
|
|
|
const [msChasu, setMsChasu] = useState();
|
|
|
|
|
const [msChasu, setMsChasu] = useState(99);
|
|
|
|
|
const [msCdate, setMsCdate] = useState(format(toDate, 'yyyy-MM-dd'));
|
|
|
|
|
const [msClosesi, setMsClosesi] = useState(getHours(toDate));
|
|
|
|
|
|
|
|
|
@ -160,12 +161,15 @@ const SaveParkingSimsaForm = ({ handleModalSave }) => {
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sx={{ marginTop: 3 }}>
|
|
|
|
|
<Button onClick={onSave}>저장</Button>
|
|
|
|
|
<Button variant="contained" color="primary" size="small" startIcon={<IconFileExport />} onClick={onSave}>
|
|
|
|
|
저장
|
|
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
SaveParkingSimsaForm.propTypes = {
|
|
|
|
|
handleModalSave: PropTypes.func
|
|
|
|
|
handleModalSave: PropTypes.func.isRequired,
|
|
|
|
|
isDisabled: PropTypes.bool.isRequired
|
|
|
|
|
};
|
|
|
|
|
export default SaveParkingSimsaForm;
|
|
|
|
|