Commit 2745bd2d authored by liboyang's avatar liboyang

标签打印

parent f6b9db28
...@@ -88,13 +88,18 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin ...@@ -88,13 +88,18 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
getPoliceListDataNotChecked(); getPoliceListDataNotChecked();
getDetailListById(data.id) getDetailListById(data.id)
}else if(data.state==2){ }else if(data.state==2){
$scope.json.isShow=true; if(data.checkName==$rootScope.loginData.name){
// getDetailListById(data.id) $scope.json.isShow=true;
for (var i=0;i<$scope.json.policeCardsList.length;i++){ for (var i=0;i<$scope.json.policeCardsList.length;i++){
if($scope.json.policeCardsList[i].CARD_ID==idcard&&$scope.json.policeCardsList[i].styleClass==''){ if($scope.json.policeCardsList[i].CARD_ID==idcard&&$scope.json.policeCardsList[i].styleClass==''){
$scope.json.policeCardsList[i].styleClass = "bg-danger" $scope.json.policeCardsList[i].styleClass = "bg-danger"
}
} }
}else{
$scope.json.isShow=false;
MessageService.showAlert($rootScope.loginData.name+"已生成"+data.policeName+"的交接单")
} }
}else{ }else{
MessageService.showAlert("无该证件的制证记录") MessageService.showAlert("无该证件的制证记录")
$scope.json.isShow=false; $scope.json.isShow=false;
......
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