|
|
@ -3,20 +3,17 @@ import _ from 'lodash';
|
|
|
|
|
|
|
|
|
|
|
|
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 { Grid, TextField, MenuItem, Select, FormControl, InputLabel, Divider } from '@mui/material';
|
|
|
|
import { Grid, TextField, MenuItem, Select, FormControl, InputLabel, Divider } from '@mui/material';
|
|
|
|
import Button from '@mui/material/Button';
|
|
|
|
import Button from '@mui/material/Button';
|
|
|
|
import { Delete, List } from '@mui/icons-material';
|
|
|
|
import { Delete, List } from '@mui/icons-material';
|
|
|
|
|
|
|
|
|
|
|
|
import { judgeFileDownload, judgeImgDownload } from 'apis/judge';
|
|
|
|
import { judgeImgDownload } from 'apis/judge';
|
|
|
|
import ImageFileViewForm from '../../../cmm/file-ctl/ImageFileViewForm';
|
|
|
|
import ImageFileViewForm from 'views/cmm/file-ctl/ImageFileViewForm';
|
|
|
|
import CmmImgViewModal from '../../../cmm/CmmImgViewModal';
|
|
|
|
import CmmImgViewModal from 'views/cmm/CmmImgViewModal';
|
|
|
|
import { removeAlert } from '../../../../commons/XitCmm';
|
|
|
|
import { removeAlert } from 'commons/XitCmm';
|
|
|
|
|
|
|
|
|
|
|
|
const ModifyJudgeDataForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSave, onModify, setDetail }) => {
|
|
|
|
const ModifyJudgeDataForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSave, onModify, setDetail }) => {
|
|
|
|
const showAlert = useAlert();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const [selectedContDoc, setSelectedContDoc] = useState(rowData?.scContDoc);
|
|
|
|
const [selectedContDoc, setSelectedContDoc] = useState(rowData?.scContDoc);
|
|
|
|
const [selectedIngb, setSelectedIngb] = useState(rowData?.scIngb);
|
|
|
|
const [selectedIngb, setSelectedIngb] = useState(rowData?.scIngb);
|
|
|
|
const [childOpen, setChildOpen] = useState(false);
|
|
|
|
const [childOpen, setChildOpen] = useState(false);
|
|
|
@ -253,6 +250,7 @@ ModifyJudgeDataForm.propTypes = {
|
|
|
|
ingbs: PropTypes.array.isRequired,
|
|
|
|
ingbs: PropTypes.array.isRequired,
|
|
|
|
handleModalSave: PropTypes.func.isRequired,
|
|
|
|
handleModalSave: PropTypes.func.isRequired,
|
|
|
|
setOpen: PropTypes.func.isRequired,
|
|
|
|
setOpen: PropTypes.func.isRequired,
|
|
|
|
onModify: PropTypes.func.isRequired
|
|
|
|
onModify: PropTypes.func.isRequired,
|
|
|
|
|
|
|
|
setDetail: PropTypes.func
|
|
|
|
};
|
|
|
|
};
|
|
|
|
export default ModifyJudgeDataForm;
|
|
|
|
export default ModifyJudgeDataForm;
|
|
|
|