4a77449a41
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | #203 | Réceptions — Parcours de pesée multi-étapes | ## Description de la PR [#203] Réceptions — Parcours de pesée multi-étapes ## Modification du .env ## Check list - [x] Pas de régression - [x] TU/TI/TF rédigée - [x] TU/TI/TF OK - [x] CHANGELOG modifié Reviewed-on: https://gitea.malio.fr/MALIO-DEV/Ferme/pulls/3 Reviewed-by: THOLOT DECHENE Matthieu <matthieu@yuno.malio.fr> Co-authored-by: AUTIN Tristan <tristan@yuno.malio.fr> Co-committed-by: AUTIN Tristan <tristan@yuno.malio.fr>
31 lines
904 B
Vue
31 lines
904 B
Vue
<template>
|
|
<div class="flex flex-col items-center mt-[164px] gap-32">
|
|
<div class="flex gap-8 items-center justify-center">
|
|
<!--@TODO Prendre en compte que l'on peut aussi décharger de la marchandise-->
|
|
<h1 class="text-3xl uppercase font-bold">Décharger les bêtes</h1>
|
|
<UiLoadingDots />
|
|
</div>
|
|
<button
|
|
class="text-xl uppercase bg-primary-500 text-white h-[50px] w-[272px]"
|
|
@click="goNext"
|
|
>Suivant</button>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useReceptionStore } from '~/stores/reception'
|
|
|
|
const receptionStore = useReceptionStore()
|
|
|
|
async function goNext() {
|
|
if (!receptionStore.current) {
|
|
return
|
|
}
|
|
|
|
const nextStep = receptionStore.current.currentStep + 1
|
|
await receptionStore.updateReception(receptionStore.current.id, {
|
|
currentStep: nextStep
|
|
})
|
|
}
|
|
</script>
|