Commit ba51da15 authored by dahai's avatar dahai

push

parent 67198dfb
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge;charset=gb2312"> <meta http-equiv="X-UA-Compatible" content="IE=edge;charset=gb2312">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面任何其他内容都*必须*跟随其后 --> <!-- 上述3个meta标签*必须*放在最前面任何其他内容都*必须*跟随其后 -->
<title>北京制证辅助平台</title> <title>北京市公安局证件制作管理中心</title>
<!--angularJs --> <!--angularJs -->
<script src="components/angularjs/angular.js"></script> <script src="components/angularjs/angular.js"></script>
<script src="components/angularjs/angular-local-storage.js"></script> <script src="components/angularjs/angular-local-storage.js"></script>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<OBJECT classid="clsid:18EE8930-6993-4ADA-B8BB-02BA5820AC94" id="aaa" width="0px" height="0px" style="float: left;" <OBJECT classid="clsid:18EE8930-6993-4ADA-B8BB-02BA5820AC94" id="aaa" width="0px" height="0px" style="float: left;"
CODEBASE="plugin/Termb.cab#version=1,0,0,1" VIEWASTEXT></OBJECT> CODEBASE="plugin/Termb.cab#version=1,0,0,1" VIEWASTEXT></OBJECT>
<body class="hold-transition skin-blue-light sidebar-mini"> <body class="hold-transition skin-blue-light sidebar-mini fixed">
<div ng-if="loginData.login == true" class="wrapper"> <div ng-if="loginData.login == true" class="wrapper">
<header class="main-header"> <header class="main-header">
<!-- Logo --> <!-- Logo -->
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
<!-- mini logo for sidebar mini 50x50 pixels --> <!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><span><img src="newTheme/dist/img/logo.jpg" style="width:25px;height:25px;"></span></span> <span class="logo-mini"><span><img src="newTheme/dist/img/logo.jpg" style="width:25px;height:25px;"></span></span>
<!-- logo for regular state and mobile devices --> <!-- logo for regular state and mobile devices -->
<span class="logo-lg"> <span class="logo-lg" style="font-size: 14px;">
北京制证辅助平台 北京市公安局证件制作管理中心
</span> </span>
</a> </a>
<!-- Header Navbar: style can be found in header.less --> <!-- Header Navbar: style can be found in header.less -->
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<div class="pull-right hidden-xs"> <div class="pull-right hidden-xs">
<b>Version:</b>1.0.1.110 <b>Version:</b>1.0.1.110
</div> </div>
<strong>北京制证辅助平台</strong> <strong>北京市公安局人口管理和基层工作总队</strong>
</footer> </footer>
</div> </div>
<div ng-if="loginData.login == false" class="wrapper" style="background-image:url(newTheme/dist/img/download.jpg);background-size:100% 100%;background-repeat:no-repeat;"> <div ng-if="loginData.login == false" class="wrapper" style="background-image:url(newTheme/dist/img/download.jpg);background-size:100% 100%;background-repeat:no-repeat;">
...@@ -196,5 +196,7 @@ ...@@ -196,5 +196,7 @@
<script src="views/filmManagement/filmManagement.js"></script> <script src="views/filmManagement/filmManagement.js"></script>
<script src="views/cardReport/cardReport.js"></script> <script src="views/cardReport/cardReport.js"></script>
<script src="views/filmReport/filmReport.js"></script> <script src="views/filmReport/filmReport.js"></script>
<script src="views/dataCheckReport/dataCheckReport.js"></script>
<script src="views/blank/blank.js"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -38,12 +38,14 @@ angular.module('AvatarCheck', [ ...@@ -38,12 +38,14 @@ angular.module('AvatarCheck', [
'AvatarCheck.insertCardBody', 'AvatarCheck.insertCardBody',
'AvatarCheck.filmManagement', 'AvatarCheck.filmManagement',
'AvatarCheck.filmReport', 'AvatarCheck.filmReport',
'AvatarCheck.cardReport' "AvatarCheck.dataCheckReport",
'AvatarCheck.cardReport',
'AvatarCheck.blank'
]).config(['$locationProvider', '$routeProvider', 'localStorageServiceProvider', '$qProvider',function ($locationProvider, $routeProvider, localStorageServiceProvider, $qProvider) { ]).config(['$locationProvider', '$routeProvider', 'localStorageServiceProvider', '$qProvider',function ($locationProvider, $routeProvider, localStorageServiceProvider, $qProvider) {
$locationProvider.hashPrefix('!'); $locationProvider.hashPrefix('!');
$routeProvider.otherwise({redirectTo: '/createTaskList'}); $routeProvider.otherwise({redirectTo: '/blank'});
localStorageServiceProvider.setPrefix('AvatarCheck'); localStorageServiceProvider.setPrefix('AvatarCheck');
$qProvider.errorOnUnhandledRejections(false) $qProvider.errorOnUnhandledRejections(false)
}]) }])
.controller('appCtrl', function ($scope, $location, $rootScope, HttpService, localStorageService, DebugService,MessageService) { .controller('appCtrl', function ($scope, $location, $rootScope, HttpService, localStorageService, DebugService,MessageService) {
...@@ -54,6 +56,7 @@ angular.module('AvatarCheck', [ ...@@ -54,6 +56,7 @@ angular.module('AvatarCheck', [
window.open("http://localhost:8081/#!searchCardMsg/zhangsan/10010001/2",'_blank'); window.open("http://localhost:8081/#!searchCardMsg/zhangsan/10010001/2",'_blank');
}; };
$rootScope.loginData = localStorageService.get('loginData') $rootScope.loginData = localStorageService.get('loginData')
...@@ -208,6 +211,9 @@ angular.module('AvatarCheck', [ ...@@ -208,6 +211,9 @@ angular.module('AvatarCheck', [
if($location.path()=="/filmReport"){ if($location.path()=="/filmReport"){
$rootScope.tab = '/filmReport'; $rootScope.tab = '/filmReport';
} }
if($location.path()=="/dataCheckReport"){
$rootScope.tab = '/dataCheckReport';
}
......
...@@ -627,6 +627,27 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -627,6 +627,27 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data) success(response.data)
}) })
}, },
queryDataCheckReport:function(startDate,endDate,policeCode,policeName,cardType,success){
if(angular.isUndefined(policeCode)){
policeCode = "";
}
if(angular.isUndefined(policeName)){
policeName = ""
}
$http({
method: 'GET',
url: "../ReportApi/queryDataAuditingReport"+urlTimeStamp(),
params:{
startDate:startDate,
endDate:endDate,
policeName:policeName,
policeCode:policeCode,
typeCode:cardType
}
}).then(function successCallback(response) {
success(response.data)
})
},
createTask:function(data,success){ createTask:function(data,success){
var body = JSON.stringify(data); var body = JSON.stringify(data);
console.log("data:",body) console.log("data:",body)
...@@ -932,6 +953,9 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -932,6 +953,9 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}) })
}, },
selectFailedInfo:function(date,name,success){ selectFailedInfo:function(date,name,success){
if($rootScope.loginData.roleList[0].process==2){
name = "";
}
$http({ $http({
method: 'GET', method: 'GET',
url: "../FailedCardApi/queryFailedCardInfo", url: "../FailedCardApi/queryFailedCardInfo",
...@@ -1073,6 +1097,12 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -1073,6 +1097,12 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}) })
}, },
queryWorkGroupReport:function (date1,date2,success) { queryWorkGroupReport:function (date1,date2,success) {
if(date1==""){
date1 = $filter("date")(new Date(), "yyyy-MM-dd");
}
if(date2==""){
date1 = $filter("date")(new Date(), "yyyy-MM-dd");
}
$http({ $http({
method: 'GET', method: 'GET',
url: "../ReportApi/queryWorkGroupReport" + urlTimeStamp(), url: "../ReportApi/queryWorkGroupReport" + urlTimeStamp(),
...@@ -1087,6 +1117,12 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -1087,6 +1117,12 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}, },
querySortingReport:function (date1,date2,name,success) { querySortingReport:function (date1,date2,name,success) {
if(date1==""){
date1 = $filter("date")(new Date(), "yyyy-MM-dd");
}
if(date2==""){
date1 = $filter("date")(new Date(), "yyyy-MM-dd");
}
$http({ $http({
method: 'GET', method: 'GET',
url: "../ReportApi/querySortingReport" + urlTimeStamp(), url: "../ReportApi/querySortingReport" + urlTimeStamp(),
...@@ -1100,6 +1136,12 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -1100,6 +1136,12 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}) })
}, },
queryQualityCheckReport:function (date1,date2,success) { queryQualityCheckReport:function (date1,date2,success) {
if(date1==""){
date1 = $filter("date")(new Date(), "yyyy-MM-dd");
}
if(date2==""){
date1 = $filter("date")(new Date(), "yyyy-MM-dd");
}
$http({ $http({
method: 'GET', method: 'GET',
url: "../ReportApi/queryQualityCheckReport" + urlTimeStamp(), url: "../ReportApi/queryQualityCheckReport" + urlTimeStamp(),
......
...@@ -32,72 +32,75 @@ ...@@ -32,72 +32,75 @@
<strong class="box-header with-border">导入妥投信息表</strong> <strong class="box-header with-border">导入妥投信息表</strong>
<div class="box box-primary"> <div class="box box-primary">
<table class="table table-bordered"> <table class="table table-bordered">
<!--<tr>-->
<!--<td>文件名称</td>-->
<!--<td><input type="text" ng-model="importName"/></td>-->
<!--</tr>-->
<tr> <tr>
<td>选择Excel文件:</td> <td width="15%">选择Excel文件:</td>
<td colspan="2"> <td width="40%">
<input type="file" <input type="file"
id="id_file_photo_for_check" id="id_file_photo_for_check"
class="file" class="file"
data-show-preview="false" data-show-preview="false"
data-allowed-file-extensions='["XLS","xls","XLSX","xlsx"]' data-allowed-file-extensions='["XLS","xls","XLSX","xlsx"]'
multiple/> multiple/>
</td> </td>
<td> <td>
<div style="float: left"> <div style="float: left">
<button class="btn btn-primary" ng-click="ReadDeliveredInfo()">导入</button> <button class="btn btn-primary" ng-click="ReadDeliveredInfo()">导入</button>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
<div class="box box-default"> <div class="box box-default">
<div class="box-header">
<div class="box-header with-border"><strong>查询导入妥投信息</strong> <strong>查询导入妥投信息</strong>
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="Date" id="datepicker" readonly/> </div>
<button class="btn btn-primary" ng-click="queryDeliveredByImportDate()">查询</button> <div class="box box-primary">
<!--(<span style="color:#0b93d5;">每页显示{{paginationConf.itemsPerPage}}条/共--> <table class="table table-bordered" style="margin-bottom: 0;">
<!--{{paginationConf.totalItems}}条</span>)</div>-->
<div ng-if="deliveredByImportDate.length==0">
<h4>暂无数据</h4>
</div>
<div class="box-info" style="padding: 7px;padding-top: 0px;">
<table class="table table-bordered table-hover postTable" ng-if="deliveredByImportDate.length>0">
<thead>
<tr> <tr>
<th>流水号</th> <td width="15%;">查询日期:</td>
<th>妥投文件名</th> <td width="30%">
<th>导入时间</th> <div class="input-group date">
<th>导入人姓名</th> <div class="input-group-addon">
<th>导入数量</th> <i class="fa fa-calendar"></i>
<th> </th> </div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/>
</tr> </div>
</thead> </td>
<tbody> <td style="text-align: left;">
<tr ng-repeat="item in deliveredByImportDate"> <button class="btn btn-primary" ng-click="queryDeliveredByImportDate()">查询</button>
<td>{{item.id}}</td> </td>
<td>{{item.fileName}}</td>
<td>{{item.importDate}}</td>
<td>{{item.importName}}</td>
<td>{{item.importCount}}</td>
<td><button class="btn btn-primary" ng-click="deleteDeliveredByFileId(item.id)">删除</button></td>
</tr> </tr>
</tbody>
</table> </table>
<!--<div ng-if="packageLogData.length==0" class="box-body">--> <div class="box-body">
<!--<h4>暂无数据</h4>--> <div ng-if="deliveredByImportDate.length==0">
<!--</div>--> <h4>暂无数据</h4>
<!--<div style="padding-left: 27%;" ng-if="packageLogData.length>0">--> </div>
<!--<tm-pagination conf="paginationConf" class="ul"></tm-pagination>--> <table class="table table-bordered table-hover postTable" ng-if="deliveredByImportDate.length>0">
<!--</div>--> <thead>
<tr>
<th>流水号</th>
<th>妥投文件名</th>
<th>导入时间</th>
<th>导入人姓名</th>
<th>导入数量</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in deliveredByImportDate">
<td>{{item.id}}</td>
<td>{{item.fileName}}</td>
<td>{{item.importDate}}</td>
<td>{{item.importName}}</td>
<td>{{item.importCount}}</td>
<td><button class="btn btn-primary" ng-click="deleteDeliveredByFileId(item.id)">删除</button></td>
</tr>
</tbody>
</table>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> \ No newline at end of file
\ No newline at end of file
...@@ -9,6 +9,15 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http']) ...@@ -9,6 +9,15 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http'])
}]) }])
.controller('readDeliveredInfoContr', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) { .controller('readDeliveredInfoContr', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
$("#id_file_photo_for_check").fileinput({
language: 'zh',
showUpload: false,
showCaption: true,
maxFileCount: 1024,
showPreview: true,
maxFileSize: 1024 * 30
});
$scope.ReadDeliveredInfo = function () { $scope.ReadDeliveredInfo = function () {
var importName = $rootScope.loginData.name; var importName = $rootScope.loginData.name;
var fd = new FormData(); var fd = new FormData();
...@@ -19,7 +28,7 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http']) ...@@ -19,7 +28,7 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http'])
for(var i in files){ for(var i in files){
fd.append('file', files[i]); fd.append('file', files[i]);
} }
// var getData = $scope.getPostPackage; var getData = $scope.queryDeliveredByImportDate;
ngDialog.openConfirm({ ngDialog.openConfirm({
template: 'dialogs/alert.html' + urlTimeStamp(), template: 'dialogs/alert.html' + urlTimeStamp(),
width: 600, width: 600,
...@@ -27,13 +36,13 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http']) ...@@ -27,13 +36,13 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http'])
closeByDocument:false, closeByDocument:false,
controller: ['$scope', function ($scope) { controller: ['$scope', function ($scope) {
$scope.wrongMsg =-1; $scope.wrongMsg =-1;
$scope.msgText = "上传中,请稍等..." $scope.msgText = "上传中,请稍等...";
console.log(fd,importName) console.log(fd,importName);
HttpService.ReadDeliveredInfo(fd,importName,function (data) { HttpService.ReadDeliveredInfo(fd,importName,function (data) {
console.log(data) console.log(data)
if(data){ if(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
// getData(); getData();
MessageService.showAlert("上传成功") MessageService.showAlert("上传成功")
}else{ }else{
$scope.wrongMsg = '上传失败'; $scope.wrongMsg = '上传失败';
...@@ -53,25 +62,23 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http']) ...@@ -53,25 +62,23 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http'])
autoclose: 1 autoclose: 1
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
$scope.queryDeliveredByImportDate=function () { $scope.queryDeliveredByImportDate=function () {
var date = $("#datepicker").val(); var date = $("#datepicker").val();
if(date ==''){
date = $scope.choseDate;
}
console.log(date) console.log(date)
HttpService.queryDeliveredByImportDate(date,function(data){ HttpService.queryDeliveredByImportDate(date,function(data){
$scope.deliveredByImportDate = data; $scope.deliveredByImportDate = data;
console.log($scope.deliveredByImportDate) console.log($scope.deliveredByImportDate)
}) })
} };
$scope.queryDeliveredByImportDate();
$scope.deleteDeliveredByFileId=function (fileid) {
$scope.deleteDeliveredByFileId=function (fileid) {
console.log(fileid); console.log(fileid);
HttpService.deleteDeliveredByFileId(fileid,function(data){ HttpService.deleteDeliveredByFileId(fileid,function(data){
if(data==true){ if(data==true){
MessageService.showAlert("删除成功") MessageService.showAlert("删除成功")
}else{ }else{
...@@ -81,7 +88,6 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http']) ...@@ -81,7 +88,6 @@ angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http'])
$scope.deliveredByImportDate = data; $scope.deliveredByImportDate = data;
console.log($scope.deliveredByImportDate) console.log($scope.deliveredByImportDate)
}) })
}) })
} }
}) })
\ No newline at end of file
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</style> </style>
<div class="content row"> <div class="content row">
<div class="col-md-12" style="margin-top:20px;"> <div class="col-md-12" style="margin-top:20px;">
<div class="box"> <div class="box" ng-if="loginData.roleList[0].process==3">
<strong class="box-header">废证添加</strong> <strong class="box-header">废证添加</strong>
<div class="box box-primary"> <div class="box box-primary">
<table class="table table-bordered" style="margin-bottom:10px;"> <table class="table table-bordered" style="margin-bottom:10px;">
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<input style="" type="number" ng-model="failedCount"></td> <input style="" type="number" ng-model="failedCount"></td>
<td> <td>
<div style="text-align: left;"> <div style="text-align: left;">
<input type="submit" ng-click="createInputs()" class="btn btn-primary" value="确定"> <input type="submit" ng-click="createInputs(failedCount)" class="btn btn-primary" value="确定">
</div> </div>
</td> </td>
</tr> </tr>
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<th>提交人</th> <th>提交人</th>
<th>状态</th> <th>状态</th>
<th>备注</th> <th>备注</th>
<th>操作</th> <th ng-if="loginData.roleList[0].process==2">操作</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -133,14 +133,13 @@ ...@@ -133,14 +133,13 @@
<td>{{item.NAME}}</td> <td>{{item.NAME}}</td>
<td>{{item.STATE}}</td> <td>{{item.STATE}}</td>
<td>{{item.NOTE}}</td> <td>{{item.NOTE}}</td>
<td><a ng-click="deleteFailed(item.FAILED_CARD_ID,item.ID_NO)">删除</a></td> <td ng-if="loginData.roleList[0].process==2"><a ng-click="deleteFailed(item.FAILED_CARD_ID,item.ID_NO)">删除</a></td>
</tr> </tr>
</tbody> </tbody>
<tbody ng-if="failedInfo.length==0">
<h4 style="padding-left: 10px;">暂无数据</h4>
</tbody>
</table> </table>
<div ng-if="failedInfo.length==0">
<h4 style="padding-left: 10px;">暂无数据</h4>
</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -26,7 +26,6 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -26,7 +26,6 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
$scope.aselectFailedInfo = function () { $scope.aselectFailedInfo = function () {
var date = $('#datepicker').val(); var date = $('#datepicker').val();
if(date==""){ if(date==""){
console.log("???????")
date=$scope.choseDate date=$scope.choseDate
} }
HttpService.selectFailedInfo(date,$rootScope.loginData.name,function(data){ HttpService.selectFailedInfo(date,$rootScope.loginData.name,function(data){
...@@ -42,9 +41,9 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -42,9 +41,9 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
console.log(data) console.log(data)
}) })
$scope.createInputs = function(){ $scope.createInputs = function(failedCount){
if($scope.failedCount>0){ if(failedCount>0){
var count = $scope.failedCount; var count = failedCount;
if(count>10){ if(count>10){
count=10; count=10;
} }
......
...@@ -70,8 +70,8 @@ ...@@ -70,8 +70,8 @@
<tr ng-repeat="item in restInfo"> <tr ng-repeat="item in restInfo">
<td>{{$index+1}}</td> <td>{{$index+1}}</td>
<th>{{item.ACCEPT_NO}}</th> <th>{{item.ACCEPT_NO}}</th>
<td>{{item.CARD_NAME}}</td>
<td>{{item.ID_NO}}</td> <td>{{item.ID_NO}}</td>
<td>{{item.NAME}}</td>
<td>{{item.FILL_IN_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td> <td>{{item.FILL_IN_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td>
<td ng-if="item.WORK_GROUP == 1">A组</td> <td ng-if="item.WORK_GROUP == 1">A组</td>
<td ng-if="item.WORK_GROUP == 2">B组</td> <td ng-if="item.WORK_GROUP == 2">B组</td>
...@@ -80,11 +80,11 @@ ...@@ -80,11 +80,11 @@
<td>{{item.NOTE}}</td> <td>{{item.NOTE}}</td>
</tr> </tr>
</tbody> </tbody>
<tbody ng-if="restInfo.length==0">
<h4 style="padding-left: 10px;">暂无数据</h4>
</tbody>
</table>
</table>
<div ng-if="restInfo.length==0">
<h4 style="padding-left: 10px;">暂无数据</h4>
</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<select class="form-control select2" id="cardBodyType1"> <select class="form-control select2" id="cardBodyType1">
<option value="0">全部</option> <option value="0">全部</option>
<option value="1">身份证卡体</option> <option value="1">身份证卡体</option>
<option value="2">香港居住证卡体</option> <option value="2">台湾居住证卡体</option>
<option value="3">港澳居住证卡体</option> <option value="3">港澳居住证卡体</option>
</select> </select>
</td> </td>
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<select class="form-control select2" id="cardBodyType1"> <select class="form-control select2" id="cardBodyType1">
<option value="0">全部</option> <option value="0">全部</option>
<option value="1">身份证卡体</option> <option value="1">身份证卡体</option>
<option value="2">香港居住证卡体</option> <option value="2">台湾居住证卡体</option>
<option value="3">港澳居住证卡体</option> <option value="3">港澳居住证卡体</option>
</select> </select>
</td> </td>
......
...@@ -3,59 +3,56 @@ ...@@ -3,59 +3,56 @@
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12">
<div class="box box-primary" > <div class="box" >
<div class="box-header"> <div class="box-header">
<!--<strong ng-if="state==2">膜打印数据报表</strong>-->
<strong >妥投信息报表</strong> <strong >妥投信息报表</strong>
<div class="box-tools pull-right"> <div class="box-tools pull-right">
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="startDate" id="datepicker1" readonly/> <span></span> <span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker1" readonly/> <span></span>
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="endDate" id="datepicker2" readonly/> <input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker2" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryDeliveredReport()">查询</button> <button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryDeliveredReport()">查询</button>
</div> </div>
<!-- /.box-tools --> <!-- /.box-tools -->
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box box-primary">
<div ng-if="deliveredReportList.length==0"> <div class="box-body">
<h4>暂无数据</h4> <div ng-if="deliveredReportList.length==0">
</div> <h4>暂无数据</h4>
</div>
<div ng-if="deliveredReportList.length>0"> <div ng-if="deliveredReportList.length>0">
<div class="table-responsive mailbox-messages" > <div class="table-responsive mailbox-messages" >
<div class="mailbox-messages"> <div class="mailbox-messages">
<table class="table table-hover postTable"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<!--<th ng-if="state==2">打印日期</th>--> <th>邮寄数量</th>
<!--<th ng-if="state==3">预定位日期</th>--> <th>妥投数量</th>
<!--<th>邮寄证</th>--> <th>妥投失败数量</th>
<th>邮寄数量</th> <th>未妥投数量</th>
<th>妥投数量</th> <th>打印时间</th>
<th>妥投失败数量</th> </tr>
<th>未妥投数量</th> </thead>
<th>打印时间</th> <tbody ng-repeat="item in deliveredReportList">
</tr> <tr>
</thead> <td>{{item.POST_COUNT}}</td>
<tbody ng-repeat="item in deliveredReportList"> <td>{{item.DELIVERED_COUNT}}</td>
<tr style="background-color: #eee"> <td>{{item.DELIVERED_FAILED_COUNT}}</td>
<td>{{item.POST_COUNT}}</td> <td>{{item.POST_COUNT-item.DELIVERED_COUNT-item.DELIVERED_FAILED_COUNT}}</td>
<!--<td style="color: #3c8dbc">{{item.pu}}</td>--> <td>{{item.PRINT_DATE}}</td>
<td>{{item.DELIVERED_COUNT}}</td> </tr>
<td>{{item.DELIVERED_FAILED_COUNT}}</td> </tbody>
<td>{{item.POST_COUNT-item.DELIVERED_COUNT-item.DELIVERED_FAILED_COUNT}}</td> </table>
<td>{{item.PRINT_DATE}}</td>
</tr>
</tbody>
</table>
<!-- /.table --> <!-- /.table -->
</div> </div>
<!-- /.table --> <!-- /.table -->
</div> </div>
</div> </div>
<!-- /.mail-box-messages --> <!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div> </div>
<!-- /.box-body -->
</div> </div>
</div> </div>
......
...@@ -17,10 +17,6 @@ angular.module("AvatarCheck.queryDeliveredReport",['ngRoute', 'AvatarCheck.http' ...@@ -17,10 +17,6 @@ angular.module("AvatarCheck.queryDeliveredReport",['ngRoute', 'AvatarCheck.http'
autoclose: 1 autoclose: 1
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
//Date picker //Date picker
$('#datepicker2').datetimepicker({ $('#datepicker2').datetimepicker({
...@@ -31,17 +27,14 @@ angular.module("AvatarCheck.queryDeliveredReport",['ngRoute', 'AvatarCheck.http' ...@@ -31,17 +27,14 @@ angular.module("AvatarCheck.queryDeliveredReport",['ngRoute', 'AvatarCheck.http'
autoclose: 1 autoclose: 1
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码 $scope.queryDeliveredReport=function () {
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
$scope.queryDeliveredReport=function () {
var date1 = $("#datepicker1").val(); var date1 = $("#datepicker1").val();
var date2 = $("#datepicker2").val(); var date2 = $("#datepicker2").val();
HttpService.queryDeliveredReport(date1,date2,function (data) { HttpService.queryDeliveredReport(date1,date2,function (data) {
$scope.deliveredReportList = data; $scope.deliveredReportList = data;
console.log($scope.deliveredReportList); console.log($scope.deliveredReportList);
}) })
};
} $scope.queryDeliveredReport();
}) })
\ No newline at end of file
...@@ -3,38 +3,32 @@ ...@@ -3,38 +3,32 @@
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12">
<div class="box box-primary" > <div class="box" >
<div class="box-header"> <div class="box-header">
<!--<strong ng-if="state==2">膜打印数据报表</strong>--> <strong >报表</strong>
<strong >质检报表</strong>
<div class="box-tools pull-right"> <div class="box-tools pull-right">
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker1" readonly/> <span></span>
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="startDate" id="datepicker1" readonly/> <span></span> <input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker2" readonly/>
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="endDate" id="datepicker2" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryQualityCheckReport()">查询</button> <button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryQualityCheckReport()">查询</button>
</div> </div>
<!-- /.box-tools --> <!-- /.box-tools -->
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box box-primary">
<div ng-if="qualityCheckReportList.length==0"> <div class="box-body">
<h4>暂无数据</h4> <div ng-if="qualityCheckReportList.length==0">
</div> <h4>暂无数据</h4>
</div>
<div ng-if="qualityCheckReportList.length>0">
<div class="table-responsive mailbox-messages" > <div ng-if="qualityCheckReportList.length>0">
<div class="mailbox-messages"> <div class="table-responsive mailbox-messages" >
<table class="table table-hover postTable"> <div class="mailbox-messages">
<table class="table table-hover">
<thead> <thead>
<tr> <tr>
<!--<th ng-if="state==2">打印日期</th>-->
<!--<th ng-if="state==3">预定位日期</th>-->
<th>分局代码</th> <th>分局代码</th>
<th>数量</th> <th>数量</th>
<th>公安机关名称</th> <th>公安机关名称</th>
<!--<th>普通证</th>-->
<!--<th>废证</th>-->
</tr> </tr>
</thead> </thead>
<tbody ng-repeat="item in qualityCheckReportList"> <tbody ng-repeat="item in qualityCheckReportList">
...@@ -42,21 +36,16 @@ ...@@ -42,21 +36,16 @@
<td>{{item.DATA_AUDITING.POLICE_SUBSTATION}}</td> <td>{{item.DATA_AUDITING.POLICE_SUBSTATION}}</td>
<td>{{item.sum(count)}}</td> <td>{{item.sum(count)}}</td>
<td>{{item.GAJG_DM.GAJG_MC}}</td> <td>{{item.GAJG_DM.GAJG_MC}}</td>
<!--<td style="color: #3c8dbc">{{item.pu}}</td>-->
<!--<td>{{item.POLICE_CODE}}</td>-->
<!--<td>{{item.SUM(RECEIPT_LIST:FINISH_COUNT)}}</td>-->
<!--<td>{{item.kuai}}</td>-->
<!--<td>{{item.pu}}</td>-->
<!--<td>{{item.fei}}</td>-->
</tr> </tr>
</tbody> </tbody>
</table> </table>
<!-- /.table --> <!-- /.table -->
</div> </div>
<!-- /.table --> <!-- /.table -->
</div>
</div> </div>
</div>
<!-- /.mail-box-messages --> <!-- /.mail-box-messages -->
</div>
</div> </div>
<!-- /.box-body --> <!-- /.box-body -->
</div> </div>
......
...@@ -39,13 +39,11 @@ angular.module("AvatarCheck.queryQualityCheckReport",['ngRoute', 'AvatarCheck.ht ...@@ -39,13 +39,11 @@ angular.module("AvatarCheck.queryQualityCheckReport",['ngRoute', 'AvatarCheck.ht
$scope.queryQualityCheckReport=function () { $scope.queryQualityCheckReport=function () {
var date1 = $("#datepicker1").val(); var date1 = $("#datepicker1").val();
var date2 = $("#datepicker2").val(); var date2 = $("#datepicker2").val();
HttpService.queryQualityCheckReport(date1,date2,function (data) { HttpService.queryQualityCheckReport(date1,date2,function (data) {
$scope.qualityCheckReportList = data; $scope.qualityCheckReportList = data;
console.log($scope.qualityCheckReportList); console.log($scope.qualityCheckReportList);
}) })
} }
$scope.queryQualityCheckReport();
}) })
\ No newline at end of file
...@@ -3,58 +3,47 @@ ...@@ -3,58 +3,47 @@
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12">
<div class="box box-primary" > <div class="box" >
<div class="box-header"> <div class="box-header">
<!--<strong ng-if="state==2">膜打印数据报表</strong>-->
<strong >分拣报表</strong> <strong >分拣报表</strong>
<div class="box-tools pull-right"> <div class="box-tools pull-right">
分拣人员姓名:<input type="text" ng-model="name"/> <span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker1" readonly/> <span></span>
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="startDate" id="datepicker1" readonly/> <span></span> <input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker2" readonly/>
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="endDate" id="datepicker2" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="querySortingReport()">查询</button> <button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="querySortingReport()">查询</button>
</div> </div>
<!-- /.box-tools --> <!-- /.box-tools -->
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box box-primary">
<div ng-if="sortingReportList.length==0"> <div class="box-body">
<h4>暂无数据</h4> <div ng-if="sortingReportList.length==0">
</div> <h4>暂无数据</h4>
</div>
<div ng-if="sortingReportList.length>0"> <div ng-if="sortingReportList.length>0">
<div class="table-responsive mailbox-messages" >
<div class="mailbox-messages">
<table class="table table-hover">
<thead>
<tr>
<th>公安机关名称</th>
<th>公安机关代码</th>
<th>数量</th>
</tr>
</thead>
<tbody ng-repeat="item in sortingReportList">
<tr>
<td>{{item.GAJG_MC}}</td>
<td>{{item.POLICE_CODE}}</td>
<td>{{item.FINISH_COUNT}}</td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<div class="table-responsive mailbox-messages" > <!-- /.table -->
<div class="mailbox-messages"> </div>
<table class="table table-hover postTable">
<thead>
<tr>
<!--<th ng-if="state==2">打印日期</th>-->
<!--<th ng-if="state==3">预定位日期</th>-->
<th>公安机关名称</th>
<th>公安机关代码</th>
<th>数量</th>
<!--<th>普通证</th>-->
<!--<th>废证</th>-->
</tr>
</thead>
<tbody ng-repeat="item in sortingReportList">
<tr style="background-color: #eee">
<td>{{item.GAJG_MC}}</td>
<td>{{item.POLICE_CODE}}</td>
<td>{{item.FINISH_COUNT}}</td>
<!--<td style="color: #3c8dbc">{{item.pu}}</td>-->
<!--<td>{{item.POLICE_CODE}}</td>-->
<!--<td>{{item.SUM(RECEIPT_LIST:FINISH_COUNT)}}</td>-->
<!--<td>{{item.kuai}}</td>-->
<!--<td>{{item.pu}}</td>-->
<!--<td>{{item.fei}}</td>-->
</tr>
</tbody>
</table>
<!-- /.table -->
</div> </div>
<!-- /.table -->
</div>
</div> </div>
<!-- /.mail-box-messages --> <!-- /.mail-box-messages -->
</div> </div>
......
...@@ -17,10 +17,6 @@ angular.module("AvatarCheck.querySortingReport",['ngRoute', 'AvatarCheck.http']) ...@@ -17,10 +17,6 @@ angular.module("AvatarCheck.querySortingReport",['ngRoute', 'AvatarCheck.http'])
autoclose: 1 autoclose: 1
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
//Date picker //Date picker
$('#datepicker2').datetimepicker({ $('#datepicker2').datetimepicker({
...@@ -31,20 +27,16 @@ angular.module("AvatarCheck.querySortingReport",['ngRoute', 'AvatarCheck.http']) ...@@ -31,20 +27,16 @@ angular.module("AvatarCheck.querySortingReport",['ngRoute', 'AvatarCheck.http'])
autoclose: 1 autoclose: 1
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
$scope.querySortingReport=function () { $scope.querySortingReport=function () {
var date1 = $("#datepicker1").val(); var date1 = $("#datepicker1").val();
var date2 = $("#datepicker2").val(); var date2 = $("#datepicker2").val();
var name = $scope.name; var name = $rootScope.loginData.name;
HttpService.querySortingReport(date1,date2,name,function (data) { HttpService.querySortingReport(date1,date2,name,function (data) {
$scope.sortingReportList = data; $scope.sortingReportList = data;
console.log($scope.sortingReportList); console.log($scope.sortingReportList);
}) })
} }
$scope.querySortingReport();
}) })
\ No newline at end of file
<!--<title>Title</title>-->
<!--<div class="input-group date">-->
<!--<div class="input-group-addon">-->
<!--<i class="fa fa-calendar">开始日期</i>-->
<!--</div>-->
<!--<input type="text" class="form-control pull-right" value="{{startDate}}" id="datepicker1" readonly/>-->
<!--<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>-->
<!--<div class="input-group-addon">-->
<!--<i class="fa fa-calendar">结束日期</i>-->
<!--</div>-->
<!--<input type="text" class="form-control pull-right" value="{{endDate}}" id="datepicker2" readonly/>-->
<!--<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>-->
<!--</div>-->
<!--<button class="btn btn-primary" style="margin-right: 7px;" ng-click="queryWorkGroupReport()">查询工作组报表</button>-->
<div class="content row"> <div class="content row">
<div class="col-md-12" style="margin-top:20px;"> <div class="col-md-12" style="margin-top:20px;">
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12">
<div class="box box-primary" > <div class="box" >
<div class="box-header"> <div class="box-header">
<!--<strong ng-if="state==2">膜打印数据报表</strong>-->
<strong >工作组报表</strong> <strong >工作组报表</strong>
<div class="box-tools pull-right"> <div class="box-tools pull-right">
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="startDate" id="datepicker1" readonly/> <span></span> <span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker1" readonly/> <span></span>
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="endDate" id="datepicker2" readonly/> <input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker2" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryWorkGroupReport()">查询</button> <button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryWorkGroupReport()">查询</button>
</div> </div>
<!-- /.box-tools --> <!-- /.box-tools -->
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box box-primary">
<div ng-if="groupReportList.length==1"> <div class="box-body">
<h4>暂无数据</h4> <div ng-if="groupReportList.length==1">
</div> <h4>暂无数据</h4>
</div>
<div ng-if="groupReportList.length>1"> <div ng-if="groupReportList.length>1">
<div class="table-responsive mailbox-messages" >
<div class="mailbox-messages"> <div class="mailbox-messages">
<table class="table table-hover postTable"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th ng-if="state==2">打印日期</th> <th>日期</th>
<!--<th ng-if="state==3">预定位日期</th>-->
<th>邮寄证</th> <th>邮寄证</th>
<th>军人证</th> <th>军人证</th>
<th>快证</th> <th>快证</th>
...@@ -58,10 +32,9 @@ ...@@ -58,10 +32,9 @@
<th>废证</th> <th>废证</th>
</tr> </tr>
</thead> </thead>
<tbody ng-repeat="item in groupReportList"> <tbody ng-repeat="item in groupReportList | orderBy:date" ng-class="{true: 'bg-info', false: ''}[item.date=='合计']">
<tr style="background-color: #eee"> <tr>
<td>{{item.date}}</td> <td>{{item.date}}</td>
<!--<td style="color: #3c8dbc">{{item.pu}}</td>-->
<td>{{item.you}}</td> <td>{{item.you}}</td>
<td>{{item.jun}}</td> <td>{{item.jun}}</td>
<td>{{item.kuai}}</td> <td>{{item.kuai}}</td>
...@@ -74,16 +47,15 @@ ...@@ -74,16 +47,15 @@
</div> </div>
<!-- /.table --> <!-- /.table -->
</div> </div>
</div>
<!-- /.mail-box-messages --> <!-- /.mail-box-messages -->
</div> </div>
<!-- /.box-body --> <!-- /.box-body -->
</div> </div>
</div> </div>
<!-- /.col --> <!-- /.col -->
</div> </div>
<!-- /.row --> <!-- /.row -->
</div> </div>
</div> </div>
</div>
...@@ -9,6 +9,8 @@ angular.module("AvatarCheck.queryWorkGroupReport",['ngRoute', 'AvatarCheck.http' ...@@ -9,6 +9,8 @@ angular.module("AvatarCheck.queryWorkGroupReport",['ngRoute', 'AvatarCheck.http'
}]) }])
.controller('queryWorkGroupReportContro', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) { .controller('queryWorkGroupReportContro', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
$scope.date = 'date';
//Date picker //Date picker
$('#datepicker1').datetimepicker({ $('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒 minView: "month", //选择日期后,不会再跳转去选择时分秒
...@@ -44,6 +46,6 @@ angular.module("AvatarCheck.queryWorkGroupReport",['ngRoute', 'AvatarCheck.http' ...@@ -44,6 +46,6 @@ angular.module("AvatarCheck.queryWorkGroupReport",['ngRoute', 'AvatarCheck.http'
$scope.groupReportList = data; $scope.groupReportList = data;
console.log($scope.groupReportList); console.log($scope.groupReportList);
}) })
} }
$scope.queryWorkGroupReport();
}) })
...@@ -29,32 +29,20 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -29,32 +29,20 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd HH:mm:ss"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd HH:mm:ss");
// $scope.downloadGAinfo = function(){
// var date = $("#datepicker").val(); $scope.downloadGAinfo = function(){
// var url = "../exportExcel/printExcelData?date="+date; var typeCode = $scope.receitpData[$scope.currentTab].typeCode;
// var a = document.createElement("a");
// document.body.appendChild(a);
// a.href = encodeURI(url);
// console.log(a.href)
// a.click();
// };
$scope.downloadGAinfo = function(typeCode){
var json={ var json={
type:typeCode, type:typeCode,
list:[] list:[]
} }
var checks = $(".checkAllPolice:checked"); var checks = $(".checkPoliceBox:checked");
for (var i=0;i<checks.length;i++){ for (var i=0;i<checks.length;i++){
for(var j=0;j<JSON.parse(checks[i].value).length;j++){ json.list.push(checks[i].value)
json.list.push(JSON.parse(checks[i].value)[j].ID)
}
} }
if(json.list.length==0){ if(json.list.length==0){
MessageService.showAlert("请选择要打印的分局") MessageService.showAlert("请选择要下载的分局或派出所")
}else{ }else{
console.log(json)
HttpService.printExcelData(json,function (data) { HttpService.printExcelData(json,function (data) {
var blob = new Blob([data], {type: "application/vnd.ms-excel"}); var blob = new Blob([data], {type: "application/vnd.ms-excel"});
var a = document.createElement("a"); var a = document.createElement("a");
...@@ -66,9 +54,19 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -66,9 +54,19 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
} }
}; };
$scope.taskId=-1;
$scope.showPoliceList = function(index) {
if($scope.taskId==-1){
$scope.taskId=index;
}else{
$scope.taskId=-1
}
};
$scope.currentTab = 0; $scope.currentTab = 0;
$scope.func = function (index) { $scope.func = function (index) {
$scope.taskId=-1;
for (var idx in $scope.receitpData) { for (var idx in $scope.receitpData) {
if (index == idx) { if (index == idx) {
$scope.receitpData[idx].isActive = true; $scope.receitpData[idx].isActive = true;
...@@ -135,45 +133,60 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -135,45 +133,60 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
} }
$scope.checkAll = function ($event){ $scope.checkAllPolice = function ($event,typeCode,countyCode) {
var checkAll = $event.target; console.log(countyCode)
var checkbox =$("input[type=checkbox]"); var checkAllPolice = $event.target;
for (var i=0;i<checkbox.length;i++){ var checkbox =document.getElementsByName("checkPolice"+typeCode+countyCode);
if(checkAll.checked) { console.log(checkbox.length);
for(var i=0;i<checkbox.length;i++){
if(checkAllPolice.checked) {
checkbox[i].checked = true; checkbox[i].checked = true;
}else { }else {
checkbox[i].checked = false; checkbox[i].checked = false;
} }
} }
} };
var iRadioValue=1; var iRadioValue=1;
$scope.printReceitp = function(typeCode) { $scope.printReceitp = function() {
var typeCode = $scope.receitpData[$scope.currentTab].typeCode;
console.log(typeCode)
var json={ var json={
type:typeCode, type:typeCode,
list:[] list:[]
} };
var checks = $(".checkAllPolice:checked"); var checks = $(".checkPoliceBox:checked");
for (var i=0;i<checks.length;i++){ for (var i=0;i<checks.length;i++){
for(var j=0;j<JSON.parse(checks[i].value).length;j++){ json.list.push(checks[i].value)
json.list.push(JSON.parse(checks[i].value)[j].ID)
}
} }
if(json.list.length==0){ if(json.list.length==0){
MessageService.showAlert("请选择要打印的分局") MessageService.showAlert("请选择要打印的分局或派出所")
}else{ }else{
console.log(json) console.log(json)
HttpService.printReceitpData(json,function (data) { HttpService.printReceitpData(json,function (data) {
$scope.receitpDataToPrint = data; $scope.receitpDataToPrint = data;
for (var i=0;i<$scope.receitpDataToPrint.list.length;i++){ for(var i=0;i<$scope.receitpDataToPrint.list[0].countyList.length;i++){
$scope.receitpDataToPrint.list[i].id = i+1 for (var j=0;j<$scope.receitpDataToPrint.list[0].countyList[i].policeList.length;j++){
$scope.receitpDataToPrint.list[0].countyList[i].policeList[j].id=j+1;
}
} }
$scope.result = []; $scope.result = [];
for(var i=0;i<$scope.receitpDataToPrint.list.length;i+=37){ for(var i=0;i<$scope.receitpDataToPrint.list[0].countyList.length;i++){
$scope.result.push($scope.receitpDataToPrint.list.slice(i,i+37)); for (var j=0;j<$scope.receitpDataToPrint.list[0].countyList[i].policeList.length;j+=37){
var json = {};
if(($scope.receitpDataToPrint.list[0].countyList[i].policeList.length-j)>37){
json.value = 1
}else{
json.value = 0;
}
json.county = $scope.receitpDataToPrint.list[0].countyList[i].countyName;
json.total = $scope.receitpDataToPrint.list[0].countyList[i].countyValidCount;
json.policeList = $scope.receitpDataToPrint.list[0].countyList[i].policeList.slice(j,j+37);
$scope.result.push(json);
}
} }
console.log($scope.result) console.log("result",$scope.result);
$timeout(function () { $timeout(function () {
for (var i=0;i<$scope.result.length;i++){ for (var i=0;i<$scope.result.length;i++){
var LODOP = getLodop(); var LODOP = getLodop();
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<td>备注:</td> <td>备注:</td>
<td><input type="text" class="form-control" ng-model="note" placeholder="备注"></td> <td><input type="text" class="form-control" ng-model="note" placeholder="备注"></td>
<td><div style="text-align: right;"> <td><div style="text-align: left;">
<button class="btn btn-primary" ng-click="saveDeliveredFailedInfo()">提交</button> <button class="btn btn-primary" ng-click="saveDeliveredFailedInfo()">提交</button>
</div></td> </div></td>
</tr> </tr>
...@@ -60,50 +60,57 @@ ...@@ -60,50 +60,57 @@
</table> </table>
</div> </div>
</div> </div>
<div class="box box-default"> <div class="box">
<div class="box-header">
<div class="box-header with-border"><strong>查询登记妥投失败信息</strong> <strong>查询登记妥投失败信息</strong>
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="Date" id="datepicker" readonly/> </div>
<button class="btn btn-primary" ng-click="queryDeliveredFailedByRegisterDate()">查询</button> <div class="box box-primary">
<!--(<span style="color:#0b93d5;">每页显示{{paginationConf.itemsPerPage}}条/共--> <table class="table table-bordered" style="margin-bottom: 0;">
<!--{{paginationConf.totalItems}}条</span>)</div>--> <tr>
<div ng-if="deliveredFailedByRegisterDate.length==0"> <td width="15%;">查询日期:</td>
<h4>暂无数据</h4> <td width="30%">
</div> <div class="input-group date">
<div class="box-info" style="padding: 7px;padding-top: 0px;"> <div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/>
</div>
</td>
<td style="text-align: left;">
<button class="btn btn-primary" ng-click="queryDeliveredFailedByRegisterDate()">查询</button>
</td>
</tr>
</table>
<div class="box-body">
<div ng-if="deliveredFailedByRegisterDate.length==0">
<h4>暂无数据</h4>
</div>
<table class="table table-bordered table-hover postTable" ng-if="deliveredFailedByRegisterDate.length>0"> <table class="table table-bordered table-hover postTable" ng-if="deliveredFailedByRegisterDate.length>0">
<thead> <thead>
<tr> <tr>
<th>流水号</th> <th>流水号</th>
<th>登记人姓名</th> <th>登记人姓名</th>
<th>运单号</th> <th>运单号</th>
<th>备注</th> <th>备注</th>
<th>退回原因</th> <th>退回原因</th>
<th>身份证号码</th> <th>身份证号码</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<!--REGISTER_NAME: "qwdqw", WAYBILL_NUMBER: "4", NOTE: "3", BACK_REASON: 1, CARD_ID: "adqwd",--> <tr ng-repeat="item in deliveredFailedByRegisterDate">
<tr ng-repeat="item in deliveredFailedByRegisterDate"> <td>{{item.ID}}</td>
<td>{{item.ID}}</td> <td>{{item.REGISTER_NAME}}</td>
<td>{{item.REGISTER_NAME}}</td> <td>{{item.WAYBILL_NUMBER}}</td>
<td>{{item.WAYBILL_NUMBER}}</td> <td>{{item.NOTE}}</td>
<td>{{item.NOTE}}</td> <td>{{item.REASON}}</td>
<td>{{item.REASON}}</td> <td>{{item.CARD_ID}}</td>
<td>{{item.CARD_ID}}</td> <td><button class="btn btn-primary" ng-click="deleteDeliveredFailedById(item.ID)">删除</button></td>
<td><button class="btn btn-primary" ng-click="deleteDeliveredFailedById(item.ID)">删除</button></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<!--<div ng-if="packageLogData.length==0" class="box-body">-->
<!--<h4>暂无数据</h4>-->
<!--</div>-->
<!--<div style="padding-left: 27%;" ng-if="packageLogData.length>0">-->
<!--<tm-pagination conf="paginationConf" class="ul"></tm-pagination>-->
<!--</div>-->
</div> </div>
</div> </div>
</div> </div>
......
...@@ -7,11 +7,13 @@ angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.ht ...@@ -7,11 +7,13 @@ angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.ht
cache: false cache: false
}); });
}]) }])
.controller('saveDeliveredFailedInfoContr', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) { .controller('saveDeliveredFailedInfoContr', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog,$routeParams) {
HttpService.queryDeliveredFailedType(function(data) { HttpService.queryDeliveredFailedType(function(data) {
console.log(data) console.log(data)
$scope.backReasonList = data; $scope.backReasonList = data;
}) });
//Date picker //Date picker
$('#datepicker').datetimepicker({ $('#datepicker').datetimepicker({
...@@ -22,44 +24,42 @@ angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.ht ...@@ -22,44 +24,42 @@ angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.ht
autoclose: 1 autoclose: 1
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
$scope.saveDeliveredFailedInfo=function () { $scope.saveDeliveredFailedInfo=function () {
var waybillNumber = $scope.waybillNumber; var waybillNumber = $scope.waybillNumber;
var registerName = $scope.registerName; var registerName = $scope.registerName;
var cardId = $scope.cardId; var cardId = $scope.cardId;
var backReason = $scope.backReason; var backReason = $scope.backReason;
if(backReason==null){ if(angular.isUndefined(backReason)){
MessageService.showAlert("请选择退回原因") MessageService.showAlert("请选择退回原因")
}else{ }else{
var note = $scope.note; var note = $scope.note;
var arr = [{"waybillNumber":waybillNumber,"registerName":registerName,"cardId":cardId,"backReason":backReason,"note":note}]; var arr = [{"waybillNumber":waybillNumber,"registerName":registerName,"cardId":cardId,"backReason":backReason,"note":note}];
console.log(arr); console.log(arr);
HttpService.saveDeliveredFailedInfo(arr,function (data) { HttpService.saveDeliveredFailedInfo(arr,function (data) {
if(data==true){
if(data==true){ MessageService.showAlert("提交成功");
MessageService.showAlert("提交成功"); }else{
}else{ MessageService.showAlert("提交失败")
MessageService.showAlert("提交失败!!") }
} })
})
} }
} }
$scope.queryDeliveredFailedByRegisterDate=function () { $scope.queryDeliveredFailedByRegisterDate=function () {
var date = $("#datepicker").val(); var date = $("#datepicker").val();
if(date ==''){
date = $scope.choseDate;
}
console.log(date) console.log(date)
HttpService.queryDeliveredFailedByRegisterDate(date,function(data){ HttpService.queryDeliveredFailedByRegisterDate(date,function(data){
$scope.deliveredFailedByRegisterDate = data; $scope.deliveredFailedByRegisterDate = data;
console.log($scope.deliveredFailedByRegisterDate) console.log($scope.deliveredFailedByRegisterDate)
}) })
} };
$scope.queryDeliveredFailedByRegisterDate();
$scope.deleteDeliveredFailedById=function (id) { $scope.deleteDeliveredFailedById=function (id) {
console.log(id); console.log(id);
HttpService.deleteDeliveredFailedById(id,function(data){ HttpService.deleteDeliveredFailedById(id,function(data){
...@@ -72,7 +72,6 @@ angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.ht ...@@ -72,7 +72,6 @@ angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.ht
$scope.deliveredFailedByRegisterDate = data; $scope.deliveredFailedByRegisterDate = data;
console.log($scope.deliveredFailedByRegisterDate) console.log($scope.deliveredFailedByRegisterDate)
}) })
}) })
} }
}) })
\ No newline at end of file
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<table class="table table-hover table-bordered"> <table class="table table-hover table-bordered">
<thead> <thead>
<tr> <tr>
<th></th> <th ng-if="loginData.roleList[0].process==1"></th>
<th>受理号</th> <th>受理号</th>
<th>区县</th> <th>区县</th>
<th>姓名</th> <th>姓名</th>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="item in searchResult.ACCdata"> <tr ng-repeat="item in searchResult.ACCdata">
<td><input ng-checked="searchResult.ACCdata.length==1" type="checkbox" <td ng-if="loginData.roleList[0].process==1"><input ng-checked="searchResult.ACCdata.length==1" type="checkbox"
value="{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}" value="{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}"
class="accu"></td> class="accu"></td>
<td>{{item.ACCEPT_NO}}</td> <td>{{item.ACCEPT_NO}}</td>
...@@ -89,7 +89,8 @@ ...@@ -89,7 +89,8 @@
<td ng-if="item.SEX_NO==2"></td> <td ng-if="item.SEX_NO==2"></td>
<td>{{item.GAJG1}}</td> <td>{{item.GAJG1}}</td>
<td>{{item.BEGIN_DATE | myDateFilter}}</td> <td>{{item.BEGIN_DATE | myDateFilter}}</td>
<td>{{item.EXPIRE_DATE | myDateFilter}}</td> <td ng-if="item.EXPIRE_DATE=='长期'">{{item.EXPIRE_DATE}}</td>
<td ng-if="item.EXPIRE_DATE!='长期'">{{item.EXPIRE_DATE | myDateFilter}}</td>
<td>{{item.SIGN_GOVT}}</td> <td>{{item.SIGN_GOVT}}</td>
</tr> </tr>
</tbody> </tbody>
...@@ -113,7 +114,7 @@ ...@@ -113,7 +114,7 @@
<table class="table table-hover table-bordered"> <table class="table table-hover table-bordered">
<thead> <thead>
<tr> <tr>
<th></th> <th ng-if="loginData.roleList[0].process==1"></th>
<th>受理号</th> <th>受理号</th>
<th>区县</th> <th>区县</th>
<th>姓名</th> <th>姓名</th>
...@@ -128,7 +129,7 @@ ...@@ -128,7 +129,7 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="item in searchResult.PRODData"> <tr ng-repeat="item in searchResult.PRODData">
<td><input ng-checked="searchResult.PRODData.length==1" type="checkbox" <td ng-if="loginData.roleList[0].process==1"><input ng-checked="searchResult.PRODData.length==1" type="checkbox"
value="{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}" value="{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}"
class="prod"></td> class="prod"></td>
<td>{{item.ACCEPT_NO}}</td> <td>{{item.ACCEPT_NO}}</td>
...@@ -139,7 +140,8 @@ ...@@ -139,7 +140,8 @@
<td ng-if="item.SEX_NO==2"></td> <td ng-if="item.SEX_NO==2"></td>
<td>{{item.GAJG1}}</td> <td>{{item.GAJG1}}</td>
<td>{{item.BEGIN_DATE | myDateFilter}}</td> <td>{{item.BEGIN_DATE | myDateFilter}}</td>
<td>{{item.EXPIRE_DATE | myDateFilter}}</td> <td ng-if="item.EXPIRE_DATE=='长期'">{{item.EXPIRE_DATE}}</td>
<td ng-if="item.EXPIRE_DATE!='长期'">{{item.EXPIRE_DATE | myDateFilter}}</td>
<td>{{item.SIGN_GOVT}}</td> <td>{{item.SIGN_GOVT}}</td>
<td></td> <td></td>
</tr> </tr>
......
...@@ -50,12 +50,12 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -50,12 +50,12 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
$scope.postMsgDetail = []; $scope.postMsgDetail = [];
$scope.currentTime = getNowFormatDate(); $scope.currentTime = getNowFormatDate();
var doPost = function () { var doPost = function (flag) {
HttpService.doPostAndGetData(postData, function (data) { HttpService.doPostAndGetData(postData, function (data) {
$scope.postMsgDetail = data; $scope.postMsgDetail = data;
console.log("$scope.postMsgDetail:", $scope.postMsgDetail) console.log("$scope.postMsgDetail:", $scope.postMsgDetail)
$timeout(function () { $timeout(function () {
if ($scope.postMsgDetail.length == 1 && $scope.postMsgDetail[0].printTime == null) { if ($scope.postMsgDetail.length == 1 && $scope.postMsgDetail[0].printTime == null&&flag == true) {
$scope.PreviewMytableRotate(); $scope.PreviewMytableRotate();
} }
}) })
...@@ -154,27 +154,33 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -154,27 +154,33 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
if (ret == 1 || ret == 3) { if (ret == 1 || ret == 3) {
myform.name.value = document.getElementById("aaa").sName; myform.name.value = document.getElementById("aaa").sName;
myform.sex.value = document.getElementById("aaa").sSex == 1 ? '男' : '女'; myform.sex.value = document.getElementById("aaa").sSex == 1 ? '男' : '女';
myform.national.value = nation_data[(parseInt(document.getElementById("aaa").sNation)) - 1].name; myform.national.value = parseInt(document.getElementById("aaa").sNation);
myform.birthday.value = document.getElementById("aaa").sBornDate; var flag = false;
myform.address.value = document.getElementById("aaa").sAddress; if(myform.national.value>56||myform.national.value<1){
myform.id.value = document.getElementById("aaa").sIDNo; MessageService.showAlert("该民族代码不在56个民族代码中");
myform.qfjg.value = document.getElementById("aaa").sSignGov; }else{
myform.yxqstart.value = document.getElementById("aaa").sStartDate; myform.national.value = nation_data[(parseInt(document.getElementById("aaa").sNation)) - 1].name;
myform.yxqend.value = document.getElementById("aaa").sEndDate; flag=true;
document.getElementById("aaa").ReadCard(3); }
// myform.newaddress.value = aaa.sNewAddress; myform.birthday.value = document.getElementById("aaa").sBornDate;
myform.Base64.value = document.getElementById("aaa").PhotoBuffer; myform.address.value = document.getElementById("aaa").sAddress;
// myform.fp.value = aaa.sFpState; myform.id.value = document.getElementById("aaa").sIDNo;
myform.qfjg.value = document.getElementById("aaa").sSignGov;
var imgSrc = "data:image/jpg;base64," + myform.Base64.value; myform.yxqstart.value = document.getElementById("aaa").sStartDate;
$("#imgDetail").attr("src", imgSrc); myform.yxqend.value = document.getElementById("aaa").sEndDate;
document.getElementById("aaa").ReadCard(3);
// myform.newaddress.value = aaa.sNewAddress;
postData.idCard = myform.id.value; myform.Base64.value = document.getElementById("aaa").PhotoBuffer;
postData.startDate = myform.yxqstart.value; // myform.fp.value = aaa.sFpState;
postData.endDate = myform.yxqend.value;
doPost() var imgSrc = "data:image/jpg;base64," + myform.Base64.value;
$("#imgDetail").attr("src", imgSrc);
postData.idCard = myform.id.value;
postData.startDate = myform.yxqstart.value;
postData.endDate = myform.yxqend.value;
doPost(flag)
} }
} }
} else { } else {
......
...@@ -120,6 +120,7 @@ ...@@ -120,6 +120,7 @@
<div class="box-footer clearfix" style="border: 0;"> <div class="box-footer clearfix" style="border: 0;">
<button class="btn btn-success pull-right" style="margin-right: 20px;" ng-click="checkSame(json.id)">复核一致</button> <button class="btn btn-success pull-right" style="margin-right: 20px;" ng-click="checkSame(json.id)">复核一致</button>
<button class="btn btn-info pull-right" style="margin-right: 20px;" ng-click="PreviewMytableRotate()">打印标签</button> <button class="btn btn-info pull-right" style="margin-right: 20px;" ng-click="PreviewMytableRotate()">打印标签</button>
<!--<button class="btn btn-info pull-right" style="margin-right: 20px;" ng-click="closeRight()">关闭</button>-->
</div> </div>
</div> </div>
</div> </div>
......
...@@ -79,7 +79,12 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin ...@@ -79,7 +79,12 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
getDetailListById(item.ID); getDetailListById(item.ID);
}; };
// $scope.closeRight = function () {
// $scope.json.isShow = false;
// for (var i=0;i<$scope.json.policeCardsList.length;i++){
// $scope.json.policeCardsList[i].styleClass = ""
// }
// };
$scope.checkSame = function (id) { $scope.checkSame = function (id) {
HttpService.updateReceiptList(id,function(data) { HttpService.updateReceiptList(id,function(data) {
......
...@@ -176,20 +176,8 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -176,20 +176,8 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
} }
$scope.groupList = [ $scope.updateGroup = function() {
{ var typeCode = $scope.cycleSheetData[$scope.currentTab].typeCode;
id:1,
name:'A组'
},
{
id:2,
name:'B组'
}
]
$scope.updateGroup = function(typeCode) {
console.log(typeCode,"-=-=-=-=-=-=-=-=-=-")
var groupSelected = $("#groupSelected").val();
console.log(groupSelected)
var checks = $("#checkOneBox:checked"); var checks = $("#checkOneBox:checked");
var arr = []; var arr = [];
for (var i=0;i<checks.length;i++){ for (var i=0;i<checks.length;i++){
...@@ -197,18 +185,16 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -197,18 +185,16 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
} }
if(arr.length>0){ if(arr.length>0){
var json = { var json = {
workGroup:groupSelected, workGroup:$("#selectedGroup").val(),
taskIdList:arr taskIdList:arr
} }
if (typeCode==100){ if (typeCode==100){
HttpService.updateFailedCardWorkGroup(json,function(data) { HttpService.updateFailedCardWorkGroup(json,function(data) {
console.log("===================")
console.log(data) console.log(data)
$scope.searchTaskList(); $scope.searchTaskList();
}) })
}else { }else {
HttpService.updateWorkGroup(json,function(data) { HttpService.updateWorkGroup(json,function(data) {
console.log("------------------------")
console.log(data) console.log(data)
$scope.searchTaskList(); $scope.searchTaskList();
}) })
......
...@@ -67,6 +67,8 @@ ...@@ -67,6 +67,8 @@
<table class="table"> <table class="table">
<thead> <thead>
<th>组号</th> <th>组号</th>
<th ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">姓名</th>
<th ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">身份证号</th>
<th>派出所名称</th> <th>派出所名称</th>
<th>证件数量</th> <th>证件数量</th>
<th>电写入数量</th> <th>电写入数量</th>
...@@ -78,6 +80,8 @@ ...@@ -78,6 +80,8 @@
<tbody> <tbody>
<tr ng-repeat="item in policeList"> <tr ng-repeat="item in policeList">
<td>{{item.GROUP_NO}}</td> <td>{{item.GROUP_NO}}</td>
<td ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">{{item.NAME}}</td>
<td ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">{{item.ID_NO}}</td>
<td>{{item.GAJG_MC}}</td> <td>{{item.GAJG_MC}}</td>
<td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT-item.FAILECOUNT}}</td> <td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT-item.FAILECOUNT}}</td>
<td>{{item.E_WRITER_COUNT}}</td> <td>{{item.E_WRITER_COUNT}}</td>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]" <li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index"> ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)"> <a ng-click="func($index)">
<ul style="margin: 0;padding: 0;"> <ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li> <li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li> <li style="text-align: center;">{{tab.typeSum}}</li>
...@@ -77,6 +77,8 @@ ...@@ -77,6 +77,8 @@
<table class="table"> <table class="table">
<thead> <thead>
<th>组号</th> <th>组号</th>
<th ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">姓名</th>
<th ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">身份证号</th>
<th>核验数量</th> <th>核验数量</th>
<th>卸载数量</th> <th>卸载数量</th>
<th>证件数量</th> <th>证件数量</th>
...@@ -87,6 +89,8 @@ ...@@ -87,6 +89,8 @@
<tbody> <tbody>
<tr ng-repeat="item in policeList"> <tr ng-repeat="item in policeList">
<td>{{item.GROUP_NO}}</td> <td>{{item.GROUP_NO}}</td>
<td ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">{{item.NAME}}</td>
<td ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">{{item.ID_NO}}</td>
<td>{{item.VALID_COUNT}}</td> <td>{{item.VALID_COUNT}}</td>
<td>{{item.DOWNLOAD_COUNT}}</td> <td>{{item.DOWNLOAD_COUNT}}</td>
<td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td> <td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td>
...@@ -101,21 +105,22 @@ ...@@ -101,21 +105,22 @@
</tbody> </tbody>
</table> </table>
<!-- /.table --> <!-- /.table -->
<div class="box-footer">
<div class="pull-left">
<select class="form-control select2" id="groupSelected" style="border-radius:5px">
<option value="{{group.id}}" ng-repeat="group in groupList">{{group.name}}</option>
</select>
</div>
<div class="pull-left" style="margin-left: 10px;">
<button class="btn btn-info" ng-click="updateGroup(type.typeCode)">更新工作组</button>
</div>
<div class="pull-right" style="margin-left: 10px;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div>
</div>
<!-- /.mail-box-messages --> <!-- /.mail-box-messages -->
</div> </div>
<div class="box-footer">
<div class="pull-left">
<select class="form-control" id="selectedGroup" style="border-radius:5px">
<option value="1">A组</option>
<option value="2">B组</option>
</select>
</div>
<div class="pull-left" style="margin-left: 10px;">
<button class="btn btn-info" ng-click="updateGroup()">更新工作组</button>
</div>
<div class="pull-right" style="margin-left: 10px;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div>
</div>
</div> </div>
</div> </div>
<!-- 查询历史---> <!-- 查询历史--->
...@@ -168,6 +173,8 @@ ...@@ -168,6 +173,8 @@
<table class="table"> <table class="table">
<thead> <thead>
<th>组号</th> <th>组号</th>
<th ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">姓名</th>
<th ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">身份证号</th>
<th>核验数量</th> <th>核验数量</th>
<th>证件数量</th> <th>证件数量</th>
<th>特殊证件数量</th> <th>特殊证件数量</th>
...@@ -176,6 +183,8 @@ ...@@ -176,6 +183,8 @@
<tbody> <tbody>
<tr ng-repeat="item in policeList"> <tr ng-repeat="item in policeList">
<td>{{item.GROUP_NO}}</td> <td>{{item.GROUP_NO}}</td>
<td ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">{{item.NAME}}</td>
<td ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">{{item.ID_NO}}</td>
<td>{{item.VALID_COUNT}}</td> <td>{{item.VALID_COUNT}}</td>
<td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td> <td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td>
<td>{{item.SPECIAL_CARD_COUNT}}</td> <td>{{item.SPECIAL_CARD_COUNT}}</td>
...@@ -204,4 +213,5 @@ ...@@ -204,4 +213,5 @@
<!-- /.row --> <!-- /.row -->
</div> </div>
</div> </div>
</div>
</div>
...@@ -88,6 +88,8 @@ ...@@ -88,6 +88,8 @@
<table class="table"> <table class="table">
<thead> <thead>
<th>组号</th> <th>组号</th>
<th ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">姓名</th>
<th ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">身份证号</th>
<th>派出所名称</th> <th>派出所名称</th>
<th>证件数量</th> <th>证件数量</th>
<th>电写入数量</th> <th>电写入数量</th>
...@@ -100,6 +102,8 @@ ...@@ -100,6 +102,8 @@
<tbody> <tbody>
<tr ng-repeat="item in policeList"> <tr ng-repeat="item in policeList">
<td>{{item.GROUP_NO}}</td> <td>{{item.GROUP_NO}}</td>
<td ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">{{item.NAME}}</td>
<td ng-if="type.typeCode=='100'||type.typeCode=='99'||type.typeCode=='1'">{{item.ID_NO}}</td>
<td>{{item.GAJG_MC}}</td> <td>{{item.GAJG_MC}}</td>
<td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td> <td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td>
<td>{{item.E_WRITER_COUNT}}</td> <td>{{item.E_WRITER_COUNT}}</td>
......
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