agregar factura

This commit is contained in:
2020-10-26 11:17:19 -06:00
parent 76c6cfc0ee
commit 3f3a2dbd5b
6 changed files with 58 additions and 32 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" type=image/png href=assets/icono.png><title>ASINEA-Login</title><link href=//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css rel=stylesheet id=bootstrap-css><script src=//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js></script><script src=//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js></script><link href=css/app.1f44dfa8.css rel=preload as=style><link href=js/app.1b935655.js rel=preload as=script><link href=js/chunk-vendors.81d09f4a.js rel=preload as=script><link href=css/app.1f44dfa8.css rel=stylesheet></head><body><noscript><strong>We're sorry but asinea-front doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.81d09f4a.js></script><script src=js/app.1b935655.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" type=image/png href=assets/icono.png><title>ASINEA-Login</title><link href=//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css rel=stylesheet id=bootstrap-css><script src=//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js></script><script src=//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js></script><link href=css/app.aa52a559.css rel=preload as=style><link href=js/app.b2c32903.js rel=preload as=script><link href=js/chunk-vendors.81d09f4a.js rel=preload as=script><link href=css/app.aa52a559.css rel=stylesheet></head><body><noscript><strong>We're sorry but asinea-front doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.81d09f4a.js></script><script src=js/app.b2c32903.js></script></body></html>
-1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+53 -27
View File
@@ -178,6 +178,7 @@
<b-button variant="primary" @click="descargarExcelIncritos()" :href="link" class="fadeIn fourth">Descargar</b-button>
</form>
</b-tab>
<!--<p>{{factura}}</p>-->
<b-tab title="Solicitud de Factura" >
<form >
@@ -185,33 +186,55 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nombre</th>
<th scope="col">Apellido Paterno</th>
<th scope="col">Apellido Materno</th>
<th scope="col">Correo</th>
<th scope="col">Comunidad</th>
<th scope="col">Pago total</th>
<th scope="col">Mostrar datos</th>
<th scope="col">Enviar Factura</th>
<th scope="col">#</th>
<th scope="col">Nombre</th>
<th scope="col">Apellido Paterno</th>
<th scope="col">Apellido Materno</th>
<th scope="col">Correo</th>
<th scope="col">Comunidad</th>
<th scope="col">Pago total</th>
<th scope="col">RFC</th>
<th scope="col">Telefono Factura</th>
<th scope="col">Correo Factura</th>
<th scope="col">Nombre</th>
<th scope="col">Apellido Paterno</th>
<th scope="col">Apellido Materno</th>
<th scope="col">Calle</th>
<th scope="col">No. Interior</th>
<th scope="col">No. Exterior</th>
<th scope="col">Colonia</th>
<th scope="col">Municipio</th>
<th scope="col">Estado</th>
<th scope="col">Codigo Postal</th>
</tr>
</thead>
<tbody>
<tr v-for="item in factura" v-bind:key="item.idPersona">
<th scope="row">{{item.number}}</th>
<td>{{item.nombre}}</td>
<td>{{item.apellidoP}}</td>
<td>{{item.apellidoM}}</td>
<td>{{item.correo}}</td>
<td>{{item.comunidad}}</td>
<td>{{item.pago}}</td>
<td ><button type="button" class="btn btn-outline-primary" v-b-modal.DatosPago>Mostrar pago</button></td>
<td ><button type="button" class="btn btn-outline-success" >Enviar Factura</button></td>
<td>{{item.datosPersona.nombre}}</td>
<td>{{item.datosPersona.apellidoPaterno}}</td>
<td>{{item.datosPersona.apellidoMaterno}}</td>
<td>{{item.datosPersona.correo}}</td>
<td>{{item.datosPersona.comunidad}}</td>
<td>{{item.datosPersona.pago}}</td>
<td>{{item.rfc}}</td>
<td>{{item.telefono}}</td>
<td>{{item.correo}}</td>
<td>{{item.nombre}}</td>
<td>{{item.apellidoPaterno}}</td>
<td>{{item.apellidoMaterno}}</td>
<td>{{item.calle}}</td>
<td>{{item.noInterior}}</td>
<td>{{item.noExterior}}</td>
<td>{{item.colonia}}</td>
<td>{{item.municipio}}</td>
<td>{{item.estado}}</td>
<td>{{item.codigoPostal}}</td>
</tr>
</tbody>
</table>
</div>
<!-- <input type="submit" class="fadeIn fourth" value="Descargar"> -->
<b-button variant="primary" @click="descargarExcelFactura()" :href="link" class="fadeIn fourth">Descargar</b-button>
</form>
</b-tab>
@@ -377,6 +400,9 @@ export default {
};
},
methods: {
async descargarExcelFactura(){
this.link= `${config.api}/getExcelFactura`;
},
async descargarExcelIncritos(){
this.link= `${config.api}/getExcelInscritos`;
},
@@ -524,16 +550,16 @@ export default {
}
// this.factura = await axios.get(
// `${config.api}/getFactura`
// );
// this.factura = this.factura.data.datos;
this.factura = await axios.get(
`${config.api}/getFactura`
);
this.factura = this.factura.data.datos;
// con = 1;
// for(let item in this.factura){
// this.factura[item].number =con;
// con ++;
// }
con = 1;
for(let item in this.factura){
this.factura[item].number =con;
con ++;
}
}