From 88fc5d85801cca71df12b0ea0e55710cf6f89f63 Mon Sep 17 00:00:00 2001
From: EryneKL <97091460+EryneKL@users.noreply.github.com>
Date: Mon, 14 Oct 2024 15:44:22 +0200
Subject: [PATCH] =?UTF-8?q?FEAT=20ITEM-261-front-modifier-le-workflow-de-s?=
=?UTF-8?q?uppression=20:=20=20=20=20=20=20-=20cr=C3=A9ation=20d'un=20work?=
=?UTF-8?q?flow=20pour=20les=20suppressions=20des=20EPN?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Suppression/SuppSteps.vue | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/src/views/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue
index b4eafd3..24485d8 100644
--- a/src/views/Suppression/SuppSteps.vue
+++ b/src/views/Suppression/SuppSteps.vue
@@ -106,7 +106,7 @@
-
+
précédent
{
-
- alertMessage.value = "Fichier envoyé";
+ alertMessage.value = "Fichier envoyé, veuillez patienter quelques instants.";
itemService.getFile(demande.value.id, 'SUPP','fichier_correspondance', '.csv')
.then(response => {
let blob = new Blob([response.data], {type: 'application/csv'});
@@ -316,7 +315,14 @@ function changeEtape() {
typeFileSelected.value = null;
}
if ((currentStep.value + 1) === 2 && typeFileSelected.value) { //Changement d'etat pour le chargement du fichier car le back est perdu sinon
- if(typeFileSelected.value === 'PPN') {
+ if(typeFileSelected.value==='EPN') {typeFileSelected.value=null;}
+ itemService.choixEtape(demande.value.id, 2, 'SUPP')
+ .then(response => {
+ demande.value = response.data;
+ });
+ }
+ if ((currentStep.value + 1) === 3 ) {
+ if(typeFileSelected.value==='EPN'){
itemService.choixEtape(demande.value.id, 2, 'SUPP')
.then(response => {
demande.value = response.data;
@@ -328,12 +334,6 @@ function changeEtape() {
});
}
}
- if ((currentStep.value + 1) === 3 ) {
- itemService.choixEtape(demande.value.id, 3, 'SUPP')
- .then(response => {
- demande.value = response.data;
- });
- }
}
function prevSelectTypeFile(){
@@ -345,12 +345,6 @@ function prevSelectFile(){
changeEtape()
raz();
}
-function prevSelectFileFinal(){
- if(typeFileSelected.value==='EPN'){
- typeFileSelected.value = null;
- }
- prev();
-}
function next() {
currentStep.value++;
raz();