Quellcode durchsuchen

性质转变单

gaodd vor 2 Jahren
Ursprung
Commit
47eafe71fd
16 geänderte Dateien mit 741 neuen und 17 gelöschten Zeilen
  1. 81 0
      src/main/resources/static/app/act/util/propertyTS-audit.html
  2. 2 0
      src/main/resources/static/app/business/contract/controller/grainReservescontractSaveCtrl.js
  3. 2 0
      src/main/resources/static/app/business/deliveryStorageNotice/controller/grainDeliveryStorageNoticeSaveCtrl.js
  4. 88 0
      src/main/resources/static/app/business/deliveryStorageNotice/controller/propertyTransitionSheetAuditCtrl.js
  5. 46 0
      src/main/resources/static/app/business/deliveryStorageNotice/controller/propertyTransitionSheetCtrl.js
  6. 61 0
      src/main/resources/static/app/business/deliveryStorageNotice/controller/propertyTransitionSheetSaveCtrl.js
  7. 2 0
      src/main/resources/static/app/business/deliveryStorageNotice/controller/receiveNoticeCtrl.js
  8. 73 0
      src/main/resources/static/app/business/deliveryStorageNotice/service/receiveNoticeService.js
  9. 96 0
      src/main/resources/static/app/business/deliveryStorageNotice/views/propertyTSheet-audit-list.html
  10. 68 0
      src/main/resources/static/app/business/deliveryStorageNotice/views/propertyTSheet-edit.html
  11. 106 0
      src/main/resources/static/app/business/deliveryStorageNotice/views/propertyTSheet-list.html
  12. 52 0
      src/main/resources/static/app/business/module.js
  13. 7 0
      src/main/resources/static/app/business/util/controller/grainUtilReceiveNoticeCtrl .js
  14. 14 0
      src/main/resources/static/app/layout/partials/navigation.tpl.html
  15. 21 8
      src/main/resources/static/app/storage/grainCard/controller/grainCarAddCtrl.js
  16. 22 9
      src/main/resources/static/app/storage/grainCard/controller/productGrainAddCtrl.js

+ 81 - 0
src/main/resources/static/app/act/util/propertyTS-audit.html

@@ -0,0 +1,81 @@
1
+<!-- MAIN CONTENT -->
2
+<div style="position:relative; padding: 0 14px;">
3
+    <!-- widget grid -->
4
+    <section id="widget-grid" widget-grid>
5
+        <!-- START ROW -->
6
+        <div class="row" style="margin: 0;">
7
+            <!-- NEW COL START -->
8
+            <article class="col-sm-12 col-md-12 col-lg-12">
9
+                <!-- Widget ID (each widget will need unique ID)-->
10
+                <div jarvis-widget id="form-grid-widget"
11
+                    data-widget-colorbutton="false" data-widget-editbutton="false"
12
+                    data-widget-custombutton="false">
13
+                    <!-- widget div-->
14
+                    <div style="border-top-width:1px; border-width:1px;position:relative;padding: 0; box-sizing: border-box;">
15
+                        <!-- widget content -->
16
+                        <div class="widget-body no-padding" style="margin: 0;">
17
+                            <form id="auditAdivce-form" class="smart-form ng-pristine ng-valid" data-validator-option="validateOptions" novalidate="novalidate" >
18
+                                <header ng-show="isNotEdit"><h3><strong>审批信息</strong></h3></header>
19
+                                <fieldset ng-show="isNotEdit">
20
+                                    <div ng-show="isNotEdit" class="form-group has-feedback"  >
21
+		                                <table class="table table-striped table-bordered table-hover" ng-repeat="audit in auditList" >
22
+		                                	<tr>
23
+		                                		<td  rowspan="3" width='10%'  >
24
+		                                			<label class="label"  style="margin-top: 45%;text-align: center;">{{audit.taskName}}</label>
25
+		                                		</td>
26
+		                                		<td>
27
+		                                			<label class="label" style="margin-top: 9px;text-align: center;">处理人</label>
28
+		                                		</td>
29
+		                                		<td width='30%'>
30
+						                            <section>
31
+			                                            <label class="input"> 
32
+			                                                <input class="form-control" type="text" ng-readonly="true"  
33
+			                                                placeholder="{{userInfoAllData[audit.operator] }}"
34
+			                                                required>
35
+			                                            </label>
36
+			                                        </section>
37
+		                                		</td>
38
+		                                		<td >
39
+		                                			<label class="label" style="margin-top: 9px;text-align: center;">提交部门</label>
40
+		                                		</td>
41
+		                                		<td colspan="2" width='30%' style="margin-top: 9px;text-align: center;">
42
+		                                			<label class="label" style="margin-top: 9px;text-align: center;">{{audit.fromDepartment}}</label>
43
+		                                		</td>
44
+		                                	</tr>
45
+		                                	<tr>
46
+		                                		<td rowspan="2">
47
+		                                			<label class="label" style="margin-top: 20px;text-align: center;">审批意见</label>
48
+		                                		</td>
49
+		                                		<td colspan="4" style="margin-top: 9px;text-align: center;">
50
+		                                			<label class="label" style="margin-top: 9px;text-align: center;">{{audit.content}}</label>
51
+		                                		</td>
52
+		                                	</tr>
53
+		                                	<tr>
54
+		                                		<td colspan="3" style="border-top: 0px;border-right: 0px;">
55
+		                                			<!-- 签字前面 -->
56
+		                                		</td>
57
+		                                		<td width='30%' style="border-top: 0px;border-left: 0px;">
58
+		                                		电子签名
59
+		                                		</td>
60
+		                                	</tr>
61
+		                                </table>
62
+                                    </div>
63
+                                 
64
+                                </fieldset>
65
+	                                <div  ng-show="propertyTSAudit" style=" border-width:1px; position:relative; padding: 12px 14px 12px 12px;">
66
+	                                    <label class="control-label pull-left" style="font-size:150%">审批意见</label>
67
+	                                    <textarea  class="form-control"  ng-model="audit.content"  rows="2" data-bv-field="review"></textarea>
68
+	                                </div>
69
+	                                <footer class="text-align-center" >
70
+	                                    <button type="button" class="btn btn-default" ng-click="retList()">取消</button>
71
+	                                    <button type="button" class="btn btn-primary" ng-show="propertyTSAudit" ng-click="submit(audit.content)">通过</button>
72
+	                                </footer>
73
+                                
74
+                            </form>
75
+                        </div>
76
+                    </div>
77
+            </article>
78
+        </div>
79
+    </section>
80
+</div>
81
+

