|
|
|
@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
|
|
import { Button, Divider, FormControl, Grid, ImageList, InputLabel, MenuItem, Select, TextField } from '@mui/material';
|
|
|
|
|
import { findImages, saveJudgeResult } from 'apis/judge';
|
|
|
|
|
import { findJudgeImages, saveJudgeResult } from 'apis/judge';
|
|
|
|
|
import { SkipNext, SkipPrevious, Save } from '@mui/icons-material';
|
|
|
|
|
import ImgItem from '../../cmm/ImgItem';
|
|
|
|
|
import NumberFormat from 'react-number-format';
|
|
|
|
@ -20,7 +20,7 @@ const ProcessJudge = (props) => {
|
|
|
|
|
const [selectedImg, setSelectedImg] = useState({});
|
|
|
|
|
|
|
|
|
|
const getImgList = (row) => {
|
|
|
|
|
findImages(row).then((res) => {
|
|
|
|
|
findJudgeImages(row).then((res) => {
|
|
|
|
|
const { arrFrecadImg, arrContadImg, arrPicadImg } = res;
|
|
|
|
|
setFrecadImgs(arrFrecadImg);
|
|
|
|
|
setContadImgs(arrContadImg);
|
|
|
|
@ -53,7 +53,12 @@ const ProcessJudge = (props) => {
|
|
|
|
|
showAlert.show('결정사유는 필수 입력해야 합니다.');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
saveJudgeResult({ msuCode: curDataRef.current.msuCode, msuResult: selectedResult, msuReason: reason }).then((res) => {
|
|
|
|
|
saveJudgeResult({
|
|
|
|
|
msuCode: curDataRef.current.msuCode,
|
|
|
|
|
msuUserid: rowDatas[pageRef.current].msuUserid,
|
|
|
|
|
msuResult: selectedResult,
|
|
|
|
|
msuReason: reason
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res?.success) {
|
|
|
|
|
curDataRef.current.msuResult = selectedResult;
|
|
|
|
|
curDataRef.current.msuReason = reason;
|
|
|
|
@ -137,11 +142,11 @@ const ProcessJudge = (props) => {
|
|
|
|
|
label="위반일자"
|
|
|
|
|
format="####-##-##"
|
|
|
|
|
fullWidth
|
|
|
|
|
value={rowDatas[pageRef.current].scWdate}
|
|
|
|
|
value={rowDatas[pageRef.current].msWdate}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item xs={6}>
|
|
|
|
|
<TextField size="small" required disabled label="위반장소" fullWidth value={rowDatas[pageRef.current].scPos} />
|
|
|
|
|
<TextField size="small" required disabled label="위반장소" fullWidth value={rowDatas[pageRef.current].msPos} />
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item xs={2}>
|
|
|
|
|
<FormControl fullWidth>
|
|
|
|
|