Commit 06ac962a authored by liboyang's avatar liboyang

解决用身份证添加废证身份证号重复的问题

parent ec8e652f
...@@ -125,7 +125,7 @@ angular.module('AvatarCheck.addBackCard', ['ngRoute', 'AvatarCheck.http']) ...@@ -125,7 +125,7 @@ angular.module('AvatarCheck.addBackCard', ['ngRoute', 'AvatarCheck.http'])
HttpService.addBackCardDataBySjhy(list,function(data){ HttpService.addBackCardDataBySjhy(list,function(data){
$scope.can = false; $scope.can = false;
$scope.closeThisDialog(); $scope.closeThisDialog();
// MessageService.showAlert("添加成功"); MessageService.showAlert(data.msg);
reGetData(); reGetData();
cancel(); cancel();
console.log(data) console.log(data)
......
...@@ -138,11 +138,15 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -138,11 +138,15 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
$scope.can = true; $scope.can = true;
HttpService.addFailedCard(list,function(data){ HttpService.addFailedCard(list,function(data){
$scope.can = false;
$scope.closeThisDialog(); $scope.closeThisDialog();
reGet(); if(data){
cancelAdd(); $scope.can = false;
console.log(data) reGet();
cancelAdd();
console.log(data)
}else{
MessageService.showAlert("重复的身份证号,请用个人受理号添加");
}
}) })
} }
}] }]
......
...@@ -128,9 +128,13 @@ angular.module('AvatarCheck.historyBack', ['ngRoute', 'AvatarCheck.http']) ...@@ -128,9 +128,13 @@ angular.module('AvatarCheck.historyBack', ['ngRoute', 'AvatarCheck.http'])
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
HttpService.addHistoryCard(list,function(data){ HttpService.addHistoryCard(list,function(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
reGet(); if(data){
cancelAdd(); reGet();
console.log(data) cancelAdd();
console.log(data)
}else{
MessageService.showAlert("重复的身份证号,请用个人受理号添加");
}
}) })
} }
}] }]
......
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