Commit abc8f247 authored by liboyang's avatar liboyang

下载制证包增加一个下载状态

parent adfbb745
...@@ -387,7 +387,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -387,7 +387,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}) })
}, },
getPackageData:function(uploadNo,idCard,oldPackageNo,newPackageNo,sljg, getPackageData:function(uploadNo,idCard,oldPackageNo,newPackageNo,sljg,
typeCode,packageType,date,currentPage,itemsPerPage,success){ typeCode,packageType,downloadState,date,currentPage,itemsPerPage,success){
// var json ={ // var json ={
// uploadNo:uploadNo, // uploadNo:uploadNo,
// IDCard:idCard, // IDCard:idCard,
...@@ -402,7 +402,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -402,7 +402,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
// arr.push(json); // arr.push(json);
// var body = JSON.stringify(arr); // var body = JSON.stringify(arr);
console.log(uploadNo,idCard,oldPackageNo,newPackageNo,sljg, console.log(uploadNo,idCard,oldPackageNo,newPackageNo,sljg,
typeCode,packageType,date,currentPage,itemsPerPage) typeCode,packageType,downloadState,date,currentPage,itemsPerPage)
$http({ $http({
method: 'GET', method: 'GET',
url: "../queryPreproPerson/queryPreproPerson", url: "../queryPreproPerson/queryPreproPerson",
...@@ -414,6 +414,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -414,6 +414,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
SSXQDM:sljg, SSXQDM:sljg,
cardType:typeCode, cardType:typeCode,
state:packageType, state:packageType,
downloadState:downloadState,
uploadDate:date, uploadDate:date,
currPage:currentPage, currPage:currentPage,
pageSize:itemsPerPage pageSize:itemsPerPage
...@@ -853,7 +854,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -853,7 +854,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}) })
}, },
getDownloadCount:function (uploadNo,idCard,oldPackageNo,newPackageNo,sljg, getDownloadCount:function (uploadNo,idCard,oldPackageNo,newPackageNo,sljg,
typeCode,packageType,date,success) { typeCode,packageType,downloadState,date,success) {
$http({ $http({
method: 'GET', method: 'GET',
url: "../queryPreproPerson/queryPreproPersonCount", url: "../queryPreproPerson/queryPreproPersonCount",
...@@ -865,6 +866,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -865,6 +866,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
SSXQDM:sljg, SSXQDM:sljg,
cardType:typeCode, cardType:typeCode,
state:packageType, state:packageType,
downloadState:downloadState,
uploadDate:date uploadDate:date
} }
}).then(function successCallback(response) { }).then(function successCallback(response) {
......
...@@ -73,15 +73,21 @@ ...@@ -73,15 +73,21 @@
<option value="1" selected></option> <option value="1" selected></option>
</select> </select>
</td> </td>
<td></td> <td>下载状态</td>
<td><div style="float: left;"> <td style="text-align: left;">
<button class="btn btn-primary" ng-click="doPackageQuery()">查询</button> <select class="form-control select2" id="downloadState">
<button type="submit" class="btn btn-info" ng-click="downloadXml()">下载制证包</button> <option value="">全部</option>
</div></td> <option value="1"></option>
<option value="0" selected></option>
</select>
</td>
</tr> </tr>
</table> </table>
</div> </div>
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="doPackageQuery()">查询</button>
<button type="submit" class="btn btn-info" ng-click="downloadXml()">下载制证包</button>
</div>
</div> </div>
<div class="box box-default"> <div class="box box-default">
<strong class="box-header with-border">制证信息详情</strong> <strong class="box-header with-border">制证信息详情</strong>
......
...@@ -43,6 +43,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -43,6 +43,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
var date = $("#datepicker").val(); var date = $("#datepicker").val();
var cardType = $("#cardType").val(); var cardType = $("#cardType").val();
var packageType = $("#packageType").val(); var packageType = $("#packageType").val();
var downloadState = $("#downloadState").val();
if(angular.isUndefined($scope.uploadNo)){ if(angular.isUndefined($scope.uploadNo)){
$scope.uploadNo=''; $scope.uploadNo='';
} }
...@@ -61,6 +62,9 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -61,6 +62,9 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
if(packageType==''){ if(packageType==''){
packageType=-1; packageType=-1;
} }
if(downloadState==''){
downloadState=-1;
}
if(date=='{{choseDate}}'){ if(date=='{{choseDate}}'){
date=$scope.choseDate date=$scope.choseDate
} }
...@@ -68,7 +72,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -68,7 +72,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
$scope.paginationConf.currentPage=1 $scope.paginationConf.currentPage=1
} }
HttpService.getPackageData($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg, HttpService.getPackageData($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg,
cardType,packageType,date,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data) { cardType,packageType,downloadState,date,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data) {
$scope.paginationConf.totalItems=data.total; $scope.paginationConf.totalItems=data.total;
$scope.simpleCardCount = data.puSum; $scope.simpleCardCount = data.puSum;
$scope.postCardCount = data.youSum; $scope.postCardCount = data.youSum;
...@@ -91,6 +95,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -91,6 +95,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
var date = $("#datepicker").val(); var date = $("#datepicker").val();
var packageType = $("#packageType").val(); var packageType = $("#packageType").val();
var cardType=$("#cardType").val(); var cardType=$("#cardType").val();
var downloadState = $("#downloadState").val();
if(angular.isUndefined($scope.uploadNo)){ if(angular.isUndefined($scope.uploadNo)){
url = url + 'uploadNo=&'; url = url + 'uploadNo=&';
}else{ }else{
...@@ -126,6 +131,11 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -126,6 +131,11 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
}else{ }else{
url = url + 'state=' + packageType + '&'; url = url + 'state=' + packageType + '&';
} }
if(downloadState==''){
url = url + 'downloadState=-1&';
}else{
url = url + 'downloadState=' + downloadState + '&';
}
if (date==''){ if (date==''){
url = url + 'uploadDate=&'; url = url + 'uploadDate=&';
}else{ }else{
...@@ -138,6 +148,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -138,6 +148,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
var date = $("#datepicker").val(); var date = $("#datepicker").val();
var cardType = $("#cardType").val(); var cardType = $("#cardType").val();
var packageType = $("#packageType").val(); var packageType = $("#packageType").val();
var downloadState = $("#downloadState").val();
if(angular.isUndefined($scope.uploadNo)){ if(angular.isUndefined($scope.uploadNo)){
$scope.uploadNo=''; $scope.uploadNo='';
} }
...@@ -156,11 +167,14 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -156,11 +167,14 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
if(packageType==''){ if(packageType==''){
packageType=-1; packageType=-1;
} }
if(downloadState==''){
downloadState=-1;
}
if(date=='{{choseDate}}'){ if(date=='{{choseDate}}'){
date=$scope.choseDate date=$scope.choseDate
} }
HttpService.getDownloadCount($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg, HttpService.getDownloadCount($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg,
cardType,packageType,date,function(data) { cardType,packageType,downloadState,date,function(data) {
$rootScope.count = data.total; $rootScope.count = data.total;
}) })
} }
......
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