|
@@ -60,7 +60,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
url: '/return/:id',
|
|
url: '/return/:id',
|
|
|
templateUrl: 'static/tpl/index_mobile/sale/return_detail.html',
|
|
templateUrl: 'static/tpl/index_mobile/sale/return_detail.html',
|
|
|
controller: 'SaleReturnCtrl'
|
|
controller: 'SaleReturnCtrl'
|
|
|
- })
|
|
|
|
|
|
|
+ })
|
|
|
}]);
|
|
}]);
|
|
|
|
|
|
|
|
app.factory('StatusCode', function(){
|
|
app.factory('StatusCode', function(){
|
|
@@ -98,7 +98,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- app.controller('MyCtrl', ['$scope', '$rootScope', function($scope, $rootScope) {
|
|
|
|
|
|
|
+ app.controller('MyCtrl', ['$scope', '$rootScope','$window', 'AuthenticationService', function($scope, $rootScope,$window,AuthenticationService) {
|
|
|
|
|
+ $scope.logout = function() {
|
|
|
|
|
+ AuthenticationService.logout().success(function() {
|
|
|
|
|
+ $window.location.reload();
|
|
|
|
|
+ });
|
|
|
|
|
+ };
|
|
|
$rootScope.$on('$locationChangeSuccess', function(evt, newUrl) {
|
|
$rootScope.$on('$locationChangeSuccess', function(evt, newUrl) {
|
|
|
var routeState = newUrl.substr(newUrl.indexOf('#/') + 2);
|
|
var routeState = newUrl.substr(newUrl.indexOf('#/') + 2);
|
|
|
if (routeState.indexOf('/') > -1)
|
|
if (routeState.indexOf('/') > -1)
|
|
@@ -164,6 +169,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
SnapshotService.getTodo(function(data){
|
|
SnapshotService.getTodo(function(data){
|
|
|
$scope.todo = data;
|
|
$scope.todo = data;
|
|
|
});
|
|
});
|
|
|
|
|
+ $scope.active =[false,true,false,false];
|
|
|
|
|
+ $scope.showMake = function(index) {
|
|
|
|
|
+ for (var i=0;i<$scope.active.length;i++) {
|
|
|
|
|
+ if($scope.active[i] == true) {
|
|
|
|
|
+ $scope.active[i] = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ if(index == i) {
|
|
|
|
|
+ $scope.active[i] = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}]);
|
|
}]);
|
|
|
|
|
|
|
|
/**
|
|
/**
|