fix: 주정차 심사 반영중

mpower
minuk926 2 years ago
parent e9b1a7c4eb
commit 215a5d6a17

@ -19,7 +19,8 @@ import {
SAVE_JUDGE_RESULT,
SAVE_ADMIN_JUDGE_STDS,
GET_DASHBOARD,
GET_PARKING_IMAGE
GET_PARKING_IMAGE,
SAVE_PARKING_JUDGE_RESULT
} from 'commons/ApiUrl';
import { setRowId } from './common';
import FileSaver from 'file-saver';
@ -265,3 +266,8 @@ export async function findParkingImages(row) {
arrPicadImg: []
};
}
export async function saveParkingJudgeResult(params) {
// eslint-disable-next-line no-return-await
return await axios.post(SAVE_PARKING_JUDGE_RESULT, params);
}

@ -45,6 +45,7 @@ export const SAVE_ADMIN_JUDGE_STDS = '/api/v2/ctgy/admin/judge';
export const GET_JUDGE_LIST = '/api/v2/ctgy/judge';
export const SAVE_JUDGE_RESULT = '/api/v2/ctgy/judge';
export const GET_PARKING_IMAGE = '/api/v2/ctgy/parking/judge/';
export const SAVE_PARKING_JUDGE_RESULT = '/api/v2/ctgy/parking/judge';
export const GET_JUDGE_FILE_DOWNLOAD = '/api/v2/ctgy/cmm/download/judge';

@ -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}`);
}

Loading…
Cancel
Save