Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge dev to test #110

Merged
merged 26 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9c78bee
Refactor isActive or archived demande dans Tableau
Jul 18, 2024
e7d745d
Ajout table de suppression
Jul 18, 2024
a7a0809
Ajout condition download
Jul 18, 2024
2106d3c
Ajout modif etat
Jul 18, 2024
4fb053a
Merge pull request #97 from abes-esr/ITEM-104-PRIORITÉ-1-NOUVELLE-PAG…
jvk88511334 Jul 29, 2024
b91c91c
Merge pull request #98 from abes-esr/ITEM-50_ECRAN_3_SELECTION_RCR
jvk88511334 Jul 29, 2024
e3357d7
Merge pull request #99 from abes-esr/ITEM-54_PRIORITÉ_1-2_CAS_1_Suppr…
jvk88511334 Jul 29, 2024
a530031
Merge pull request #101 from abes-esr/ITEM-48_ECRAN_2_CHOIX_SERVICES_…
SamuelQuetin Jul 29, 2024
b9029c8
tentative modif create release
Jul 30, 2024
5aa930b
Merge main to develop [skip ci]
Jul 30, 2024
41efc30
Version 2.4.10-SNAPSHOT [skip ci]
Jul 30, 2024
5261063
- Augmentation de la police taille fichier
jvk88511334 Aug 12, 2024
d3bf15d
Merge pull request #103 from abes-esr/ITEM-173-front-augmenter-la-tai…
SamuelQuetin Aug 19, 2024
abbb7fe
- Gestion de l'événement mettant à jour de demande en back avec le ty…
jvk88511334 Aug 20, 2024
5bd0cdc
Ajout gestion change ETAPE
SamuelQuetin Aug 21, 2024
9ce8378
Merge pull request #104 from abes-esr/ITEM-62-PRIORITÉ-1-3-CAS-2-Supp…
jvk88511334 Aug 21, 2024
813c399
- Mise en place de l'écran de chargement du fichier enrichi et gestio…
jvk88511334 Aug 21, 2024
35a900f
FIX supp du step SIMU
SamuelQuetin Aug 21, 2024
043ac69
Merge pull request #106 from abes-esr/ITEM-168-front-coder-lecran-de-…
pierre-maraval Aug 21, 2024
363c92c
Merge remote-tracking branch 'origin/develop' into ITEM-56_PRIORITÉ_3…
SamuelQuetin Aug 21, 2024
3088182
FIX gestion fichier pour Suppression
SamuelQuetin Aug 21, 2024
43d80ff
Merge pull request #107 from abes-esr/ITEM-56_PRIORITÉ_3_TABLEAU_DE_B…
pierre-maraval Aug 21, 2024
cd83cc6
ITEM-190 Ajuster composant authentification
SamuelQuetin Aug 21, 2024
b9c6224
Merge pull request #108 from abes-esr/ITEM-190-Ajuster-composant-auth…
pierre-maraval Aug 21, 2024
ad7c6ae
Ajout du onMounted dans le SuppSteps
SamuelQuetin Aug 23, 2024
81074be
Merge pull request #109 from abes-esr/ITEM-193-gérer-la-route-suppres…
pierre-maraval Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Item",
"version": "2.4.9",
"version": "2.4.10-SNAPSHOT",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
8 changes: 6 additions & 2 deletions src/components/Dialog/DialogLancerTraitement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<v-card-actions class="justify-space-between">
<v-btn v-if="!isFinished" color="primary" @click="dialog = false" aria-label="Annuler">Annuler</v-btn>
<v-spacer v-else></v-spacer>
<v-btn v-if="!isFinished" color="primary" @click="confirm()" aria-label="Valider">Valider</v-btn>
<v-btn v-if="!isFinished && !isSuppDemande" color="primary" @click="confirm()" aria-label="Valider">Valider</v-btn>
<v-btn v-else color="primary" @click="router.push(route)" aria-label="OK">OK</v-btn>
</v-card-actions>
</v-card>
Expand All @@ -36,6 +36,10 @@ const props = defineProps({
type: Boolean,
default: false
},
rubrique: {
required: true,
type: String,
},
route: {
required: true,
type: String,
Expand All @@ -47,7 +51,7 @@ const isFinished = ref(false);
function confirm() {
emits('launch');
title.value = "Traitement validé";
body.value = "Votre demande est en cours de traitement.<br/>Un mail vous sera envoyé quand celui-ci sera terminé.<br/>Vous pouvez retrouver l'ensemble de vos demandes sur votre tableau de bord ITEM. Rubrique \"Gérer mes créations\".";
body.value = `Votre demande est en cours de traitement.<br/>Un mail vous sera envoyé quand celui-ci sera terminé.<br/>Vous pouvez retrouver l'ensemble de vos demandes sur votre tableau de bord ITEM. Rubrique ${props.rubrique}.`;
isFinished.value = true;
}
</script>
6 changes: 3 additions & 3 deletions src/components/MenuDownloadFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
<v-menu bottom left activator="parent">
<!-- FICHIERS MODIF -->
<v-list>
<v-list-item @click="downloadFile('fichier_initial', '.txt')" v-if="demande.type === 'MODIF' && idEtatCurrentDemande >= 3">
<v-list-item @click="downloadFile('fichier_initial', '.txt')" v-if="(demande.type === 'MODIF' && idEtatCurrentDemande >= 3) || (demande.type === 'SUPP' && idEtatCurrentDemande >= 3)">
<v-list-item-title>Télécharger le fichier initial des PPN</v-list-item-title>
</v-list-item>
<v-list-item @click="downloadFile('fichier_prepare', '.csv')" v-if="demande.type === 'MODIF' && idEtatCurrentDemande >= 3">
<v-list-item @click="downloadFile('fichier_prepare', '.csv')" v-if="(demande.type === 'MODIF' && idEtatCurrentDemande >= 3) || (demande.type === 'SUPP' && idEtatCurrentDemande >= 3)">
<v-list-item-title>Télécharger le fichier de correspondance PPN/EPN</v-list-item-title>
</v-list-item>
<v-list-item @click="downloadFile('fichier_enrichi', '.csv')" v-if="demande.type === 'MODIF' && idEtatCurrentDemande >= 4">
<v-list-item-title>Télécharger le fichier enrichi</v-list-item-title>
</v-list-item>

<v-list-item @click="downloadFile('fichier_enrichi', '.csv')"
v-if="(demande.type === 'RECOUV' && idEtatCurrentDemande >= 3) || (demande.type === 'EXEMP' && idEtatCurrentDemande >= 3)">
v-if="(demande.type === 'RECOUV' && idEtatCurrentDemande >= 3) || (demande.type === 'EXEMP' && idEtatCurrentDemande >= 3) ||(demande.type === 'SUPP' && idEtatCurrentDemande >= 5)">
<v-list-item-title>Télécharger le fichier déposé</v-list-item-title>
</v-list-item>

Expand Down
15 changes: 12 additions & 3 deletions src/components/SelectFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,29 @@
aria-label="Dépôt du fichier"
v-model="fileCharged"
ref="fileInput"
label="Cliquez pour charger votre fichier complété (format .txt ou .csv obligatoire)"
:label="label"
>
</v-file-input>
</v-card-text>
</v-card>
</template>
<script setup>
import { ref } from 'vue';
import {computed, ref} from 'vue'

const fileCharged = defineModel();
const props = defineProps( {isLoading: { type: Boolean}})
const props = defineProps( {isLoading: { type: Boolean}, typeFile: { type: String}})
const emits = defineEmits(['deleted']);

const isValidFile = ref(false)
const label = computed(() => {
if (props.typeFile === 'PPN'){
return 'Cliquez pour charger votre liste de PPN (Fichier PPN sur une colonne, format .txt ou .csv obligatoire)';
} else if (props.typeFile === 'EPN'){
return 'Cliquez pour charger votre liste d’EPN (Fichier EPN sur une colonne, format .txt ou .csv obligatoire)';
} else {
return 'Cliquez pour charger votre fichier complété (format .txt ou .csv obligatoire)';
}
})
const rules = ref([
value => {
if(!value[0]) {
Expand Down
19 changes: 15 additions & 4 deletions src/components/Supp/TypeFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<v-col cols="12" sm="3" class="d-flex justify-center">
<v-icon size="x-large" dark color="primary"> mdi-file-document-outline </v-icon>
</v-col>
<v-col cols="12" sm="9" class="d-flex justify-start"><span class="group">Fichier {{ type }}</span></v-col>
<v-col cols="12" sm="9" class="d-flex justify-start">
<span class="group large-text">Fichier {{ type }}</span>
</v-col>
</v-row>
</div>
</v-hover>
Expand All @@ -20,17 +22,26 @@
</template>
<script setup>

const emits = defineEmits(['clicked'])
const props = defineProps({
isLoading: {
type: Boolean,
default: false
}
})
const typeFile = defineModel();
const types = ['PPN','EPN']
const model = defineModel();
const types = ['PPN','EPN'];

function onClick(type) {
typeFile.value = type;
model.value = type;
emits('clicked')
}

</script>

<style scoped>
.large-text {
font-size: 1.1rem;
font-weight: bold;
}
</style>
7 changes: 7 additions & 0 deletions src/service/DemandesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ export class DemandesService {
modifierCommentaireDemande(id, commentaire, typeDemande){
return this.client.patch(`demandes/${typeDemande}/${id}?commentaire=${commentaire}`);
}
modifierTypeFileDemande(id, typeFileDemande){
return this.client.patch(`demandes/SUPP/${id}?typeSupp=${typeFileDemande}`);
}

modifierTypeSuppression(id, typeSuppression){
return this.client.patch(`demandes/SUPP/${id}?typeSuppression=${typeSuppression}`);
}

uploadDemande(id, file, typeDemande){
const config = { headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Exemplarisation/ExempSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</v-col>
</v-row>
</v-container>
<dialog-lancer-traitement v-model="dialog" :is-loading="isLoading" route="/exemplarisation-tableau" @launch="launchDemande()"></dialog-lancer-traitement>
<dialog-lancer-traitement v-model="dialog" :is-loading="isLoading" rubrique="Gérer mes créations" route="/exemplarisation-tableau" @launch="launchDemande()"></dialog-lancer-traitement>
<dialog-suppression v-model="suppDialog" :demande="demande" return-to-accueil></dialog-suppression>
</template>

Expand Down
28 changes: 11 additions & 17 deletions src/views/Exemplarisation/ExempTable.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
<template>

<v-container fluid>
<v-chip v-if="!archiveFalseActiveTrue" style="margin-right: 10px"
@click="switchArchiveActiveDisplay(!archiveFalseActiveTrue)">Créations d'exemplaires
<v-chip :variant="isActiveDemandesDisplayed ? 'plain' : 'tonal'" style="margin-right: 10px"
@click="switchArchiveActiveDisplay(!isActiveDemandesDisplayed)">Créations d'exemplaires
</v-chip>
<v-chip v-if="archiveFalseActiveTrue" variant="plain" style="margin-right: 10px"
@click="switchArchiveActiveDisplay(!archiveFalseActiveTrue)">Créations d'exemplaires
</v-chip>
<v-chip v-if="archiveFalseActiveTrue" @click="switchArchiveActiveDisplay(!archiveFalseActiveTrue)">Créations
<v-chip :variant="!isActiveDemandesDisplayed ? 'plain' : 'tonal'" @click="switchArchiveActiveDisplay(!isActiveDemandesDisplayed)">Créations
d'exemplaires archivées
</v-chip>
<v-chip v-if="!archiveFalseActiveTrue" variant="plain" @click="switchArchiveActiveDisplay(!archiveFalseActiveTrue)">
Créations d'exemplaires archivées
</v-chip>
<v-chip variant="text">
<v-tooltip activator="parent" location="bottom">
<template v-slot:activator="{ props }">
<label>
<input type="checkbox" v-model="extendedAllILN" style="margin-right: 5px"
@change="loadItems('EXEMP', archiveFalseActiveTrue)">
@change="loadItems('EXEMP', isActiveDemandesDisplayed)">
<span v-bind="props">Affichage étendu sur tous les ILN</span>
</label>
</template>
Expand Down Expand Up @@ -127,7 +121,7 @@
</template>
</v-data-table>
<dialog-suppression v-model="suppDialog" :demande="suppDemande"
@supp="loadItems('EXEMP', archiveFalseActiveTrue)"></dialog-suppression>
@supp="loadItems('EXEMP', isActiveDemandesDisplayed)"></dialog-suppression>
</template>

<script setup>
Expand Down Expand Up @@ -254,11 +248,11 @@ const isDialogOpen = computed(() => {
return !!contentsDemandesFrontFiltered.value.find(item => item.expanded === true)
});
//Actives or archives demands displayed
const archiveFalseActiveTrue = ref(false);
const isActiveDemandesDisplayed = ref(false);

//Data initialisation
onMounted(() => {
loadItems('EXEMP', archiveFalseActiveTrue.value);
loadItems('EXEMP', isActiveDemandesDisplayed.value);
contentsDemandesFromServer.value = [...contentsDemandesFromServer.value];
demandesService.getTypeExemp()
.then(response => {
Expand All @@ -270,7 +264,7 @@ onMounted(() => {
});
polling = setInterval(() => {
if(!isDialogOpen.value) {
loadItems('EXEMP', archiveFalseActiveTrue.value)
loadItems('EXEMP', isActiveDemandesDisplayed.value)
.then(() => {
filterItems();
});
Expand All @@ -282,8 +276,8 @@ onBeforeUnmount(() => {
clearInterval(polling);
})
function switchArchiveActiveDisplay(value) {
archiveFalseActiveTrue.value = value;
loadItems('EXEMP', archiveFalseActiveTrue.value);
isActiveDemandesDisplayed.value = value;
loadItems('EXEMP', isActiveDemandesDisplayed.value);
}

async function loadItems(type, archive) {
Expand Down Expand Up @@ -358,7 +352,7 @@ function onRowClick(item) {
}

function saveComment(){
loadItems('EXEMP',archiveFalseActiveTrue.value).then(()=>{
loadItems('EXEMP',isActiveDemandesDisplayed.value).then(()=>{
filterItems();
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Modification/ModifSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
</v-col>
</v-row>
</v-container>
<dialog-lancer-traitement v-model="dialog" :is-loading="isLoading" route="/modification-tableau" @launch="launchDemande()"></dialog-lancer-traitement>
<dialog-lancer-traitement v-model="dialog" :is-loading="isLoading" rubrique="Gérer mes modifications" route="/modification-tableau" @launch="launchDemande()"></dialog-lancer-traitement>
<dialog-suppression v-model="suppDialog" :demande="demande" return-to-accueil></dialog-suppression>
</template>

Expand Down
29 changes: 12 additions & 17 deletions src/views/Modification/ModifTable.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
<template>
<v-container fluid>
<v-chip v-if="!archiveFalseActiveTrue" style="margin-right: 10px"
@click="switchArchiveActiveDisplay(!archiveFalseActiveTrue)">Modification d'exemplaires
<!--:variant="isActiveDemandesDisplayed ? 'plain' : 'tonal'" -->
<v-chip :variant="isActiveDemandesDisplayed ? 'plain' : 'tonal'" style="margin-right: 10px"
@click="switchArchiveActiveDisplay(!isActiveDemandesDisplayed)">Modification d'exemplaires
</v-chip>
<v-chip v-if="archiveFalseActiveTrue" variant="plain" style="margin-right: 10px"
@click="switchArchiveActiveDisplay(!archiveFalseActiveTrue)">Modification d'exemplaires
</v-chip>
<v-chip v-if="archiveFalseActiveTrue" @click="switchArchiveActiveDisplay(!archiveFalseActiveTrue)">Modification
<v-chip :variant="!isActiveDemandesDisplayed ? 'plain' : 'tonal'" @click="switchArchiveActiveDisplay(!isActiveDemandesDisplayed)">Modification
d'exemplaires archivées
</v-chip>
<v-chip v-if="!archiveFalseActiveTrue" variant="plain" @click="switchArchiveActiveDisplay(!archiveFalseActiveTrue)">
Modification d'exemplaires archivées
</v-chip>
<v-chip variant="text">
<v-tooltip activator="parent" location="bottom">
<template v-slot:activator="{ props }">
<label>
<input type="checkbox" v-model="extendedAllILN" style="margin-right: 5px"
@change="loadItems('MODIF', archiveFalseActiveTrue)">
@change="loadItems('MODIF', isActiveDemandesDisplayed)">
<span v-bind="props">Affichage étendu sur tous les ILN</span>
</label>
</template>
Expand Down Expand Up @@ -124,7 +119,7 @@
</template>
</v-data-table>
<dialog-suppression v-model="suppDialog" :demande="suppDemande"
@supp="loadItems('MODIF', archiveFalseActiveTrue)"></dialog-suppression>
@supp="loadItems('MODIF', isActiveDemandesDisplayed)"></dialog-suppression>
</template>

<script setup>
Expand Down Expand Up @@ -260,11 +255,11 @@ const isDialogOpen = computed(() => {
});

//Actives or archives demands displayed
const archiveFalseActiveTrue = ref(false);
const isActiveDemandesDisplayed = ref(false);

//Data initialisation
onMounted(() => {
loadItems('MODIF', archiveFalseActiveTrue.value);
loadItems('MODIF', isActiveDemandesDisplayed.value);
contentsDemandesFromServer.value = [...contentsDemandesFromServer.value];
demandesService.getTypeTraitement()
.then(response => {
Expand All @@ -276,7 +271,7 @@ onMounted(() => {
});
polling = setInterval(() => {
if (!isDialogOpen.value) {
loadItems('MODIF', archiveFalseActiveTrue.value)
loadItems('MODIF', isActiveDemandesDisplayed.value)
.then(() => {
filterItems();
});
Expand All @@ -289,8 +284,8 @@ onBeforeUnmount(() => {
});

function switchArchiveActiveDisplay(value) {
archiveFalseActiveTrue.value = value;
loadItems('MODIF', archiveFalseActiveTrue.value);
isActiveDemandesDisplayed.value = value;
loadItems('MODIF', isActiveDemandesDisplayed.value);
}

async function loadItems(type, archive) {
Expand Down Expand Up @@ -375,7 +370,7 @@ function onRowClick(item) {
}

function saveComment() {
loadItems('MODIF', archiveFalseActiveTrue.value)
loadItems('MODIF', isActiveDemandesDisplayed.value)
.then(() => {
filterItems();
});
Expand Down
2 changes: 1 addition & 1 deletion src/views/Recouvrement/RecouvSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary" @click="router.replace('recouvrement-tableau')" aria-label="OK">OK</v-btn>
<v-btn color="primary" @click="router.push('recouvrement-tableau')" aria-label="OK">OK</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
Expand Down
Loading
Loading