Skip to content

Commit

Permalink
- Correction erreur de branche
Browse files Browse the repository at this point in the history
  • Loading branch information
jvk88511334 committed Nov 8, 2024
1 parent bc12157 commit 39222c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 32 deletions.
11 changes: 1 addition & 10 deletions src/views/Exemplarisation/ExempTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ const headingsDemandes = [
align: 'center',
display: true,
},
{
title: 'Nb d\'exemplaires',
key: 'nbex',
align: 'center',
display: true,
},
{
title: 'Crée le',
key: 'dateCreation',
Expand Down Expand Up @@ -270,7 +264,6 @@ const sortBy = ref([{
const isDataLoaded = ref(false);
//Search fields columns
const numDemandeSearchField = ref('');
const nbExemplairesSearchField = ref('');
const dateCreationSearchField = ref('');
const dateModificationSearchField = ref('');
const ilnSearchField = ref('');
Expand Down Expand Up @@ -338,8 +331,6 @@ function filterItems() {
contentsDemandesFrontFiltered.value = contentsDemandesFromServer.value.filter(demande => {
const matchesNumDemande = numDemandeSearchField.value === '' || demande.id.toString()
.includes(numDemandeSearchField.value);
const matchesNbExemplaires = nbExemplairesSearchField.value === '' || demande.nbex.toString()
.includes(nbExemplairesSearchField.value);
const matchesDateCreation = dateCreationSearchField.value === '' || demande.dateCreation.toString()
.includes(dateCreationSearchField.value);
const matchesDateModification = dateModificationSearchField.value === '' || demande.dateModification.toString()
Expand All @@ -352,7 +343,7 @@ function filterItems() {
const matchesIndexSearch = indexRechercheSearchField.value === '' || demande.indexRecherche && demande.indexRecherche.includes(indexRechercheSearchField.value);
const matchesEtatDemande = statutSearchField.value === undefined || statutSearchField.value === null || statutSearchField.value === '' || demande.etatDemande.toString()
.includes(statutSearchField.value) || ((statutSearchField.value === 'En saisie') && (demande.etatDemande === 'En simulation' || demande.etatDemande === 'En préparation' || demande.etatDemande === 'A compléter'));
return matchesNumDemande && matchesNbExemplaires && matchesDateCreation && matchesDateModification && matchesRCR && matchesILN && matchesTypeExemp && matchesIndexSearch && matchesEtatDemande;
return matchesNumDemande && matchesDateCreation && matchesDateModification && matchesRCR && matchesILN && matchesTypeExemp && matchesIndexSearch && matchesEtatDemande;
});
}
Expand Down
13 changes: 2 additions & 11 deletions src/views/Modification/ModifTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,7 @@ const headingsDemandes = [
key: 'id',
align: 'center',
display: true,
},
{
title: 'Nb d\'exemplaires',
key: 'nbex',
align: 'center',
display: true,
},
},z
{
title: 'Crée le',
key: 'dateCreation',
Expand Down Expand Up @@ -268,7 +262,6 @@ const isDataLoaded = ref(false);
//Search fields columns
const numDemandeSearchField = ref('');
const nbExemplairesSearchField = ref('');
const dateCreationSearchField = ref('');
const dateModificationSearchField = ref('');
const ilnSearchField = ref('');
Expand Down Expand Up @@ -337,8 +330,6 @@ function filterItems() {
contentsDemandesFrontFiltered.value = contentsDemandesFromServer.value.filter(demande => {
const matchesNumDemande = numDemandeSearchField.value === '' || demande.id.toString()
.includes(numDemandeSearchField.value);
const matchesNbExemplaires = nbExemplairesSearchField.value === '' || demande.nbex.toString()
.includes(nbExemplairesSearchField.value);
const matchesDateCreation = dateCreationSearchField.value === '' || demande.dateCreation.toString()
.includes(dateCreationSearchField.value);
const matchesDateModification = dateModificationSearchField.value === '' || demande.dateModification.toString()
Expand All @@ -351,7 +342,7 @@ function filterItems() {
const matchesTraitement = traitementSearchField.value === undefined || traitementSearchField.value === null || traitementSearchField.value === '' || (demande.traitement && demande.traitement.includes(traitementSearchField.value)) || (!demande.traitement && traitementSearchField.value === 'Non défini');
const matchesEtatDemande = statutSearchField.value === undefined || statutSearchField.value === null || statutSearchField.value === '' || demande.etatDemande.toString()
.includes(statutSearchField.value) || ((statutSearchField.value === 'En saisie') && (demande.etatDemande === 'En simulation' || demande.etatDemande === 'En préparation' || demande.etatDemande === 'Préparée' || demande.etatDemande === 'A compléter'));
return matchesNumDemande && matchesNbExemplaires && matchesDateCreation && matchesDateModification && matchesRCR && matchesILN && matchesZone && matchesTraitement && matchesEtatDemande;
return matchesNumDemande && matchesDateCreation && matchesDateModification && matchesRCR && matchesILN && matchesZone && matchesTraitement && matchesEtatDemande;
});
}
Expand Down
13 changes: 2 additions & 11 deletions src/views/Suppression/SuppTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ const headingsDemandes = [
align: 'center',
display: true,
},
{
title: 'Nb d\'exemplaires',
key: 'nbex',
align: 'center',
display: true,
},
{
title: 'Crée le',
key: 'dateCreation',
Expand Down Expand Up @@ -243,7 +237,6 @@ const isDataLoaded = ref(false);
//Search fields columns
const numDemandeSearchField = ref('');
const nbExemplairesSearchField = ref('');
const dateCreationSearchField = ref('');
const dateModificationSearchField = ref('');
const ilnSearchField = ref('');
Expand Down Expand Up @@ -297,6 +290,7 @@ async function loadItems(type, archive) {
contentsDemandesFrontFiltered.value = response.data.map((item) => ({
...item,
expanded: false,
}));
isDataLoaded.value = true;
Expand All @@ -311,8 +305,6 @@ function filterItems() {
contentsDemandesFrontFiltered.value = contentsDemandesFromServer.value.filter(demande => {
const matchesNumDemande = numDemandeSearchField.value === '' || demande.id.toString()
.includes(numDemandeSearchField.value);
const matchesNbExemplaires = nbExemplairesSearchField.value === '' || demande.nbex.toString()
.includes(nbExemplairesSearchField.value);
const matchesDateCreation = dateCreationSearchField.value === '' || demande.dateCreation.toString()
.includes(dateCreationSearchField.value);
const matchesDateModification = dateModificationSearchField.value === '' || demande.dateModification.toString()
Expand All @@ -325,7 +317,7 @@ function filterItems() {
const matchesTraitement = traitementSearchField.value === undefined || traitementSearchField.value === null || traitementSearchField.value === '' || (demande.traitement && demande.traitement.includes(traitementSearchField.value)) || (!demande.traitement && traitementSearchField.value === 'Non défini');
const matchesEtatDemande = statutSearchField.value === undefined || statutSearchField.value === null || statutSearchField.value === '' || demande.etatDemande.toString()
.includes(statutSearchField.value) || ((statutSearchField.value === 'En saisie') && (demande.etatDemande === 'En simulation' || demande.etatDemande === 'En préparation' || demande.etatDemande === 'Préparée' || demande.etatDemande === 'A compléter'));
return matchesNumDemande && matchesNbExemplaires && matchesDateCreation && matchesDateModification && matchesRCR && matchesILN && matchesZone && matchesTraitement && matchesEtatDemande;
return matchesNumDemande && matchesDateCreation && matchesDateModification && matchesRCR && matchesILN && matchesZone && matchesTraitement && matchesEtatDemande;
});
}
Expand Down Expand Up @@ -397,7 +389,6 @@ function colorProgressBar(item) {
</script>

<style scoped>
.highlighted-row {
background-color: #f5f5f5;
}
Expand Down

0 comments on commit 39222c3

Please sign in to comment.