|
|
|
@ -6,11 +6,11 @@ import TableContainer from '@mui/material/TableContainer';
|
|
|
|
|
import TableHead from '@mui/material/TableHead';
|
|
|
|
|
import TableRow from '@mui/material/TableRow';
|
|
|
|
|
import { styled } from '@mui/material/styles';
|
|
|
|
|
import { Divider, FormControl, Grid, InputLabel, MenuItem, Select, TableFooter, Typography } from '@mui/material';
|
|
|
|
|
import { Card, Divider, FormControl, Grid, InputLabel, MenuItem, Select, Stack, TableFooter, Typography } from '@mui/material';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import Box from '@mui/material/Box';
|
|
|
|
|
import combo from 'commons/combo_data';
|
|
|
|
|
import { useCallback, useRef, useState } from 'react';
|
|
|
|
|
import { useCallback, useState } from 'react';
|
|
|
|
|
import Button from '@mui/material/Button';
|
|
|
|
|
import { IconSearch } from '@tabler/icons';
|
|
|
|
|
import { findJudgeResults } from 'apis/judge';
|
|
|
|
@ -43,7 +43,7 @@ const totLabel = ['부과', '서손', '미부과', '계'];
|
|
|
|
|
const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUserData, selectedRow, judgeTeam, judgeData, dataGb }) => {
|
|
|
|
|
const alert = useAlert();
|
|
|
|
|
const [open, setOpen] = useState(false);
|
|
|
|
|
const [title, setTitle] = useState('심사 처리');
|
|
|
|
|
const [title] = useState('심사 처리');
|
|
|
|
|
const [judgeResult, setJudgeResult] = useState({
|
|
|
|
|
totJudgeUsers,
|
|
|
|
|
totJudgeUserData,
|
|
|
|
@ -163,9 +163,9 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
|
|
|
|
|
<Table stickyHeader aria-label="sticky table">
|
|
|
|
|
<TableHead>
|
|
|
|
|
<TableRow>
|
|
|
|
|
{/* <StyledTableCell align="center" style={{ minWidth: 80 }} hidden> */}
|
|
|
|
|
{/* 민원코드 */}
|
|
|
|
|
{/* </StyledTableCell> */}
|
|
|
|
|
<StyledTableCell align="center" style={{ minWidth: 45 }} hidden>
|
|
|
|
|
No.
|
|
|
|
|
</StyledTableCell>
|
|
|
|
|
<StyledTableCell align="center" style={{ width: 95 }}>
|
|
|
|
|
접수번호
|
|
|
|
|
</StyledTableCell>
|
|
|
|
@ -185,31 +185,31 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
|
|
|
|
|
</StyledTableCell>
|
|
|
|
|
</TableRow>
|
|
|
|
|
</TableHead>
|
|
|
|
|
|
|
|
|
|
<TableBody>
|
|
|
|
|
{/* 심사 통계 */}
|
|
|
|
|
{judgeResult?.totJudgeUserData.map((totData, idx) => (
|
|
|
|
|
<StyledTableRow hover key={idx}>
|
|
|
|
|
<StyledTableCell align="center" style={{ width: 95 }}>
|
|
|
|
|
<StyledTableCell align="center" style={{ width: 45, color: 'cyan' }} />
|
|
|
|
|
<StyledTableCell align="center" style={{ width: 95, color: 'cyan' }}>
|
|
|
|
|
{totLabel[idx]}
|
|
|
|
|
</StyledTableCell>
|
|
|
|
|
<StyledTableCell align="center" style={{ width: 130 }} />
|
|
|
|
|
{totData.map((data, totIdx) => (
|
|
|
|
|
<StyledTableCell key={`${idx}${totIdx}`} align="center" style={{ width: 80 }}>
|
|
|
|
|
<StyledTableCell key={`${idx}${totIdx}`} align="center" style={{ width: 80, color: 'cyan' }}>
|
|
|
|
|
{data}
|
|
|
|
|
</StyledTableCell>
|
|
|
|
|
))}
|
|
|
|
|
<StyledTableCell />
|
|
|
|
|
</StyledTableRow>
|
|
|
|
|
))}
|
|
|
|
|
</TableBody>
|
|
|
|
|
<TableBody sx={{ mt: 3 }}>
|
|
|
|
|
<Grid item xs={12}>
|
|
|
|
|
<Divider />
|
|
|
|
|
</Grid>
|
|
|
|
|
<StyledTableRow />
|
|
|
|
|
{/* 접수번호별 심사 결과 */}
|
|
|
|
|
{judgeResult?.judgeCars.map((row, carIdx) => (
|
|
|
|
|
<StyledTableRow hover key={row.msSeq}>
|
|
|
|
|
{/* <StyledTableCell>{row.msMaincode}</StyledTableCell> */}
|
|
|
|
|
<StyledTableCell align="center" style={{ width: 45 }}>
|
|
|
|
|
{carIdx + 1}
|
|
|
|
|
</StyledTableCell>
|
|
|
|
|
<StyledTableCell align="center" style={{ width: 95 }}>
|
|
|
|
|
{row.msSeq}
|
|
|
|
|
</StyledTableCell>
|
|
|
|
@ -240,11 +240,12 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
|
|
|
|
|
</StyledTableRow>
|
|
|
|
|
))}
|
|
|
|
|
</TableBody>
|
|
|
|
|
<TableFooter />
|
|
|
|
|
{/* <TableFooter>{judgeResult && `총 ${selectedRow.cnt} 건중 ${judgeResult.judgeCars.length} 건`}</TableFooter> */}
|
|
|
|
|
</Table>
|
|
|
|
|
</TableContainer>
|
|
|
|
|
</Paper>
|
|
|
|
|
<TableFooter
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
border: '0px solid red',
|
|
|
|
|
display: 'flex',
|
|
|
|
@ -253,7 +254,9 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{judgeResult && `총 ${selectedRow.cnt} 건중 ${judgeResult.judgeCars.length} 건`}
|
|
|
|
|
</TableFooter>
|
|
|
|
|
</Box>
|
|
|
|
|
{/* </TableContainer> */}
|
|
|
|
|
|
|
|
|
|
<JudgeModal
|
|
|
|
|
open={open}
|
|
|
|
|
setOpen={setOpen}
|
|
|
|
@ -273,6 +276,7 @@ ModalJudgeResult.propTypes = {
|
|
|
|
|
judgeUserData: PropTypes.array,
|
|
|
|
|
selectedRow: PropTypes.object.isRequired,
|
|
|
|
|
judgeTeam: PropTypes.string,
|
|
|
|
|
judgeData: PropTypes.array,
|
|
|
|
|
dataGb: PropTypes.string
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|