mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import ClassSelect from '../../components/select2.js';
|
||||
import tarifasClienteView from './tarifasCliente.js';
|
||||
|
||||
class Cliente {
|
||||
|
||||
@ -7,6 +8,8 @@ class Cliente {
|
||||
this.csrf_token = this.getToken();
|
||||
this.csrf_hash = $('#clienteForm').find('input[name="' + this.csrf_token + '"]').val();
|
||||
|
||||
this.tarifas = new tarifasClienteView();
|
||||
|
||||
this.pais = new ClassSelect($("#paisId"), '/paises/menuitems2', "Seleccione un país", {[this.csrf_token]: this.csrf_hash});
|
||||
this.soporte = new ClassSelect($("#soporteId"), '/users/getMenuComerciales', "Seleccione un usuario", {[this.csrf_token]: this.csrf_hash});
|
||||
this.comercial = new ClassSelect($("#comercialId"), '/users/getMenuComerciales', "Seleccione un usuario", {[this.csrf_token]: this.csrf_hash});
|
||||
@ -30,6 +33,8 @@ class Cliente {
|
||||
this.formaPago.init();
|
||||
this.provincia.init();
|
||||
this.comunidadAutonoma.init();
|
||||
|
||||
this.tarifas.init();
|
||||
|
||||
$(document).keypress(function (e) {
|
||||
var key = e.which;
|
||||
|
||||
14
httpdocs/assets/js/safekat/pages/cliente/tarifasCliente.js
Normal file
14
httpdocs/assets/js/safekat/pages/cliente/tarifasCliente.js
Normal file
@ -0,0 +1,14 @@
|
||||
import { getToken } from "../../utils/common";
|
||||
|
||||
class tarifasClienteView{
|
||||
|
||||
constructor(domItem) {
|
||||
this.csrf_token = document.querySelector('meta[name="csrf-token"]').content;
|
||||
this.csrf_hash = document.querySelector('meta[name="csrf-hash"]').content;
|
||||
this.token = getToken();
|
||||
}
|
||||
|
||||
init() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user