Commit ca1272d0 authored by liboyang's avatar liboyang

添加证件校验表单

parent afe03f56
...@@ -16,12 +16,13 @@ ...@@ -16,12 +16,13 @@
<td>{{item.NAME}}</td> <td>{{item.NAME}}</td>
<td ng-if="item.SEX_NO==1"></td> <td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.SEX_NO==2"></td> <td ng-if="item.SEX_NO==2"></td>
<td ng-if="item.SEX_NO==-1">错误</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="ui-dialog-confirm"> <div class="ui-dialog-confirm">
<button type="submit" class="btn btn-info" ng-click="confirmAdd()">确定添加</button> <button type="submit" class="btn btn-info" ng-disabled="can" ng-click="confirmAdd()">确定添加</button>
<button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button> <button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button>
</div> </div>
...@@ -16,12 +16,13 @@ ...@@ -16,12 +16,13 @@
<td>{{item.NAME}}</td> <td>{{item.NAME}}</td>
<td ng-if="item.SEX_NO==1"></td> <td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.SEX_NO==2"></td> <td ng-if="item.SEX_NO==2"></td>
<td ng-if="item.SEX_NO==-1">错误</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="ui-dialog-confirm"> <div class="ui-dialog-confirm">
<button type="submit" class="btn btn-info" ng-click="confirmAdd()">确定添加</button> <button type="submit" class="btn btn-info" ng-disabled="can" ng-click="confirmAdd()">确定添加</button>
<button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button> <button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button>
</div> </div>
...@@ -12,16 +12,17 @@ ...@@ -12,16 +12,17 @@
<tbody> <tbody>
<tr ng-repeat="item in personInfo"> <tr ng-repeat="item in personInfo">
<td>{{$index + 1}}</td> <td>{{$index + 1}}</td>
<td>{{item.cardId}}</td> <td>{{item.ID_NO}}</td>
<td>{{item.name}}</td> <td>{{item.NAME}}</td>
<td ng-if="item.sex==1"></td> <td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.sex==2"></td> <td ng-if="item.SEX_NO==2"></td>
<td ng-if="item.SEX_NO==-1">错误</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="ui-dialog-confirm"> <div class="ui-dialog-confirm">
<button type="submit" class="btn btn-info" ng-click="confirmAdd()">确定添加</button> <button type="submit" class="btn btn-info" ng-disabled="can" ng-click="confirmAdd()">确定添加</button>
<button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button> <button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button>
</div> </div>
...@@ -12,6 +12,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -12,6 +12,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
.controller('addFailedCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('addFailedCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
$scope.createInputs = function(){ $scope.createInputs = function(){
if($scope.failedCount>0){
var count = $scope.failedCount; var count = $scope.failedCount;
if(count>10){ if(count>10){
count=10; count=10;
...@@ -20,6 +21,10 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -20,6 +21,10 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
for (var i=0;i<count;i++){ for (var i=0;i<count;i++){
$scope.arr.push(i); $scope.arr.push(i);
} }
}else{
MessageService.showAlert("请输入正确的数字")
}
} }
...@@ -36,11 +41,16 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -36,11 +41,16 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
} }
} }
var result = []; var result = [];
console.log(array)
for (var i = 0, j = array.length; i < j; i += 3) { for (var i = 0, j = array.length; i < j; i += 3) {
result.push(array.slice(i, i + 3)); result.push(array.slice(i, i + 3));
} }
var list=[]; var list=[];
var count=0;
for (var i=0;i<result.length;i++){ for (var i=0;i<result.length;i++){
if(result[i][0]==''){
count=count+1;
}else{
var json = {}; var json = {};
json.cardId=result[i][0]; json.cardId=result[i][0];
json.note=result[i][1]; json.note=result[i][1];
...@@ -48,6 +58,10 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -48,6 +58,10 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
json.initiator = $rootScope.loginData.roleList[0].process json.initiator = $rootScope.loginData.roleList[0].process
list.push(json) list.push(json)
} }
}
if(count>0){
MessageService.showAlert("身份证或者受理号不能为空")
}else{
console.log(list) console.log(list)
ngDialog.open({ ngDialog.open({
template: 'dialogs/confirmFailedCards.html' + urlTimeStamp(), template: 'dialogs/confirmFailedCards.html' + urlTimeStamp(),
...@@ -61,6 +75,12 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -61,6 +75,12 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
} }
HttpService.getPersonInfo(idCardArr,function(data){ HttpService.getPersonInfo(idCardArr,function(data){
$scope.personInfo = data; $scope.personInfo = data;
$scope.can = false;
for(var i=0;i<$scope.personInfo.length;i++){
if($scope.personInfo[i].SEX_NO==-1){
$scope.can = true;
}
}
console.log($scope.personInfo) console.log($scope.personInfo)
}) })
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
...@@ -73,4 +93,6 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -73,4 +93,6 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
}] }]
}); });
} }
}
}); });
\ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<input type="submit" class="btn btn-primary" value="确定"> <input type="submit" class="btn btn-primary" value="确定">
<span style="font-size:14px;color: red;" ng-if="errMsglb">{{errMsglb}}</span> <span style="font-size:14px;color: red;" ng-if="errMsglb">{{errMsglb}}</span>
</form> </form>
<div style="padding: 15px;"> <form style="padding: 15px; " name="form">
<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;" class="rest" placeholder="请输入身份证号或受理号"> <input type="text" style="height: 34px;" class="rest" placeholder="请输入身份证号或受理号">
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<button class="btn btn-primary" ng-click="addRest()">添加</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> </form>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -12,6 +12,7 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -12,6 +12,7 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
.controller('addRestCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('addRestCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
$scope.createInputs = function(){ $scope.createInputs = function(){
if($scope.restCount>0){
var count = $scope.restCount; var count = $scope.restCount;
if(count>10){ if(count>10){
count=10; count=10;
...@@ -20,6 +21,9 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -20,6 +21,9 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
for (var i=0;i<count;i++){ for (var i=0;i<count;i++){
$scope.arr.push(i); $scope.arr.push(i);
} }
}else{
MessageService.showAlert("请输入正确的数字")
}
} }
...@@ -29,9 +33,17 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -29,9 +33,17 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
$scope.addRest = function(){ $scope.addRest = function(){
var array = []; var array = [];
var count = 0;
for(var i=0;i<$scope.arr.length;i++){ for(var i=0;i<$scope.arr.length;i++){
if($(".rest")[i].value==''){
count=count+1;
}else{
array.push($(".rest")[i].value) array.push($(".rest")[i].value)
} }
}
if(count>0){
MessageService.showAlert("内容不能为空")
}else{
var json={}; var json={};
json.name=$rootScope.loginData.name; json.name=$rootScope.loginData.name;
json.list = array; json.list = array;
...@@ -44,6 +56,12 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -44,6 +56,12 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) { controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) {
HttpService.getPersonInfo(array,function(data){ HttpService.getPersonInfo(array,function(data){
$scope.personInfo = data; $scope.personInfo = data;
$scope.can = false;
for(var i=0;i<$scope.personInfo.length;i++){
if($scope.personInfo[i].SEX_NO==-1){
$scope.can = true;
}
}
console.log($scope.personInfo) console.log($scope.personInfo)
}) })
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
...@@ -57,4 +75,6 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -57,4 +75,6 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
}); });
} }
}
}); });
\ No newline at end of file
...@@ -12,6 +12,7 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -12,6 +12,7 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http'])
.controller('addTagCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('addTagCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
$scope.createInputs = function(){ $scope.createInputs = function(){
if($scope.tagCount>0){
var count = $scope.tagCount; var count = $scope.tagCount;
if(count>10){ if(count>10){
count=10; count=10;
...@@ -20,6 +21,9 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -20,6 +21,9 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http'])
for (var i=0;i<count;i++){ for (var i=0;i<count;i++){
$scope.arr.push(i); $scope.arr.push(i);
} }
}else{
MessageService.showAlert("请输入正确的数字")
}
} }
...@@ -40,15 +44,22 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -40,15 +44,22 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http'])
result.push(array.slice(i, i + 2)); result.push(array.slice(i, i + 2));
} }
var list=[]; var list=[];
var count=0;
for (var i=0;i<result.length;i++){ for (var i=0;i<result.length;i++){
if(result[i][0]==''){
count=count+1;
}else{
var json = {}; var json = {};
json.acceptNo=result[i][0]; json.acceptNo=result[i][0];
json.note=result[i][1]; json.note=result[i][1];
// json.initiator = $rootScope.loginData.roleList[0].process // json.initiator = $rootScope.loginData.roleList[0].process
list.push(json) list.push(json)
} }
}
console.log(list) console.log(list)
if(count>0) {
MessageService.showAlert("身份证或者受理号不能为空")
}else{
var cancel = $scope.cancelAdd; var cancel = $scope.cancelAdd;
ngDialog.open({ ngDialog.open({
template: 'dialogs/confirmTagCards.html' + urlTimeStamp(), template: 'dialogs/confirmTagCards.html' + urlTimeStamp(),
...@@ -60,8 +71,14 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -60,8 +71,14 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http'])
for(var i=0;i<list.length;i++){ for(var i=0;i<list.length;i++){
idCardArr.push(list[i].acceptNo); idCardArr.push(list[i].acceptNo);
} }
HttpService.getPersonInfoData(idCardArr,function(data){ HttpService.getPersonInfo(idCardArr,function(data){
$scope.personInfo = data; $scope.personInfo = data;
$scope.can = false;
for(var i=0;i<$scope.personInfo.length;i++){
if($scope.personInfo[i].SEX_NO==-1){
$scope.can = true;
}
}
console.log($scope.personInfo) console.log($scope.personInfo)
}) })
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
...@@ -75,4 +92,6 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -75,4 +92,6 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http'])
}); });
} }
}
}); });
\ No newline at end of file
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
</ul> </ul>
</a> </a>
</li> </li>
<li style="float: right; padding-right: 30px;">
<h4>任务总数:{{total}}</h4>
</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">
...@@ -53,6 +50,7 @@ ...@@ -53,6 +50,7 @@
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td ng-if="task.faileCount>0"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate| date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate| date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td ng-if="task.faileCount>0"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td ng-if="task.faileCount==0"><input type="checkbox" id="checkOneBox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" name="{{task.countyValidCount-task.specialCount}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" id="checkOneBox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" name="{{task.countyValidCount-task.specialCount}}" ng-click="updateSelection($event,task)"></td>
<td ng-if="task.faileCount>0"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td ng-if="task.faileCount>0"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td ng-if="task.faileCount>0"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate| date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate| date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></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