Commit ed018da65383946f897bbfae065a383f8c4acd57
1 parent
c7a11e3e9f
Exists in
master
correccion rol en busqueda
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/views/foca-abm-vendedor-cobrador-listado.html
1 | <div class="row"> | 1 | <div class="row"> |
2 | <foca-cabecera-facturador | 2 | <foca-cabecera-facturador |
3 | titulo="'Vendedores / Cobradores'" | 3 | titulo="'Vendedores / Cobradores'" |
4 | fecha="now" | 4 | fecha="now" |
5 | class="mb-0 col-lg-12" | 5 | class="mb-0 col-lg-12" |
6 | ></foca-cabecera-facturador> | 6 | ></foca-cabecera-facturador> |
7 | </div> | 7 | </div> |
8 | <div class="row"> | 8 | <div class="row"> |
9 | <div class="col-12 col-md-10 p-0 mt-4 border border-white rounded"> | 9 | <div class="col-12 col-md-10 p-0 mt-4 border border-white rounded"> |
10 | <div class="form-group input-group mt-3 px-5"> | 10 | <div class="form-group input-group mt-3 px-5"> |
11 | <input | 11 | <input |
12 | type="text" | 12 | type="text" |
13 | class="form-control form-control-sm" | 13 | class="form-control form-control-sm" |
14 | id="search" | 14 | id="search" |
15 | placeholder="Búsqueda" | 15 | placeholder="Búsqueda" |
16 | teclado-virtual | 16 | teclado-virtual |
17 | ng-keypress="search($event.keyCode)" | 17 | ng-keypress="search($event.keyCode)" |
18 | ng-model="filters" | 18 | ng-model="filters" |
19 | foca-focus="true" | 19 | foca-focus="true" |
20 | /> | 20 | /> |
21 | <div class="input-group-append"> | 21 | <div class="input-group-append"> |
22 | <button | 22 | <button |
23 | ladda="searchLoading" | 23 | ladda="searchLoading" |
24 | class="btn btn-outline-secondary" | 24 | class="btn btn-outline-secondary" |
25 | type="button" | 25 | type="button" |
26 | ng-click="search(13)" | 26 | ng-click="search(13)" |
27 | > | 27 | > |
28 | <i class="fa fa-search" aria-hidden="true"></i> | 28 | <i class="fa fa-search" aria-hidden="true"></i> |
29 | </button> | 29 | </button> |
30 | </div> | 30 | </div> |
31 | </div> | 31 | </div> |
32 | <table class="table table-default table-hover table-sm table-abm table-striped mb-0"> | 32 | <table class="table table-default table-hover table-sm table-abm table-striped mb-0"> |
33 | <thead> | 33 | <thead> |
34 | <tr> | 34 | <tr> |
35 | <th class="text-center">Código</th> | 35 | <th class="text-center">Código</th> |
36 | <th>Nombre</th> | 36 | <th>Nombre</th> |
37 | <th>Tipo</th> | 37 | <th>Tipo</th> |
38 | <th class="text-center"> | 38 | <th class="text-center"> |
39 | <button | 39 | <button |
40 | class="btn btn-outline-debo boton-accion" | 40 | class="btn btn-outline-debo boton-accion" |
41 | title="Agregar" | 41 | title="Agregar" |
42 | ng-click="editar(0)" | 42 | ng-click="editar(0)" |
43 | ><i class="fa fa-plus"></i> | 43 | ><i class="fa fa-plus"></i> |
44 | </button> | 44 | </button> |
45 | </th> | 45 | </th> |
46 | </tr> | 46 | </tr> |
47 | </thead> | 47 | </thead> |
48 | <tbody> | 48 | <tbody> |
49 | <tr ng-repeat="vendedorCobrador in currentPageVendedoresCobradores"> | 49 | <tr ng-repeat="vendedorCobrador in currentPageVendedoresCobradores"> |
50 | <td ng-bind="vendedorCobrador.CodVen" class="text-center"></td> | 50 | <td ng-bind="vendedorCobrador.CodVen" class="text-center"></td> |
51 | <td ng-bind="vendedorCobrador.NomVen"></td> | 51 | <td ng-bind="vendedorCobrador.NomVen"></td> |
52 | <td ng-bind="vendedorCobrador.ES_COBRADOR ? 'Cobrador' : 'Vendedor'"></td> | 52 | <td ng-if="vendedorCobrador.rol == 1">Vendedor</td> |
53 | <td ng-if="vendedorCobrador.rol == 2">Cobrador</td> | ||
54 | <td ng-if="vendedorCobrador.rol == 3">Vendedor / Cobrador</td> | ||
55 | <td ng-if="!vendedorCobrador.rol"></td> | ||
53 | <td class="text-center"> | 56 | <td class="text-center"> |
54 | <button | 57 | <button |
55 | class="btn btn-outline-dark boton-accion" | 58 | class="btn btn-outline-dark boton-accion" |
56 | title="Editar" | 59 | title="Editar" |
57 | ng-click="editar(vendedorCobrador.CodVen)" | 60 | ng-click="editar(vendedorCobrador.CodVen)" |
58 | > | 61 | > |
59 | <i class="fa fa-pencil"></i> | 62 | <i class="fa fa-pencil"></i> |
60 | </button> | 63 | </button> |
61 | <button | 64 | <button |
62 | class="btn btn-outline-dark boton-accion" | 65 | class="btn btn-outline-dark boton-accion" |
63 | title="Eliminar" | 66 | title="Eliminar" |
64 | ng-click="eliminar(vendedorCobrador)" | 67 | ng-click="eliminar(vendedorCobrador)" |
65 | > | 68 | > |
66 | <i class="fa fa-trash"></i> | 69 | <i class="fa fa-trash"></i> |
67 | </button> | 70 | </button> |
68 | </td> | 71 | </td> |
69 | </tr> | 72 | </tr> |
70 | </body> | 73 | </body> |
71 | </table> | 74 | </table> |
72 | </div> | 75 | </div> |
73 | </div> | 76 | </div> |
74 | <div class="row"> | 77 | <div class="row"> |
75 | <nav ng-show="currentPageVendedoresCobradores.length > 0" class="mr-auto"> | 78 | <nav ng-show="currentPageVendedoresCobradores.length > 0" class="mr-auto"> |
76 | <ul class="pagination pagination-sm mb-0"> | 79 | <ul class="pagination pagination-sm mb-0"> |
77 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 80 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
78 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)"> | 81 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)"> |
79 | <span aria-hidden="true">«</span> | 82 | <span aria-hidden="true">«</span> |
80 | <span class="sr-only">Anterior</span> | 83 | <span class="sr-only">Anterior</span> |
81 | </a> | 84 | </a> |
82 | </li> | 85 | </li> |
83 | <li | 86 | <li |
84 | class="page-item" | 87 | class="page-item" |
85 | ng-repeat="pagina in paginas" | 88 | ng-repeat="pagina in paginas" |
86 | ng-class="{'active': pagina == currentPage}" | 89 | ng-class="{'active': pagina == currentPage}" |
87 | > | 90 | > |
88 | <a | 91 | <a |
89 | class="page-link" | 92 | class="page-link" |
90 | href="javascript:void()" | 93 | href="javascript:void()" |
91 | ng-click="selectPage(pagina)" | 94 | ng-click="selectPage(pagina)" |
92 | ng-bind="pagina" | 95 | ng-bind="pagina" |
93 | ></a> | 96 | ></a> |
94 | </li> | 97 | </li> |
95 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 98 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
96 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)"> | 99 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)"> |
97 | <span aria-hidden="true">»</span> | 100 | <span aria-hidden="true">»</span> |
98 | <span class="sr-only">Siguiente</span> | 101 | <span class="sr-only">Siguiente</span> |
99 | </a> | 102 | </a> |
100 | </li> | 103 | </li> |
101 | </ul> | 104 | </ul> |
102 | </nav> | 105 | </nav> |
103 | </div> | 106 | </div> |
104 | 107 |