Explorar el Código

性质转变单

gaodd hace 2 años
padre
commit
1aef2fd17f

+ 10 - 5
src/main/resources/static/app/business/deliveryStorageNotice/controller/propertyTransitionSheetAuditCtrl.js

@@ -2,7 +2,7 @@ angular.module('app.business').controller("propertyTransitionSheetAuditCtrl", fu
2 2
 		receiveNoticeService,commonUtilService,warehouseService,$rootScope,APP_CONFIG) {
3 3
 	
4 4
 	$scope.pageInfo = {pageNum : 1, pageSize : 10};
5
-	$scope.searchCondition = {auditState : 5,isSheet:0};
5
+	$scope.searchCondition = {isSheet:0};
6 6
      // 获取列表数据
7 7
      $scope.loadData = function() {
8 8
     	 receiveNoticeService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.searchCondition).then(function(data){
@@ -34,7 +34,7 @@ angular.module('app.business').controller("propertyTransitionSheetAuditCtrl", fu
34 34
  	
35 35
     // 查看页面
36 36
  	$scope.auditView = function(id) {
37
-        $state.go("app.business.propertyTransitionSheet-audit-pass-view", {id : id});
37
+        $state.go("app.business.propertyTransitionSheet-list-view", {id : id});
38 38
     }
39 39
      
40 40
 });
@@ -61,7 +61,12 @@ angular.module('app.business').controller("propertyTransitionSheetAuditSaveCtrl"
61 61
 		 receiveNoticeService.getAuditById(id).then(function(data){
62 62
 			 $scope.receiveNotice = data.businessNoticeReceive;
63 63
 			 $scope.auditList = data.auditList;
64
-			 $scope.isNotEdit = true;
64
+			 if($scope.auditList != null && $scope.auditList.length != 0){//有审批信息则展示
65
+				 $scope.isNotEdit = true; 
66
+			 }else{
67
+				 $scope.isNotEdit = false;
68
+			 }
69
+			 
65 70
 			 
66 71
 	     },function(data){
67 72
 	    	 console.log(data);
@@ -77,12 +82,12 @@ angular.module('app.business').controller("propertyTransitionSheetAuditSaveCtrl"
77 82
  	
78 83
     // 查看页面
79 84
  	$scope.auditView = function(id) {
80
-        $state.go("app.business.propertyTransitionSheet-audit-pass-view", {id : id});
85
+        $state.go("app.business.propertyTransitionSheet-list-view", {id : id});
81 86
     }
82 87
  	
83 88
  	//返回
84 89
 	 $scope.retList = function () {
85
-      $state.go("app.business.propertyTransitionSheet-audit-pass");
90
+      $state.go("app.business.propertyTransitionSheet-list");
86 91
     }
87 92
      
88 93
 });

+ 15 - 5
src/main/resources/static/app/business/deliveryStorageNotice/views/propertyTSheet-audit-list.html

@@ -7,7 +7,7 @@
7 7
                 <div jarvis-widget id="standard-datatable-widget" data-widget-color="darken" data-widget-editbutton="false">
8 8
                     <header>
9 9
                         <span class="widget-icon"> <i class="fa fa-table"></i> </span>
10
-                        <h2>性质转变单审批列表</h2>
10
+                        <h2>性质转变单审批列表</h2>
11 11
                     </header>
12 12
                     <div>
13 13
                         <div class="widget-body no-padding">
@@ -50,7 +50,7 @@
50 50
                         <table class="table table-striped table-bordered table-hover" width="100%">
51 51
 	                        <thead>
52 52
 		                        <tr>
53
-		                        	<th> 序号</th>
53
+		                            <th> 序号</th>
54 54
 		                            <th> 性质转变单编号</th>
55 55
 		                            <th> 仓房名称</th>
56 56
 		                            <th> 货位名称</th>
@@ -60,6 +60,7 @@
60 60
 		                            <th> 转后性质</th>
61 61
 		                            <th> 划转数量(吨)</th>
62 62
 		                            <th> 划转时间</th>
63
+		                            <th> 当前审批节点</th>
63 64
 		                            <th> 操作</th>
64 65
 		                        </tr>
65 66
 	                        </thead>
@@ -78,14 +79,23 @@
78 79
 	                                <td>{{dicData[receiveNotice.grainAttribute]}}</td>
79 80
 	                                <td>{{dicData[receiveNotice.hzqlsxzdm]}}</td>
80 81
 	                                <td>{{receiveNotice.count}}</td>
81
-	                                <td>{{receiveNotice.receiveTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
82
+	                                <td>{{receiveNotice.hzrq | date:'yyyy-MM-dd HH:mm:ss'}}</td>
83
+	                                <td>   
84
+		                                <div ng-switch="{{receiveNotice.auditState}}">
85
+		                                    <div ng-switch-when="0">仓储部经理审批</div>
86
+		                                    <div ng-switch-when="1">质检部经理审批</div>
87
+		                                    <div ng-switch-when="2">统计部经理审批</div>
88
+		                                    <div ng-switch-when="3">会计部经理审批</div>
89
+		                                    <div ng-switch-when="4">库领导审批</div>
90
+	                                    </div>
91
+	                                </td>
82 92
 	                                <td>
83
-	                                	<a href-void ng-click="auditView(receiveNotice.id)"><i class="fa fa-info-circle"></i>查看</a>
93
+	                                	<a href-void ng-click="auditView(receiveNotice.id)"><i class="fa fa-info-circle"></i>审批</a>
84 94
 	                                </td>
85 95
 	                            </tr>
86 96
 	                        </tbody>
87 97
                         </table>
88
-                        <div smart-include="app/layout/partials/page.tpl.html"></div>
98
+						<div smart-include="app/layout/partials/page.tpl.html"></div>
89 99
                         </div>
90 100
                         </div>
91 101
                     </div>

+ 42 - 35
src/main/resources/static/app/business/deliveryStorageNotice/views/propertyTSheet-list.html

@@ -7,7 +7,7 @@
7 7
                 <div jarvis-widget id="standard-datatable-widget" data-widget-color="darken" data-widget-editbutton="false">
8 8
                     <header>
9 9
                         <span class="widget-icon"> <i class="fa fa-table"></i> </span>
10
-                        <h2>性质转变单审批列表</h2>
10
+                        <h2>性质转变单列表</h2>
11 11
                     </header>
12 12
                     <div>
13 13
                         <div class="widget-body no-padding">
@@ -30,6 +30,14 @@
30 30
 												<option value="">请选择</option>
31 31
 											</select>&emsp;
32 32
                                        </label>
33
+                                       <label>
34
+                                       		审批状态:&emsp;
35
+                                            <select class="form-control input-sm" ng-model="searchCondition.auditState">
36
+                                                            <option value="">请选择</option>
37
+                                                            <option value="14">审批中</option>
38
+                                                            <option value="5">审批结束</option>
39
+                                            </select>
40
+                                       </label>&emsp;
33 41
 	                                       <label><a class="btn btn-default btn-sm" ng-click="loadData()">
34 42
 														<i class="fa fa-search"></i>&nbsp;查&nbsp;询
35 43
 													</a>
@@ -50,52 +58,51 @@
50 58
                         <table class="table table-striped table-bordered table-hover" width="100%">
51 59
 	                        <thead>
52 60
 		                        <tr>
53
-		                            <th> 序号</th>
54
-		                            <th> 性质转变单编号</th>
55
-		                            <th> 仓房名称</th>
56
-		                            <th> 货位名称</th>
57
-		                            <th> 粮油品种</th>
58
-		                            <th> 仓内粮食数量(吨)</th>
59
-		                            <th> 转前性质</th>
60
-		                            <th> 转后性质</th>
61
-		                            <th> 划转数量(吨)</th>
62
-		                            <th> 划转时间</th>
63
-		                            <th> 当前审批节点</th>
64
-		                            <th> 操作</th>
61
+		                        	<th data-class="expand" style="text-align:center;" width="3%"> 序号</th>
62
+		                            <th data-class="expand" style="text-align:center;" width="7%"> 性质转变单编号</th>
63
+		                            <th data-class="expand" style="text-align:center;" width="4%"> 仓房名称</th>
64
+		                            <th data-class="expand" style="text-align:center;" width="4%"> 货位名称</th>
65
+		                            <th data-class="expand" style="text-align:center;" width="5%"> 粮油品种</th>
66
+		                            <th data-class="expand" style="text-align:center;" width="7%"> 仓内粮食数量(吨)</th>
67
+		                            <th data-class="expand" style="text-align:center;" width="7%"> 转前性质</th>
68
+		                            <th data-class="expand" style="text-align:center;" width="7%"> 转后性质</th>
69
+		                            <th data-class="expand" style="text-align:center;" width="5%"> 划转数量(吨)</th>
70
+		                            <th data-class="expand" style="text-align:center;" width="8%"> 划转时间</th>
71
+		                            <th data-class="expand" style="text-align:center;" width="5%"> 审批状态</th>
72
+		                            <th data-class="expand" style="text-align:center;" width="4%"> 操作</th>
65 73
 		                        </tr>
66 74
 	                        </thead>
67 75
 	                        
68 76
 	                        <tbody>
69 77
 	                            <tr ng-repeat="receiveNotice in pageInfo.list">
70
-	                                <td>{{$index+1}}</td>
71
-	                                <td>{{receiveNotice.lsxzzbdh}}</td>
72
-	                                <td>{{storehouseObj[receiveNotice.houseId].storehouseName}}</td>
73
-	                                <td>
78
+	                                <td data-class="expand" style="text-align:center;">{{$index+1}}</td>
79
+	                                <td data-class="expand" style="text-align:center;">{{receiveNotice.lsxzzbdh}}</td>
80
+	                                <td data-class="expand" style="text-align:center;">{{storehouseObj[receiveNotice.houseId].storehouseName}}</td>
81
+	                                <td data-class="expand" style="text-align:center;">
74 82
 									    <span ng-if="receiveNotice.wareHouseId != null">{{wares[receiveNotice.wareHouseId].warehouseName}}</span>
75 83
 									    <span ng-if="receiveNotice.wareHouseId == null">---</span>
76 84
 									</td>
77
-	                                <td>{{dicData[receiveNotice.grainKind]}}</td>
78
-	                                <td>{{receiveNotice.lssl}}</td>
79
-	                                <td>{{dicData[receiveNotice.grainAttribute]}}</td>
80
-	                                <td>{{dicData[receiveNotice.hzqlsxzdm]}}</td>
81
-	                                <td>{{receiveNotice.count}}</td>
82
-	                                <td>{{receiveNotice.hzrq | date:'yyyy-MM-dd HH:mm:ss'}}</td>
83
-	                                <td>   
84
-		                                <div ng-switch="{{receiveNotice.auditState}}">
85
-		                                    <div ng-switch-when="0">仓储部经理审批</div>
86
-		                                    <div ng-switch-when="1">质检部经理审批</div>
87
-		                                    <div ng-switch-when="2">统计部经理审批</div>
88
-		                                    <div ng-switch-when="3">会计部经理审批</div>
89
-		                                    <div ng-switch-when="4">库领导审批</div>
90
-	                                    </div>
91
-	                                </td>
92
-	                                <td>
93
-	                                	<a href-void ng-click="auditView(receiveNotice.id)"><i class="fa fa-info-circle"></i>审批</a>
85
+	                                <td data-class="expand" style="text-align:center;">{{dicData[receiveNotice.grainKind]}}</td>
86
+	                                <td data-class="expand" style="text-align:center;">{{receiveNotice.lssl}}</td>
87
+	                                <td data-class="expand" style="text-align:center;">{{dicData[receiveNotice.grainAttribute]}}</td>
88
+	                                <td data-class="expand" style="text-align:center;">{{dicData[receiveNotice.hzqlsxzdm]}}</td>
89
+	                                <td data-class="expand" style="text-align:center;">{{receiveNotice.count}}</td>
90
+	                                <td data-class="expand" style="text-align:center;">{{receiveNotice.receiveTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
91
+	                                <td data-class="expand" style="text-align:center;">
92
+									    <span ng-if="receiveNotice.auditState == 0">仓储部经理审批中</span>
93
+									    <span ng-if="receiveNotice.auditState == 1">质检部经理审批中</span>
94
+									    <span ng-if="receiveNotice.auditState == 2">统计部经理审批中</span>
95
+									    <span ng-if="receiveNotice.auditState == 3">会计审批中</span>
96
+									    <span ng-if="receiveNotice.auditState == 4">库领导审批中</span>
97
+									    <span ng-if="receiveNotice.auditState == 5">审批结束</span>
98
+									</td>
99
+	                                <td data-class="expand" style="text-align:center;">
100
+	                                	<a href-void ng-click="auditView(receiveNotice.id)"><i class="fa fa-info-circle"></i>查看</a>
94 101
 	                                </td>
95 102
 	                            </tr>
96 103
 	                        </tbody>
97 104
                         </table>
98
-						<div smart-include="app/layout/partials/page.tpl.html"></div>
105
+                        <div smart-include="app/layout/partials/page.tpl.html"></div>
99 106
                         </div>
100 107
                         </div>
101 108
                     </div>

+ 9 - 9
src/main/resources/static/app/business/module.js

@@ -3471,7 +3471,7 @@ angular.module('app.business')
3471 3471
         	views: {
3472 3472
         		"content@app": {
3473 3473
         			controller: 'propertyTransitionSheetCtrl',
3474
-        			templateUrl: 'app/business/deliveryStorageNotice/views/propertyTSheet-list.html'
3474
+        			templateUrl: 'app/business/deliveryStorageNotice/views/propertyTSheet-audit-list.html'
3475 3475
         		}
3476 3476
         	}
3477 3477
         })
@@ -3489,24 +3489,24 @@ angular.module('app.business')
3489 3489
         	}
3490 3490
         })
3491 3491
         
3492
-        //已审批性质转变单
3493
-        .state('app.business.propertyTransitionSheet-audit-pass', {
3494
-        	url: '/business/propertyTransitionSheet-audit-pass',
3492
+        //性质转变单
3493
+        .state('app.business.propertyTransitionSheet-list', {
3494
+        	url: '/business/propertyTransitionSheet-list',
3495 3495
         	data: {
3496
-        		title: '已审批性质转变单列表'
3496
+        		title: '性质转变单列表'
3497 3497
         	},
3498 3498
         	views: {
3499 3499
         		"content@app": {
3500 3500
         			controller: 'propertyTransitionSheetAuditCtrl',
3501
-        			templateUrl: 'app/business/deliveryStorageNotice/views/propertyTSheet-audit-list.html'
3501
+        			templateUrl: 'app/business/deliveryStorageNotice/views/propertyTSheet-list.html'
3502 3502
         		}
3503 3503
         	}
3504 3504
         })
3505 3505
         
3506
-        .state('app.business.propertyTransitionSheet-audit-pass-view', {
3507
-        	url: '/business/propertyTransitionSheet-audit-pass-view/:id',
3506
+        .state('app.business.propertyTransitionSheet-list-view', {
3507
+        	url: '/business/propertyTransitionSheet-list-view/:id',
3508 3508
         	data: {
3509
-        		title: '已审批性质转变单详情'
3509
+        		title: '性质转变单详情'
3510 3510
         	},
3511 3511
         	views: {
3512 3512
         		"content@app": {

+ 3 - 3
src/main/resources/static/app/layout/partials/navigation.tpl.html

@@ -150,12 +150,12 @@
150 150
                                     <i class="fa fa-lg fa-fw fa-folder-open"></i>性质转变单管理
151 151
                               </a>
152 152
                               <ul>
153
+                              		<li has-func="476" data-ui-sref-active="active">
154
+                                        <a data-ui-sref="app.business.propertyTransitionSheet-list">性质转变单</a>
155
+                                    </li>
153 156
                                     <li has-func="475" data-ui-sref-active="active">
154 157
                                         <a data-ui-sref="app.business.propertyTransitionSheet-audit">性质转变单审批</a>
155 158
                                     </li>
156
-                                    <li has-func="476" data-ui-sref-active="active">
157
-                                        <a data-ui-sref="app.business.propertyTransitionSheet-audit-pass">已审批性质转变单</a>
158
-                                    </li>
159 159
                                 </ul>
160 160
                             </li>
161 161