Commit e897b4d2 authored by liboyang's avatar liboyang

制证信息管理根据打印状态查询

parent 57e3d427
......@@ -57,8 +57,7 @@
<tr>
<td>禁用:</td>
<td style="text-align: left;">
<select class="form-control select2" id="packageType"
ng-model="packageType">
<select class="form-control select2" id="packageType">
<option value="">--请选择禁用状态--</option>
<option value="0"></option>
<option value="1"></option>
......
......@@ -56,8 +56,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
if(angular.isUndefined($scope.sljg)){
$scope.sljg='';
}
if(angular.isUndefined(packageType)){
packageType='';
if(packageType==''){
packageType=-1;
}
HttpService.getPackageData($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg,
cardType,packageType,date,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data) {
......@@ -113,8 +113,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
}else{
url = url + 'cardType=' + cardType + '&';
}
if(angular.isUndefined(packageType)){
url = url + 'state=&';
if(packageType==''){
url = url + 'state=-1&';
}else{
url = url + 'state=' + packageType + '&';
}
......
......@@ -55,10 +55,10 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}else{
json.orderNumber='';
}
if ($("#print").val() == 1 || $("#print").val() == 0) {
json.state=$("#print").val();
}else {
if ($("#print").val() == '') {
json.state=-1;
}else {
json.state=$("#print").val();
}
if (angular.isDefined($scope.gkxx)) {
json.latticeMouthInformation = $scope.gkxx
......@@ -86,10 +86,10 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}else{
json.orderNumber='';
}
if ($("#print").val() == 1 || $("#print").val() == 0) {
json.state=$("#print").val();
}else {
if ($("#print").val() == '') {
json.state=-1;
}else {
json.state=$("#print").val();
}
if (angular.isDefined($scope.gkxx)) {
json.latticeMouthInformation = $scope.gkxx
......
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