Commit 7b26fed1 authored by liboyang's avatar liboyang

查询登记妥投失败记录新增身份证查询条件

parent 06ac962a
...@@ -1426,13 +1426,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -1426,13 +1426,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data) success(response.data)
}) })
}, },
queryDeliveredFailedByRegisterDate:function (date,date1,success) { queryDeliveredFailedByRegisterDate:function (date,date1,idCard,success) {
$http({ $http({
method: 'GET', method: 'GET',
url: "../DeliveredApi/queryDeliveredFailedByRegisterDate" + urlTimeStamp(), url: "../DeliveredApi/queryDeliveredFailedByRegisterDate" + urlTimeStamp(),
params:{ params:{
startDate:date, startDate:date,
endDate:date1 endDate:date1,
cardId:idCard
} }
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
......
...@@ -66,8 +66,8 @@ ...@@ -66,8 +66,8 @@
<div class="box box-primary"> <div class="box box-primary">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
<td width="15%;">起始日期:</td> <td width="10%">起始日期:</td>
<td width="30%"> <td width="20%">
<div class="input-group date"> <div class="input-group date">
<div class="input-group-addon"> <div class="input-group-addon">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/> <input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/>
</div> </div>
</td> </td>
<td width="15%;">截止日期:</td> <td width="10%">截止日期:</td>
<td width="30%"> <td width="20%">
<div class="input-group date"> <div class="input-group date">
<div class="input-group-addon"> <div class="input-group-addon">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
...@@ -84,6 +84,10 @@ ...@@ -84,6 +84,10 @@
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker1" readonly/> <input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker1" readonly/>
</div> </div>
</td> </td>
<td width="10%;">身份证号:</td>
<td width="20%">
<input type="text" class="form-control pull-right" ng-model="idCard" placeholder="请输入身份证号"/>
</td>
<td style="text-align: left;"> <td style="text-align: left;">
<button class="btn btn-primary" ng-click="queryDeliveredFailedByRegisterDate()">查询</button> <button class="btn btn-primary" ng-click="queryDeliveredFailedByRegisterDate()">查询</button>
</td> </td>
......
...@@ -83,14 +83,17 @@ angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.ht ...@@ -83,14 +83,17 @@ angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.ht
$scope.queryDeliveredFailedByRegisterDate=function () { $scope.queryDeliveredFailedByRegisterDate=function () {
var date = $("#datepicker").val(); var date = $("#datepicker").val();
var date1 = $("#datepicker1").val(); var date1 = $("#datepicker1").val();
if(angular.isUndefined($scope.idCard)){
$scope.idCard = '';
}
if(date ==''){ if(date ==''){
date = $scope.choseDate; date = $scope.choseDate;
} }
if(date1 ==''){ if(date1 ==''){
date1 = $scope.choseDate; date1 = $scope.choseDate;
} }
console.log(date,date1); console.log(date,date1,$scope.idCard);
HttpService.queryDeliveredFailedByRegisterDate(date,date1,function(data){ HttpService.queryDeliveredFailedByRegisterDate(date,date1,$scope.idCard,function(data){
$scope.deliveredFailedByRegisterDate = data; $scope.deliveredFailedByRegisterDate = data;
console.log($scope.deliveredFailedByRegisterDate) console.log($scope.deliveredFailedByRegisterDate)
}) })
......
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