Ventas->Listado->Ventas

This commit is contained in:
Juan Pablo Vial
2023-07-28 16:22:20 -04:00
parent 38383f5295
commit ef30ae67d2
52 changed files with 1496 additions and 17 deletions

View File

@ -321,7 +321,7 @@
data: {
id: 0,
proyecto: '',
proyectos: [],
proyectos: JSON.parse('{!! json_encode($proyectos) !!}'),
precios: []
},
table: null,
@ -524,14 +524,14 @@
}
},
up: event => {
this.get().proyectos()
this.draw().proyectos()
},
refresh: event => {
const list = $(this.ids.proyectos)
if (list.is(':hidden')) {
this.get().precios(this.data.id)
} else {
this.get().proyectos()
this.draw().proyectos()
}
},
add: () => {
@ -581,7 +581,7 @@
$(this.ids.buttons.refresh).click(this.actions().refresh)
$(this.ids.buttons.add).click(this.actions().add().list)
this.get().proyectos()
this.draw().proyectos()
}
}