Commit dbf0d279 authored by liboyang's avatar liboyang

添加快证

parent 971ee28a
......@@ -198,8 +198,31 @@ angular.module('AvatarCheck', [
$location.path("/createTaskList");
}
$scope.addQuickCard = function(){
$scope.addQuickCardAccu = function(){
var check = $(".accu:checked").val();
console.log(check);
var json={};
json.acceptNo=check.ACCEPT_NO;
json.cardType=check.CARD_TYPE;
json.countyCode=check.COUNTY_CODE;
json.name=check.NAME;
HttpService.addSpecialCard(json,function (data) {
console.log($scope.searchInput)
$scope.doSearch($scope.searchInput)
})
}
$scope.addQuickCardProd = function(){
var check = $(".prod:checked").val();
console.log(check);
var json={};
json.acceptNo=check.ACCEPT_NO;
json.cardType=check.CARD_TYPE;
json.countyCode=check.COUNTY_CODE;
json.name=check.NAME;
HttpService.addSpecialCard(json,function (data) {
console.log($scope.searchInput)
$scope.doSearch($scope.searchInput)
})
}
......
......@@ -527,6 +527,17 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) {
success(response.data)
})
},
addSpecialCard:function(data,success){
var body = JSON.stringify(data);
$http({
method: 'POST',
url: "../TaskList/createFastTask",
data: body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) {
success(response.data)
})
}
}
});
\ No newline at end of file
......@@ -59,6 +59,7 @@
<table class="table table-hover table-bordered">
<thead>
<tr>
<th></th>
<th>受理号</th>
<th>区县</th>
<th>姓名</th>
......@@ -74,25 +75,27 @@
</tr>
</thead>
<tbody>
<tr>
<td>02213546871</td>
<td>海淀区</td>
<td>伯阳</td>
<td>普通证</td>
<td>130133199405250011</td>
<td></td>
<td>赵县公安局</td>
<td>20090228</td>
<td>20190228</td>
<td>赵县派出所</td>
<td>快证</td>
<td>2019-03-03 13:58:30</td>
<tr ng-repeat="item in searchResult.ACCdata">
<td><input type="checkbox" value="{{item}}" class="accu"></td>
<td>{{item.ACCEPT_NO}}</td>
<td>{{item.COUNTYNAME}}</td>
<td>{{item.NAME}}</td>
<td>{{item.CARD_TYPE}}</td>
<td>{{item.ID_NO}}</td>
<td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.SEX_NO==2"></td>
<td>{{item.GAJG1}}</td>
<td>{{item.BEGIN_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td>
<td>{{item.EXPIRE_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td>
<td>{{item.SIGN_GOVT}}</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div style="text-align:right;padding: 10px;padding-top: 0;">
<button class="btn btn-info" ng-click="addQuickCard()">添加快证</button>
<button class="btn btn-info" ng-click="addQuickCardAccu()">添加快证</button>
<button class="btn btn-danger">退证</button>
</div>
</div>
......@@ -107,6 +110,7 @@
<table class="table table-hover table-bordered">
<thead>
<tr>
<th></th>
<th>受理号</th>
<th>区县</th>
<th>姓名</th>
......@@ -122,25 +126,27 @@
</tr>
</thead>
<tbody>
<tr>
<td>02213546871</td>
<td>海淀区</td>
<td>伯阳</td>
<td>普通证</td>
<td>130133199405250011</td>
<td></td>
<td>赵县公安局</td>
<td>20090228</td>
<td>20190228</td>
<td>赵县派出所</td>
<td>快证</td>
<td>2019-03-03 13:58:30</td>
<tr ng-repeat="item in searchResult.PRODData">
<td><input type="checkbox" value="{{item}}" class="prod"></td>
<td>{{item.ACCEPT_NO}}</td>
<td>{{item.COUNTYNAME}}</td>
<td>{{item.NAME}}</td>
<td>{{item.CARD_TYPE}}</td>
<td>{{item.ID_NO}}</td>
<td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.SEX_NO==2"></td>
<td>{{item.GAJG1}}</td>
<td>{{item.BEGIN_DATE}}</td>
<td>{{item.EXPIRE_DATE}}</td>
<td>{{item.SIGN_GOVT}}</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div style="text-align:right;padding: 10px;padding-top: 0;">
<button class="btn btn-info">添加快证</button>
<button class="btn btn-info" ng-click="addQuickCardProd()">添加快证</button>
<button class="btn btn-danger">退证</button>
</div>
</div>
......
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