Commit 84befaac authored by liboyang's avatar liboyang

新增页面

parent 757cae48
...@@ -43,6 +43,25 @@ public class PersonPostApi { ...@@ -43,6 +43,25 @@ public class PersonPostApi {
return null; return null;
} }
/**
* 按条件查询个人邮寄信息
* @param jsonStr
* @return
*/
@RequestMapping("findPersonalDataCount")
public int findPersonalDataCount(@RequestBody String jsonStr){
JSONObject jsonObject = JSONObject.fromObject(jsonStr);
String applicantName = jsonObject.getString("applicantName");
String orderNumber = jsonObject.getString("orderNumber");
String state = jsonObject.getString("state");
String latticeMouthInformation = jsonObject.getString("latticeMouthInformation");
List<String> getToCounty = new ArrayList<>();
getToCounty.add(jsonObject.getString("getToCounty"));
String uploadDate = jsonObject.getString("uploadDate");
int count = personPostService.findPersonalDataCount(applicantName,orderNumber,state,latticeMouthInformation,getToCounty,uploadDate);
return count;
}
/** /**
* 按条件查询个人邮寄信息 * 按条件查询个人邮寄信息
* @param jsonStr * @param jsonStr
......
...@@ -30,4 +30,6 @@ public interface PersonPostService { ...@@ -30,4 +30,6 @@ public interface PersonPostService {
public List<PersonPostEntity> getPostInfo(ReadCardDto readCardDto); public List<PersonPostEntity> getPostInfo(ReadCardDto readCardDto);
public boolean printPostList(int id, Date printDateTime); public boolean printPostList(int id, Date printDateTime);
public int findPersonalDataCount(String applicantName, String orderNumber, String state, String latticeMouthInformation, List<String> getToCounty, String uploadDate);
} }
...@@ -84,6 +84,11 @@ public class PersonPostServiceImpl implements PersonPostService { ...@@ -84,6 +84,11 @@ public class PersonPostServiceImpl implements PersonPostService {
return true; return true;
} }
@Override
public int findPersonalDataCount(String applicantName, String orderNumber, String state, String latticeMouthInformation, List<String> getToCounty, String uploadDate) {
return 0;
}
// /** // /**
// * 查询个人邮寄信息 // * 查询个人邮寄信息
// * @param fileName 文件名 // * @param fileName 文件名
......
<div class="ui-dialog-title">
确认信息
</div>
<div class="ui-dialog-content">
<table class="table table-responsive table-hover">
<thead>
<th>NO.</th>
<th>身份证号</th>
<th>姓名</th>
<th>性别</th>
</thead>
<tbody>
<tr ng-repeat="item in personInfo">
<td>{{$index + 1}}</td>
<td>{{item.ID_NO}}</td>
<td>{{item.NAME}}</td>
<td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.SEX_NO==2"></td>
</tr>
</tbody>
</table>
</div>
<div class="ui-dialog-confirm">
<button type="submit" class="btn btn-info" ng-click="confirmAdd()">确定添加</button>
<button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button>
</div>
...@@ -100,8 +100,11 @@ angular.module('AvatarCheck', [ ...@@ -100,8 +100,11 @@ angular.module('AvatarCheck', [
if ($location.path() == "/taskListPrint") { if ($location.path() == "/taskListPrint") {
$rootScope.tab = '/taskListPrint'; $rootScope.tab = '/taskListPrint';
} }
if ($location.path() == "/taskListQualityCheck") { if ($location.path() == "/taskListPushing") {
$rootScope.tab = '/taskListQualityCheck'; $rootScope.tab = '/taskListPushing';
}
if ($location.path() == "/taskListCutting") {
$rootScope.tab = '/taskListCutting';
} }
if ($location.path() == "/taskListSorting") { if ($location.path() == "/taskListSorting") {
$rootScope.tab = '/taskListSorting'; $rootScope.tab = '/taskListSorting';
......
...@@ -88,10 +88,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -88,10 +88,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data) success(response.data)
}) })
}, },
searchPostData: function (url, success) { searchPostData: function (data, success) {
var body = JSON.stringify(data);
console.log(body)
$http({ $http({
method: 'GET', method: 'POST',
url: url url: "../personPostApi/findPersonalData",
data:body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
}) })
...@@ -126,10 +130,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -126,10 +130,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data) success(response.data)
}) })
}, },
getRecordsCount: function (url, success) { getRecordsCount: function (data, success) {
var body = JSON.stringify(data);
$http({ $http({
method: 'GET', method: 'GET',
url: url url: "../personPostApi/findPersonalDataCount",
data:body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
}) })
...@@ -453,7 +460,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -453,7 +460,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data) success(response.data)
}) })
}, },
addFailedCard:function(data,succuss){ addFailedCard:function(data,success){
var body = JSON.stringify(data); var body = JSON.stringify(data);
$http({ $http({
method: 'POST', method: 'POST',
...@@ -461,7 +468,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -461,7 +468,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
data: body, data: body,
headers: {'Content-Type': 'application/json'} headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) { }).then(function successCallback(response) {
succuss(response.data) success(response.data)
})
},
addRestCard:function(data,success) {
var body = JSON.stringify(data);
$http({
method: 'POST',
url: "../FailedCardApi/insertRemaining",
data: body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) {
success(response.data)
}) })
}, },
getTaskListByProcess:function(success){ getTaskListByProcess:function(success){
...@@ -498,6 +516,17 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -498,6 +516,17 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
}) })
},
updateTaskListProcess:function(json,success){
var body = JSON.stringify(json);
$http({
method: 'POST',
url: "../TaskList/updateState",
data: body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) {
success(response.data)
})
} }
} }
}); });
\ No newline at end of file
...@@ -21,11 +21,11 @@ ...@@ -21,11 +21,11 @@
<div style="padding: 15px;"> <div style="padding: 15px;">
<ul class="cl"> <ul class="cl">
<li ng-repeat="item in arr" style="float: left;margin:0 10px 10px 0"> <li ng-repeat="item in arr" style="float: left;margin:0 10px 10px 0">
<input type="text" style="height: 34px;" placeholder="请输入身份证号或受理号"> <input type="text" style="height: 34px;" class="rest" placeholder="请输入身份证号或受理号">
</li> </li>
</ul> </ul>
<div ng-if="arr.length>0" style="text-align: right;"> <div ng-if="arr.length>0" style="text-align: right;">
<button class="btn btn-primary">添加</button> <button class="btn btn-primary" ng-click="addRest()">添加</button>
<button class="btn btn-danger" ng-click="cancelAddRest()">取消</button> <button class="btn btn-danger" ng-click="cancelAddRest()">取消</button>
</div> </div>
</div> </div>
......
...@@ -22,4 +22,32 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -22,4 +22,32 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
$scope.cancelAddRest =function(){ $scope.cancelAddRest =function(){
$scope.arr = []; $scope.arr = [];
} }
$scope.addRest = function(){
var array = [];
for(var i=0;i<$scope.arr.length;i++){
array.push($(".rest")[i].value)
}
console.log(array)
ngDialog.open({
template: 'dialogs/confirmRestCards.html' + urlTimeStamp(),
width: 800,
cache: false,
closeByDocument:false,
controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) {
HttpService.getPersonInfo(array,function(data){
$scope.personInfo = data;
console.log($scope.personInfo)
})
$scope.confirmAdd = function(){
HttpService.addRestCard(array,function(data){
$scope.closeThisDialog();
MessageService.showAlert("添加成功");
console.log(data)
})
}
}]
});
}
}); });
\ No newline at end of file
...@@ -15,57 +15,65 @@ ...@@ -15,57 +15,65 @@
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;"> <div ng-if="cycleSheetData.length>0">
<ul class="nav nav-tabs"> <div class="nav-tabs-custom clearfix" style="margin-bottom: 0;" >
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]" <ul class="nav nav-tabs">
ng-repeat="tab in cycleSheetData track by $index"> <li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
<a ng-click="func($index,tab.typeCode)"> ng-repeat="tab in cycleSheetData track by $index">
<ul style="margin: 0;padding: 0;"> <a ng-click="func($index,tab.typeCode)">
<li style="font-size: 16px;">{{tab.typeName}}</li> <ul style="margin: 0;padding: 0;">
<li style="text-align: center;">{{tab.typeSum}}</li> <li style="font-size: 16px;">{{tab.typeName}}</li>
</ul> <li style="text-align: center;">{{tab.typeSum}}</li>
</a> </ul>
</li> </a>
</ul> </li>
</ul>
</div> </div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index"> <div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped"> <table class="table table-hover table-striped">
<thead> <thead>
<tr> <tr>
<th><input type="checkbox"></th> <th><input type="checkbox" ng-click="selectAll(type.countyList,$event)" ng-checked="isSelectedAll($index)"></th>
<th>保存日期</th> <th>任务单编号</th>
<th>地区</th> <th>地区</th>
<th>组数</th> <th>组数</th>
<th>受理组号</th> <th>受理组号</th>
<th>合格数量</th> <th>合格数量</th>
<th>不合格数量</th> <th>不合格数量</th>
<th>状态</th> <th>废证数量</th>
<th>特殊证件数量</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="task in type.countyList"> <tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td> <td><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.saveDate}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-name"><a>{{task.county}}</a></td> <td class="mailbox-name"><a>{{task.countyName}}</a></td>
<td class="mailbox-subject">{{task.groupCount}}</td> <td class="mailbox-subject">{{task.groupList.length}}</td>
<td class="mailbox-subject">{{task.groupNo}}</td> <td class="mailbox-subject">{{task.groupNum}}</td>
<td class="mailbox-attachment">{{task.valid}}</td> <td class="mailbox-attachment">{{task.countyValidCount}}</td>
<td class="mailbox-date">{{task.invalid}}</td> <td class="mailbox-date">{{task.countyInvalidCount}}</td>
<td class="mailbox-date text-danger">{{task.state}}</td> <td class="mailbox-date" ng-if="task.faileCount==0">{{task.faileCount}}</td>
<td class="mailbox-date text-danger" ng-if="task.faileCount!=0">{{task.faileCount}}</td>
<td class="mailbox-date">{{task.specialCount}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td> <td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<!-- /.table --> <!-- /.table -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="goes()">下发任务单</button>
</div>
</div> </div>
</div>
<div ng-if="cycleSheetData.length==0">
<h4>暂无数据</h4>
</div>
<!-- /.mail-box-messages --> <!-- /.mail-box-messages -->
</div> </div>
<!-- /.box-body --> <!-- /.box-body -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="goes()">下发任务单</button>
</div>
</div> </div>
<!-- /. box --> <!-- /. box -->
</div> </div>
......
...@@ -100,6 +100,66 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -100,6 +100,66 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
// ] // ]
// } // }
// ] // ]
//创建变量用来保存选中结果
$scope.selected = [];
var updateSelected = function (action, task) {
if (action === 'add' && $scope.selected.indexOf(task) === -1) {
$scope.selected.push(task);
}
if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1);
};
//更新某一列数据的选择
var temp = 0;
$rootScope.cardsTotal = 0;
$scope.updateSelection = function ($event, task) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
updateSelected(action, task);
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i=0;i<checks.length;i++){
if (checks[i].checked) {
sum += parseInt(checks[i].value);
}
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
};
//全选操作
$scope.selectAll = function (task,$event) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
for (var i = 0; i < task.length; i++) {
var contact = task[i];
updateSelected(action, contact);
}
if(checkbox.checked){
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i = 0; i < checks.length; i++) {
sum += parseInt(checks[i].value);
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
}else{
$rootScope.cardsTotal =0;
temp = 0;
}
};
$scope.isSelected = function (task) {
return $scope.selected.indexOf(task) >= 0;
};
$scope.isSelectedAll = function (index) {
return $scope.selected.length === $scope.cycleSheetData[index].countyList.length > 0;
};
$scope.currentTab = 0; $scope.currentTab = 0;
$scope.func = function (index) { $scope.func = function (index) {
for (var idx in $scope.cycleSheetData) { for (var idx in $scope.cycleSheetData) {
...@@ -138,11 +198,21 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -138,11 +198,21 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
} }
$scope.goes = function(){ $scope.goes = function(){
console.log(">>>>>") var checks = $(".checkOneBox:checked");
var checks = $(".icheckbox_flat-blue:checked"); var arr = [];
for (var i=0;i<checks.length;i++){ for (var i=0;i<checks.length;i++){
console.log(checks[i].value) arr.push(checks[i].value)
} }
var json={
process:$rootScope.loginData.roleList[0].process,
name:$rootScope.loginData.name,
taskIdList:arr
}
console.log(json)
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("下发完成")
})
} }
}); });
......
...@@ -47,8 +47,12 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http']) ...@@ -47,8 +47,12 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
$rootScope.tab = '/taskListSorting'; $rootScope.tab = '/taskListSorting';
break; break;
case 5: case 5:
$location.path("/taskListCutting");
$rootScope.tab = '/taskListCutting';
break; break;
case 4: case 4:
$location.path("/taskListPushing");
$rootScope.tab = '/taskListPushing';
break; break;
case 7: case 7:
$location.path("/receitp"); $location.path("/receitp");
......
...@@ -12,9 +12,14 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -12,9 +12,14 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
controller: 'taskListPreLocatingCtrl', controller: 'taskListPreLocatingCtrl',
cache: false cache: false
}); });
$routeProvider.when('/taskListQualityCheck', { $routeProvider.when('/taskListPushing', {
templateUrl: 'views/task/taskListQualityCheck.html' + urlTimeStamp(), templateUrl: 'views/task/taskListPushing.html' + urlTimeStamp(),
controller: 'taskListQualityCheckCtrl', controller: 'taskListPushingCtrl',
cache: false
});
$routeProvider.when('/taskListCutting', {
templateUrl: 'views/task/taskListCutting.html' + urlTimeStamp(),
controller: 'taskListCuttingCtrl',
cache: false cache: false
}); });
$routeProvider.when('/taskListSorting', { $routeProvider.when('/taskListSorting', {
...@@ -39,74 +44,148 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -39,74 +44,148 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.cycleSheetData = [ // $scope.cycleSheetData = [
{ // {
typeCode: '1', // typeCode: '1',
typeName: '普通证', // typeName: '普通证',
typeSum: 300, // typeSum: 300,
isActive: 'true', // isActive: 'true',
countyList: [ // countyList: [
{ // {
taskId: '20190228001', // taskId: '20190228001',
county: '西城区', // county: '西城区',
groupNo: '00234653-03687587', // groupNo: '00234653-03687587',
checkDate:'20190301', // checkDate:'20190301',
groupCount:160, // groupCount:160,
dataCheckCount:160, // dataCheckCount:160,
electricCount:160, // electricCount:160,
failedCount:0 // failedCount:0
}, // },
{ // {
taskId: '20190228001', // taskId: '20190228001',
county: '东城区', // county: '东城区',
groupNo: '00234653-03687587', // groupNo: '00234653-03687587',
checkDate:'20190301', // checkDate:'20190301',
groupCount:160, // groupCount:160,
dataCheckCount:160, // dataCheckCount:160,
electricCount:160, // electricCount:160,
failedCount:0 // failedCount:0
}, // },
{ // {
taskId: '20190228001', // taskId: '20190228001',
county: '海淀区', // county: '海淀区',
groupNo: '00234653-03687587', // groupNo: '00234653-03687587',
checkDate:'20190301', // checkDate:'20190301',
groupCount:160, // groupCount:160,
dataCheckCount:160, // dataCheckCount:160,
electricCount:160, // electricCount:160,
failedCount:0 // failedCount:0
// }
// ]
// },
// {
// typeCode: '9',
// typeName: '邮寄证',
// typeSum: 500,
// isActive: 'false',
// countyList: [
// {
// taskId: '20190228001',
// county: '东城区',
// groupNo: '00234653-03687587',
// checkDate:'20190301',
// groupCount:160,
// dataCheckCount:160,
// electricCount:160,
// failedCount:1
// },
// {
// taskId: '20190228001',
// county: '海淀区',
// groupNo: '00234653-03687587',
// checkDate:'20190301',
// groupCount:160,
// dataCheckCount:160,
// electricCount:160,
// failedCount:0
// }
// ]
// }
// ]
$scope.searchTaskList = function(){
HttpService.getTaskListByProcess(function(data){
$scope.cycleSheetData = data;
for(var i=0;i<$scope.cycleSheetData.length;i++){
if(i==$scope.currentTab){
$scope.cycleSheetData[i].isActive=true;
}else{
$scope.cycleSheetData[i].isActive=false;
} }
] }
}, console.log($scope.cycleSheetData)
{ })
typeCode: '9', }
typeName: '邮寄证', $scope.searchTaskList();
typeSum: 500,
isActive: 'false', //创建变量用来保存选中结果
countyList: [ $scope.selected = [];
{ var updateSelected = function (action, task) {
taskId: '20190228001', if (action === 'add' && $scope.selected.indexOf(task) === -1) {
county: '东城区', $scope.selected.push(task);
groupNo: '00234653-03687587', }
checkDate:'20190301', if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1);
groupCount:160, };
dataCheckCount:160, //更新某一列数据的选择
electricCount:160, var temp = 0;
failedCount:1 $rootScope.cardsTotal = 0;
}, $scope.updateSelection = function ($event, task) {
{ var checkbox = $event.target;
taskId: '20190228001', var action = (checkbox.checked ? 'add' : 'remove');
county: '海淀区', updateSelected(action, task);
groupNo: '00234653-03687587',
checkDate:'20190301', var sum = 0;
groupCount:160, var checks = document.getElementsByClassName("checkOneBox");
dataCheckCount:160, for (var i=0;i<checks.length;i++){
electricCount:160, if (checks[i].checked) {
failedCount:0 sum += parseInt(checks[i].value);
} }
] }
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
};
//全选操作
$scope.selectAll = function (task,$event) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
for (var i = 0; i < task.length; i++) {
var contact = task[i];
updateSelected(action, contact);
} }
]
if(checkbox.checked){
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i = 0; i < checks.length; i++) {
sum += parseInt(checks[i].value);
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
}else{
$rootScope.cardsTotal =0;
temp = 0;
}
};
$scope.isSelected = function (task) {
return $scope.selected.indexOf(task) >= 0;
};
$scope.isSelectedAll = function (index) {
return $scope.selected.length === $scope.cycleSheetData[index].countyList.length > 0;
};
$scope.currentTab = 0; $scope.currentTab = 0;
$scope.func = function (index) { $scope.func = function (index) {
for (var idx in $scope.cycleSheetData) { for (var idx in $scope.cycleSheetData) {
...@@ -146,6 +225,25 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -146,6 +225,25 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
}); });
} }
$scope.goes = function(){
var checks = $(".checkOneBox");
var arr = [];
for (var i=0;i<checks.length;i++){
arr.push(checks[i].value)
}
var json={
process:$rootScope.loginData.roleList[0].process,
name:$rootScope.loginData.name,
machine:$("#print").val(),
taskIdList:arr
}
console.log(json)
// HttpService.updateTaskListProcess(json,function(data){
// $scope.searchTaskList();
// MessageService.showAlert("下发完成")
// })
}
}) })
.controller('taskListPreLocatingCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('taskListPreLocatingCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
...@@ -167,74 +265,78 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -167,74 +265,78 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
}) })
} }
$scope.cycleSheetData = [ $scope.searchTaskList = function(){
{ HttpService.getTaskListByProcess(function(data){
typeCode: '1', $scope.cycleSheetData = data;
typeName: '普通证', for(var i=0;i<$scope.cycleSheetData.length;i++){
typeSum: 300, if(i==$scope.currentTab){
isActive: 'true', $scope.cycleSheetData[i].isActive=true;
countyList: [ }else{
{ $scope.cycleSheetData[i].isActive=false;
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:0
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:0
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:0
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:1
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:0
} }
] }
console.log($scope.cycleSheetData)
})
}
$scope.searchTaskList();
//创建变量用来保存选中结果
$scope.selected = [];
var updateSelected = function (action, task) {
if (action === 'add' && $scope.selected.indexOf(task) === -1) {
$scope.selected.push(task);
}
if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1);
};
//更新某一列数据的选择
var temp = 0;
$rootScope.cardsTotal = 0;
$scope.updateSelection = function ($event, task) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
updateSelected(action, task);
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i=0;i<checks.length;i++){
if (checks[i].checked) {
sum += parseInt(checks[i].value);
}
} }
] $rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
};
//全选操作
$scope.selectAll = function (task,$event) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
for (var i = 0; i < task.length; i++) {
var contact = task[i];
updateSelected(action, contact);
}
if(checkbox.checked){
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i = 0; i < checks.length; i++) {
sum += parseInt(checks[i].value);
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
}else{
$rootScope.cardsTotal =0;
temp = 0;
}
};
$scope.isSelected = function (task) {
return $scope.selected.indexOf(task) >= 0;
};
$scope.isSelectedAll = function (index) {
return $scope.selected.length === $scope.cycleSheetData[index].countyList.length > 0;
};
$scope.getPoliceList = function(taskId){ $scope.getPoliceList = function(taskId){
ngDialog.open({ ngDialog.open({
...@@ -275,8 +377,29 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -275,8 +377,29 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope.currentTab = index; $scope.currentTab = index;
} }
$scope.goes = function(){
var checks = $(".checkOneBox:checked");
var arr = [];
for (var i=0;i<checks.length;i++){
arr.push(checks[i].value)
}
var json={
process:$rootScope.loginData.roleList[0].process,
name:$rootScope.loginData.name,
taskIdList:arr
}
console.log(json)
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("转出完成")
})
}
}) })
.controller('taskListQualityCheckCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('taskListPushingCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
//Date picker //Date picker
$('#datepicker').datetimepicker({ $('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒 minView: "month", //选择日期后,不会再跳转去选择时分秒
...@@ -287,85 +410,107 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -287,85 +410,107 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) { $scope.searchTaskList = function(){
$scope.records = data; HttpService.getTaskListByProcess(function(data){
$scope.cycleSheetData = data;
for(var i=0;i<$scope.cycleSheetData.length;i++){
if(i==$scope.currentTab){
$scope.cycleSheetData[i].isActive=true;
}else{
$scope.cycleSheetData[i].isActive=false;
}
}
console.log($scope.cycleSheetData)
}) })
} }
$scope.searchTaskList();
$scope.cycleSheetData = [ //创建变量用来保存选中结果
{ $scope.selected = [];
typeCode: '1', var updateSelected = function (action, task) {
typeName: '普通证', if (action === 'add' && $scope.selected.indexOf(task) === -1) {
typeSum: 300, $scope.selected.push(task);
isActive: 'true',
countyList: [
{
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
outStoreCount:160,
enterStoreCount:0,
failedCount:1
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
outStoreCount:160,
enterStoreCount:0,
failedCount:1
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
outStoreCount:160,
enterStoreCount:0,
failedCount:0
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
outStoreCount:160,
enterStoreCount:0,
failedCount:0
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
outStoreCount:160,
enterStoreCount:0,
failedCount:2
}
]
} }
] if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1);
};
//更新某一列数据的选择
var temp = 0;
$rootScope.cardsTotal = 0;
$scope.updateSelection = function ($event, task) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
updateSelected(action, task);
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i=0;i<checks.length;i++){
if (checks[i].checked) {
sum += parseInt(checks[i].value);
}
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
};
//全选操作
$scope.selectAll = function (task,$event) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
for (var i = 0; i < task.length; i++) {
var contact = task[i];
updateSelected(action, contact);
}
if(checkbox.checked){
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i = 0; i < checks.length; i++) {
sum += parseInt(checks[i].value);
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
}else{
$rootScope.cardsTotal =0;
temp = 0;
}
};
$scope.isSelected = function (task) {
return $scope.selected.indexOf(task) >= 0;
};
$scope.isSelectedAll = function (index) {
return $scope.selected.length === $scope.cycleSheetData[index].countyList.length > 0;
};
$scope.getPoliceList = function(taskId){
ngDialog.open({
template: 'dialogs/policeList.html' + urlTimeStamp(),
width: 600,
cache: false,
closeByDocument:false,
controller: ['$scope', function ($scope) {
$scope.policeList = [
{
policeName:'东城派出所',
dataCheckCount:100,
printCount:0,
qualityCheckCount:0,
failedCount:0
},
{
policeName:'西城派出所',
dataCheckCount:200,
printCount:0,
qualityCheckCount:0,
failedCount:1
}
]
}]
});
};
$scope.currentTab = 0; $scope.currentTab = 0;
$scope.func = function (index) { $scope.func = function (index) {
for (var idx in $scope.cycleSheetData) { for (var idx in $scope.cycleSheetData) {
...@@ -378,6 +523,109 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -378,6 +523,109 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope.currentTab = index; $scope.currentTab = index;
} }
$scope.goes = function(){
var checks = $(".checkOneBox:checked");
var arr = [];
for (var i=0;i<checks.length;i++){
arr.push(checks[i].value)
}
var json={
process:$rootScope.loginData.roleList[0].process,
name:$rootScope.loginData.name,
taskIdList:arr
}
console.log(json)
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("下发完成")
})
}
})
.controller('taskListCuttingCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
//Date picker
$('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.searchTaskList = function(){
HttpService.getTaskListByProcess(function(data){
$scope.cycleSheetData = data;
for(var i=0;i<$scope.cycleSheetData.length;i++){
if(i==$scope.currentTab){
$scope.cycleSheetData[i].isActive=true;
}else{
$scope.cycleSheetData[i].isActive=false;
}
}
console.log($scope.cycleSheetData)
})
}
$scope.searchTaskList();
//创建变量用来保存选中结果
$scope.selected = [];
var updateSelected = function (action, task) {
if (action === 'add' && $scope.selected.indexOf(task) === -1) {
$scope.selected.push(task);
}
if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1);
};
//更新某一列数据的选择
var temp = 0;
$rootScope.cardsTotal = 0;
$scope.updateSelection = function ($event, task) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
updateSelected(action, task);
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i=0;i<checks.length;i++){
if (checks[i].checked) {
sum += parseInt(checks[i].value);
}
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
};
//全选操作
$scope.selectAll = function (task,$event) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
for (var i = 0; i < task.length; i++) {
var contact = task[i];
updateSelected(action, contact);
}
if(checkbox.checked){
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i = 0; i < checks.length; i++) {
sum += parseInt(checks[i].value);
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
}else{
$rootScope.cardsTotal =0;
temp = 0;
}
};
$scope.isSelected = function (task) {
return $scope.selected.indexOf(task) >= 0;
};
$scope.isSelectedAll = function (index) {
return $scope.selected.length === $scope.cycleSheetData[index].countyList.length > 0;
};
$scope.getPoliceList = function(taskId){ $scope.getPoliceList = function(taskId){
ngDialog.open({ ngDialog.open({
template: 'dialogs/policeList.html' + urlTimeStamp(), template: 'dialogs/policeList.html' + urlTimeStamp(),
...@@ -403,185 +651,36 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -403,185 +651,36 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
] ]
}] }]
}); });
} };
$scope.enterStore = function(){ $scope.currentTab = 0;
var cycleIdList = []; $scope.func = function (index) {
var checks = $(".checkCkBox"); for (var idx in $scope.cycleSheetData) {
for (var i=0;i<checks.length;i++){ if (index == idx) {
if(checks[i].checked == true){ $scope.cycleSheetData[idx].isActive = true;
cycleIdList.push(checks[i].name); } else {
} $scope.cycleSheetData[idx].isActive = false;
}
if(cycleIdList.length==0){
MessageService.showAlert("请先选择要操作的地市。")
}else{
console.log(cycleIdList)
HttpService.getCountyListDataAtCk(cycleIdList,function(data){
ngDialog.open({
template: 'dialogs/addEnterStore.html' + urlTimeStamp(),
width: '65%',
cache: false,
controller: ['$scope', '$rootScope', 'HttpService', function ($scope, $rootScope, HttpService) {
$scope.countyCode = 'countyCode';
$scope.countyList = data.respData;
console.log($scope.countyList)
$scope.updateEnterSum = function(countycode){
$scope.showSum = countycode;
$scope.saveEnterStoreSum = function(enterStoreSum,leaveStoreSum,cycleSheetId,countyCode){
var arr = [];
var string = cycleSheetId+"_"+countyCode+"_0_"+enterStoreSum+"_"+leaveStoreSum+"_0"
arr.push(string)
console.log(arr)
HttpService.updateEnterStoreSum(arr,function(data){
HttpService.getCountyListDataAtCk(cycleIdList,function(data){
$scope.countyList = data.respData;
$scope.showSum = -1;
var date = $("#wdate").val();
var card = $("#selectPing").val();
getCycleSheetData(date, 0,card)
})
})
}
$scope.cancelEnterStoreSum = function(){
$scope.showSum = -1;
}
}
$scope.getAllCkCountyBox = function() {
var checks = $("#checkCkAllCountyBox");
if(checks.prop("checked") == true){
$(".checkCkCountyBox").prop("checked",true);
}else{
$(".checkCkCountyBox").prop("checked",false);
}
}
$scope.saveTheseCountySum = function(){
var countyList = [];
var checksCounty = $(".checkCkCountyBox");
for (var i=0;i<checksCounty.length;i++){
if(checksCounty[i].checked == true){
countyList.push(checksCounty[i].value);
}
}
console.log(countyList)
$scope.showAlertCk = false;
$scope.showUpdateSuccessMsg = false;
if(countyList.length==0){
$scope.showAlertCk = true;
$scope.alertCk = '请先选择区县。'
}else{
HttpService.updateEnterStoreSum(countyList,function(data){
$("#checkCkAllCountyBox").prop("checked",false);
HttpService.getCountyListDataAtCk(cycleIdList,function(data){
$scope.countyList = data.respData;
$scope.showSum = -1;
var date = $("#wdate").val();
var card = $("#selectPing").val();
getCycleSheetData(date, 0,card)
})
$scope.showUpdateSuccessMsg = true;
$scope.updateSuccessMsg = data.respData.string;
})
}
}
}]
})
})
} }
}
$scope.currentTab = index;
} }
$scope.leaveStore = function(){ $scope.goes = function(){
var cycleIdList = []; var checks = $(".checkOneBox:checked");
var checks = $(".checkCkBox"); var arr = [];
for (var i=0;i<checks.length;i++){ for (var i=0;i<checks.length;i++){
if(checks[i].checked == true){ arr.push(checks[i].value)
cycleIdList.push(checks[i].name);
}
} }
if(cycleIdList.length==0){ var json={
MessageService.showAlert("请先选择要操作的地市。") process:$rootScope.loginData.roleList[0].process,
}else{ name:$rootScope.loginData.name,
console.log(cycleIdList) taskIdList:arr
HttpService.getCountyListDataAtCk(cycleIdList,function(data){
ngDialog.open({
template: 'dialogs/addLeaveStore.html' + urlTimeStamp(),
width: '65%',
cache: false,
controller: ['$scope', '$rootScope', 'HttpService', function ($scope, $rootScope, HttpService) {
$scope.countyCode = 'countyCode';
$scope.countyList = data.respData;
console.log($scope.countyList)
$scope.updateLeaveSum = function(countycode){
$scope.showSum = countycode;
$scope.saveLeaveStoreSum = function(leaveStoreSum,enterStoreSum,cycleSheetId,countyCode){
var arr = [];
var string = cycleSheetId+"_"+countyCode+"_0_"+enterStoreSum+"_"+leaveStoreSum+"_0"
arr.push(string)
console.log(arr)
HttpService.updateEnterStoreSum(arr,function(data){
HttpService.getCountyListDataAtCk(cycleIdList,function(data){
$scope.countyList = data.respData;
$scope.showSum = -1;
var date = $("#wdate").val();
var card = $("#selectPing").val();
getCycleSheetData(date, 0,card)
})
})
}
$scope.cancelLeaveStoreSum = function(){
$scope.showSum = -1;
}
}
$scope.getAllCkCountyBox = function() {
var checks = $("#checkCkAllCountyBox");
if(checks.prop("checked") == true){
$(".checkCkCountyBox").prop("checked",true);
}else{
$(".checkCkCountyBox").prop("checked",false);
}
}
$scope.saveTheseCountySum = function(){
var countyList = [];
var checksCounty = $(".checkCkCountyBox");
for (var i=0;i<checksCounty.length;i++){
if(checksCounty[i].checked == true){
countyList.push(checksCounty[i].value);
}
}
console.log(countyList)
$scope.showAlertCk = false;
$scope.showUpdateSuccessMsg = false;
if(countyList.length==0){
$scope.showAlertCk = true;
$scope.alertCk = '请先选择区县。'
}else{
HttpService.updateEnterStoreSum(countyList,function(data){
$("#checkCkAllCountyBox").prop("checked",false);
HttpService.getCountyListDataAtCk(cycleIdList,function(data){
$scope.countyList = data.respData;
$scope.showSum = -1;
var date = $("#wdate").val();
var card = $("#selectPing").val();
getCycleSheetData(date, 0,card)
})
$scope.showUpdateSuccessMsg = true;
$scope.updateSuccessMsg = data.respData.string;
})
}
}
}]
})
})
} }
console.log(json)
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("下发完成")
})
} }
...@@ -600,96 +699,79 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -600,96 +699,79 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.searchRecordsNotMatched = function () { $scope.searchTaskList = function(){
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) { HttpService.getTaskListByProcess(function(data){
$scope.records = data; $scope.cycleSheetData = data;
for(var i=0;i<$scope.cycleSheetData.length;i++){
if(i==$scope.currentTab){
$scope.cycleSheetData[i].isActive=true;
}else{
$scope.cycleSheetData[i].isActive=false;
}
}
console.log($scope.cycleSheetData)
}) })
} }
$scope.searchTaskList();
$scope.cycleSheetData = [ //创建变量用来保存选中结果
{ $scope.selected = [];
typeCode: '1', var updateSelected = function (action, task) {
typeName: '普通证', if (action === 'add' && $scope.selected.indexOf(task) === -1) {
typeSum: 300, $scope.selected.push(task);
isActive: 'true',
countyList: [
{
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:0,
checkCount:160
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:0,
checkCount:150
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:0,
checkCount:160
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:1,
checkCount:140
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCount:0,
checkCount:0
}
]
} }
] if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1);
$scope.currentTab = 0; };
$scope.func = function (index) { //更新某一列数据的选择
for (var idx in $scope.cycleSheetData) { var temp = 0;
if (index == idx) { $rootScope.cardsTotal = 0;
$scope.cycleSheetData[idx].isActive = true; $scope.updateSelection = function ($event, task) {
} else { var checkbox = $event.target;
$scope.cycleSheetData[idx].isActive = false; var action = (checkbox.checked ? 'add' : 'remove');
updateSelected(action, task);
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i=0;i<checks.length;i++){
if (checks[i].checked) {
sum += parseInt(checks[i].value);
} }
} }
$scope.currentTab = index; $rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
} temp = sum;
};
//全选操作
$scope.selectAll = function (task,$event) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
for (var i = 0; i < task.length; i++) {
var contact = task[i];
updateSelected(action, contact);
}
if(checkbox.checked){
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i = 0; i < checks.length; i++) {
sum += parseInt(checks[i].value);
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
}else{
$rootScope.cardsTotal =0;
temp = 0;
}
};
$scope.isSelected = function (task) {
return $scope.selected.indexOf(task) >= 0;
};
$scope.isSelectedAll = function (index) {
return $scope.selected.length === $scope.cycleSheetData[index].countyList.length > 0;
};
$scope.getPoliceList = function(taskId){ $scope.getPoliceList = function(taskId){
ngDialog.open({ ngDialog.open({
template: 'dialogs/policeList.html' + urlTimeStamp(), template: 'dialogs/policeList.html' + urlTimeStamp(),
...@@ -715,5 +797,35 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -715,5 +797,35 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
] ]
}] }]
}); });
};
$scope.currentTab = 0;
$scope.func = function (index) {
for (var idx in $scope.cycleSheetData) {
if (index == idx) {
$scope.cycleSheetData[idx].isActive = true;
} else {
$scope.cycleSheetData[idx].isActive = false;
}
}
$scope.currentTab = index;
}
$scope.goes = function(){
var checks = $(".checkOneBox:checked");
var arr = [];
for (var i=0;i<checks.length;i++){
arr.push(checks[i].value)
}
var json={
process:$rootScope.loginData.roleList[0].process,
name:$rootScope.loginData.name,
taskIdList:arr
}
console.log(json)
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("下发完成")
})
} }
}) })
\ No newline at end of file
<div class="content row">
<div class="col-md-12" style="margin-top:20px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="searchToday()">当前</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div ng-if="cycleSheetData.length>0">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
<li style="float: right; padding-right: 30px;">
<h4>任务总数:8001</h4>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox" ng-click="selectAll(type.countyList,$event)" ng-checked="isSelectedAll($index)"></th>
<th>任务单编号</th>
<th>核验日期</th>
<th>地区</th>
<th>组数</th>
<th>组号</th>
<th>数据核验数量</th>
<th>电写入数量</th>
<th>废证数量</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.checkDate}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td>
<td class="mailbox-subject">{{task.groupList.length}}</td>
<td class="mailbox-subject">{{task.groupNum}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</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 class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div>
</div>
</div>
<div ng-if="cycleSheetData.length==0">
<h4>暂无数据</h4>
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
<!-- /. box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
</div>
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;"> <div ng-if="cycleSheetData.length>0">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]" <li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index"> ng-repeat="tab in cycleSheetData track by $index">
...@@ -31,11 +32,11 @@ ...@@ -31,11 +32,11 @@
</li> </li>
</ul> </ul>
</div> </div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index"> <div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped"> <table class="table table-hover table-striped">
<thead> <thead>
<tr> <tr>
<th><input type="checkbox"></th> <th><input type="checkbox" ng-click="selectAll(type.countyList,$event)" ng-checked="isSelectedAll($index)"></th>
<th>任务单编号</th> <th>任务单编号</th>
<th>核验日期</th> <th>核验日期</th>
<th>地区</th> <th>地区</th>
...@@ -49,28 +50,33 @@ ...@@ -49,28 +50,33 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="task in type.countyList"> <tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td> <td><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.checkDate}}</td> <td class="mailbox-subject">{{task.checkDate}}</td>
<td class="mailbox-subject"><a>{{task.county}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
<td class="mailbox-subject">{{task.groupCount}}</td> <td class="mailbox-subject">{{task.groupList.length}}</td>
<td class="mailbox-subject">{{task.groupNo}}</td> <td class="mailbox-subject">{{task.groupNum}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td> <td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</td> <td class="mailbox-attachment">{{task.electricCount}}</td>
<td ng-if="task.failedCount!=0" class="mailbox-subject" style="color: red;">{{task.failedCount}}</td> <td ng-if="task.faileCount!=0" class="mailbox-subject" style="color: red;">{{task.faileCount}}</td>
<td ng-if="task.failedCount==0" class="mailbox-subject">{{task.failedCount}}</td> <td ng-if="task.faileCount==0" class="mailbox-subject">{{task.faileCount}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td> <td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<!-- /.table --> <!-- /.table -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div>
</div> </div>
</div>
<div ng-if="cycleSheetData.length==0">
<h4>暂无数据</h4>
</div>
<!-- /.mail-box-messages --> <!-- /.mail-box-messages -->
</div> </div>
<!-- /.box-body --> <!-- /.box-body -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div>
</div> </div>
<!-- /. box --> <!-- /. box -->
</div> </div>
......
...@@ -15,28 +15,29 @@ ...@@ -15,28 +15,29 @@
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;"> <div ng-if="cycleSheetData.length>0">
<ul class="nav nav-tabs"> <div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]" <ul class="nav nav-tabs">
ng-repeat="tab in cycleSheetData track by $index"> <li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
<a ng-click="func($index,tab.typeCode)"> ng-repeat="tab in cycleSheetData track by $index">
<ul style="margin: 0;padding: 0;"> <a ng-click="func($index,tab.typeCode)">
<li style="font-size: 16px;">{{tab.typeName}}</li> <ul style="margin: 0;padding: 0;">
<li style="text-align: center;">{{tab.typeSum}}</li> <li style="font-size: 16px;">{{tab.typeName}}</li>
</ul> <li style="text-align: center;">{{tab.typeSum}}</li>
</a> </ul>
</li> </a>
<li class="pull-right" style="padding-right: 20px;"> </li>
<h5>任务总数:8001</h5> <li class="pull-right" style="padding-right: 20px;">
<h4>余证数:1</h4> <h5>任务总数:8001</h5>
</li> <h4>余证数:1</h4>
</ul> </li>
</div> </ul>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index"> </div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped"> <table class="table table-hover table-striped">
<thead> <thead>
<tr> <tr>
<th><input type="checkbox"></th> <th><input type="checkbox" ng-click="selectAll(type.countyList,$event)" ng-checked="isSelectedAll($index)"></th>
<th>任务单编号</th> <th>任务单编号</th>
<th>核验日期</th> <th>核验日期</th>
<th>地区</th> <th>地区</th>
...@@ -50,38 +51,40 @@ ...@@ -50,38 +51,40 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="task in type.countyList"> <tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td> <td><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.checkDate}}</td> <td class="mailbox-subject">{{task.checkDate}}</td>
<td class="mailbox-subject"><a>{{task.county}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
<td class="mailbox-subject">{{task.groupCount}}</td> <td class="mailbox-subject">{{task.groupList.length}}</td>
<td class="mailbox-subject">{{task.groupNo}}</td> <td class="mailbox-subject">{{task.groupNum}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td> <td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</td> <td class="mailbox-attachment">{{task.electricCount}}</td>
<td ng-if="task.failedCount!=0" class="mailbox-subject" style="color: red;">{{task.failedCount}}</td> <td ng-if="task.faileCount!=0" class="mailbox-subject" style="color: red;">{{task.faileCount}}</td>
<td ng-if="task.failedCount==0" class="mailbox-subject">{{task.failedCount}}</td> <td ng-if="task.faileCount==0" class="mailbox-subject">{{task.faileCount}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td> <td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<!-- /.table --> <!-- /.table -->
</div> <div class="box-footer">
<!-- /.mail-box-messages --> <div class="pull-right" style="margin-left: 10px;">
</div> <button class="btn btn-primary" ng-click="goes()">转出任务单</button>
<!-- /.box-body --> </div>
<div class="box-footer"> <div class="pull-right">
<select class="form-control select2" id="print" style="border-radius:5px">
<div class="pull-right" style="margin-left: 10px;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div>
<div class="pull-right">
<select class="form-control select2" id="print" style="border-radius:5px">
<option value="1">一号打印机</option> <option value="1">一号打印机</option>
<option value="2">二号打印机</option> <option value="2">二号打印机</option>
</select> </select>
</div>
</div> </div>
</div>
</div>
<!-- /.mail-box-messages -->
<div ng-if="cycleSheetData.length==0">
<h4>暂无数据</h4>
</div>
</div> </div>
<!-- /.box-body -->
</div> </div>
<!-- /. box --> <!-- /. box -->
</div> </div>
......
<div class="content row">
<div class="col-md-12" style="margin-top:20px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="searchToday()">当前</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div ng-if="cycleSheetData.length>0">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
<li style="float: right; padding-right: 30px;">
<h4>任务总数:8001</h4>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox" ng-click="selectAll(type.countyList,$event)" ng-checked="isSelectedAll($index)"></th>
<th>任务单编号</th>
<th>核验日期</th>
<th>地区</th>
<th>组数</th>
<th>组号</th>
<th>数据核验数量</th>
<th>电写入数量</th>
<th>废证数量</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.checkDate}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td>
<td class="mailbox-subject">{{task.groupList.length}}</td>
<td class="mailbox-subject">{{task.groupNum}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</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 class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div>
</div>
</div>
<div ng-if="cycleSheetData.length==0">
<h4>暂无数据</h4>
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
<!-- /. box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
</div>
<div class="content row">
<div class="col-md-12" style="margin-top:20px;">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="searchToday()">当前</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
<li style="float: right; padding-right: 30px;">
<h4>任务总数:8001</h4>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox"></th>
<th>任务单编号</th>
<th>核验日期</th>
<th>地区</th>
<th>组数</th>
<th>组号</th>
<th>数据核验</th>
<th>废证数量</th>
<th>出库数量</th>
<th>入库数量</th>
<th>操作</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.checkDate}}</td>
<td class="mailbox-subject"><a>{{task.county}}</a></td>
<td class="mailbox-subject">{{task.groupCount}}</td>
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td ng-if="task.failedCount>0" class="mailbox-subject" style="color: red;">{{task.failedCount}}</td>
<td ng-if="task.failedCount==0" class="mailbox-subject">{{task.failedCount}}</td>
<td class="mailbox-attachment">{{task.outStoreCount}}</td>
<td class="mailbox-subject">{{task.enterStoreCount}}</td>
<td><button class="btn btn-primary">完成</button></td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="outStore()">出库</button>
<button class="btn btn-primary" ng-click="enterStore()">入库</button>
</div>
</div>
<!-- /. box -->
</div>
<!-- /.col -->
<!-- /.row -->
</div>
...@@ -13,58 +13,60 @@ ...@@ -13,58 +13,60 @@
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;"> <div ng-if="cycleSheetData.length>0">
<ul class="nav nav-tabs"> <div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]" <ul class="nav nav-tabs">
ng-repeat="tab in cycleSheetData track by $index"> <li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
<a ng-click="func($index,tab.typeCode)"> ng-repeat="tab in cycleSheetData track by $index">
<ul style="margin: 0;padding: 0;"> <a ng-click="func($index,tab.typeCode)">
<li style="font-size: 16px;">{{tab.typeName}}</li> <ul style="margin: 0;padding: 0;">
<li style="text-align: center;">{{tab.typeSum}}</li> <li style="font-size: 16px;">{{tab.typeName}}</li>
</ul> <li style="text-align: center;">{{tab.typeSum}}</li>
</a> </ul>
</li> </a>
</ul> </li>
</div> </ul>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index"> </div>
<table class="table table-hover table-striped"> <div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<thead> <table class="table table-hover table-striped">
<tr> <thead>
<th><input type="checkbox"></th> <tr>
<th>任务单编号</th> <th><input type="checkbox" ng-click="selectAll(type.countyList,$event)" ng-checked="isSelectedAll($index)"></th>
<th>核验日期</th> <th>任务单编号</th>
<th>地区</th> <th>核验日期</th>
<th>组数</th> <th>地区</th>
<th>组号</th> <th>组数</th>
<th>数据核验数</th> <th>组号</th>
<th>电写入数</th> <th>数据核验数</th>
<th>废证数</th> <th>电写入数</th>
<th>复核数量</th> <th>废证数</th>
<th></th> <th>复核数量</th>
<th></th> <th></th>
</tr> <th></th>
</thead> </tr>
<tbody> </thead>
<tr ng-repeat="task in type.countyList"> <tbody>
<td><input type="checkbox" class="icheckbox_flat-blue"></td> <tr ng-repeat="task in type.countyList">
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-subject">{{task.checkDate}}</td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject"><a>{{task.county}}</a></td> <td class="mailbox-subject">{{task.checkDate}}</td>
<td class="mailbox-subject">{{task.groupCount}}</td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
<td class="mailbox-subject">{{task.groupNo}}</td> <td class="mailbox-subject">{{task.groupList.length}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td> <td class="mailbox-subject">{{task.groupNum}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</td> <td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td ng-if="task.failedCount!=0" class="mailbox-subject" style="color: red;">{{task.failedCount}}</td> <td class="mailbox-attachment">{{task.electricCount}}</td>
<td ng-if="task.failedCount==0" class="mailbox-subject">{{task.failedCount}}</td> <td ng-if="task.faileCount!=0" class="mailbox-subject" style="color: red;">{{task.faileCount}}</td>
<td class="mailbox-subject">{{task.checkCount}}</td> <td ng-if="task.faileCount==0" class="mailbox-subject">{{task.faileCount}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">派出所列表</a></td> <td class="mailbox-subject">{{task.checkCount}}</td>
<td class="mailbox-subject"><button class="btn btn-primary">打印封条</button></td> <td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">派出所列表</a></td>
</tr> <td class="mailbox-subject"><button class="btn btn-primary">打印封条</button></td>
</tbody> </tr>
</table> </tbody>
<!-- /.table --> </table>
</div> <!-- /.table -->
<!-- /.mail-box-messages --> </div>
<!-- /.mail-box-messages -->
</div>
</div> </div>
<!-- /.box-body --> <!-- /.box-body -->
</div> </div>
......
...@@ -41,84 +41,78 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -41,84 +41,78 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
$scope.show = true; $scope.show = true;
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
var getUrl = function(url){ var getCountJson = function(){
var json={};
if (angular.isDefined($scope.applicantName)) { if (angular.isDefined($scope.applicantName)) {
url = url + 'sqrxm=' + $scope.applicantName + '&'; json.applicantName=$scope.applicantName;
}else{
json.applicantName='';
} }
if (angular.isDefined($scope.orderNo)) { if (angular.isDefined($scope.orderNo)) {
url = url + 'ddh=' + $scope.orderNo + '&';
} json.orderNumber=$scope.orderNo;
if (angular.isDefined($scope.number)) { }else{
url = url + 'sequence=' + $scope.number + '&'; json.orderNumber='';
} }
if ($("#print").val() == 1 || $("#print").val() == -1) { if ($("#print").val() == 1 || $("#print").val() == -1) {
url = url + 'hasPrinted=' + $("#print").val() + '&'; json.state=$("#print").val();
}else {
json.state='';
} }
if (angular.isDefined($scope.gkxx)) { if (angular.isDefined($scope.gkxx)) {
url = url + 'gkxx=' + $scope.gkxx + '&'; json.latticeMouthInformation = $scope.gkxx
}else {
json.latticeMouthInformation = '';
} }
if ($("#county").val() != null) { if ($("#county").val() != null) {
for (var i = 0; i < $("#county").val().length; i++) { json.getToCounty=$("#county").val();
url = url + 'djx=' + ($("#county").val())[i] + '&'; }else{
} json.getToCounty='';
}
if ($("#datepicker").val() == '') {
url = url + 'gmtCreat=' + $scope.choseDate + '&';
} }
if ($("#datepicker").val() != '') { json.uploadDate = $("#datepicker").val();
url = url + 'gmtCreat=' + $("#datepicker").val() + '&'; return json;
}
if ($scope.paginationConf.currentPage == 0) {
url = url + 'index=' + ($scope.paginationConf.currentPage * $scope.paginationConf.itemsPerPage) + '&pageSize=' + $scope.paginationConf.itemsPerPage;
}
if ($scope.paginationConf.currentPage > 0) {
url = url + 'index=' + (($scope.paginationConf.currentPage - 1) * $scope.paginationConf.itemsPerPage) + '&pageSize=' + $scope.paginationConf.itemsPerPage;
}
return url + '&t=' + Math.floor(Date.now());
} }
var getCountAndDownloadUrl = function (url) { var getJson = function () {
var json={};
if (angular.isDefined($scope.applicantName)) { if (angular.isDefined($scope.applicantName)) {
url = url + 'sqrxm=' + $scope.applicantName + '&'; json.applicantName=$scope.applicantName;
}else{
json.applicantName='';
} }
if (angular.isDefined($scope.orderNo)) { if (angular.isDefined($scope.orderNo)) {
url = url + 'ddh=' + $scope.orderNo + '&';
} json.orderNumber=$scope.orderNo;
if (angular.isDefined($scope.number)) { }else{
url = url + 'sequence=' + $scope.number + '&'; json.orderNumber='';
} }
if ($("#print").val() == 1 || $("#print").val() == -1) { if ($("#print").val() == 1 || $("#print").val() == -1) {
url = url + 'hasPrinted=' + $("#print").val() + '&'; json.state=$("#print").val();
}else {
json.state='';
} }
if (angular.isDefined($scope.gkxx)) { if (angular.isDefined($scope.gkxx)) {
url = url + 'gkxx=' + $scope.gkxx + '&'; json.latticeMouthInformation = $scope.gkxx
}else {
json.latticeMouthInformation = '';
} }
if ($("#county").val() != null) { if ($("#county").val() != null) {
for (var i = 0; i < $("#county").val().length; i++) { json.getToCounty=$("#county").val();
url = url + 'djx=' + ($("#county").val())[i] + '&'; }else{
} json.getToCounty='';
} }
if ($("#datepicker").val() == '') { json.uploadDate = $("#datepicker").val();
url = url + 'gmtCreat=' + $scope.choseDate + '&'; json.firstIndex=$scope.paginationConf.currentPage;
} json.pageSize=$scope.paginationConf.itemsPerPage;
if ($("#datepicker").val() != '') { return json;
url = url + 'gmtCreat=' + $("#datepicker").val() + '&';
}
return url + 't=' + Math.floor(Date.now());
} }
$scope.postData = []; $scope.postData = [];
$scope.paginationConf.totalItems = 0 $scope.paginationConf.totalItems = 0
$scope.doQuery = function () { $scope.doQuery = function () {
$scope.show = true; $scope.show = true;
var url = '../api/idCard/recordsByPaging?'; // HttpService.getRecordsCount(getCountJson, function (data) {
var getCountUrl = '../api/idCard/recordCount?'; // $scope.paginationConf.totalItems = data;
console.log($scope.applicantName, $scope.orderNo, $scope.number, $("#print").val(), $scope.gkxx, $("#county").val(), $("#datepicker").val(), ($scope.paginationConf.currentPage * $scope.paginationConf.itemsPerPage), $scope.paginationConf.itemsPerPage) // })
console.log(encodeURI(getUrl(url))); HttpService.searchPostData(getJson(), function (data) {
console.log(encodeURI(getCountAndDownloadUrl(getCountUrl)));
HttpService.getRecordsCount(encodeURI(getCountAndDownloadUrl(getCountUrl)), function (data) {
$scope.paginationConf.totalItems = data;
})
HttpService.searchPostData(encodeURI(getUrl(url)), function (data) {
$scope.postData = data; $scope.postData = data;
console.log(data) console.log(data)
}) })
......
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