diff --git a/src/views/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue index c536dff..a8275f8 100644 --- a/src/views/Suppression/SuppSteps.vue +++ b/src/views/Suppression/SuppSteps.vue @@ -65,6 +65,7 @@ @@ -104,6 +105,7 @@ @@ -186,6 +188,9 @@ onMounted(()=>{ rcrSelected.value = demande.value.rcr; if (demande.value.typeSuppression){ typeFileSelected.value = demande.value.typeSuppression; + if(demande.value.typeSuppression === "EPN"){ + currentStep.value = 2; + } } break; case 'Préparée': @@ -298,15 +303,29 @@ function uploadFileFinal() { .then(() => { goSimulation(); }) + .catch(err => { + alertMessage.value = err.response.data.message; + alertType.value = 'error'; + }) .finally(() => { isLoading.value = false; }); }) + .catch(err => { + alertMessage.value = err.response.data.message; + alertType.value = 'error'; + }) + .finally(() => { + isLoading.value = false; + }); }) .catch(err => { alertMessage.value = err.response.data.message; alertType.value = 'error'; }) + .finally(() => { + isLoading.value = false; + }); } }