+ 2 - 0
src/main/resources/static/app/business/contract/controller/grainReservescontractSaveCtrl.js

@@ -340,6 +340,8 @@ angular.module('app.business').controller("grainReservescontractSaveCtrl",
340 340
         	}
341 341
             $scope.pageInfo = {pageNum : 1, pageSize : 10};
342 342
             $scope.searchCondition.ywtype = 3;//合同只接收业务类型是轮换的通知单
343
+            $scope.searchCondition.auditState = 5;//选择性质转变单审批通过的
344
+            $scope.searchCondition.isNotice = 0;//选择可以引用的通知单
343 345
             if($scope.contract.contractType == 3148){//粮食
344 346
             	$scope.lyflag = 1 ; //用于区分粮食和油类的标志 粮食的话取仓房和货位都不为空的 油料取货位为空的
345 347
             }else if($scope.contract.contractType == 7131){

+ 2 - 0
src/main/resources/static/app/business/deliveryStorageNotice/controller/grainDeliveryStorageNoticeSaveCtrl.js

@@ -104,6 +104,8 @@ angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
104 104
         		$scope.modelItem.lyflag = 0;
105 105
         	}
106 106
         	
107
+        	$scope.modelItem.auditState = 5;//选择审批通过的
108
+        	$scope.modelItem.isNotice = 0;//选择可以引用的通知单
107 109
             var modalInstance = $uibModal.open({
108 110
                 size: 'lg',
109 111
                 templateUrl: 'app/business/util/views/grainReceiveNotice-list.html',

+ 88 - 0
src/main/resources/static/app/business/deliveryStorageNotice/controller/propertyTransitionSheetAuditCtrl.js

@@ -0,0 +1,88 @@
1
+angular.module('app.business').controller("propertyTransitionSheetAuditCtrl", function($scope, $http, $state, $uibModal,$stateParams,
2
+		receiveNoticeService,commonUtilService,warehouseService,$rootScope,APP_CONFIG) {
3
+	
4
+	$scope.pageInfo = {pageNum : 1, pageSize : 10};
5
+	$scope.searchCondition = {auditState : 5};
6
+     // 获取列表数据
7
+     $scope.loadData = function() {
8
+    	 receiveNoticeService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.searchCondition).then(function(data){
9
+             $scope.pageInfo = data;
10
+         },function(data){
11
+             console.log(data);
12
+         });
13
+     }
14
+     
15
+     $scope.loadData();
16
+     
17
+     // 货位列表
18
+     $scope.loadWare = function() {
19
+         warehouseService.getStorehouse($rootScope.depotId, $scope.searchCondition.houseId).then(function(data){
20
+             $scope.warelist = data.wareList;
21
+         },function(data){
22
+             console.log(data);
23
+         });
24
+     }
25
+     
26
+     // 翻页
27
+ 	$scope.goPage = function(pageNum) {
28
+ 		if ($scope.pageInfo.pageNum != pageNum && pageNum > 0) {
29
+      		$scope.pageInfo.pageNum = pageNum;
30
+      		$scope.loadData();
31
+      	}
32
+ 	}
33
+ 	
34
+ 	
35
+    // 查看页面
36
+ 	$scope.auditView = function(id) {
37
+        $state.go("app.business.propertyTransitionSheet-audit-pass-view", {id : id});
38
+    }
39
+     
40
+});
41
+
42
+angular.module('app.business').controller("propertyTransitionSheetAuditSaveCtrl", function($scope, $http, $state, $uibModal,$stateParams,
43
+		receiveNoticeService,commonUtilService,warehouseService,$rootScope,APP_CONFIG) {
44
+	
45
+	/*$scope.pageInfo = {pageNum : 1, pageSize : 10};
46
+	$scope.searchCondition = {auditState : 5};
47
+     // 获取列表数据
48
+     $scope.loadData = function() {
49
+    	 receiveNoticeService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.searchCondition).then(function(data){
50
+             $scope.pageInfo = data;
51
+         },function(data){
52
+             console.log(data);
53
+         });
54
+     }*/
55
+     
56
+     //$scope.loadData();
57
+     
58
+    
59
+	//根据id加载数据
60
+	 $scope.loadDataById = function(id) {
61
+		 receiveNoticeService.getAuditById(id).then(function(data){
62
+			 $scope.receiveNotice = data.businessNoticeReceive;
63
+			 $scope.auditList = data.auditList;
64
+			 $scope.isNotEdit = true;
65
+			 
66
+	     },function(data){
67
+	    	 console.log(data);
68
+	     });
69
+       
70
+	 }
71
+	 
72
+	 if($stateParams.id != 0){
73
+		 $scope.loadDataById($stateParams.id);
74
+	   	  $scope.propertyTSAudit = false;
75
+	   	 
76
+     }
77
+ 	
78
+    // 查看页面
79
+ 	$scope.auditView = function(id) {
80
+        $state.go("app.business.propertyTransitionSheet-audit-pass-view", {id : id});
81
+    }
82
+ 	
83
+ 	//返回
84
+	 $scope.retList = function () {
85
+      $state.go("app.business.propertyTransitionSheet-audit-pass");
86
+    }
87
+     
88
+});

+ 46 - 0
src/main/resources/static/app/business/deliveryStorageNotice/controller/propertyTransitionSheetCtrl.js

@@ -0,0 +1,46 @@
1
+angular.module('app.business').controller("propertyTransitionSheetCtrl", function($scope, $http, $state, $uibModal,
2
+		receiveNoticeService,commonUtilService,warehouseService,$rootScope,APP_CONFIG) {
3
+	
4
+	$scope.pageInfo = {pageNum : 1, pageSize : 10};
5
+	$scope.searchCondition = {userId : $rootScope.userInfo.userId};
6
+	
7
+     // 获取列表数据
8
+     $scope.loadData = function() {
9
+    	 receiveNoticeService.getAuditList($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.searchCondition).then(function(data){
10
+             $scope.pageInfo = data;
11
+         },function(data){
12
+             console.log(data);
13
+         });
14
+     }
15
+     
16
+     $scope.loadData();
17
+     
18
+     // 货位列表
19
+     $scope.loadWare = function() {
20
+         warehouseService.getStorehouse($rootScope.depotId, $scope.searchCondition.houseId).then(function(data){
21
+             $scope.warelist = data.wareList;
22
+         },function(data){
23
+             console.log(data);
24
+         });
25
+     }
26
+     
27
+     // 翻页
28
+ 	$scope.goPage = function(pageNum) {
29
+ 		if ($scope.pageInfo.pageNum != pageNum && pageNum > 0) {
30
+      		$scope.pageInfo.pageNum = pageNum;
31
+      		$scope.loadData();
32
+      	}
33
+ 	}
34
+ 	
35
+ 	
36
+    // 查看页面
37
+    $scope.auditView = function(id) {
38
+        $state.go("app.business.propertyTransitionSheet-audit-view", {id : id});
39
+    }
40
+    
41
+    //返回
42
+	 $scope.retList = function () {
43
+       $state.go("app.business.propertyTransitionSheet-audit");
44
+     }
45
+     
46
+});

+ 61 - 0
src/main/resources/static/app/business/deliveryStorageNotice/controller/propertyTransitionSheetSaveCtrl.js

@@ -0,0 +1,61 @@
1
+angular.module('app.business').controller("propertyTransitionSheetSaveCtrl", function($scope, $http, $state, $uibModal,
2
+		receiveNoticeService,$stateParams,warehouseService,$rootScope,APP_CONFIG) {
3
+	
4
+	$scope.pageInfo = {pageNum : 1, pageSize : 10};
5
+	$scope.searchCondition = {userId : $rootScope.userInfo.userId};
6
+     // 获取列表数据
7
+     $scope.loadData = function() {
8
+    	 receiveNoticeService.getAuditList($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.searchCondition).then(function(data){
9
+             $scope.pageInfo = data;
10
+         },function(data){
11
+             console.log(data);
12
+         });
13
+     }
14
+     
15
+	//根据id加载数据
16
+	 $scope.loadDataById = function(id) {
17
+		 receiveNoticeService.getAuditById(id).then(function(data){
18
+			 $scope.receiveNotice = data.businessNoticeReceive;
19
+			 $scope.auditList = data.auditList;
20
+			 if($scope.receiveNotice.auditState >0 ){
21
+				 $scope.isNotEdit = true;
22
+			 }else{
23
+				 $scope.isNotEdit = false;
24
+			 }
25
+	         
26
+	     },function(data){
27
+	    	 console.log(data);
28
+	     });
29
+        
30
+	 }
31
+
32
+	 if($stateParams.id != 0){
33
+	   	  $scope.loadDataById($stateParams.id);
34
+	   	  $scope.propertyTSAudit = true;
35
+     }
36
+
37
+    //返回
38
+	 $scope.retList = function () {
39
+       $state.go("app.business.propertyTransitionSheet-audit");
40
+     }
41
+	 
42
+		
43
+	//审批
44
+	 $scope.submit = function(content) {
45
+		 if(content ==null){
46
+			 content = "同意";
47
+		 }
48
+		 receiveNoticeService.audit($scope.receiveNotice,content).then(function(data){
49
+			 
50
+             alert("审批通过!");
51
+             $scope.retList();
52
+             $scope.loadData();
53
+	         
54
+	     },function(data){
55
+	    	 console.log(data);
56
+	     });
57
+        
58
+	 }
59
+	 
60
+     
61
+});

+ 2 - 0
src/main/resources/static/app/business/deliveryStorageNotice/controller/receiveNoticeCtrl.js

@@ -2,6 +2,8 @@ angular.module('app.business').controller("receiveNoticeCtrl", function($scope,
2 2
 		receiveNoticeService,commonUtilService,warehouseService,$rootScope,APP_CONFIG) {
3 3
 	
4 4
 	$scope.pageInfo = {pageNum : 1, pageSize : 10};
5
+
6
+	$scope.searchCondition = {isNotice : 0};
5 7
      // 获取列表数据
6 8
      $scope.loadData = function() {
7 9
     	 receiveNoticeService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.searchCondition).then(function(data){

+ 73 - 0
src/main/resources/static/app/business/deliveryStorageNotice/service/receiveNoticeService.js

@@ -18,6 +18,9 @@ angular.module('app.business').service("receiveNoticeService", function($http,$r
18 18
                 grainKind : searchCondition == undefined ? "" : searchCondition.grainKind,
19 19
                 grainGrade : searchCondition == undefined ? "" : searchCondition.grainGrade,
20 20
                 grainAttribute : searchCondition == undefined ? "" : searchCondition.grainAttribute,
21
+                userId : searchCondition == undefined ? "" : searchCondition.userId,
22
+                auditState : searchCondition == undefined ? "" : searchCondition.auditState,
23
+                isNotice : searchCondition == undefined ? "" : searchCondition.isNotice,
21 24
                 orgId : $rootScope.userInfo.orgId,
22 25
                 lyflag : lyflag
23 26
             }
@@ -48,6 +51,76 @@ angular.module('app.business').service("receiveNoticeService", function($http,$r
48 51
         });
49 52
         return d.promise;
50 53
     }
54
+    
55
+    this.getAuditList = function(pageNum, pageSize, searchCondition) {
56
+        var d = $q.defer();
57
+        $http({
58
+            method : 'GET',
59
+            url : APP_CONFIG.businessUrl + '/depot/business/propSheet/audit/getList',
60
+            params : {
61
+                pageNum : pageNum,
62
+                pageSize : pageSize,
63
+                ywtype : searchCondition == undefined ? "" : searchCondition.ywtype,
64
+                cktzd : searchCondition == undefined ? "" : searchCondition.cktzd,
65
+                crktype : searchCondition == undefined ? "" : searchCondition.crktype,
66
+                houseId : searchCondition == undefined ? "" : searchCondition.houseId,
67
+                wareHouseId : searchCondition == undefined ? "" : searchCondition.wareHouseId,
68
+                noticeNumber : searchCondition == undefined ? "" : searchCondition.noticeNumber,
69
+                grainKind : searchCondition == undefined ? "" : searchCondition.grainKind,
70
+                grainGrade : searchCondition == undefined ? "" : searchCondition.grainGrade,
71
+                grainAttribute : searchCondition == undefined ? "" : searchCondition.grainAttribute,
72
+                userId : searchCondition == undefined ? "" : searchCondition.userId,
73
+                orgId : $rootScope.userInfo.orgId
74
+            }
75
+        }).then(function successCallback(response) {
76
+            // 请求成功执行代码
77
+          
78
+            d.resolve(response.data);
79
+        }, function errorCallback(response) {
80
+            // 请求失败执行代码
81
+            d.reject("error");
82
+        });
83
+        return d.promise;
84
+    }  
85
+    
86
+    
87
+    this.audit = function(receiveNotice,content) {
88
+        var d = $q.defer();
89
+        $http({
90
+            method : 'POST',
91
+            url : APP_CONFIG.businessUrl + '/depot/business/propSheet/audit/audit',
92
+            data: {
93
+            	receiveNoticeJson : angular.toJson(receiveNotice),
94
+                userId : $rootScope.userInfo.userId,
95
+                realName : $rootScope.userInfo.realName,
96
+                orgName : $rootScope.orgInfo.orgName,
97
+                content : content
98
+            }
99
+        }).then(function successCallback(response) {
100
+            // 请求成功执行代码
101
+          
102
+            d.resolve(response.data);
103
+        }, function errorCallback(response) {
104
+            // 请求失败执行代码
105
+            d.reject("error");
106
+        });
107
+        return d.promise;
108
+    } 
109
+    
51 110
 
111
+    this.getAuditById = function(id) {
112
+        var d = $q.defer();
113
+        $http({
114
+            method: 'GET',
115
+            url: APP_CONFIG.businessUrl + '/depot/business/propSheet/audit/getAudit',
116
+            params: {
117
+                id : id
118
+            }
119
+        }).then(function successCallback(response) {
120
+            d.resolve(response.data);
121
+        }, function errorCallback(response) {
122
+        });
123
+        return d.promise;
124
+    }
52 125
 
53 126
 })

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

@@ -0,0 +1,96 @@
1
+<!-- MAIN CONTENT -->
2
+<div id="content">
3
+    <!-- widget grid -->
4
+    <section widget-grid id="widget-grid">
5
+        <div class="row">
6
+            <article class="col-sm-12">
7
+                <div jarvis-widget id="standard-datatable-widget" data-widget-color="darken" data-widget-editbutton="false">
8
+                    <header>
9
+                        <span class="widget-icon"> <i class="fa fa-table"></i> </span>
10
+                        <h2>性质转变单已审批列表</h2>
11
+                    </header>
12
+                    <div>
13
+                        <div class="widget-body no-padding">
14
+                        <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper form-inline no-footer" >
15
+                            <div class="dt-toolbar">
16
+                                <div class="col-xs-12 col-sm-10">
17
+                                    <div class="form-group">
18
+                                       <label>仓房名称:&emsp;   
19
+											<select ng-model="searchCondition.houseId" class="form-control input-sm"
20
+													ng-options="store.storehouseId as store.storehouseName for store in storelist"
21
+													ng-change="loadWare()">
22
+												<option value="">请选择</option>
23
+											</select>&emsp;
24
+                                       
25
+                                       </label>&emsp;
26
+                                       <label>
27
+                                       		货位名称:&emsp;
28
+											<select ng-model="searchCondition.wareHouseId" class="form-control input-sm"
29
+													ng-options="ware.warehouseId as ware.warehouseName for ware in warelist">
30
+												<option value="">请选择</option>
31
+											</select>&emsp;
32
+                                       </label>
33
+	                                       <label><a class="btn btn-default btn-sm" ng-click="loadData()">
34
+														<i class="fa fa-search"></i>&nbsp;查&nbsp;询
35
+													</a>
36
+										   </label>
37
+										  
38
+                                    </div>
39
+                                </div>
40
+                                <div class="col-sm-2 col-xs-12 hidden-xs">
41
+                                    <div class="dataTables_length">
42
+											<label>每页显示 <select ng-model="pageInfo.pageSize" ng-change="loadData(pageInfo.pageNum=1)"
43
+																ng-options="num as num for num in [1,10,25,50,100]"
44
+																class="form-control input-sm"></select> 条
45
+											</label>
46
+									</div>
47
+                                </div>
48
+                            </div>
49
+
50
+                        <table class="table table-striped table-bordered table-hover" width="100%">
51
+	                        <thead>
52
+		                        <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
+		                        </tr>
65
+	                        </thead>
66
+	                        
67
+	                        <tbody>
68
+	                            <tr ng-repeat="receiveNotice in pageInfo.list">
69
+	                                <td>{{$index+1}}</td>
70
+	                                <td>{{receiveNotice.lsxzzbdh}}</td>
71
+	                                <td>{{storehouseObj[receiveNotice.houseId].storehouseName}}</td>
72
+	                                <td>
73
+									    <span ng-if="receiveNotice.wareHouseId != null">{{wares[receiveNotice.wareHouseId].warehouseName}}</span>
74
+									    <span ng-if="receiveNotice.wareHouseId == null">---</span>
75
+									</td>
76
+	                                <td>{{dicData[receiveNotice.grainKind]}}</td>
77
+	                                <td>{{receiveNotice.lssl}}</td>
78
+	                                <td>{{dicData[receiveNotice.hzqlsxzdm]}}</td>
79
+	                                <td>{{dicData[receiveNotice.grainAttribute]}}</td>
80
+	                                <td>{{receiveNotice.count}}</td>
81
+	                                <td>{{receiveNotice.receiveTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
82
+	                                <td>
83
+	                                	<a href-void ng-click="auditView(receiveNotice.id)"><i class="fa fa-info-circle"></i>查看</a>
84
+	                                </td>
85
+	                            </tr>
86
+	                        </tbody>
87
+                        </table>
88
+                        <div smart-include="app/layout/partials/page.tpl.html"></div>
89
+                        </div>
90
+                        </div>
91
+                    </div>
92
+                </div>
93
+            </article>
94
+        </div>
95
+    </section>
96
+</div>

+ 68 - 0
src/main/resources/static/app/business/deliveryStorageNotice/views/propertyTSheet-edit.html

@@ -0,0 +1,68 @@
1
+<!-- MAIN CONTENT -->
2
+<div id="content" style=" border-width:5px; margin-left:2%;position:relative;margin-right:2%;">
3
+    <!-- widget grid -->
4
+    <section id="widget-grid" widget-grid>
5
+        <!-- START ROW -->
6
+        <div class="row">
7
+            <!-- NEW COL START -->
8
+            <article class="col-sm-12 col-md-12 col-lg-12">
9
+                <!-- Widget ID (each widget will need unique ID)-->
10
+                <div jarvis-widget id="form-grid-widget"
11
+                    data-widget-colorbutton="false" data-widget-editbutton="false"
12
+                    data-widget-custombutton="false">
13
+                    <!-- widget div-->
14
+                   <!--  <div> -->
15
+                        <!-- widget content -->
16
+                        <div class="widget-body no-padding">
17
+                            <form id="propertyTSheet-form" class="smart-form ng-pristine ng-valid" data-validator-option="validateOptions" novalidate="novalidate" style=" border-width:5px; margin-left:2%;position:relative;margin-right:2%;">
18
+                                <header>
19
+									<a href-void class="btn btn-default btn-xs" ng-click="retList()">
20
+										<i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
21
+									</a>
22
+									&nbsp;<strong>粮食性质转变单</strong>
23
+								</header>
24
+                                <fieldset>
25
+                              
26
+                              	<div class="col-xs-15 col-sm-15">
27
+									<table class="table table-striped  table-bordered table-hover" bordercolor="#999999"
28
+										style="border-style:solid;border-collapse:collapse;" border="1" width="100%">
29
+	                              		<tr colspan="8">
30
+	                              			<td>出库通知单计划号</td>
31
+	                              			<td colspan="5">{{receiveNotice.lsxzzbdh}}</td>
32
+	                              		</tr>
33
+	                              		<tr>
34
+	                              			<td>仓房名称</td>
35
+	                              			<td>{{storehouseObj[receiveNotice.houseId].storehouseName}}</td>
36
+	                              			<td>货位名称</td>
37
+	                              			<td>{{wares[receiveNotice.wareHouseId].warehouseName}}</td>
38
+	                              			<td>品种</td>
39
+	                              			<td>{{dicData[receiveNotice.grainKind]}}</td>
40
+	                              		</tr>
41
+	                              		<tr>
42
+	                              			<td>转前性质</td>
43
+	                              			<td>{{dicData[receiveNotice.grainAttribute]}}</td>
44
+	                              			<td>转后性质</td>
45
+	                              			<td>{{dicData[receiveNotice.hzqlsxzdm]}}</td>
46
+	                              			<td>划转数量(吨)</td>
47
+	                              			<td>{{receiveNotice.count}}</td>
48
+	                              		</tr>
49
+	                              		<tr>
50
+	                              			<td>仓内粮食数量(吨)</td>
51
+	                              			<td>{{receiveNotice.lssl}}</td>
52
+	                              			<td>划转时间</td>
53
+	                              			<td>{{receiveNotice.hzrq | date:'yyyy-MM-dd HH:mm:ss'}}</td>
54
+	                              			<td colspan="2"></td>
55
+	                              		</tr>
56
+	                              	</table>
57
+                              	</div>
58
+                                </fieldset>
59
+							<!-- </form> -->
60
+							 <div ng-include="'app/act/util/propertyTS-audit.html'"></div>
61
+                        </div>
62
+                    </div>
63
+            </article>
64
+		</div>
65
+		
66
+	</section>
67
+	
68
+</div>

+ 106 - 0
src/main/resources/static/app/business/deliveryStorageNotice/views/propertyTSheet-list.html

@@ -0,0 +1,106 @@
1
+<!-- MAIN CONTENT -->
2
+<div id="content">
3
+    <!-- widget grid -->
4
+    <section widget-grid id="widget-grid">
5
+        <div class="row">
6
+            <article class="col-sm-12">
7
+                <div jarvis-widget id="standard-datatable-widget" data-widget-color="darken" data-widget-editbutton="false">
8
+                    <header>
9
+                        <span class="widget-icon"> <i class="fa fa-table"></i> </span>
10
+                        <h2>性质转变单审批列表</h2>
11
+                    </header>
12
+                    <div>
13
+                        <div class="widget-body no-padding">
14
+                        <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper form-inline no-footer" >
15
+                            <div class="dt-toolbar">
16
+                                <div class="col-xs-12 col-sm-10">
17
+                                    <div class="form-group">
18
+                                       <label>仓房名称:&emsp;   
19
+											<select ng-model="searchCondition.houseId" class="form-control input-sm"
20
+													ng-options="store.storehouseId as store.storehouseName for store in storelist"
21
+													ng-change="loadWare()">
22
+												<option value="">请选择</option>
23
+											</select>&emsp;
24
+                                       
25
+                                       </label>&emsp;
26
+                                       <label>
27
+                                       		货位名称:&emsp;
28
+											<select ng-model="searchCondition.wareHouseId" class="form-control input-sm"
29
+													ng-options="ware.warehouseId as ware.warehouseName for ware in warelist">
30
+												<option value="">请选择</option>
31
+											</select>&emsp;
32
+                                       </label>
33
+	                                       <label><a class="btn btn-default btn-sm" ng-click="loadData()">
34
+														<i class="fa fa-search"></i>&nbsp;查&nbsp;询
35
+													</a>
36
+										   </label>
37
+										  
38
+                                    </div>
39
+                                </div>
40
+                                <div class="col-sm-2 col-xs-12 hidden-xs">
41
+                                    <div class="dataTables_length">
42
+											<label>每页显示 <select ng-model="pageInfo.pageSize" ng-change="loadData(pageInfo.pageNum=1)"
43
+																ng-options="num as num for num in [1,10,25,50,100]"
44
+																class="form-control input-sm"></select> 条
45
+											</label>
46
+									</div>
47
+                                </div>
48
+                            </div>
49
+
50
+                        <table class="table table-striped table-bordered table-hover" width="100%">
51
+	                        <thead>
52
+		                        <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>
65
+		                        </tr>
66
+	                        </thead>
67
+	                        
68
+	                        <tbody>
69
+	                            <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>
74
+									    <span ng-if="receiveNotice.wareHouseId != null">{{wares[receiveNotice.wareHouseId].warehouseName}}</span>
75
+									    <span ng-if="receiveNotice.wareHouseId == null">---</span>
76
+									</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>
94
+	                                </td>
95
+	                            </tr>
96
+	                        </tbody>
97
+                        </table>
98
+						<div smart-include="app/layout/partials/page.tpl.html"></div>
99
+                        </div>
100
+                        </div>
101
+                    </div>
102
+                </div>
103
+            </article>
104
+        </div>
105
+    </section>
106
+</div>

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

@@ -3402,7 +3402,59 @@ angular.module('app.business')
3402 3402
             }
3403 3403
         })
3404 3404
         
3405
+     //---------------------------------性质转变单审批--------------------------------
3406
+        .state('app.business.propertyTransitionSheet-audit', {
3407
+        	url: '/business/propertyTransitionSheet-audit',
3408
+        	data: {
3409
+        		title: '性质转变单审批列表'
3410
+        	},
3411
+        	views: {
3412
+        		"content@app": {
3413
+        			controller: 'propertyTransitionSheetCtrl',
3414
+        			templateUrl: 'app/business/deliveryStorageNotice/views/propertyTSheet-list.html'
3415
+        		}
3416
+        	}
3417
+        })
3418
+        
3419
+         .state('app.business.propertyTransitionSheet-audit-view', {
3420
+        	url: '/business/propertyTransitionSheet-audit-view/:id',
3421
+        	data: {
3422
+        		title: '性质转变单审批详情'
3423
+        	},
3424
+        	views: {
3425
+        		"content@app": {
3426
+        			controller: 'propertyTransitionSheetSaveCtrl',
3427
+        			templateUrl: 'app/business/deliveryStorageNotice/views/propertyTSheet-edit.html'
3428
+        		}
3429
+        	}
3430
+        })
3405 3431
         
3432
+        //已审批性质转变单
3433
+        .state('app.business.propertyTransitionSheet-audit-pass', {
3434
+        	url: '/business/propertyTransitionSheet-audit-pass',
3435
+        	data: {
3436
+        		title: '已审批性质转变单列表'
3437
+        	},
3438
+        	views: {
3439
+        		"content@app": {
3440
+        			controller: 'propertyTransitionSheetAuditCtrl',
3441
+        			templateUrl: 'app/business/deliveryStorageNotice/views/propertyTSheet-audit-list.html'
3442
+        		}
3443
+        	}
3444
+        })
3445
+        
3446
+        .state('app.business.propertyTransitionSheet-audit-pass-view', {
3447
+        	url: '/business/propertyTransitionSheet-audit-pass-view/:id',
3448
+        	data: {
3449
+        		title: '已审批性质转变单详情'
3450
+        	},
3451
+        	views: {
3452
+        		"content@app": {
3453
+        			controller: 'propertyTransitionSheetAuditSaveCtrl',
3454
+        			templateUrl: 'app/business/deliveryStorageNotice/views/propertyTSheet-edit.html'
3455
+        		}
3456
+        	}
3457
+        })
3406 3458
         
3407 3459
 //---------------------------------合同管理------------------------------------------
3408 3460
         .state('app.business.grainReservesContract', {

+ 7 - 0
src/main/resources/static/app/business/util/controller/grainUtilReceiveNoticeCtrl .js

@@ -37,6 +37,13 @@ angular.module('app.business').controller("grainUtilReceiveNoticeCtrl",
37 37
         }else{
38 38
         	$scope.lyflag = null;
39 39
         }
40
+        if(items.auditState != undefined && items.auditState != null){
41
+        	$scope.searchCondition.auditState = items.auditState;
42
+        }
43
+        if(items.isNotice != undefined && items.isNotice != null){
44
+        	$scope.searchCondition.isNotice = items.isNotice;
45
+        }
46
+        
40 47
     }
41 48
     
42 49
     $scope.loadData(1,10,$scope.searchCondition);

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

@@ -143,6 +143,20 @@
143 143
                                 <a data-ui-sref="app.business.grainReservesManage-receiveNotice">接收通知单</a>
144 144
                             </li>
145 145
                             <li has-func="274" data-menu-collapse>
146
+                              <a href="#">
147
+                                    <i class="fa fa-lg fa-fw fa-folder-open"></i>性质转变单管理
148
+                              </a>
149
+                              <ul>
150
+                                    <li has-func="279" data-ui-sref-active="active">
151
+                                        <a data-ui-sref="app.business.propertyTransitionSheet-audit">性质转变单审批</a>
152
+                                    </li>
153
+                                    <li has-func="280" data-ui-sref-active="active">
154
+                                        <a data-ui-sref="app.business.propertyTransitionSheet-audit-pass">已审批性质转变单</a>
155
+                                    </li>
156
+                                </ul>
157
+                            </li>
158
+                            
159
+                            <li has-func="274" data-menu-collapse>
146 160
                                 <a href="#">
147 161
                                     <i class="fa fa-lg fa-fw fa-folder-open"></i>合同管理
148 162
                                 </a>

+ 21 - 8
src/main/resources/static/app/storage/grainCard/controller/grainCarAddCtrl.js

@@ -1,5 +1,6 @@
1 1
 "use strict"; // 新增原粮 (补录)
2
-angular.module('app.storage').controller("grainCarAddCtrl", function ($scope, $state, $rootScope, $uibModal, $filter, $stateParams, warehouseService, grainCardService) {
2
+angular.module('app.storage').controller("grainCarAddCtrl", function ($scope, $state, $rootScope, $uibModal, $filter, $stateParams, warehouseService, 
3
+		grainCardService,receiveNoticeService) {
3 4
     // 初始保存对象
4 5
     $scope.grainCard = {};
5 6
 
@@ -95,16 +96,28 @@ angular.module('app.storage').controller("grainCarAddCtrl", function ($scope, $s
95 96
                 $scope.grainCard.grainVarietyName = '大豆'
96 97
             }*/
97 98
 
98
-            grainCardService.saveGrainOilCardData($scope.grainCard).then(function (data) {
99
-                if (data.retCode === '200' && data.message === 'success') {
100
-                    alert("保存成功");
101
-                    $scope.retList();
102
-                } else {
103
-                    alert("保存失败");
99
+            $scope.searchCondition = {houseId:$scope.grainCard.storehouseId ,wareHouseId:$scope.grainCard.warehouseId,isNotice:1};
100
+            //未进行审核完成的【性质转变单】,该仓再下一次申请入库验收的时候,会提示,需要将上一次的粮食性质转变单审核完成,才能进行提交。
101
+            receiveNoticeService.getPageInfo(1, 10,$scope.searchCondition).then(function(data){
102
+                if(data.list.length>0 && data.list[0].auditState != 5 ){
103
+                	alert("需要将上一次的粮食性质转变单审批完成,才能进行提交");
104
+                }else{
105
+                	grainCardService.saveGrainOilCardData($scope.grainCard).then(function (data) {
106
+                        if (data.retCode === '200' && data.message === 'success') {
107
+                            alert("保存成功");
108
+                            $scope.retList();
109
+                        } else {
110
+                            alert("保存失败");
111
+                        }
112
+                    }, function (data) {
113
+                        console.log(data);
114
+                    });
104 115
                 }
105
-            }, function (data) {
116
+            },function(data){
106 117
                 console.log(data);
107 118
             });
119
+            
120
+            
108 121
         }
109 122
     };
110 123
 

+ 22 - 9
src/main/resources/static/app/storage/grainCard/controller/productGrainAddCtrl.js

@@ -1,6 +1,6 @@
1 1
 "use strict";
2 2
 angular.module('app.storage').controller("productGrainAddCtrl",
3
-    function ($scope, $state, $rootScope, $uibModal, $http, $filter, warehouseService, $stateParams, 
3
+    function ($scope, $state, $rootScope, $uibModal, $http, $filter, warehouseService, $stateParams,receiveNoticeService, 
4 4
     		cerealsCardService, StorehouseService, keeperService, enumService, TankService, productService) {
5 5
         // console.log('id: ' + $stateParams.id, $stateParams.spareOne, $stateParams.lypzName);
6 6
         // 初始保存对象
@@ -273,16 +273,29 @@ angular.module('app.storage').controller("productGrainAddCtrl",
273 273
                 if (!mxpz) {
274 274
                     $scope.cerealsCard.spareThree = $scope.grainDetail[0].id;
275 275
                 }
276
-                cerealsCardService.saveData($scope.cerealsCard).then(function (data) {
277
-                    if (data.retCode === '200' && data.message === 'success') {
278
-                        alert("保存成功");
279
-                        $scope.retList();
280
-                    } else {
281
-                        alert("保存失败");
282
-                    }
283
-                }, function (data) {
276
+                
277
+                $scope.searchCondition = {houseId:$scope.cerealsCard.spareOne ,wareHouseId:$scope.cerealsCard.spareTwo,isNotice:1};
278
+                //未进行审核完成的【性质转变单】,该仓再下一次申请入库验收的时候,会提示,需要将上一次的粮食性质转变单审核完成,才能进行提交。
279
+                receiveNoticeService.getPageInfo(1, 10,$scope.searchCondition).then(function(data){
280
+                    if(data.list.length>0 && data.list[0].auditState != 5 ){
281
+                    	alert("需要将上一次的粮食性质转变单审批完成,才能进行提交");
282
+                    }else{
283
+	                    cerealsCardService.saveData($scope.cerealsCard).then(function (data) {
284
+	                        if (data.retCode === '200' && data.message === 'success') {
285
+	                            alert("保存成功");
286
+	                            $scope.retList();
287
+	                        } else {
288
+	                            alert("保存失败");
289
+	                        }
290
+	                    }, function (data) {
291
+	                        console.log(data);
292
+	                    });
293
+	                    }
294
+                },function(data){
284 295
                     console.log(data);
285 296
                 });
297
+                
298
+               
286 299
             }
287 300
         };
288 301