-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
web-app-vue/src/components/movimentacao/lista-movimentacoes.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<ul> | ||
<li></li> | ||
</ul> | ||
</template> | ||
<script setup> | ||
import { useMovimentacaoStore } from '@/stores/movimentacaoStore' | ||
import { onMounted } from 'vue' | ||
const mState = useMovimentacaoStore() | ||
onMounted(() => { | ||
mState.sincronizarMovimentacoes() | ||
}) | ||
</script> | ||
<style scoped></style> |
24 changes: 22 additions & 2 deletions
24
web-app-vue/src/components/movimentacao/nova-movimentacao.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
<template> | ||
<div>nova movimentação</div> | ||
<form @submit.stop.prevent="salvarMovimentacao()"> | ||
<select v-model="novaMovimentacao.tipo"> | ||
<option>Selecione uma conta</option> | ||
<option v-for="tipo in mState.store.tiposMovimentacao" :key="tipo.id" :value="tipo"> | ||
{{ tipo.descricao }} | ||
</option> | ||
</select> | ||
<input placeholder="valor" /> | ||
<button type="submit">salvar</button> | ||
</form> | ||
</template> | ||
<script setup></script> | ||
<script setup> | ||
import { useMovimentacaoStore } from '@/stores/movimentacaoStore' | ||
import { reactive } from 'vue' | ||
const mState = useMovimentacaoStore() | ||
const novaMovimentacao = reactive({ | ||
tipo: { id: 2, descricao: 'SAIDA' } | ||
}) | ||
const salvarMovimentacao = async () => {} | ||
</script> | ||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters