From 372cfe718b1ccfd122c670858ff692a25ddb72b9 Mon Sep 17 00:00:00 2001 From: Dani Herrero Date: Thu, 29 Jun 2017 14:09:04 +0200 Subject: [PATCH] Localizador: warehouseFk por defecto --- client/production/src/index/index.html | 7 ++++--- client/production/src/index/index.js | 10 ++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/client/production/src/index/index.html b/client/production/src/index/index.html index d397720bf..268bf0216 100644 --- a/client/production/src/index/index.html +++ b/client/production/src/index/index.html @@ -17,14 +17,15 @@ - - + diff --git a/client/production/src/index/index.js b/client/production/src/index/index.js index a7593c5fd..d19b46dc2 100644 --- a/client/production/src/index/index.js +++ b/client/production/src/index/index.js @@ -2,7 +2,7 @@ import ngModule from '../module'; import './style.scss'; export default class ProductionIndex { - constructor($element, $scope, $http, vnPopover) { + constructor($element, $scope, $http, vnPopover, aclConstant) { this.$element = $element; this.$ = $scope; this.$http = $http; @@ -17,10 +17,8 @@ export default class ProductionIndex { }; this.hourItems = []; this.child = undefined; - this.warehouse = { - id: 1, - name: "Silla FV" - }; + this.userProfile = aclConstant.userProfile; + this.filter.warehouseFk = this.userProfile.warehouseId; } // Actions Callbacks @@ -101,7 +99,7 @@ export default class ProductionIndex { this.searchTickets(); } } -ProductionIndex.$inject = ['$element', '$scope', '$http', 'vnPopover']; +ProductionIndex.$inject = ['$element', '$scope', '$http', 'vnPopover', 'aclConstant']; ngModule.component('vnProductionIndex', { template: require('./index.html'),