feat : Création d'une page d'administration listing des fournisseurs

This commit is contained in:
2026-02-09 10:45:18 +01:00
parent 615d3d526c
commit bf48a426c1
2 changed files with 23 additions and 17 deletions

29
.idea/workspace.xml generated
View File

@@ -4,11 +4,10 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="7c107abe-5995-4428-8429-b146aaca8386" name="Changes" comment="fix : suppression code mort sur la navbar"> <list default="true" id="7c107abe-5995-4428-8429-b146aaca8386" name="Changes" comment="feat : Création d'une page d'administration listing des fournisseurs">
<change afterPath="$PROJECT_DIR$/frontend/pages/admin/supplierList.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/reference.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/reference.php" afterDir="false" /> <change beforePath="$PROJECT_DIR$/config/reference.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/reference.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/frontend/layouts/admin.vue" beforeDir="false" afterPath="$PROJECT_DIR$/frontend/layouts/admin.vue" afterDir="false" /> <change beforePath="$PROJECT_DIR$/frontend/pages/admin/supplierList.vue" beforeDir="false" afterPath="$PROJECT_DIR$/frontend/pages/admin/supplierList.vue" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -300,15 +299,7 @@
<workItem from="1770195718952" duration="215000" /> <workItem from="1770195718952" duration="215000" />
<workItem from="1770195959162" duration="18915000" /> <workItem from="1770195959162" duration="18915000" />
<workItem from="1770274844804" duration="3940000" /> <workItem from="1770274844804" duration="3940000" />
<workItem from="1770620780923" duration="7163000" /> <workItem from="1770620780923" duration="9218000" />
</task>
<task id="LOCAL-00004" summary="feat : update du fichier AGENTS.md">
<option name="closed" value="true" />
<created>1768316965511</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1768316965511</updated>
</task> </task>
<task id="LOCAL-00005" summary="feat : update du fichier README.md et CHANGELOG.md"> <task id="LOCAL-00005" summary="feat : update du fichier README.md et CHANGELOG.md">
<option name="closed" value="true" /> <option name="closed" value="true" />
@@ -694,7 +685,15 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1770366040426</updated> <updated>1770366040426</updated>
</task> </task>
<option name="localTasksCounter" value="53" /> <task id="LOCAL-00053" summary="feat : Création d'une page d'administration listing des fournisseurs">
<option name="closed" value="true" />
<created>1770628024317</created>
<option name="number" value="00053" />
<option name="presentableId" value="LOCAL-00053" />
<option name="project" value="LOCAL" />
<updated>1770628024317</updated>
</task>
<option name="localTasksCounter" value="54" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@@ -744,7 +743,6 @@
</option> </option>
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="fix : affiche plus détail dans les logs en recette/prod" />
<MESSAGE value="fix : modification du script de déploiement pour corriger le problème d'écriture des logs de prod" /> <MESSAGE value="fix : modification du script de déploiement pour corriger le problème d'écriture des logs de prod" />
<MESSAGE value="fix : doc de déploiement" /> <MESSAGE value="fix : doc de déploiement" />
<MESSAGE value="fix : doc et script de déploiement" /> <MESSAGE value="fix : doc et script de déploiement" />
@@ -769,7 +767,8 @@
<MESSAGE value="feat : Ajout de la sélection des bovins étape 3 d'une réception (WIP)" /> <MESSAGE value="feat : Ajout de la sélection des bovins étape 3 d'une réception (WIP)" />
<MESSAGE value="feat : ajout du responsive sur la navbar et la page d'accueil" /> <MESSAGE value="feat : ajout du responsive sur la navbar et la page d'accueil" />
<MESSAGE value="fix : suppression code mort sur la navbar" /> <MESSAGE value="fix : suppression code mort sur la navbar" />
<option name="LAST_COMMIT_MESSAGE" value="fix : suppression code mort sur la navbar" /> <MESSAGE value="feat : Création d'une page d'administration listing des fournisseurs" />
<option name="LAST_COMMIT_MESSAGE" value="feat : Création d'une page d'administration listing des fournisseurs" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>

View File

@@ -21,7 +21,12 @@
<div v-for="supplier in supplierList" :key="supplier.id"> <div v-for="supplier in supplierList" :key="supplier.id">
<template v-if="supplier.addresses?.length"> <template v-if="supplier.addresses?.length">
<div v-for="addr in supplier.addresses" :key="addr.id" class="grid grid-cols-6 gap-4 px-4 py-2 "> <div
v-for="addr in supplier.addresses"
:key="addr.id"
class="grid grid-cols-6 gap-4 px-4 py-2 "
@click="goToSupplier(supplier.id)"
>
<div class="truncate"> <div class="truncate">
{{ supplier.name }} {{ supplier.name }}
</div> </div>
@@ -57,12 +62,14 @@ const editSupplier = (id: number) => {
router.push(`/admin/supplier/${id}`) router.push(`/admin/supplier/${id}`)
} }
const deleteSupplier = (id: number) => { const goToSupplier = (id: number) => {
router.push(`/admin/supplier/${id}`)
} }
onMounted(async () => { onMounted(async () => {
supplierList.value = (await getSupplierList(false)) ?? [] supplierList.value = (await getSupplierList(false)) ?? []
}) })
</script> </script>