diff --git a/src/views/biz/judge/ProcessJudge.jsx b/src/views/biz/judge/ProcessJudge.jsx index fa92fd8..6c7a9d2 100644 --- a/src/views/biz/judge/ProcessJudge.jsx +++ b/src/views/biz/judge/ProcessJudge.jsx @@ -44,6 +44,15 @@ const ProcessJudge = (props) => { }; const handleSave = () => { + console.log('~~~'); + if (!selectedResult || selectedResult === '0') { + showAlert.show('심의결정[미부과/부과]을 선택해 주세요'); + return; + } + if (!reason || reason.trim().length === 0) { + showAlert.show('결정사유는 필수 입력해야 합니다.'); + return; + } saveJudgeResult({ msuCode: curDataRef.current.msuCode, msuResult: selectedResult, msuReason: reason }).then((res) => { if (res?.success) { curDataRef.current.msuResult = selectedResult; @@ -82,17 +91,17 @@ const ProcessJudge = (props) => { {frecadImgs?.map((img, idx) => ( - + ))} {contadImgs?.map((img, idx) => ( - + ))} {picadImgs?.map((img, idx) => ( - + ))} @@ -149,10 +158,10 @@ const ProcessJudge = (props) => { 심의전 - 수용 + 미부과 - 미수용 + 부과 diff --git a/src/views/biz/judge/ProcessParkingJudge.jsx b/src/views/biz/judge/ProcessParkingJudge.jsx index 4a40ecd..bbdaeb7 100644 --- a/src/views/biz/judge/ProcessParkingJudge.jsx +++ b/src/views/biz/judge/ProcessParkingJudge.jsx @@ -44,6 +44,14 @@ const ProcessParkingJudge = (props) => { }; const handleSave = () => { + if (!selectedResult || selectedResult === '0') { + showAlert.show('심의결정[미부과/부과]을 선택해 주세요'); + return; + } + if (!reason || reason.trim().length === 0) { + showAlert.show('결정사유는 필수 입력해야 합니다.'); + return; + } saveJudgeResult({ msuCode: curDataRef.current.msuCode, msuResult: selectedResult, msuReason: reason }).then((res) => { if (res?.success) { curDataRef.current.msuResult = selectedResult; @@ -149,10 +157,10 @@ const ProcessParkingJudge = (props) => { 심의전 - 수용 + 미부과 - 미수용 + 부과