Commit 0106590f3a36898f4c73b37bf776dcc5b8173a41
1 parent
42db6471
Exists in
master
[Redmine Atendimento #4935]List atendimento
Showing
2 changed files
with
4 additions
and
9 deletions
Show diff stats
cit-almoxarifado-web/src/main/webapp/assets/js/angular/custom/controller/AtendimentoRequisicaoConsumoController.js
... | ... | @@ -338,9 +338,6 @@ citApp.controller( 'AtendimentoRequisicaoConsumoController', |
338 | 338 | MaterialLocalEstoqueRepository.buscarLocaisEstoquePorIdMaterialIdAlmoxarifado(requisicaoConsumoItem.materialConsumo.id, req.almoxarifado.id).then(function(result) { |
339 | 339 | atendimentoItem.locaisEstoque = result; |
340 | 340 | |
341 | - result.forEach(function(localEstoque){ | |
342 | - if(localPrincipal) | |
343 | - }); | |
344 | 341 | }); |
345 | 342 | |
346 | 343 | atendimento.atendimentoRequisicaoConsumoItems.push(atendimentoItem); | ... | ... |
cit-almoxarifado-web/src/main/webapp/assets/js/angular/custom/controller/AtendimentoRequisicaoConsumoListController.js
... | ... | @@ -13,23 +13,21 @@ citApp.controller('AtendimentoRequisicaoConsumoListController', ['$scope', 'Aten |
13 | 13 | // DEFINE CABEÇALHOS DA LISTAGEM |
14 | 14 | $scope.headers = [ {title : $translate.instant('ALMOXARIFADO.LABEL.NUMERO_REQUISICAO'), value : 'numeroRequisicao' } , |
15 | 15 | {title : $translate.instant('ALMOXARIFADO.LABEL.STATUS_REQUISICAO'), value : 'tipoStatusRequisicao.descricao' } , |
16 | - {title : $translate.instant('ALMOXARIFADO.LABEL.DATA_REQUISICAO'), value : 'dataRequisicao' , filter : 'dateBR'} , | |
16 | + {title : $translate.instant('ALMOXARIFADO.LABEL.DATA_REQUISICAO'), value : 'dataRequisicao' , filter : 'dateBR', tamanho : 28} , | |
17 | 17 | {title : $translate.instant('ALMOXARIFADO.LABEL.UNIDADE_REQUISITANTE'), value : 'unidadeRequisitante.nome' } , |
18 | - {title : $translate.instant('ALMOXARIFADO.LABEL.ALMOXARIFADO'), value : 'almoxarifado.nome' } , | |
19 | - {title : $translate.instant('ALMOXARIFADO.LABEL.CENTRO_CUSTO'), value : 'centroCusto.descricao' }]; | |
18 | + {title : $translate.instant('ALMOXARIFADO.LABEL.ALMOXARIFADO'), value : 'almoxarifado.nome' } ]; | |
20 | 19 | // DIFINE FILTROS DE PESQUISA E CAMPOS QUE DEVEM SER APRESENTADOS NA LISTAGEM |
21 | 20 | $scope.filterCriteria = { |
22 | 21 | start : 1, |
23 | 22 | dir : 'asc', |
24 | 23 | sort : 'desc:numeroRequisicao;tipoStatusRequisicao.codigo', |
25 | 24 | limit : 10, |
26 | - fields: ['id', 'numeroRequisicao', 'tipoStatusRequisicao.descricao', 'dataRequisicao', 'unidadeRequisitante.nome', 'almoxarifado.nome', 'centroCusto.descricao', 'tipoStatusRequisicao.codigo'], | |
25 | + fields: ['id', 'numeroRequisicao', 'tipoStatusRequisicao.descricao', 'dataRequisicao', 'unidadeRequisitante.nome', 'almoxarifado.nome', 'tipoStatusRequisicao.codigo'], | |
27 | 26 | filters : [ {type : 'numeric-range', field : 'numeroRequisicao' } , |
28 | 27 | {type : 'dominio', field : 'tipoStatusRequisicao.descricao', listaDominio : []} , |
29 | 28 | {type : 'date-range', field : 'dataRequisicao' } , |
30 | 29 | {type : 'string', field : 'unidadeRequisitante.nome' } , |
31 | - {type : 'string', field : 'almoxarifado.nome' } , | |
32 | - {type : 'string', field : 'centroCusto.descricao' }] | |
30 | + {type : 'string', field : 'almoxarifado.nome' } ] | |
33 | 31 | }; |
34 | 32 | |
35 | 33 | $scope.filterCriteria.filters.push({type: 'string', field: 'tipoStatusRequisicao.nome', value: 'DEVOLVIDA', comparison: 'ne', notFilter : true}); | ... | ... |