Commit a6b8a03c authored by dahai's avatar dahai

Merge remote-tracking branch 'origin/dev' into dev

parents 9cb81e90 7ae87fa7
<div class="ui-dialog-title">
提示
</div>
<div class="ui-dialog-content">
<div>确认下载{{count}}条记录吗?</div>
</div>
<div class="ui-dialog-confirm">
<button type="submit" class="btn btn-info" ng-click="confirmDownload()">确认</button>
<button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button>
</div>
......@@ -851,6 +851,25 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) {
success(response.data)
})
},
getDownloadCount:function (uploadNo,idCard,oldPackageNo,newPackageNo,sljg,
typeCode,packageType,date,success) {
$http({
method: 'GET',
url: "../queryPreproPerson/queryPreproPersonCount",
params:{
uploadNo:uploadNo,
IDCard:idCard,
oldFile:oldPackageNo,
newFile:newPackageNo,
SSXQDM:sljg,
cardType:typeCode,
state:packageType,
uploadDate:date
}
}).then(function successCallback(response) {
success(response.data)
})
}
}
});
\ No newline at end of file
......@@ -55,6 +55,16 @@
</td>
</tr>
<tr>
<td>制证包上传时间:</td>
<td>
<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="{{choseDate}}" id="datepicker" readonly/>
<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
</div>
</td>
<td>禁用:</td>
<td style="text-align: left;">
<select class="form-control select2" id="packageType">
......@@ -63,22 +73,11 @@
<option value="1" selected></option>
</select>
</td>
<td>制证包上传时间:</td>
<td>
<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="{{choseDate}}" id="datepicker" readonly/>
<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
</div>
</td>
<td></td>
<td><div style="float: left;">
<button class="btn btn-primary" ng-click="doPackageQuery()">查询</button>
<button type="submit" class="btn btn-info" ng-click="downloadXml()">下载制证包</button>
</div></td>
</tr>
</table>
</div>
......
......@@ -133,13 +133,55 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
}
return url + 't=' + Math.floor(Date.now());
}
var getDownloadCount = function () {
var date = $("#datepicker").val();
var cardType = $("#cardType").val();
var packageType = $("#packageType").val();
if(angular.isUndefined($scope.uploadNo)){
$scope.uploadNo='';
}
if(angular.isUndefined($scope.idCard)){
$scope.idCard='';
}
if(angular.isUndefined($scope.oldPackageNo)){
$scope.oldPackageNo='';
}
if(angular.isUndefined($scope.newPackageNo)){
$scope.newPackageNo='';
}
if(angular.isUndefined($scope.sljg)){
$scope.sljg='';
}
if(packageType==''){
packageType=-1;
}
if(date=='{{choseDate}}'){
date=$scope.choseDate
}
HttpService.getDownloadCount($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg,
cardType,packageType,date,function(data) {
$rootScope.count = data.total;
})
}
$scope.downloadXml = function(){
var url = '../exportXML/printXmlData?';
var a = document.createElement("a");
document.body.appendChild(a);
a.href = encodeURI(getCountAndDownloadUrl(url));
console.log(encodeURI(getCountAndDownloadUrl(url)))
a.click();
ngDialog.open({
template: 'dialogs/confirmToDownload.html' + urlTimeStamp(),
width: 800,
cache: false,
closeByDocument:false,
controller: ['$scope',function ($scope) {
getDownloadCount();
$scope.confirmDownload = function () {
var url = '../exportXML/printXmlData?';
var a = document.createElement("a");
document.body.appendChild(a);
a.href = encodeURI(getCountAndDownloadUrl(url));
a.click();
}
}]
})
}
var getTypeList = function(){
......
......@@ -234,6 +234,7 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
$scope.searchCurrent();
$scope.selected=[];
$rootScope.selectedGroup=[];
$rootScope.cardsTotal = 0;
$rootScope.closeThis();
})
}else{
......
......@@ -181,6 +181,7 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("下发完成")
$rootScope.cardsTotal = 0;
$rootScope.closeThis();
})
}else{
......
......@@ -392,6 +392,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("转出完成")
$rootScope.cardsTotal = 0;
$rootScope.closeThis();
})
}else{
......@@ -408,9 +409,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$rootScope.closeThis = $scope.closeThisDialog;
}]
})
}
})
......@@ -576,6 +574,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("转出完成")
$rootScope.cardsTotal = 0;
$rootScope.closeThis();
})
}else{
......@@ -757,6 +756,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("转出完成")
$rootScope.cardsTotal = 0;
$rootScope.closeThis();
})
}else{
......
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