Commit 180adf02 authored by liboyang's avatar liboyang

制证信息管理

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