diff --git a/src/components/AdminPurchase.vue b/src/components/AdminPurchase.vue new file mode 100644 index 0000000..1eff2d6 --- /dev/null +++ b/src/components/AdminPurchase.vue @@ -0,0 +1,341 @@ + + + + + + + Agregar Cliente + + + + + + + + + + + Productos +p + + + + + + + + + + + + + + + + + + + + + + + + + Eliminar + + + + No se puede eliminar la única línea. + + + Agregar + + + + + + Calcular Devuelta + + + Comprar + + Verifique los campos obligatorios. + + + + + + + diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index f8a791b..d2e0c56 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -12,11 +12,30 @@ - - - {{ item.title }} - - + + + + + + + + + @@ -26,12 +45,16 @@ data: () => ({ drawer: false, group: null, + showAdminMenu: false, menuItems: [ - { title: 'Inicio', route: '/'}, - { title: 'Comprar', route:'/comprar'}, - { title: 'Cuadrar tarro', route: '/cuadrar_tarro'}, - { title: 'Cuadres de tarro', route: '/cuadres_de_tarro'}, - { title: 'CSV Tryton', route: '/ventas_para_tryton'}, + { title: 'Inicio', route: '/', icon: 'mdi-home'}, + { title: 'Comprar', route:'/comprar', icon: 'mdi-cart'}, + ], + menuAdminItems: [ + { title: 'Cuadrar tarro', route: '/cuadrar_tarro', icon: 'mdi-calculator'}, + { title: 'Cuadres de tarro', route: '/cuadres_de_tarro', icon: 'mdi-chart-bar'}, + { title: 'CSV Tryton', route: '/ventas_para_tryton', icon: 'mdi-file-table'}, + { title: 'Compra adm', route: '/compra_admin', icon: 'mdi-cart'}, ], }), watch: { @@ -43,6 +66,13 @@ navigate(route) { this.$router.push(route); }, + navigateAdmin(route) { + this.toggleAdminMenu(); + this.navigate(route); + }, + toggleAdminMenu() { + this.showAdminMenu = !this.showAdminMenu; + }, } - } + } diff --git a/src/pages/compra_admin.vue b/src/pages/compra_admin.vue new file mode 100644 index 0000000..b871718 --- /dev/null +++ b/src/pages/compra_admin.vue @@ -0,0 +1,20 @@ + + + showComponent = verified"/> + + + + +