Commit c4af7197 authored by Administrator's avatar Administrator

push

parent 76fb0212
...@@ -300,7 +300,7 @@ angular.module('AvatarCheck', [ ...@@ -300,7 +300,7 @@ angular.module('AvatarCheck', [
$scope.addQuickCardAccu = function(){ $scope.addQuickCardAccu = function(){
if($(".accu:checked").length>0){ if($(".accu:checked").length>0){
if(angular.isUndefined($scope.searchResult.workOrderData[0].CARD_TYPE_ID)){ if(angular.isUndefined($scope.searchResult.workOrderData[0])){
MessageService.showAlert("无制证类型记录,请创建任务单后再添加快证") MessageService.showAlert("无制证类型记录,请创建任务单后再添加快证")
}else{ }else{
var idx = $(".accu:checked").val(); var idx = $(".accu:checked").val();
...@@ -351,8 +351,8 @@ angular.module('AvatarCheck', [ ...@@ -351,8 +351,8 @@ angular.module('AvatarCheck', [
} }
$scope.giveBackCardAccu = function () { $scope.giveBackCardAccu = function () {
if($(".accu:checked").length>0){ if($(".accu:checked").length>0){
if(angular.isUndefined($scope.searchResult.workOrderData[0].TASK_ID)) { if(angular.isUndefined($scope.searchResult.workOrderData[0])) {
MessageService.showAlert("无任务单记录,请创建任务单后再添加证") MessageService.showAlert("无任务单记录,请创建任务单后再添加退证")
}else{ }else{
var idx = $(".accu:checked").val(); var idx = $(".accu:checked").val();
var check = idx.split("+"); var check = idx.split("+");
......
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