mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en el backend para papeles diferentes
This commit is contained in:
@ -54,6 +54,9 @@ let ClassSelect = function (domItem, url, placeholder, allowClear = false, param
|
||||
this.reset = function () {
|
||||
this.item.val(null).trigger("change");
|
||||
};
|
||||
this.setParams = function(params){
|
||||
this.params = params;
|
||||
};
|
||||
this.getVal = function () {
|
||||
return this.item.val();
|
||||
};
|
||||
|
||||
@ -131,7 +131,7 @@ class Direcciones {
|
||||
#handleChangeCliente() {
|
||||
|
||||
this.direccionesCliente.setParams({ 'cliente_id': $("#clienteId").select2('data')[0].id })
|
||||
this.direccionesCliente.clear();
|
||||
this.direccionesCliente.empty();
|
||||
|
||||
this.domItem.find('.direccion-cliente').remove();
|
||||
this.direcciones = [];
|
||||
|
||||
@ -56,7 +56,7 @@ class PresupuestoCliente {
|
||||
this.disenioCubierta.init();
|
||||
this.direcciones.init();
|
||||
|
||||
//this.RELLENAR_PRESUPUESTO();
|
||||
this.RELLENAR_PRESUPUESTO();
|
||||
|
||||
}
|
||||
|
||||
@ -213,12 +213,14 @@ class PresupuestoCliente {
|
||||
|
||||
this.datos = {
|
||||
|
||||
clienteId: this.datosGenerales.cliente.getValue(),
|
||||
clienteId: this.datosGenerales.cliente.getVal(),
|
||||
|
||||
tamanio: this.datosGenerales.getDimensionLibro(),
|
||||
tirada: this.datosGenerales.getTiradas(),
|
||||
paginas: this.datosGenerales.paginas.val(),
|
||||
paginasColor: this.datosGenerales.paginasColor.val(),
|
||||
paginasCuadernillo: this.datosGenerales.paginasCuadernillo.val(),
|
||||
papelInteriorDiferente: this.datosGenerales.papelDiferente.is(':checked');
|
||||
|
||||
tipo: this.datosGenerales.tiposLibro.filter('.selected').attr('id'),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user