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,9 +338,6 @@ citApp.controller( 'AtendimentoRequisicaoConsumoController', | ||
338 | MaterialLocalEstoqueRepository.buscarLocaisEstoquePorIdMaterialIdAlmoxarifado(requisicaoConsumoItem.materialConsumo.id, req.almoxarifado.id).then(function(result) { | 338 | MaterialLocalEstoqueRepository.buscarLocaisEstoquePorIdMaterialIdAlmoxarifado(requisicaoConsumoItem.materialConsumo.id, req.almoxarifado.id).then(function(result) { |
339 | atendimentoItem.locaisEstoque = result; | 339 | atendimentoItem.locaisEstoque = result; |
340 | 340 | ||
341 | - result.forEach(function(localEstoque){ | ||
342 | - if(localPrincipal) | ||
343 | - }); | ||
344 | }); | 341 | }); |
345 | 342 | ||
346 | atendimento.atendimentoRequisicaoConsumoItems.push(atendimentoItem); | 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,23 +13,21 @@ citApp.controller('AtendimentoRequisicaoConsumoListController', ['$scope', 'Aten | ||
13 | // DEFINE CABEÇALHOS DA LISTAGEM | 13 | // DEFINE CABEÇALHOS DA LISTAGEM |
14 | $scope.headers = [ {title : $translate.instant('ALMOXARIFADO.LABEL.NUMERO_REQUISICAO'), value : 'numeroRequisicao' } , | 14 | $scope.headers = [ {title : $translate.instant('ALMOXARIFADO.LABEL.NUMERO_REQUISICAO'), value : 'numeroRequisicao' } , |
15 | {title : $translate.instant('ALMOXARIFADO.LABEL.STATUS_REQUISICAO'), value : 'tipoStatusRequisicao.descricao' } , | 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 | {title : $translate.instant('ALMOXARIFADO.LABEL.UNIDADE_REQUISITANTE'), value : 'unidadeRequisitante.nome' } , | 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 | // DIFINE FILTROS DE PESQUISA E CAMPOS QUE DEVEM SER APRESENTADOS NA LISTAGEM | 19 | // DIFINE FILTROS DE PESQUISA E CAMPOS QUE DEVEM SER APRESENTADOS NA LISTAGEM |
21 | $scope.filterCriteria = { | 20 | $scope.filterCriteria = { |
22 | start : 1, | 21 | start : 1, |
23 | dir : 'asc', | 22 | dir : 'asc', |
24 | sort : 'desc:numeroRequisicao;tipoStatusRequisicao.codigo', | 23 | sort : 'desc:numeroRequisicao;tipoStatusRequisicao.codigo', |
25 | limit : 10, | 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 | filters : [ {type : 'numeric-range', field : 'numeroRequisicao' } , | 26 | filters : [ {type : 'numeric-range', field : 'numeroRequisicao' } , |
28 | {type : 'dominio', field : 'tipoStatusRequisicao.descricao', listaDominio : []} , | 27 | {type : 'dominio', field : 'tipoStatusRequisicao.descricao', listaDominio : []} , |
29 | {type : 'date-range', field : 'dataRequisicao' } , | 28 | {type : 'date-range', field : 'dataRequisicao' } , |
30 | {type : 'string', field : 'unidadeRequisitante.nome' } , | 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 | $scope.filterCriteria.filters.push({type: 'string', field: 'tipoStatusRequisicao.nome', value: 'DEVOLVIDA', comparison: 'ne', notFilter : true}); | 33 | $scope.filterCriteria.filters.push({type: 'string', field: 'tipoStatusRequisicao.nome', value: 'DEVOLVIDA', comparison: 'ne', notFilter : true}); |