Commit 3c1c71da authored by dahai's avatar dahai

搜索框添加工作组属性

parent 25f8ca54
...@@ -58,7 +58,7 @@ public class SelectApi { ...@@ -58,7 +58,7 @@ public class SelectApi {
resultMap.put("PRODData", PRODData); resultMap.put("PRODData", PRODData);
} else { } else {
return null; // return null;
} }
return resultMap; return resultMap;
} }
......
...@@ -162,6 +162,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -162,6 +162,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
id:searchInput id:searchInput
} }
}).then(function successCallback(response) { }).then(function successCallback(response) {
console.log(response.data,"------------------------")
success(response.data) success(response.data)
}) })
}, },
...@@ -1259,10 +1260,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -1259,10 +1260,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data) success(response.data)
}) })
}, },
selectFilmManagement:function(success) { selectFilmManagement:function(date,success) {
$http({ $http({
method: 'GET', method: 'GET',
url: "../MaterialManagementApi/selectPlasticFilm" + urlTimeStamp() url: "../MaterialManagementApi/selectPlasticFilm" + urlTimeStamp(),
params:{
date:date
}
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
}) })
......
...@@ -60,6 +60,22 @@ ...@@ -60,6 +60,22 @@
<strong>膜耗材操作记录</strong> <strong>膜耗材操作记录</strong>
</div> </div>
<div class="box box-primary"> <div class="box box-primary">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td width="15%">审核日期:</td>
<td colspan="2" width="35%">
<div class="input-group date" style="width: 65%">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/>
</div>
</td>
<td style="text-align: left;">
<button class="btn btn-primary" ng-click="selectMaterialManagement()">查询</button>
</td>
</tr>
</table>
<div ng-if="filmManagement.length==0"> <div ng-if="filmManagement.length==0">
<h4 style="padding-left: 10px;">暂无数据</h4> <h4 style="padding-left: 10px;">暂无数据</h4>
</div> </div>
...@@ -80,14 +96,14 @@ ...@@ -80,14 +96,14 @@
<tbody> <tbody>
<tr ng-repeat="item in filmManagement"> <tr ng-repeat="item in filmManagement">
<td>{{item.plasticFilmId}}</td> <td>{{item.plasticFilmId}}</td>
<td>{{item.saveDate}}</td> <td>{{item.saveDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
<td>{{item.totalCount}}</td> <td>{{item.totalCount}}</td>
<td ng-if="item.plasticFilmType==1">出库</td> <td ng-if="item.plasticFilmType==1">出库</td>
<td ng-if="item.plasticFilmType==2">入库</td> <td ng-if="item.plasticFilmType==2">入库</td>
<td>{{item.note}}</td> <td>{{item.note}}</td>
<td>{{item.name}}</td> <td>{{item.name}}</td>
<td ng-if="itam.state==0"><a ng-click="updateFilmState(item)">确认审核</a></td> <td ng-show="item.state==0"><a ng-click="updateFilmState(item)">确认审核</a></td>
<td ng-if="itam.state==1">已确认</td> <td ng-show="item.state==1">已确认</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -11,6 +11,16 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http']) ...@@ -11,6 +11,16 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http'])
.controller('filmManagementCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('filmManagementCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
//Date picker
$('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.insertFilm = function () { $scope.insertFilm = function () {
var totalCount = $scope.totalCount; var totalCount = $scope.totalCount;
var note = $scope.note; var note = $scope.note;
...@@ -32,7 +42,11 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http']) ...@@ -32,7 +42,11 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http'])
} }
$scope.selectFilmManagement=function(){ $scope.selectFilmManagement=function(){
HttpService.selectFilmManagement(function (data) { var date =$('#datepicker').val();
if(date==''){
date = $scope.choseDate;
}
HttpService.selectFilmManagement(date,function (data) {
$scope.filmManagement = data; $scope.filmManagement = data;
console.log($scope.filmManagement,"$scope.filmManagement") console.log($scope.filmManagement,"$scope.filmManagement")
}) })
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<th>区县</th> <th>区县</th>
<th>制证类型</th> <th>制证类型</th>
<th>数量</th> <th>数量</th>
<th>工作组</th>
<th>下发日期</th> <th>下发日期</th>
<th>膜打印</th> <th>膜打印</th>
<th>预定位</th> <th>预定位</th>
...@@ -37,6 +38,9 @@ ...@@ -37,6 +38,9 @@
<td>{{item.COUNTYNAME}}</td> <td>{{item.COUNTYNAME}}</td>
<td>{{item.CARD_TYPE}}</td> <td>{{item.CARD_TYPE}}</td>
<td>{{item.VALID_COUNT}}</td> <td>{{item.VALID_COUNT}}</td>
<td ng-show="item.WORK_GROUP==1">A组</td>
<td ng-show="item.WORK_GROUP==2">B组</td>
<td ng-show="item.WORK_GROUP==null"></td>
<td>{{item.ISSUED_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td> <td>{{item.ISSUED_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td>
<td>{{item.PRINT_OUT_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td> <td>{{item.PRINT_OUT_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td>
<td>{{item.POSITION_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td> <td>{{item.POSITION_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td>
...@@ -150,7 +154,7 @@ ...@@ -150,7 +154,7 @@
</div> </div>
<!---没查到数据--> <!---没查到数据-->
<div class="box-info" <div class="box-info"
ng-if="searchResult.workOrderDate.length==0&&searchResult.ACCdata.length==0&&searchResult.PRODData.length==0"> ng-if="(searchResult.workOrderDate.length==0&&searchResult.ACCdata.length==0&&searchResult.PRODData.length==0) ||searchResult==null">
<div> <div>
<h4>没有查询到相关信息</h4> <h4>没有查询到相关信息</h4>
</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