Commit 7b26fed1 authored by liboyang's avatar liboyang

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

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