Commit 62750a6f authored by liboyang's avatar liboyang

新增页面

parent cc82eaf3
......@@ -108,12 +108,16 @@ angular.module('AvatarCheck', [
}
if ($location.path() == "/tagPrint") {
$rootScope.tab = '/tagPrint';
$("body").addClass("sidebar-collapse");
}
console.log($rootScope.tab)
$scope.getFocus = function (index) {
if(index=='/tagPrint'){
$("body").addClass("sidebar-collapse");
}
$rootScope.tab = index;
$rootScope.close = 0;
console.log($rootScope.tab)
......
......@@ -67,7 +67,7 @@
<!-- /.box-body -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary">创建任务单</button>
<button class="btn btn-primary">创建并下发任务单</button>
<button class="btn btn-primary">下发任务单</button>
</div>
</div>
<!-- /. box -->
......
......@@ -38,18 +38,14 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
console.log(resp)
var userAgent = window.navigator.userAgent;
if(resp.data.status==200){
if(userAgent.indexOf('.NET')!=-1){
window.location.reload();
}else{
browserName(userAgent)
}
$rootScope.loginData = resp.data.user;
$rootScope.loginData.login =true;
localStorageService.set('loginData', resp.data.user);
if($rootScope.loginData.username=='admin'){
$location.path('/xmlAndSearch')
$location.path('/xmlAndSearch')
if(userAgent.indexOf('.NET')!=-1){
window.location.reload();
}else{
$location.path('/excelAndSearch')
browserName(userAgent)
}
}else{
$scope.authError = resp.data.message;
......
......@@ -45,53 +45,89 @@
</td>
</tr>
</table>
<table class="table table-bordered table-hover postTable">
<thead>
<tr>
<th>NO.</th>
<th>派出所代码</th>
<th>派出所名称</th>
<th>数量</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr ng-click="showDetail(1)">
<td>1</td>
<td>110021</td>
<td>东城派出所</td>
<td>2</td>
<td></td>
</tr>
<tr ng-click="showDetail(2)">
<td>1</td>
<td>110021</td>
<td>东城派出所</td>
<td>3</td>
<td>复刻一致</td>
</tr>
<tr ng-repeat="item in postMsgDetail">
<td>
<input ng-if="$index==0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)" checked="checked">
<input ng-if="$index!=0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)">
</td>
<td>{{item.id}}</td>
<td>{{item.ddh}}</td>
<td>{{item.yjh}}</td>
<td>{{item.fxyjh}}</td>
<td>{{item.sbsll}}</td>
<td>{{item.sjrxm}}</td>
<td>{{item.sjrlxfs}}</td>
<td>{{item.sjrdz}}</td>
<td>{{item.sqrxm}}</td>
<td>{{item.printTime | date:'yyyy-MM-dd hh:mm:ss'}}</td>
</tr>
<div class="row">
<div class="col-lg-5" >
</tbody>
</table>
<div style="padding-left: 27%;">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination>
<div class="col-lg-12">
<table class="table table-bordered table-hover postTable ">
<thead>
<tr>
<th>NO.</th>
<th>派出所代码</th>
<th>派出所名称</th>
<th>数量</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr ng-click="showDetail(1)">
<td>1</td>
<td>110021</td>
<td>东城派出所</td>
<td>2</td>
<td></td>
</tr>
<tr ng-click="showDetail(2)">
<td>2</td>
<td>110021</td>
<td>东城派出所</td>
<td>3</td>
<td>复核一致</td>
</tr>
<tr ng-repeat="item in postMsgDetail">
<td>
<input ng-if="$index==0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)" checked="checked">
<input ng-if="$index!=0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)">
</td>
<td>{{item.id}}</td>
<td>{{item.ddh}}</td>
<td>{{item.yjh}}</td>
<td>{{item.fxyjh}}</td>
<td>{{item.sbsll}}</td>
<td>{{item.sjrxm}}</td>
<td>{{item.sjrlxfs}}</td>
<td>{{item.sjrdz}}</td>
<td>{{item.sqrxm}}</td>
<td>{{item.printTime | date:'yyyy-MM-dd hh:mm:ss'}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-lg-7" style="padding-left: 0;" ng-if="policeCardsList">
<table class="table table-bordered">
<thead>
<tr>
<th>No.</th>
<th>受理号</th>
<th>姓名</th>
<th>身份证号</th>
<th>签发机关</th>
<th>打印标记</th>
<th>电写标记</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in policeCardsList">
<td>{{$index+1}}</td>
<td>{{item.acceptNo}}</td>
<td>{{item.username}}</td>
<td>{{item.idCard}}</td>
<td>{{item.qfjg}}</td>
<td>
<span ng-if="item.isPrint==1" style="color:red;size: 6px">X</span>
<span ng-if="item.isPrint==0" style="color:lightseagreen;size: 6px"></span>
</td>
<td><span ng-if="item.isEwrite==1" style="color:red;size: 6px">X</span>
<span ng-if="item.isEwrite==0" style="color:lightseagreen;size: 6px"></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
......@@ -31,63 +31,1026 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
$scope.paginationConf.totalItems = 50;
$scope.showDetail = function(index){
ngDialog.open({
template: 'dialogs/policeDetail.html' + urlTimeStamp(),
width: 800,
cache: false,
closeByDocument:false,
controller: ['$scope', function ($scope) {
if(index==1){
$scope.policeCardsList = [
{
acceptNo:'E000201',
username:'伯阳',
idCard:'130133199605250012',
qfjg:'成寿寺派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
]
}else{
$scope.policeCardsList=[
{
acceptNo:'E000201',
username:'伯阳',
idCard:'130133199605250012',
qfjg:'成寿寺派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
]
}
}]
});
if(index==1){
$scope.policeCardsList = [
{
acceptNo:'E000201',
username:'伯阳',
idCard:'130133199605250012',
qfjg:'成寿寺派出所',
isPrint:0,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
]
}else{
$scope.policeCardsList=[
{
acceptNo:'E000201',
username:'伯阳',
idCard:'130133199605250012',
qfjg:'成寿寺派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
,
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'陈光',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
},
{
acceptNo:'E000202',
username:'大海',
idCard:'130133199605250022',
qfjg:'东城派出所',
isPrint:1,
isEwrite:1
}
]
}
}
});
......@@ -54,7 +54,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
failedCount:0
},
{
taskId: '20190228001',
......@@ -64,7 +64,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
failedCount:0
},
{
taskId: '20190228001',
......@@ -74,7 +74,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
failedCount:0
}
]
},
......@@ -92,7 +92,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:1
failedCount:1
},
{
taskId: '20190228001',
......@@ -102,7 +102,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
failedCount:0
}
]
}
......@@ -182,7 +182,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
failedCount:0
},
{
taskId: '20190228001',
......@@ -192,7 +192,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
failedCount:0
},
{
taskId: '20190228001',
......@@ -202,7 +202,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
failedCount:0
}
]
},
......@@ -220,7 +220,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:1
failedCount:1
},
{
taskId: '20190228001',
......@@ -230,7 +230,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
failedCount:0
}
]
}
......@@ -277,9 +277,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
})
.controller('taskListQualityCheckCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
//Date picker
$('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
......@@ -310,8 +307,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
outStoreCount:160,
enterStoreCount:0,
failedCount:1
},
{
taskId: '20190228001',
......@@ -320,8 +318,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
outStoreCount:160,
enterStoreCount:0,
failedCount:1
},
{
taskId: '20190228001',
......@@ -330,8 +329,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
outStoreCount:160,
enterStoreCount:0,
failedCount:0
}
]
},
......@@ -348,8 +348,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:1
outStoreCount:160,
enterStoreCount:0,
failedCount:0
},
{
taskId: '20190228001',
......@@ -358,8 +359,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
checkDate:'20190301',
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0
outStoreCount:160,
enterStoreCount:0,
failedCount:2
}
]
}
......@@ -403,6 +405,186 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
});
}
$scope.enterStore = function(){
var cycleIdList = [];
var checks = $(".checkCkBox");
for (var i=0;i<checks.length;i++){
if(checks[i].checked == true){
cycleIdList.push(checks[i].name);
}
}
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.leaveStore = function(){
var cycleIdList = [];
var checks = $(".checkCkBox");
for (var i=0;i<checks.length;i++){
if(checks[i].checked == true){
cycleIdList.push(checks[i].name);
}
}
if(cycleIdList.length==0){
MessageService.showAlert("请先选择要操作的地市。")
}else{
console.log(cycleIdList)
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;
})
}
}
}]
})
})
}
}
})
.controller('taskListSortingCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
......@@ -439,7 +621,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0,
failedCount:0,
checkCount:160
},
{
......@@ -450,7 +632,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0,
failedCount:0,
checkCount:150
},
{
......@@ -461,7 +643,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0,
failedCount:0,
checkCount:160
}
]
......@@ -480,7 +662,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:1,
failedCount:1,
checkCount:140
},
{
......@@ -491,7 +673,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
groupCount:160,
dataCheckCount:160,
electricCount:160,
failedCards:0,
failedCount:0,
checkCount:0
}
]
......
......@@ -61,7 +61,8 @@
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</td>
<td class="mailbox-subject">{{task.failedCards}}</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-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></td>
</tr>
</tbody>
......
......@@ -62,7 +62,8 @@
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</td>
<td class="mailbox-subject">{{task.failedCards}}</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-date"><a ng-click="getPoliceList(task.taskId)">派出所列表</a></td>
</tr>
</tbody>
......
......@@ -45,9 +45,11 @@
<th>地区</th>
<th>组数</th>
<th>组号</th>
<th>数据核验数量</th>
<th>电写入数量</th>
<th>数据核验</th>
<th>废证数量</th>
<th>出库数量</th>
<th>入库数量</th>
<th>操作</th>
<th></th>
</tr>
</thead>
......@@ -60,9 +62,12 @@
<td class="mailbox-subject">{{task.groupCount}}</td>
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</td>
<td class="mailbox-subject">{{task.failedCards}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">组号列表</a></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>
......@@ -72,7 +77,8 @@
</div>
<!-- /.box-body -->
<div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="goes()">下发任务单</button>
<button class="btn btn-primary" ng-click="outStore()">出库</button>
<button class="btn btn-primary" ng-click="enterStore()">入库</button>
</div>
</div>
<!-- /. box -->
......
......@@ -60,7 +60,8 @@
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-subject">{{task.dataCheckCount}}</td>
<td class="mailbox-attachment">{{task.electricCount}}</td>
<td class="mailbox-subject">{{task.failedCards}}</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-subject">{{task.checkCount}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.taskId)">派出所列表</a></td>
<td class="mailbox-subject"><button class="btn btn-primary">打印封条</button></td>
......
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