Commit ce4d3e9f authored by liboyang's avatar liboyang

标签打印页面

parent 18d8917f
...@@ -308,6 +308,17 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -308,6 +308,17 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data) success(response.data)
}) })
}, },
getPoliceCardsList:function(id,success) {
$http({
method: 'GET',
url: "../ReceiptApi/selectDetailList"+urlTimeStamp(),
params:{
receiptId:id
}
}).then(function successCallback(response) {
success(response.data)
})
},
selectAnalyseLogCount:function (oldPackageName,date,success) { selectAnalyseLogCount:function (oldPackageName,date,success) {
if(angular.isUndefined(oldPackageName)){ if(angular.isUndefined(oldPackageName)){
oldPackageName=''; oldPackageName='';
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<div class="box box-default"> <div class="box box-default">
<strong class="box-header with-border">查询结果</strong> <strong class="box-header with-border">查询结果</strong>
<div class="box-info" style="padding: 10px;"> <div class="box-info" style="padding: 10px;">
<table class="table table-bordered table-hover" ng-if="xmlDatas"> <table class="table table-bordered table-hover" ng-if="xmlDatas.length>0">
<thead> <thead>
<tr> <tr>
<th>NO.</th> <th>NO.</th>
...@@ -103,10 +103,10 @@ ...@@ -103,10 +103,10 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div style="padding-left: 27%;" ng-if="xmlDatas"> <div style="padding-left: 27%;" ng-if="xmlDatas.length>0">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination> <tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div> </div>
<h4 ng-if="postData.length==0">暂无记录。</h4> <h4 ng-if="xmlDatas.length==0">暂无记录。</h4>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -51,7 +51,6 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http']) ...@@ -51,7 +51,6 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
itemsPerPage: 10, itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50] perPageOptions: [10, 20, 30, 40, 50]
}; };
$scope.paginationConf.totalItems = 50;
$scope.doXmlQuery = function() { $scope.doXmlQuery = function() {
var startDate=$("#datepicker1").val(); var startDate=$("#datepicker1").val();
...@@ -71,16 +70,18 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http']) ...@@ -71,16 +70,18 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
if(endDate==''){ if(endDate==''){
endDate=$filter("date")(new Date(), "yyyy-MM-dd"); endDate=$filter("date")(new Date(), "yyyy-MM-dd");
} }
console.log($scope.startPackageNo,$scope.endPackageNo,$scope.pcs_name,startDate,endDate) console.log($scope.startPackageNo,$scope.endPackageNo,$scope.pcs_name,startDate,endDate,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage)
HttpService.selectXmlDataCount($scope.startPackageNo,$scope.endPackageNo,$scope.pcs_name,startDate,endDate,function(data){
$scope.paginationConf.totalItems=data;
console.log($scope.paginationConf.totalItems,"count")
})
HttpService.selectXmlData($scope.startPackageNo,$scope.endPackageNo,$scope.pcs_name,startDate,endDate,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function (data) { HttpService.selectXmlData($scope.startPackageNo,$scope.endPackageNo,$scope.pcs_name,startDate,endDate,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function (data) {
$scope.xmlDatas = data; $scope.xmlDatas = data;
console.log($scope.xmlDatas) console.log($scope.xmlDatas)
}) })
HttpService.selectXmlDataCount($scope.startPackageNo,$scope.endPackageNo,$scope.pcs_name,startDate,endDate,function(data){
$scope.paginationConf.totalItems=data;
console.log(data)
})
} }
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope.$watch('paginationConf.currentPage +paginationConf.itemsPerPage', $scope.doXmlQuery);
}); });
\ No newline at end of file
...@@ -38,9 +38,9 @@ ...@@ -38,9 +38,9 @@
<div class="box-header with-border"> <div class="box-header with-border">
<strong >详情信息</strong> <strong >详情信息</strong>
</div> </div>
<div class="box-body no-padding col-md-12"> <div class="box-body col-md-12">
<div class="col-md-5" style="padding-right: 0px;" > <div class="col-md-5" style="padding:0" >
<table class="table table-bordered table-hover postTable "> <table class="table table-bordered table-hover postTable" ng-if="tagPrintData.length>0">
<thead> <thead>
<tr> <tr>
<th>NO.</th> <th>NO.</th>
...@@ -59,14 +59,17 @@ ...@@ -59,14 +59,17 @@
<td>{{item.POLICE_NAME}}</td> <td>{{item.POLICE_NAME}}</td>
<td>{{item.download}}</td> <td>{{item.download}}</td>
<td>{{item.electricCount}}</td> <td>{{item.electricCount}}</td>
<td ng-if="item.STATE">未复核</td> <td ng-if="item.STATE==0">未复核</td>
<td></td> <td></td>
<td></td> <td></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h4 class="col-md-7" ng-if="tagPrintData.length==0" style="padding: 0;">
暂无数据
</h4>
</div> </div>
<div class="col-md-7" style="" ng-if="policeCardsList"> <div class="col-md-7" ng-if="json.policeCardsList.length>0">
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
...@@ -80,7 +83,7 @@ ...@@ -80,7 +83,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="item in policeCardsList"> <tr ng-repeat="item in json.policeCardsList">
<td>{{$index+1}}</td> <td>{{$index+1}}</td>
<td>{{item.acceptNo}}</td> <td>{{item.acceptNo}}</td>
<td>{{item.username}}</td> <td>{{item.username}}</td>
...@@ -105,15 +108,14 @@ ...@@ -105,15 +108,14 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<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-info pull-right" style="margin-right: 20px;">打印标签</button>
</div>
</div> </div>
</div> <h4 class="col-md-7" ng-if="json.policeCardsList.length==0">
<div class="box-footer clearfix"> 暂无数据
<button class="btn btn-success pull-right " </h4>
style="margin-right: 20px;">复核一致
</button>
<button class="btn btn-info pull-right"
style="margin-right: 20px;">打印标签
</button>
</div> </div>
</div> </div>
</div> </div>
......
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