Commit fbfe36b9 authored by liboyang's avatar liboyang

修改bug

parent bdac2671
...@@ -244,7 +244,6 @@ angular.module('AvatarCheck', [ ...@@ -244,7 +244,6 @@ angular.module('AvatarCheck', [
$scope.logout = function(){ $scope.logout = function(){
HttpService.logout(function(data) { HttpService.logout(function(data) {
$location.path('/login')
$rootScope.loginData = {userid:'用户未登录', login:false}; $rootScope.loginData = {userid:'用户未登录', login:false};
localStorage.clear(); localStorage.clear();
}); });
...@@ -288,6 +287,8 @@ angular.module('AvatarCheck', [ ...@@ -288,6 +287,8 @@ angular.module('AvatarCheck', [
if($(".prod:checked").length>0){ if($(".prod:checked").length>0){
if(angular.isUndefined($scope.searchResult.workOrderData[0].CARD_TYPE_ID)){ if(angular.isUndefined($scope.searchResult.workOrderData[0].CARD_TYPE_ID)){
MessageService.showAlert("无制证类型记录,请创建任务单后再添加快证") MessageService.showAlert("无制证类型记录,请创建任务单后再添加快证")
}else if($scope.searchResult.workOrderData[0].POSITION_DATE!=null){
MessageService.showAlert("该证件正在分拣,不能添加快证")
}else{ }else{
var idx = $(".prod:checked").val(); var idx = $(".prod:checked").val();
var check = idx.split("+"); var check = idx.split("+");
......
...@@ -62,12 +62,6 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -62,12 +62,6 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
$scope.isHistory = 0; $scope.isHistory = 0;
var startDate=$('#datepicker1').val(); var startDate=$('#datepicker1').val();
var endDate=$('#datepicker2').val(); var endDate=$('#datepicker2').val();
if(startDate==''){
startDate= $filter("date")(new Date(), "yyyy-MM-dd HH:mm:ss");
}
if(endDate==''){
endDate= $filter("date")(new Date(), "yyyy-MM-dd HH:mm:ss");
}
HttpService.getReceitp(startDate,endDate,function(data){ HttpService.getReceitp(startDate,endDate,function(data){
$scope.receitpData=data; $scope.receitpData=data;
for(var i=0;i<$scope.receitpData.length;i++){ for(var i=0;i<$scope.receitpData.length;i++){
...@@ -86,12 +80,6 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -86,12 +80,6 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
$scope.isHistory = 1; $scope.isHistory = 1;
var startDate=$('#datepicker1').val(); var startDate=$('#datepicker1').val();
var endDate=$('#datepicker2').val(); var endDate=$('#datepicker2').val();
if(startDate==''){
startDate= $filter("date")(new Date(), "yyyy-MM-dd HH:mm:ss");
}
if(endDate==''){
endDate= $filter("date")(new Date(), "yyyy-MM-dd HH:mm:ss");
}
HttpService.getHistoryReceitp(startDate,endDate,function(data){ HttpService.getHistoryReceitp(startDate,endDate,function(data){
$scope.receitpHistoryData=data; $scope.receitpHistoryData=data;
for(var i=0;i<$scope.receitpHistoryData.length;i++){ for(var i=0;i<$scope.receitpHistoryData.length;i++){
......
...@@ -9,11 +9,25 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin ...@@ -9,11 +9,25 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
}); });
}]) }])
.controller('tagPrintCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout, $filter, ngDialog) { .controller('tagPrintCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout, $filter, ngDialog,$location) {
var getPoliceListDataNotChecked = function () {
HttpService.getPoliceListDataNotCheckedData(function(data){
$scope.tagPrintData = data;
for(var i=0;i<$scope.tagPrintData.length;i++){
$scope.tagPrintData[i].show = false;
}
console.log($scope.tagPrintData)
})
};
$scope.acceptNo = 'ACCEPT_NO'; if($rootScope.loginData.login === false){
$location.path("/login");
}else{
getPoliceListDataNotChecked();
}
$scope.acceptNo = 'ACCEPT_NO';
var postParam={ var postParam={
idCard:'', idCard:'',
...@@ -65,16 +79,7 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin ...@@ -65,16 +79,7 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
getDetailListById(item.ID); getDetailListById(item.ID);
}; };
var getPoliceListDataNotChecked = function () {
HttpService.getPoliceListDataNotCheckedData(function(data){
$scope.tagPrintData = data;
for(var i=0;i<$scope.tagPrintData.length;i++){
$scope.tagPrintData[i].show = false;
}
console.log($scope.tagPrintData)
})
};
getPoliceListDataNotChecked();
$scope.checkSame = function (id) { $scope.checkSame = function (id) {
HttpService.updateReceiptList(id,function(data) { HttpService.updateReceiptList(id,function(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment