|
|
@@ -120,17 +120,22 @@ const FormPanel = ({ formData }) => { |
|
|
|
}, |
|
|
|
files: attachments ? attachments : [], |
|
|
|
onSuccess: function (responseData) { |
|
|
|
if (responseData.msg) { |
|
|
|
setWarningTitle(intl.formatMessage({ id: "attention" })) |
|
|
|
setWarningText(intl.formatMessage({ id: responseData.msg })); |
|
|
|
setIsWarningPopUp(true); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (actionValue== true && responseData.id == params.id) { |
|
|
|
notifyActionSuccess(intl.formatMessage({ id: "submitted" })) |
|
|
|
navigate("/proof/pay/" + params.id); |
|
|
|
} else { |
|
|
|
navigate("/proof/search"); |
|
|
|
console.log(responseData) |
|
|
|
if (responseData.success === false){ |
|
|
|
navigate("/publicNotice"); |
|
|
|
}else{ |
|
|
|
if (responseData.msg) { |
|
|
|
setWarningTitle(intl.formatMessage({ id: "attention" })) |
|
|
|
setWarningText(intl.formatMessage({ id: responseData.msg })); |
|
|
|
setIsWarningPopUp(true); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (actionValue== true && responseData.id == params.id) { |
|
|
|
notifyActionSuccess(intl.formatMessage({ id: "submitted" })) |
|
|
|
navigate("/proof/pay/" + params.id); |
|
|
|
} else { |
|
|
|
navigate("/proof/search"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onFail: function (response) { |
|
|
|