Quellcode durchsuchen

云南最新bug修改

lvzhikai vor 5 Jahren
Ursprung
Commit
3dcabab2e3

+ 1 - 1
src/main/resources/static/app/basic/warehouse/controller/warehouseCtrl.js

@@ -40,7 +40,7 @@ angular.module('app.basic')
40 40
      $scope.loadData = function() {
41 41
          if($scope.libraryType == '1'){
42 42
              // 获取货位列表
43
-             agentStorehouseService.getWareList($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.ware.warehouseName,$scope.ware.storehouseId).then(function(data){
43
+             agentStorehouseService.getWareList($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.agentDepotName).then(function(data){
44 44
                  $scope.pageInfo = data;
45 45
              },function(data){
46 46
                  console.log(data);

+ 5 - 11
src/main/resources/static/app/basic/warehouse/views/warehouseAgent-list.html

@@ -24,15 +24,9 @@
24 24
 										<a class="btn btn-primary btn-sm" ng-click="edit(ware.libraryType)">
25 25
 												<span class="fa fa-plus"></span>&nbsp;新&nbsp;增
26 26
 										</a>&emsp;
27
-										<label>仓房名称:&emsp;
28
-                                                <select ng-model="ware.storehouseId" class="form-control"
29
-	                                                ng-options="store.storehouseId as store.storehouseName for store in storeHouseList"
30
-	                                                ng-change="loadWare()">
31
-                                                <option value="">--请选择--</option>
32
-                                                </select>
33
-                                            </label>&emsp;
34
-                                            <label>货位名称:&emsp;<input class="form-control input-sm" ng-model="ware.warehouseName" placeholder=""> &emsp;
35
-                                            </label>
27
+										<label> 粮库名称:&emsp;
28
+											<input type="search" ng-model="agentDepotName" class="form-control input-sm" placeholder="">&emsp;
29
+										</label>
36 30
 										<a class="btn btn-default btn-sm" ng-click="loadData()">
37 31
 											<i class="fa fa-search"></i>&nbsp;查&nbsp;询</a>&emsp;
38 32
 										<a class="btn btn-primary btn-sm" ng-click="print()">
@@ -53,9 +47,9 @@
53 47
 									width="100%">
54 48
 									<thead>
55 49
 										<tr>
50
+											<th data-class="expand">粮库名称</th>
56 51
 											<th data-class="expand">仓房名称</th>
57 52
 											<th data-class="expand">货位名称</th>
58
-											<th data-hide="expand">使用状态</th>
59 53
 											<th data-hide="expand">使用情况</th>
60 54
 											<th data-hide="expand">货位容量(吨)</th>
61 55
 											<th data-hide="expand">操作</th>
@@ -64,9 +58,9 @@
64 58
 
65 59
 									<tbody>
66 60
 										<tr ng-repeat="warehouse in pageInfo.list | filter:search">
61
+											<td>{{warehouse.agentDepotName}}</td>
67 62
 											<td>{{warehouse.viewState == 0?storehouseObj[warehouse.storehouseId].storehouseName:warehouse.storehouseName}}</td>
68 63
 											<td>{{warehouse.warehouseName}}</td>
69
-											<td>{{dicData[warehouse.warehouseStatus]}}</td>
70 64
 											<td>{{warehouse.delFlag=='1'?"在用":"删除"}}</td>
71 65
 											<td>{{warehouse.warehouseCapacity}}</td>
72 66
 											<td><a ng-show="warehouse.viewState == 0" href-void ng-click="edit(warehouse.warehouseId)">

+ 1 - 1
src/main/resources/static/app/business/agent/basic/controller/agentTankCtrl.js

@@ -5,7 +5,7 @@ angular.module('app.business')
5 5
         // 获取列表数据
6 6
         $scope.pageInfo = {pageNum : 1, pageSize : 10};
7 7
         $scope.loadData = function() {
8
-            agentTankService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.tankNumber)
8
+            agentTankService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.agentDepotName)
9 9
             .then(function(data){
10 10
                 $scope.pageInfo = data;
11 11
             },function(data){

+ 2 - 3
src/main/resources/static/app/business/agent/basic/service/agentStorehouseService.js

@@ -151,7 +151,7 @@ angular.module('app.business')
151 151
         }
152 152
 
153 153
         //分页货位查询
154
-        this.getWareList = function(pageNum, pageSize, warehouseName, storehouseId) {
154
+        this.getWareList = function(pageNum, pageSize, agentDepotName) {
155 155
             var orgId = $rootScope.orgInfo.orgId;
156 156
             var d = $q.defer();
157 157
             $http({
@@ -160,8 +160,7 @@ angular.module('app.business')
160 160
                 params : {
161 161
                     pageNum : pageNum,
162 162
                     pageSize : pageSize,
163
-                    warehouseName : warehouseName == undefined?"":warehouseName,
164
-                    storehouseId : storehouseId == undefined?"":storehouseId,
163
+                    agentDepotName : agentDepotName == undefined?"":agentDepotName,
165 164
                     orgId : orgId
166 165
                 }
167 166
             }).then(function successCallback(response) {

+ 2 - 2
src/main/resources/static/app/business/agent/basic/service/agentTankService.js

@@ -3,7 +3,7 @@
3 3
 angular.module('app.business')
4 4
     .service("agentTankService", function($http, $q, APP_CONFIG, $rootScope) {
5 5
         //分页数据查询
6
-        this.getPageInfo = function(pageNum, pageSize, tankNumber) {
6
+        this.getPageInfo = function(pageNum, pageSize, agentDepotName) {
7 7
         	var orgId = $rootScope.orgInfo.orgId;
8 8
             var d = $q.defer();
9 9
             $http({
@@ -12,7 +12,7 @@ angular.module('app.business')
12 12
                 params : {
13 13
                     pageNum : pageNum,
14 14
                     pageSize : pageSize,
15
-                    tankNumber : tankNumber == undefined?"":tankNumber,
15
+                    agentDepotName : agentDepotName == undefined?"":agentDepotName,
16 16
                     orgId : orgId
17 17
                 }
18 18
             }).then(function successCallback(response) {

+ 1 - 1
src/main/resources/static/app/business/agent/basic/views/agent-edit.html

@@ -30,7 +30,7 @@
30 30
 								<fieldset>
31 31
 									<div class="row">
32 32
 										<section class="col col-4">
33
-											<label class="label txt-bg-red">代储名称<span style="color: red;">*</span></label>
33
+											<label class="label txt-bg-red">代储企业名称<span style="color: red;">*</span></label>
34 34
 											<label class="input">
35 35
 												<i class="icon-prepend fa fa-user"></i>
36 36
 												<input type="text" name="agentName" ng-model="agentEdit.agentName"

+ 2 - 2
src/main/resources/static/app/business/agent/basic/views/agent-list.html

@@ -25,7 +25,7 @@
25 25
                                         </div>&nbsp;
26 26
                                         <a class="btn btn-primary btn-sm" href="app/mould/代储企业数据模板.xlsx"><i class="glyphicon glyphicon-export"></i>&nbsp;导出模板</a>&emsp;
27 27
                                         <div class="form-group">
28
-                                            <label> 代储名称:&emsp;<input type="search" ng-model="agentName" class="form-control input-sm" placeholder="">&emsp;</label>
28
+                                            <label> 代储企业名称:&emsp;<input type="search" ng-model="agentName" class="form-control input-sm" placeholder="">&emsp;</label>
29 29
                                             <a class="btn btn-default btn-sm" ng-click="loadData()"><i class="fa fa-search"></i>&nbsp;查&nbsp;询</a>
30 30
                                         </div>
31 31
                                     </div>
@@ -42,7 +42,7 @@
42 42
                                 <table class="table table-striped table-bordered table-hover" width="100%">
43 43
                                     <thead>
44 44
                                     <tr>
45
-                                        <th data-class="expand">代储名称</th>
45
+                                        <th data-class="expand">代储企业名称</th>
46 46
                                         <th data-class="expand">法定代表人</th>
47 47
                                         <th data-class="expand">代储点性质</th>
48 48
                                         <th data-hide="phone">代储点类型</th>

+ 1 - 1
src/main/resources/static/app/business/agent/basic/views/agentDepot-edit.html

@@ -38,7 +38,7 @@
38 38
 											</label>
39 39
 										</section>
40 40
 										<section class="col col-4">
41
-											<label class="label">代储名称</label>
41
+											<label class="label">代储企业名称</label>
42 42
 											<label class="select">
43 43
 												<select ng-model="agentDepotEdit.agentId" required
44 44
 														ng-options="agent.id as agent.agentName for agent in agentData.list"

+ 1 - 1
src/main/resources/static/app/business/agent/basic/views/agentDepot-list.html

@@ -43,7 +43,7 @@
43 43
                                     <thead>
44 44
                                     <tr>
45 45
                                         <th data-class="expand">粮库名称</th>
46
-                                        <th data-class="expand">代储名称</th>
46
+                                        <th data-class="expand">代储企业名称</th>
47 47
                                         <th data-class="expand">库点类别</th>
48 48
                                         <th data-hide="phone">设计仓容</th>
49 49
                                         <th data-hide="phone">地址</th>

+ 3 - 1
src/main/resources/static/app/business/agent/basic/views/agentTank-list.html

@@ -25,7 +25,9 @@
25 25
                                         </div>&nbsp;
26 26
                                         <a class="btn btn-primary btn-sm" href="app/mould/油罐数据模板.xlsx"><i class="glyphicon glyphicon-export"></i>&nbsp;导出模板</a>&emsp;
27 27
                                         <div class="form-group">
28
-                                            <label> 油罐编号:&emsp;<input type="search" ng-model="tankNumber" class="form-control input-sm" placeholder="">&emsp;</label>
28
+                                            <label> 粮库名称:&emsp;
29
+                                                <input type="search" ng-model="agentDepotName" class="form-control input-sm" placeholder="">&emsp;
30
+                                            </label>
29 31
                                             <a class="btn btn-default btn-sm" ng-click="loadData()"><i class="fa fa-search"></i>&nbsp;查&nbsp;询</a>
30 32
                                         </div>
31 33
                                     </div>

+ 4 - 4
src/main/resources/static/app/business/agent/grainStorage/controller/qcCtrl.js

@@ -79,15 +79,15 @@ angular.module('app.business')
79 79
         $scope.showEdit = function(id,type, qcData) {
80 80
         	if (qcData.sjly == "1") {
81 81
         		// 汽车出入库详情
82
-        		if ("汽车入库" == qcData.ywlx) {
83
-                    qcData.ywlx = "入仓";
82
+        		if ("汽车入库" == qcData.businessType) {
83
+                    qcData.businessType = "入仓";
84 84
         		} else {
85
-                    qcData.ywlx = "出仓";
85
+                    qcData.businessType = "出仓";
86 86
         		}
87 87
                 var dicData = $rootScope.dicData;
88 88
         		$scope.obj = {
89 89
         			bizNo : id,
90
-        			ywlx : qcData.ywlx,
90
+        			ywlx : qcData.businessType,
91 91
                     agentOrgId : qcData.agentOrgId,
92 92
                     rq : $filter('date')(qcData.crkTime, 'yyyy-MM-dd HH:mm:ss'),
93 93
                     jhdh : "0",

+ 23 - 34
src/main/resources/static/app/storage/controller/numberManage/emptyPoliceCtrl.js

@@ -4,56 +4,45 @@ angular.module('app.business')
4 4
     .controller("emptyPoliceCtrl", function($scope, $rootScope, $http, $state, $filter, StorehouseService, warehouseService,
5 5
            kcswService, foodbasicinfoService, APP_CONFIG) {
6 6
         // 获取列表数据
7
+        var hwh = "KC";
7 8
         $scope.searchCondition = {};
8 9
         $scope.loadDataSelect = function() {
9 10
             $scope.getBasicData();
10
-            /* 先拿到库存实物表的数据 */
11
-            var serchCh = null;
12
-            var serchHwh = null;
13
-            if (undefined != $scope.searchCondition) {
14
-                if (undefined != $scope.searchCondition.houseId) {
15
-                    serchCh = $scope.searchCondition.houseId;
16
-                }
17
-                if (undefined != $scope.searchCondition.warehouseId) {
18
-                    serchHwh = $scope.searchCondition.warehouseId;
19
-                }
20
-                $scope.kcswStr = {ch : serchCh, hwh : serchHwh, unitid : $rootScope.orgInfo.orgId};
21
-            } else {
22
-                $scope.kcswStr = {ch : null, hwh : null, unitid : $rootScope.orgInfo.orgId};
23
-            }
24 11
             /* 分页信息 */
25 12
             $scope.pageInfo = {pageNum : 1, pageSize : 10};
13
+            $scope.kcswStr = {ch : null, hwh : null, unitid : $rootScope.orgInfo.orgId};
26 14
             kcswService.getEmptyList(null, null, $scope.kcswStr).then(function(data){
27
-                if (null != data.list && undefined != data.list) {
28
-                    var ch = "";
29
-                    var hwh = "";
30
-                    var lkmc = "";
31
-                    var shnd = "";
15
+                if (null != data.list && undefined != data.list && data.list.length != 0) {
32 16
                     for (var i = 0; i < data.list.length; i++) {
33
-                        ch = data.list[i].ch;
34
-                        hwh = data.list[i].hwh;
35
-                        shnd = $filter('date')(data.list[i].rq, "yyyy");
36
-                        data.list[i].rq = shnd;
37
-
38
-                        foodbasicinfoService.findBasicinfoByStoreWarehouse(ch, hwh, $rootScope.orgInfo.orgId).then(function(datas){
39
-                            if (null != datas.list && undefined != datas.list) {
40
-                                data.list[i].lkmc = datas.list[0].recordUnite;
41
-                            }
42
-                        },function(datas){
43
-                            console.log(datas);
44
-                        });
17
+                        hwh += data.list[i].hwh + ",";
18
+                        if(i == data.list.length - 1 ){
19
+                            hwh = hwh.substring(0,hwh.length);
20
+                            $scope.loadData();
21
+                        }
45 22
                     }
23
+                }else{
24
+                    $scope.loadData();
46 25
                 }
47
-                $scope.pageInfo = data;
48 26
             },function(data){
49 27
                 console.log(data);
50 28
             });
51 29
         };
52 30
 
31
+        $scope.loadData = function () {
32
+            warehouseService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,
33
+                $scope.ware, $rootScope.orgInfo.orgId, hwh, null).then(function (data) {
34
+                $scope.pageInfo = data;
35
+            }, function (data) {
36
+                console.log(data);
37
+            });
38
+        }
39
+
53 40
         // 翻页
54 41
         $scope.goPage = function(pageNum) {
55
-            $scope.pageInfo.pageNum = pageNum;
56
-            $scope.loadData();
42
+            if ($scope.pageInfo.pageNum != pageNum && pageNum > 0) {
43
+                $scope.pageInfo.pageNum = pageNum;
44
+                $scope.loadData();
45
+            }
57 46
         };
58 47
 
59 48
         // 货位列表

+ 4 - 8
src/main/resources/static/app/storage/views/numberManage/emptyPolice-list.html

@@ -16,14 +16,14 @@
16 16
                                     <div class="col-xs-3 col-sm-10">
17 17
                                         <div class="form-group">
18 18
                                             <label> 仓房名称:&emsp;
19
-                                                <select ng-model="emptyPolice.houseId" class="form-control input-sm"
19
+                                                <select ng-model="ware.storehouseId" class="form-control input-sm"
20 20
                                                         ng-options="store.storehouseId as store.storehouseName for store in storelist"
21 21
                                                         ng-change="loadWare()">
22 22
                                                     <option value="">请选择</option>
23 23
                                                 </select>&emsp;
24 24
                                             </label>
25 25
                                             <label> 货位名称:&emsp;
26
-                                                <select ng-model="emptyPolice.warehouseId" class="form-control input-sm"
26
+                                                <select ng-model="ware.warehouseId" class="form-control input-sm"
27 27
                                                         ng-options="ware.warehouseId as ware.warehouseName for ware in warelist">
28 28
                                                     <option value="">请选择</option>
29 29
                                                 </select>&emsp;
@@ -45,20 +45,16 @@
45 45
                                     <thead>
46 46
                                     <tr>
47 47
                                         <th data-hide="phone">序号</th>
48
-                                        <th data-class="expand">粮权所属</th>
49 48
                                         <th data-class="expand">仓房名称</th>
50 49
                                         <th data-class="expand">货位名称</th>
51
-                                        <th data-hide="phone">修改时间</th>
52 50
                                     </tr>
53 51
                                     </thead>
54 52
 
55 53
                                     <tbody>
56 54
                                     <tr ng-repeat="empty in pageInfo.list">
57 55
                                         <th align="center">{{$index + 1 + (pageInfo.pageNum-1) * pageInfo.pageSize}}</th>
58
-                                        <td>{{empty.lkmc}}</td>
59
-                                        <td>{{storehouseObj[empty.ch].storehouseName}}</td>
60
-                                        <td>{{warehouseObj[empty.hwh].warehouseName}}</td>
61
-                                        <td>{{empty.modifydate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
56
+                                        <td>{{storehouseObj[empty.storehouseId].storehouseName}}</td>
57
+                                        <td>{{empty.warehouseName}}</td>
62 58
                                     </tr>
63 59
                                     </tbody>
64 60
                                 </table>