Commit c9d14d74 authored by caijianbiao's avatar caijianbiao

添加checkNewExcelUnresolved接口,code不为0是下载

parent 3d62330a
......@@ -2063,5 +2063,16 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data)
})
},
checkNewExcelUnresolved: function (success) {
$http({
method: 'POST',
url: "../LogApi/checkNewExcelUnresolved"
}).then(function successCallback(response) {
success(response.data)
})
},
}
});
\ No newline at end of file
......@@ -99,7 +99,7 @@
<td>
<div style="text-align: right;">
<button class="btn btn-primary" ng-click="doPackageQuery()">查询</button>
<button type="submit" class="btn btn-info" ng-click="downloadXml()">下载制证包</button>
<button type="submit" class="btn btn-info" ng-click="checkNewExcelUnresolved()">下载制证包</button>
</div>
</td>
</tr>
......
......@@ -209,7 +209,17 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
$rootScope.count = data;
})
}
$scope.downloadXml = function(){
$scope.checkNewExcelUnresolved = function(){
HttpService.checkNewExcelUnresolved(function(data){
if(data.code === 0){
MessageService.showAlert("code: 0");
} else {
downloadXml()
}
})
}
var downloadXml = function(){
$rootScope.count = 0;
var date = $("#datepicker").val();
var date1 = $("#datepicker1").val();
......
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