mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en añadir las tiradas a las direcciones
This commit is contained in:
@ -56,7 +56,7 @@ class PresupuestoCliente {
|
||||
this.disenioCubierta.init();
|
||||
this.direcciones.init();
|
||||
|
||||
//this.RELLENAR_PRESUPUESTO();
|
||||
this.RELLENAR_PRESUPUESTO();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
class SelectorTiradaEnvio {
|
||||
|
||||
constructor(container, id, tirada, precio_u) {
|
||||
|
||||
this.container = container;
|
||||
this.card = this.#generateHTML(id, tirada, precio_u);
|
||||
}
|
||||
|
||||
#generateHTML(id, tirada, precio_u) {
|
||||
|
||||
var $div = $('<div>', {
|
||||
id: id,
|
||||
class: 'form-check custom-option custom-option-basic custom-option-tiradasDirecciones'
|
||||
}).append(
|
||||
$('<label>', {
|
||||
class: 'form-check-label custom-option-content',
|
||||
for: 'tiradaEnvios1'
|
||||
}).append(
|
||||
$('<input>', {
|
||||
class: 'form-check-input',
|
||||
type: 'radio',
|
||||
value: '',
|
||||
}),
|
||||
$('<span>', { class: 'custom-option-header' }).append(
|
||||
$('<span>', {
|
||||
class: 'h6 mb-0',
|
||||
text: tirada
|
||||
}),
|
||||
$('<span>', {
|
||||
class: 'text-muted precio-tirada-envio',
|
||||
text: 'Total: ' + parseFloat(precio_u * tirada).toFixed(2) + '€'
|
||||
})
|
||||
),
|
||||
$('<span>', { class: 'custom-option-body' }).append(
|
||||
$('<small>', {
|
||||
text: precio_u + '€/ud'
|
||||
})
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
return $div;
|
||||
}
|
||||
}
|
||||
|
||||
export default SelectorTiradaEnvio;
|
||||
Reference in New Issue
Block a user