Commit 92d6d24c authored by liboyang's avatar liboyang

分拣转出任务单弹框bug

parent 22e694ae
...@@ -724,15 +724,15 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -724,15 +724,15 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
} }
$scope.goes = function(){ $scope.goes = function(){
var checks = $(".checkOneBox:checked");
if(checks.length>0){
var go = function () {
$rootScope.closeBtn();
$rootScope.selectCount = 0; $rootScope.selectCount = 0;
for (var i = 0; i < $scope.selected.length; i++) { for (var i = 0; i < $scope.selected.length; i++) {
$rootScope.selectCount =$rootScope.selectCount + parseInt($scope.selected[i].countyValidCount-$scope.selected[i].specialCount); $rootScope.selectCount =$rootScope.selectCount + parseInt($scope.selected[i].countyValidCount-$scope.selected[i].specialCount);
} }
console.log("for",$rootScope.selectCount) console.log("for",$rootScope.selectCount)
var go = function () {
$rootScope.closeBtn();
var checks = $(".checkOneBox:checked");
if(checks.length>0){
var arr = []; var arr = [];
var failedArr=[]; var failedArr=[];
for (var i=0;i<checks.length;i++){ for (var i=0;i<checks.length;i++){
...@@ -755,6 +755,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -755,6 +755,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$rootScope.ableBtn(); $rootScope.ableBtn();
$rootScope.closeThis(); $rootScope.closeThis();
}) })
}else{
MessageService.showAlert("请选择转出的任务单");
}
} }
ngDialog.open({ ngDialog.open({
template: 'dialogs/gotoDistribute.html' + urlTimeStamp(), template: 'dialogs/gotoDistribute.html' + urlTimeStamp(),
...@@ -772,10 +775,5 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -772,10 +775,5 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope.confirmGoTo = go; $scope.confirmGoTo = go;
}] }]
}) })
}else{
MessageService.showAlert("请选择转出的任务单");
}
} }
}) })
\ No newline at end of file
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