Ver código fonte

仓房基本信息列表加仓房类型查询条件

fanxw 5 anos atrás
pai
commit
86c4eb0863

+ 2 - 2
src/main/resources/static/app/basic/storehouse/controller/StorehouseCtrl.js

@@ -4,7 +4,7 @@ angular.module('app.basic')
4 4
  
5 5
      // 获取列表数据
6 6
 	 $scope.pageInfo = {pageNum : 1, pageSize : 10};
7
-     $scope.search = {storehouseId:""};
7
+     $scope.search = {storehouseId:"", storehouseType:""};
8 8
      $scope.storehouseList;
9 9
      $scope.agentDepotName;
10 10
      var drNum;
@@ -37,7 +37,7 @@ angular.module('app.basic')
37 37
              });
38 38
          }else {
39 39
              StorehouseService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,
40
-                 $scope.search.storehouseId, $rootScope.orgInfo.orgId, '0', null).then(function (data) {
40
+                 $scope.search.storehouseId, $rootScope.orgInfo.orgId, '0', null, $scope.search.storehouseType).then(function (data) {
41 41
                  $scope.pageInfo = data;
42 42
                  if (drNum == 0) {
43 43
                      drNum++;

+ 3 - 2
src/main/resources/static/app/basic/storehouse/service/StorehouseService.js

@@ -1,7 +1,7 @@
1 1
 "use strict";
2 2
 
3 3
 angular.module('app.basic').service("StorehouseService", function($http, $q, APP_CONFIG) {
4
-    this.getPageInfo = function(pageNum, pageSize, storehouseId, orgId, libraryType, delFlag) {
4
+    this.getPageInfo = function(pageNum, pageSize, storehouseId, orgId, libraryType, delFlag, storehouseType) {
5 5
         var d = $q.defer();
6 6
         $http({
7 7
             method : 'GET',
@@ -12,7 +12,8 @@ angular.module('app.basic').service("StorehouseService", function($http, $q, APP
12 12
                 houseId : storehouseId, //仓房id
13 13
                 orgId : orgId,
14 14
                 libraryType : libraryType,
15
-                delFlag : delFlag
15
+                delFlag : delFlag,
16
+                storehouseType : storehouseType
16 17
             }
17 18
         }).then(function successCallback(response) {
18 19
             // 请求成功执行代码

+ 6 - 0
src/main/resources/static/app/basic/storehouse/views/Storehouse-list.html

@@ -38,6 +38,12 @@
38 38
                                                     <option value="">请选择</option>
39 39
                                                 </select>&emsp;
40 40
                                             </label>
41
+                                            <label> 仓房类型:
42
+                                                <select ng-model="search.storehouseType" class="form-control input-sm"
43
+                                                        ng-options="enum.enumid as enum.enumname for enum in dicDataList[1064]">
44
+                                                    <option value="">请选择</option>
45
+                                                </select>&emsp;
46
+                                            </label>
41 47
 											<a class="btn btn-default btn-sm" ng-click="loadData()">
42 48
 												<i class="fa fa-search"></i>&nbsp;查&nbsp;询
43 49
 											</a>&emsp;