|
|
|
@ -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 { findJudgeImages, findParkingImages, saveJudgeResult } from 'apis/judge';
|
|
|
|
|
import { findJudgeImages, findParkingImages, saveJudgeResult, saveParkingJudgeResult } from 'apis/judge';
|
|
|
|
|
import { SkipNext, SkipPrevious, Save } from '@mui/icons-material';
|
|
|
|
|
import ImgItem from '../../cmm/ImgItem';
|
|
|
|
|
import NumberFormat from 'react-number-format';
|
|
|
|
@ -52,11 +52,17 @@ const ProcessParkingJudge = (props) => {
|
|
|
|
|
showAlert.show('결정사유는 필수 입력해야 합니다.');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
saveJudgeResult({ msuCode: curDataRef.current.msuCode, msuResult: selectedResult, msuReason: reason }).then((res) => {
|
|
|
|
|
saveParkingJudgeResult({
|
|
|
|
|
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;
|
|
|
|
|
showAlert.show('심의처리 되었습니다');
|
|
|
|
|
// setOpen(false)
|
|
|
|
|
} else {
|
|
|
|
|
showAlert.show(`${res?.data.message}`);
|
|
|
|
|
}
|
|
|
|
|