Commit 06ac962a authored by liboyang's avatar liboyang

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

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