Commit 180adf02 authored by liboyang's avatar liboyang

制证信息管理

parent 87f0b4c5
......@@ -287,13 +287,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data)
})
},
selectXmlDataCount:function (startPackageNo,endPackageNo,pcs_name,startDate,endDate,success) {
selectXmlDataCount:function (startId,endId,pcs_name,startDate,endDate,success) {
$http({
method: 'GET',
url: "../InfoManagementApi/selectCount"+urlTimeStamp(),
params:{
beginFileName:startPackageNo,
endFileName:endPackageNo,
beginFileId:startId,
endFileId:endId,
gajgMc:pcs_name,
beginDate:startDate,
endDate:endDate
......@@ -313,13 +313,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data)
})
},
deleteProdCards:function (startPackageNo,endPackageNo,pcs_name,startDate,endDate,success) {
deleteProdCards:function (startId,endId,pcs_name,startDate,endDate,success) {
$http({
method: 'GET',
url: "../InfoManagementApi/deleteInfo"+urlTimeStamp(),
params:{
beginFileName:startPackageNo,
endFileName:endPackageNo,
beginFileName:startId,
endFileName:endId,
gajgMc:pcs_name,
beginDate:startDate,
endDate:endDate
......
......@@ -34,13 +34,13 @@
<div class="box-info">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td>新包号:</td>
<td>文件ID:</td>
<td>
<input type="text" class="form-control" ng-model="startPackageNo" placeholder="起始包号">
<input type="text" class="form-control" ng-model="startId" placeholder="起始ID">
</td>
<td>-</td>
<td>
<input type="text" class="form-control" ng-model="endPackageNo" placeholder="截至包号">
<input type="text" class="form-control" ng-model="endId" placeholder="截至ID">
</td>
<td>派出所名称:</td>
......@@ -95,8 +95,8 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="item in xmlDatas">
<td>{{$index+1}}</td>
<tr ng-repeat="item in xmlDatas | orderBy:'id'">
<td>{{item.id}}</td>
<td>{{item.dwdm}}</td>
<td>{{item.dwmc}}</td>
<td>{{item.recordNumber}}</td>
......
......@@ -13,6 +13,7 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
$rootScope.hasOpen = false;
$scope.id ='id';
$('.select2').select2();
//Initialize Select2 Elements
......@@ -54,11 +55,11 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
$scope.doXmlQuery = function() {
var startDate=$("#datepicker1").val();
var endDate =$("#datepicker2").val();
if(angular.isUndefined($scope.startPackageNo)){
$scope.startPackageNo='';
if(angular.isUndefined($scope.startId)){
$scope.startId='';
}
if(angular.isUndefined($scope.endPackageNo)){
$scope.endPackageNo='';
if(angular.isUndefined($scope.endId)){
$scope.endId='';
}
if(angular.isUndefined($scope.pcs_name)){
$scope.pcs_name='';
......@@ -66,13 +67,13 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
if((startDate!=''&&endDate=='')||(endDate!=''&&startDate=='')){
MessageService.showAlert("请选择起始日期和结束日期")
}else{
console.log($scope.startPackageNo,$scope.endPackageNo,$scope.pcs_name,startDate,endDate,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage)
console.log($scope.startId,$scope.endId,$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.startId,$scope.endId,$scope.pcs_name,startDate,endDate,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function (data) {
$scope.xmlDatas = data;
console.log($scope.xmlDatas)
})
......@@ -87,14 +88,14 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
$scope.deleteXml = function() {
var startDate=$("#datepicker1").val();
var endDate =$("#datepicker2").val();
var startPackageNo = $scope.startPackageNo;
var endPackageNo=$scope.endPackageNo;
var startId = $scope.startId;
var endId=$scope.endId;
var pcs_name=$scope.pcs_name;
if(angular.isUndefined(startPackageNo)){
startPackageNo='';
if(angular.isUndefined(startId)){
startId='';
}
if(angular.isUndefined(endPackageNo)){
endPackageNo='';
if(angular.isUndefined(endId)){
endId='';
}
if(angular.isUndefined(pcs_name)){
pcs_name='';
......@@ -110,12 +111,12 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
controller: ['$scope', function ($scope) {
$scope.startDate = startDate;
$scope.endDate = endDate;
HttpService.selectXmlDataCount(startPackageNo,endPackageNo,pcs_name,startDate,endDate,function(data){
HttpService.selectXmlDataCount(startId,endId,pcs_name,startDate,endDate,function(data){
$scope.total=data;
console.log($scope.total,"count")
})
$scope.confirmDelete = function () {
HttpService.deleteProdCards(startPackageNo,endPackageNo,pcs_name,startDate,endDate, function (data) {
HttpService.deleteProdCards(startId,endId,pcs_name,startDate,endDate, function (data) {
if(data){
MessageService.showAlert("删除成功");
$scope.closeThisDialog();
......
......@@ -66,7 +66,7 @@
<td ng-if="task.faileCount!=0" class="mailbox-subject" style="color: red;">{{task.faileCount}}</td>
<td ng-if="task.faileCount==0" class="mailbox-subject">{{task.faileCount}}</td>
<td class="mailbox-subject">{{task.recheckCount}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.policeList,task.taskId)">派出所列表</a></td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.policeList,task.taskId)">组号列表</a></td>
<td class="mailbox-subject"><button class="btn btn-primary">打印封条</button></td>
</tr>
<tr ng-if="task.taskId==taskId">
......
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