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,14 +12,19 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -12,14 +12,19 @@ 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(){
var count = $scope.failedCount; if($scope.failedCount>0){
if(count>10){ var count = $scope.failedCount;
count=10; if(count>10){
} count=10;
$scope.arr = []; }
for (var i=0;i<count;i++){ $scope.arr = [];
$scope.arr.push(i); for (var i=0;i<count;i++){
$scope.arr.push(i);
}
}else{
MessageService.showAlert("请输入正确的数字")
} }
} }
...@@ -36,41 +41,58 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -36,41 +41,58 @@ 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++){
var json = {}; if(result[i][0]==''){
json.cardId=result[i][0]; count=count+1;
json.note=result[i][1]; }else{
json.failedCardReasonId=result[i][2]; var json = {};
json.initiator = $rootScope.loginData.roleList[0].process json.cardId=result[i][0];
list.push(json) json.note=result[i][1];
json.failedCardReasonId=result[i][2];
json.initiator = $rootScope.loginData.roleList[0].process
list.push(json)
}
} }
console.log(list) if(count>0){
ngDialog.open({ MessageService.showAlert("身份证或者受理号不能为空")
template: 'dialogs/confirmFailedCards.html' + urlTimeStamp(), }else{
width: 800, console.log(list)
cache: false, ngDialog.open({
closeByDocument:false, template: 'dialogs/confirmFailedCards.html' + urlTimeStamp(),
controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) { width: 800,
var idCardArr =[]; cache: false,
for(var i=0;i<list.length;i++){ closeByDocument:false,
idCardArr.push(list[i].cardId); controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) {
} var idCardArr =[];
HttpService.getPersonInfo(idCardArr,function(data){ for(var i=0;i<list.length;i++){
$scope.personInfo = data; idCardArr.push(list[i].cardId);
console.log($scope.personInfo) }
}) HttpService.getPersonInfo(idCardArr,function(data){
$scope.confirmAdd = function(){ $scope.personInfo = data;
HttpService.addFailedCard(list,function(data){ $scope.can = false;
$scope.closeThisDialog(); for(var i=0;i<$scope.personInfo.length;i++){
MessageService.showAlert("添加成功"); if($scope.personInfo[i].SEX_NO==-1){
console.log(data) $scope.can = true;
}
}
console.log($scope.personInfo)
}) })
} $scope.confirmAdd = function(){
}] HttpService.addFailedCard(list,function(data){
}); $scope.closeThisDialog();
MessageService.showAlert("添加成功");
console.log(data)
})
}
}]
});
}
} }
}); });
\ 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,13 +12,17 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -12,13 +12,17 @@ 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(){
var count = $scope.restCount; if($scope.restCount>0){
if(count>10){ var count = $scope.restCount;
count=10; if(count>10){
} count=10;
$scope.arr = []; }
for (var i=0;i<count;i++){ $scope.arr = [];
$scope.arr.push(i); for (var i=0;i<count;i++){
$scope.arr.push(i);
}
}else{
MessageService.showAlert("请输入正确的数字")
} }
} }
...@@ -29,32 +33,48 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -29,32 +33,48 @@ 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++){
array.push($(".rest")[i].value) if($(".rest")[i].value==''){
count=count+1;
}else{
array.push($(".rest")[i].value)
}
} }
var json={}; if(count>0){
json.name=$rootScope.loginData.name; MessageService.showAlert("内容不能为空")
json.list = array; }else{
console.log(array) var json={};
ngDialog.open({ json.name=$rootScope.loginData.name;
template: 'dialogs/confirmRestCards.html' + urlTimeStamp(), json.list = array;
width: 800, console.log(array)
cache: false, ngDialog.open({
closeByDocument:false, template: 'dialogs/confirmRestCards.html' + urlTimeStamp(),
controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) { width: 800,
HttpService.getPersonInfo(array,function(data){ cache: false,
$scope.personInfo = data; closeByDocument:false,
console.log($scope.personInfo) controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) {
}) HttpService.getPersonInfo(array,function(data){
$scope.confirmAdd = function(){ $scope.personInfo = data;
HttpService.addRestCard(json,function(data){ $scope.can = false;
$scope.closeThisDialog(); for(var i=0;i<$scope.personInfo.length;i++){
MessageService.showAlert("添加成功"); if($scope.personInfo[i].SEX_NO==-1){
console.log(data) $scope.can = true;
}
}
console.log($scope.personInfo)
}) })
} $scope.confirmAdd = function(){
}] HttpService.addRestCard(json,function(data){
}); $scope.closeThisDialog();
MessageService.showAlert("添加成功");
console.log(data)
})
}
}]
});
}
} }
}); });
\ No newline at end of file
...@@ -12,13 +12,17 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -12,13 +12,17 @@ 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(){
var count = $scope.tagCount; if($scope.tagCount>0){
if(count>10){ var count = $scope.tagCount;
count=10; if(count>10){
} count=10;
$scope.arr = []; }
for (var i=0;i<count;i++){ $scope.arr = [];
$scope.arr.push(i); for (var i=0;i<count;i++){
$scope.arr.push(i);
}
}else{
MessageService.showAlert("请输入正确的数字")
} }
} }
...@@ -40,39 +44,54 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -40,39 +44,54 @@ 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++){
var json = {}; if(result[i][0]==''){
json.acceptNo=result[i][0]; count=count+1;
json.note=result[i][1]; }else{
// json.initiator = $rootScope.loginData.roleList[0].process var json = {};
list.push(json) json.acceptNo=result[i][0];
json.note=result[i][1];
// json.initiator = $rootScope.loginData.roleList[0].process
list.push(json)
}
} }
console.log(list) console.log(list)
if(count>0) {
var cancel = $scope.cancelAdd; MessageService.showAlert("身份证或者受理号不能为空")
ngDialog.open({ }else{
template: 'dialogs/confirmTagCards.html' + urlTimeStamp(), var cancel = $scope.cancelAdd;
width: 800, ngDialog.open({
cache: false, template: 'dialogs/confirmTagCards.html' + urlTimeStamp(),
closeByDocument:false, width: 800,
controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) { cache: false,
var idCardArr =[]; closeByDocument:false,
for(var i=0;i<list.length;i++){ controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) {
idCardArr.push(list[i].acceptNo); var idCardArr =[];
} for(var i=0;i<list.length;i++){
HttpService.getPersonInfoData(idCardArr,function(data){ idCardArr.push(list[i].acceptNo);
$scope.personInfo = data; }
console.log($scope.personInfo) HttpService.getPersonInfo(idCardArr,function(data){
}) $scope.personInfo = data;
$scope.confirmAdd = function(){ $scope.can = false;
HttpService.addTagCard(list,function(data){ for(var i=0;i<$scope.personInfo.length;i++){
$scope.closeThisDialog(); if($scope.personInfo[i].SEX_NO==-1){
MessageService.showAlert("添加成功"); $scope.can = true;
cancel(); }
}
console.log($scope.personInfo)
}) })
} $scope.confirmAdd = function(){
}] HttpService.addTagCard(list,function(data){
}); $scope.closeThisDialog();
MessageService.showAlert("添加成功");
cancel();
})
}
}]
});
}
} }
}); });
\ 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