fanxw 1 년 전
부모
커밋
53e5e00f25

+ 4 - 3
src/main/resources/static/app/business/deliveryStorageNotice/controller/grainDeliveryStorageNoticeSaveCtrl.js

@@ -139,6 +139,7 @@ angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
139 139
                             console.log(data);
140 140
                         });
141 141
                     } else {//入库
142
+                    	$scope.y_lyxz = ele1.grainAttribute;
142 143
                     	ele1.grainAttribute = 3052;
143 144
                     	$scope.settzdData(ele1, result);
144 145
                     }
@@ -558,7 +559,7 @@ angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
558 559
                     contract_obj.grainKind = result.lypz;
559 560
                     contract_obj.grainDetailKind = result.mxpz;
560 561
                     contract_obj.grainGrade = result.lydj;
561
-                    //contract_obj.grainAttribute = result.lyxz; 
562
+                    $scope.y_lyxz = result.lyxz; 
562 563
                     contract_obj.grainAttribute = 3052;
563 564
                     contract_obj.grainAnnual = result.shnd;
564 565
                     contract_obj.grainProducingArea = result.lycd;
@@ -1274,7 +1275,7 @@ angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
1274 1275
                                     	//当选择出库通知单时,平台校验是否该企业存在状态为“入库中”的仓房,
1275 1276
                                     	//如果有,则在库级屏幕中央显示提示弹窗“预计出现同时出入库作业情况,请提前报送报备手续至市粮食储备有限公司”。
1276 1277
                                     	//要求显示20秒后自动关闭提示弹窗。
1277
-                                    	if (variable == "1") {
1278
+                                    	if (variable == "1" && $scope.y_lyxz == 6877) {
1278 1279
                                     		warehouseService.getCrkStatusList(0, 2, $rootScope.orgInfo.orgId).then(function(data){
1279 1280
                                     			if (data.length > 0) {
1280 1281
                                     				var showConfim=document.getElementById("crkStatusAlert");
@@ -1304,7 +1305,7 @@ angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
1304 1305
                                         $scope.saveFlag = false;
1305 1306
                                     }
1306 1307
                                 }else{
1307
-                                	if (variable == "1") {
1308
+                                	if (variable == "1" && $scope.y_lyxz == 6877) {
1308 1309
                                 		warehouseService.getCrkStatusList(0, 2, $rootScope.orgInfo.orgId).then(function(data){
1309 1310
                                             if (data.length > 0) {
1310 1311
                                             	var showConfim=document.getElementById("crkStatusAlert");

+ 2 - 2
src/main/resources/static/app/business/device/views/deviceStorage-edit.html

@@ -85,7 +85,7 @@
85 85
 
86 86
                                         <div class="row">
87 87
                                             <section class="col col-3">
88
-                                                <label class="label">单价(元)<span style="color: red;">*</span></label>
88
+                                                <label class="label">单价(元)<span style="color: red;">*</span></label>
89 89
                                                 <label class="input">
90 90
                                                     <input type="text" ng-model="dSbxxsjy.cgjg" name="cgjg" ng-readonly="isNotEdit" required
91 91
                                                            placeholder="单价" validDouble="true" />
@@ -267,7 +267,7 @@
267 267
                                                 </label>
268 268
                                             </section>
269 269
                                             <section class="col col-3">
270
-                                                <label class="label">单价(元):<span style="color: red;">*</span></label>
270
+                                                <label class="label">单价(元):<span style="color: red;">*</span></label>
271 271
                                                 <label class="input">
272 272
                                                     <input type="text" ng-model="dSbxxsjy.cgjg" name="cgjg" ng-readonly="isNotEdit"
273 273
                                                            placeholder="单价" validDouble="true" required />

+ 5 - 5
src/main/resources/static/app/storage/grainAnalysis/controller/monthAnalysisCtrl.js

@@ -55,7 +55,7 @@ angular.module('app.storage')
55 55
 		// 回调函数.
56 56
 		modalInstance.result.then(function (result) {
57 57
 			if (result != null) {
58
-				$state.go('app.storage.grainAnalysis.houseMonthAnalysisList', {id:result, butType:'update'});
58
+				$state.go('app.storage.grainAnalysis.yl.houseMonthAnalysisList', {id:result, butType:'update'});
59 59
 			}
60 60
 		}, function (reason) {
61 61
 			console.log(reason);
@@ -64,7 +64,7 @@ angular.module('app.storage')
64 64
 
65 65
     //查看和编辑跳转的页面
66 66
     $scope.edit = function(id, butType) {
67
-    	$state.go('app.storage.grainAnalysis.houseMonthAnalysisList', {id:id, butType:butType});
67
+    	$state.go('app.storage.grainAnalysis.yl.houseMonthAnalysisList', {id:id, butType:butType});
68 68
     }
69 69
 
70 70
     //删除一条报表
@@ -104,7 +104,7 @@ angular.module('app.storage')
104 104
 
105 105
     //单仓分析数据编辑、查看
106 106
     $scope.edit = function(obj, butType) {
107
-    	$state.go("app.storage.grainAnalysis.monthEdit", {
107
+    	$state.go("app.storage.grainAnalysis.yl.monthEdit", {
108 108
 			id: obj.id,
109 109
 			butType: butType,
110 110
 			gnly_butType: $stateParams.butType
@@ -130,7 +130,7 @@ angular.module('app.storage')
130 130
     
131 131
     //取消或返回
132 132
     $scope.retList = function () {
133
-    	$state.go('app.storage.grainAnalysis.monthList');
133
+    	$state.go('app.storage.grainAnalysis.yl.monthList');
134 134
     }
135 135
 
136 136
     //提交整条报表
@@ -309,7 +309,7 @@ angular.module('app.storage')
309 309
 
310 310
     //取消按钮
311 311
     $scope.retList = function(obj) {
312
-    	$state.go('app.storage.grainAnalysis.houseMonthAnalysisList', {id:obj.zid, butType:$stateParams.gnly_butType});
312
+    	$state.go('app.storage.grainAnalysis.yl.houseMonthAnalysisList', {id:obj.zid, butType:$stateParams.gnly_butType});
313 313
     }
314 314
     
315 315
 })

+ 5 - 5
src/main/resources/static/app/storage/grainAnalysis/controller/quarterAnalysisCtrl.js

@@ -56,7 +56,7 @@ angular.module('app.storage')
56 56
 		// 回调函数.
57 57
 		modalInstance.result.then(function (result) {
58 58
 			if (result != null) {
59
-				$state.go('app.storage.grainAnalysis.houseQuarterAnalysisList', {id:result, butType:'update'});
59
+				$state.go('app.storage.grainAnalysis.yl.houseQuarterAnalysisList', {id:result, butType:'update'});
60 60
 			}
61 61
 		}, function (reason) {
62 62
 			console.log(reason);
@@ -65,7 +65,7 @@ angular.module('app.storage')
65 65
 
66 66
     //查看和编辑跳转的页面
67 67
     $scope.edit = function(id, butType) {
68
-    	$state.go('app.storage.grainAnalysis.houseQuarterAnalysisList', {id:id, butType:butType});
68
+    	$state.go('app.storage.grainAnalysis.yl.houseQuarterAnalysisList', {id:id, butType:butType});
69 69
     }
70 70
 
71 71
     //删除一条报表
@@ -105,7 +105,7 @@ angular.module('app.storage')
105 105
 
106 106
     //单仓分析数据编辑、查看
107 107
     $scope.edit = function(obj, butType) {
108
-    	$state.go("app.storage.grainAnalysis.quarterEdit", {
108
+    	$state.go("app.storage.grainAnalysis.yl.quarterEdit", {
109 109
 			id: obj.id,
110 110
 			butType: butType,
111 111
 			gnly_butType: $stateParams.butType
@@ -131,7 +131,7 @@ angular.module('app.storage')
131 131
     
132 132
     //取消或返回
133 133
     $scope.retList = function () {
134
-    	$state.go('app.storage.grainAnalysis.quarterList');
134
+    	$state.go('app.storage.grainAnalysis.yl.quarterList');
135 135
     }
136 136
 
137 137
     //提交整条报表
@@ -280,7 +280,7 @@ angular.module('app.storage')
280 280
 
281 281
 	//取消按钮
282 282
     $scope.retList = function(obj) {
283
-    	$state.go('app.storage.grainAnalysis.houseQuarterAnalysisList', {id:obj.zid, butType:$stateParams.gnly_butType});
283
+    	$state.go('app.storage.grainAnalysis.yl.houseQuarterAnalysisList', {id:obj.zid, butType:$stateParams.gnly_butType});
284 284
     }
285 285
     
286 286
 })

+ 4 - 3
src/main/resources/static/app/storage/grainAnalysis/controller/selectHouseModalCtrl.js

@@ -13,7 +13,7 @@ angular.module('app.storage').controller("selectHouseModalCtrl",
13 13
     // items为上一个模态窗传过来的参数对象.
14 14
     // 获取列表数据
15 15
     $scope.loadData = function() {
16
-        grainAnalysisService.selectClcf(items.orgId).then(function(data){
16
+        grainAnalysisService.selectClcf(items.orgId, items.lylx).then(function(data){
17 17
     		$scope.list = data.data;
18 18
     		for (var i = 0; i < $scope.list.length; i++) {
19 19
     			$scope.list[i].checked = true;
@@ -71,7 +71,7 @@ angular.module('app.storage').controller("selectHouseModalCtrl",
71 71
     	if ($scope.funcType == "2") {//半月报
72 72
     		ssyf = $("#ybyf").val();
73 73
     		if (ssyf == null || ssyf == "" || $scope.sbzq == null || $scope.sbzq == "") {
74
-        		alert("上周期不能为空!");
74
+        		alert("上周期不能为空!");
75 75
         		return;
76 76
         	} else {
77 77
         		sbzq = $filter('date')(ssyf, "yyyy年MM月")+$scope.sbzq;
@@ -80,7 +80,7 @@ angular.module('app.storage').controller("selectHouseModalCtrl",
80 80
     	if ($scope.funcType == "3") {//季度报
81 81
     		ssyf = $("#jbyf").val();
82 82
     		if (ssyf == null || ssyf == "" || $scope.sbzq == null || $scope.sbzq == "") {
83
-        		alert("上周期不能为空!");
83
+        		alert("上周期不能为空!");
84 84
         		return;
85 85
         	} else {
86 86
         		sbzq = ssyf+"年"+$scope.sbzq;
@@ -100,6 +100,7 @@ angular.module('app.storage').controller("selectHouseModalCtrl",
100 100
     				sbzq: sbzq,
101 101
     				sbcfs: arr.length,
102 102
     				dataStatus: 0,
103
+    				lylx: items.lylx,
103 104
     				tjr: $rootScope.userInfo.realName
104 105
     		};
105 106
     		grainAnalysisService.save($scope.grain, arr).then(function(data){

+ 49 - 12
src/main/resources/static/app/storage/grainAnalysis/controller/weekAnalysisCtrl.js

@@ -5,7 +5,7 @@ angular.module('app.storage')
5 5
 
6 6
 	//周粮情分析列表数据查询
7 7
 	$scope.pageInfo = {pageNum : 1, pageSize : 10};
8
-	$scope.grain = {dataType : "1", startTime : "", endTime : "", orgId: $rootScope.orgInfo.orgId};
8
+	$scope.grain = {dataType : "1", startTime : "", endTime : "", orgId: $rootScope.orgInfo.orgId, lylx: $stateParams.lylx};
9 9
     $scope.loadData = function() {
10 10
     	$scope.grain.startTime = $("#startDate").val();
11 11
     	$scope.grain.endTime = $("#endDate").val();
@@ -37,6 +37,7 @@ angular.module('app.storage')
37 37
 		$scope.modelItem = [];//参数对象
38 38
         $scope.modelItem.orgId = $rootScope.orgInfo.orgId;
39 39
         $scope.modelItem.type = 1;//报表类型是周报
40
+        $scope.modelItem.lylx = $scope.grain.lylx;//粮油类型(0:原粮,1:成品粮)
40 41
 		
41 42
         // 展开选择仓房的模态框.
42 43
 		var modalInstance = $uibModal.open({
@@ -55,7 +56,12 @@ angular.module('app.storage')
55 56
 		// 回调函数.
56 57
 		modalInstance.result.then(function (result) {
57 58
 			if (result != null) {
58
-				$state.go('app.storage.grainAnalysis.houseWeekAnalysisList', {id:result, butType:'update'});
59
+				if ($scope.modelItem.lylx == '0') {
60
+					$state.go('app.storage.grainAnalysis.yl.houseWeekAnalysisList', {id:result, butType:'update', lylx:$scope.modelItem.lylx});
61
+				}
62
+				if ($scope.modelItem.lylx == '1') {
63
+					$state.go('app.storage.grainAnalysis.cpl.houseWeekAnalysisList', {id:result, butType:'update', lylx:$scope.modelItem.lylx});
64
+				}
59 65
 			}
60 66
 		}, function (reason) {
61 67
 			console.log(reason);
@@ -64,7 +70,12 @@ angular.module('app.storage')
64 70
 
65 71
     //查看和编辑跳转的页面
66 72
     $scope.edit = function(id, butType) {
67
-    	$state.go('app.storage.grainAnalysis.houseWeekAnalysisList', {id:id, butType:butType});
73
+    	if ($scope.grain.lylx == '0') {
74
+			$state.go('app.storage.grainAnalysis.yl.houseWeekAnalysisList', {id:id, butType:butType, lylx:$scope.grain.lylx});
75
+		}
76
+		if ($scope.grain.lylx == '1') {
77
+			$state.go('app.storage.grainAnalysis.cpl.houseWeekAnalysisList', {id:id, butType:butType, lylx:$scope.grain.lylx});
78
+		}
68 79
     }
69 80
 
70 81
     //删除一条报表
@@ -102,11 +113,22 @@ angular.module('app.storage')
102 113
 
103 114
     //单仓分析数据编辑、查看
104 115
     $scope.edit = function(obj, butType) {
105
-    	$state.go("app.storage.grainAnalysis.weekEdit", {
106
-			id: obj.id,
107
-			butType: butType,
108
-			gnly_butType: $stateParams.butType
109
-		});
116
+    	if ($stateParams.lylx == '0') {
117
+	    	$state.go("app.storage.grainAnalysis.yl.weekEdit", {
118
+				id: obj.id,
119
+				butType: butType,
120
+				gnly_butType: $stateParams.butType,
121
+				lylx: $stateParams.lylx
122
+			});
123
+    	}
124
+    	if ($stateParams.lylx == '1') {
125
+	    	$state.go("app.storage.grainAnalysis.cpl.weekEdit", {
126
+				id: obj.id,
127
+				butType: butType,
128
+				gnly_butType: $stateParams.butType,
129
+				lylx: $stateParams.lylx
130
+			});
131
+    	}
110 132
     }
111 133
 
112 134
     //删除一条单仓的分析数据
@@ -128,7 +150,12 @@ angular.module('app.storage')
128 150
     
129 151
     //取消或返回
130 152
     $scope.retList = function () {
131
-    	$state.go('app.storage.grainAnalysis.weekList');
153
+    	if ($stateParams.lylx == '0') {
154
+			$state.go('app.storage.grainAnalysis.yl.weekList', {lylx:$stateParams.lylx});
155
+		}
156
+		if ($stateParams.lylx == '1') {
157
+			$state.go('app.storage.grainAnalysis.cpl.weekList', {lylx:$stateParams.lylx});
158
+		}
132 159
     }
133 160
 
134 161
     //提交整条报表
@@ -144,7 +171,7 @@ angular.module('app.storage')
144 171
         }
145 172
     	grainAnalysisService.submitStorageGrainAnalysis(obj.id).then(function(data){
146 173
     		if (data.status == "200") {
147
-    			$state.go('app.storage.grainAnalysis.weekList');
174
+    			$state.go('app.storage.grainAnalysis.yl.weekList');
148 175
     			alert("操作成功!");
149 176
     		} else {
150 177
     			alert("操作失败!");
@@ -196,7 +223,12 @@ angular.module('app.storage')
196 223
 		GrainAnalysisService.getInfo(id).then(function(data) {
197 224
 			$scope.form = data;
198 225
 			$scope.temperature = data.tTestdata;//旧的温度数据
199
-			$scope.newtemperature = data.analysisTestdata;//旧的温度数据
226
+			if ($stateParams.lylx == '0') {
227
+				$scope.newtemperature = data.analysisTestdata;//旧的温度数据
228
+			}
229
+			if ($stateParams.lylx == '1') {
230
+				$scope.newtemperature = data.analysisCpltestdata;//成品粮的温度数据
231
+			}
200 232
 
201 233
 			//通过仓房号,获取货位号.
202 234
 			$scope.onStoreChange();
@@ -236,7 +268,12 @@ angular.module('app.storage')
236 268
 
237 269
 	// 返回
238 270
     $scope.retList = function (obj) {
239
-    	$state.go('app.storage.grainAnalysis.houseWeekAnalysisList', {id:obj.zid, butType:$stateParams.gnly_butType});
271
+    	if ($stateParams.lylx == '0') {
272
+    		$state.go('app.storage.grainAnalysis.yl.houseWeekAnalysisList', {id:obj.zid, butType:$stateParams.gnly_butType, lylx: $stateParams.lylx});
273
+    	}
274
+    	if ($stateParams.lylx == '1') {
275
+    		$state.go('app.storage.grainAnalysis.cpl.houseWeekAnalysisList', {id:obj.zid, butType:$stateParams.gnly_butType, lylx: $stateParams.lylx});
276
+    	}
240 277
     }
241 278
 	
242 279
 }).directive('stringToNumber', function() {

+ 5 - 3
src/main/resources/static/app/storage/grainAnalysis/service/grainAnalysisService.js

@@ -15,7 +15,8 @@ angular.module('app.storage').service("grainAnalysisService", function($http, $q
15 15
 				orgId : grain == undefined?"":grain.orgId,
16 16
 				dataType : grain == undefined?"":grain.dataType,
17 17
 				ssyf : grain == undefined?"":grain.ssyf,
18
-				dataStatus : grain == undefined?"":grain.dataStatus
18
+				dataStatus : grain == undefined?"":grain.dataStatus,
19
+			    lylx : grain == undefined?"":grain.lylx
19 20
 			}
20 21
 		}).then(function successCallback(response) {
21 22
 			// 请求成功执行代码
@@ -28,13 +29,14 @@ angular.module('app.storage').service("grainAnalysisService", function($http, $q
28 29
 	};
29 30
 	
30 31
 	//查询当前粮库储粮的仓房(不含油罐)
31
-	this.selectClcf = function (orgId) {
32
+	this.selectClcf = function (orgId, lylx) {
32 33
 		var d = $q.defer();
33 34
 		$http({
34 35
 			method : 'GET',
35 36
 			url : APP_CONFIG.keeperHouseUrl + '/storageGrainAnalysis/selectClcf',
36 37
 			params : {
37
-				orgId : orgId
38
+				orgId : orgId,
39
+				lylx : lylx
38 40
 			}
39 41
 		}).then(function successCallback(response) {
40 42
 			// 请求成功执行代码

+ 17 - 0
src/main/resources/static/app/storage/grainAnalysis/views/monthAnalysis-edit.html

@@ -129,6 +129,23 @@
129 129
 								       	</label>
130 130
 									</section>
131 131
 								</fieldset>
132
+								<fieldset>
133
+									<div class="row">
134
+										<section class="col col-3">
135
+	                                        <label class="label">提交人</label> 
136
+	                                        <label class="input"> 
137
+	                                            <input class="form-control" type="text" ng-model="form.tjr" name="tjr" required ng-readonly="true">
138
+	                                        </label>
139
+	                                    </section>
140
+										<section class="col col-3">
141
+	                                        <label class="label">提交日期<span style="color: red;">*</span></label> 
142
+	                                        <label class="input"> 
143
+	                                            <input class="form-control" type="text" ng-model="form.tjrq" name="tjrq" 
144
+				                                    onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" ng-disabled="true" required />
145
+	                                        </label>
146
+	                                    </section>
147
+									</div>
148
+                                </fieldset>
132 149
                                 <div>
133 150
                                     <footer class="text-align-center">
134 151
 										<button type="button" class="btn btn-primary" ng-hide="disabled" ng-click="save()">提交</button>

+ 21 - 4
src/main/resources/static/app/storage/grainAnalysis/views/quarterAnalysis-edit.html

@@ -114,10 +114,27 @@
114 114
 								       	</label>
115 115
 									</section>
116 116
 								</fieldset>
117
-                                    <footer class="text-align-center">
118
-										<button type="button" class="btn btn-primary" ng-hide="disabled" ng-click="save()">提交</button>
119
-                                        <button type="button" class="btn btn-default" ng-click="retList(form)">取消</button>
120
-                                    </footer>
117
+								<fieldset>
118
+									<div class="row">
119
+										<section class="col col-3">
120
+	                                        <label class="label">提交人</label> 
121
+	                                        <label class="input"> 
122
+	                                            <input class="form-control" type="text" ng-model="form.tjr" name="tjr" required ng-readonly="true">
123
+	                                        </label>
124
+	                                    </section>
125
+										<section class="col col-3">
126
+	                                        <label class="label">提交日期<span style="color: red;">*</span></label> 
127
+	                                        <label class="input"> 
128
+	                                            <input class="form-control" type="text" ng-model="form.tjrq" name="tjrq" 
129
+				                                    onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" ng-disabled="true" required />
130
+	                                        </label>
131
+	                                    </section>
132
+									</div>
133
+                                </fieldset>
134
+                                <footer class="text-align-center">
135
+									<button type="button" class="btn btn-primary" ng-hide="disabled" ng-click="save()">提交</button>
136
+                                    <button type="button" class="btn btn-default" ng-click="retList(form)">取消</button>
137
+                                </footer>
121 138
                                </div>
122 139
                             </form>
123 140
                         </div>

+ 217 - 0
src/main/resources/static/app/storage/grainAnalysis/views/weekAnalysis-cpl-edit.html

@@ -0,0 +1,217 @@
1
+<div id="content">
2
+    <section id="widget-grid" widget-grid>
3
+        <div class="row">
4
+            <article class="col-sm-12 col-md-12 col-lg-12">
5
+                <div jarvis-widget id="form-grid-widget"
6
+                    data-widget-colorbutton="false" data-widget-editbutton="false"
7
+                    data-widget-custombutton="false">
8
+                    <div>
9
+                        <div class="widget-body no-padding">
10
+                            <form id="weekAnlysis-form" class="smart-form ng-pristine ng-valid" data-validator-option="validateOptions" novalidate="novalidate">
11
+                                <header>
12
+									<a href-void class="btn btn-default btn-xs" ng-click="retList(form)">
13
+										<i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
14
+									</a>
15
+									&nbsp;<strong>周报详情</strong>
16
+									<span class="pull-right font-xs">带*的部分必须填写</span>
17
+								</header>
18
+								<h2 style="text-align: center;"><strong>周报详情</strong></h2>
19
+								<header>基本信息</header>
20
+                                <fieldset>
21
+                                    <div class="row">
22
+                                        <section class="col col-3">
23
+                                            <label class="label txt-bg-red">仓房名称<span style="color: red;">*</span></label> 
24
+                                            <label class="select"> 
25
+												<select ng-model="form.houseId" name="houseId" class="form-control"
26
+													ng-options="store.storehouseId as store.storehouseName for store in storelist"
27
+													ng-change="onStoreChange()" required ng-disabled="true">
28
+													<option value="">请选择</option>
29
+												</select>
30
+                                            </label>
31
+                                        </section>
32
+                                        <section class="col col-3">
33
+                                            <label class="label">货位名称<span style="color: red;">*</span></label> 
34
+                                            <label class="select"> 
35
+                                                <select ng-model="form.warehouseId" name="warehouseId"
36
+													ng-options="ware.warehouseId as ware.warehouseName for ware in wareAnalysisList"
37
+													ng-change="onTimeChange()" required ng-disabled="disabled">
38
+                                                    <option value="">--请选择--</option>
39
+                                                </select>
40
+                                            </label>
41
+                                        </section>
42
+										<section class="col col-3">
43
+                                            <label class="label">粮食品种</label> 
44
+                                            <label class="select"> 
45
+                                                <select ng-model="form.lspz" name="lspz" ng-options="enum.enumid as enum.enumname for enum in dicDataList[1061]" ng-disabled="true">
46
+                                                    <option value="">--请选择--</option>
47
+                                                </select>
48
+                                            </label>
49
+                                        </section>
50
+										<section class="col col-3">
51
+                                            <label class="label">责任保管员</label> 
52
+                                            <label class="input"> 
53
+                                                <input class="form-control" type="text" ng-model="form.zrbgy" name="zrbgy" ng-readonly="true" />
54
+                                            </label>
55
+                                        </section>
56
+										<section class="col col-3" id="DataTables_Table_1_wrapper" class="dataTables_wrapper">
57
+                                            <label class="label">检查开始日期<span style="color: red;">*</span></label> 
58
+                                            <label class="input"> 
59
+                                                <input class="form-control" type="text" ng-model="form.jcqsrq" name="jcqsrq" id="startDate"
60
+                                                    onClick="WdatePicker({lang:'zh-cn',maxDate:'#F{$dp.$D(\'endDate\')}'})"
61
+													ng-disabled="true" ng-blur="onTimeChange()" required />
62
+                                            </label>
63
+                                        </section>
64
+										<section class="col col-3">
65
+                                            <label class="label">检查终止日期<span style="color: red;">*</span></label> 
66
+                                            <label class="input"> 
67
+                                                <input type="text" name="jczzrq" ng-model="form.jczzrq" class="form-control" id="endDate"
68
+                                                    onClick="WdatePicker({lang:'zh-cn',minDate:'#F{$dp.$D(\'startDate\')}'})"
69
+													ng-disabled="true" ng-blur="onTimeChange()" required />
70
+                                            </label>
71
+                                        </section>
72
+                                        <section class="col col-3">
73
+                                            <label class="label">仓房类型</label> 
74
+                                            <label class="select"> 
75
+                                                <select ng-model="form.houseType" name="houseType" ng-options="enum.enumid as enum.enumname for enum in dicDataList[1064]" ng-disabled="true">
76
+                                                    <option value="">--请选择--</option>
77
+                                                </select>
78
+                                            </label>
79
+                                        </section>
80
+                                    </div>
81
+                                </fieldset>
82
+								<header><strong>温湿度情况</strong></header>
83
+								<fieldset>
84
+									<div class="col-xs-12 col-sm-12">
85
+										<table class="table table-striped table-bordered table-hover" width="100%">
86
+											<tbody><tr>
87
+												<th rowspan="2">
88
+													<label class="label" style="margin-top: 34px;text-align: center;">检查时间</label>
89
+												</th>
90
+												<th rowspan="2">
91
+													<label class="label" style="margin-top: 34px;text-align: center;">仓温</label>
92
+												</th>
93
+												<th colspan="2">
94
+													<label class="label" style="margin-top: 9px;text-align: center;">机动点1</label>
95
+												</th>
96
+												<th colspan="2">
97
+													<label class="label" style="margin-top: 9px;text-align: center;">机动点2</label>
98
+												</th>
99
+												<th colspan="2">
100
+													<label class="label" style="margin-top: 9px;text-align: center;">机动点3</label>
101
+												</th>
102
+											</tr>
103
+											<tr>
104
+												<th>
105
+													<label class="label" style="margin-top: 9px;text-align: center;">部位</label>
106
+												</th>
107
+												<th>
108
+													<label class="label" style="margin-top: 9px;text-align: center;">温度</label>
109
+												</th>
110
+												<th>
111
+													<label class="label" style="margin-top: 9px;text-align: center;">部位</label>
112
+												</th>
113
+												<th>
114
+													<label class="label" style="margin-top: 9px;text-align: center;">温度</label>
115
+												</th>
116
+												<th>
117
+													<label class="label" style="margin-top: 9px;text-align: center;">部位</label>
118
+												</th>
119
+												<th>
120
+													<label class="label" style="margin-top: 9px;text-align: center;">温度</label>
121
+												</th>
122
+											</tr>
123
+											<tr ng-repeat="item in newtemperature" class="ng-scope">
124
+												<th>
125
+													<label class="label" style="margin-top: 9px;text-align: center;">
126
+													    <input class="form-control" type="text" ng-model="item.jcsj" name="jcsj" ng-readonly="true" />
127
+													</label>
128
+												</th>
129
+												<th>
130
+													<label class="label" style="margin-top: 9px;text-align: center;">
131
+													    <input class="form-control" type="text" ng-model="item.cw" name="cw" ng-readonly="disabled"
132
+													    onblur="this.value= this.value.match(/(\-)?\d+(\.\d{0,2})?/) ? this.value.match(/(\-)?\d+(\.\d{0,2})?/)[0] : ''" />
133
+													</label>
134
+												</th>
135
+												<th>
136
+													<label class="label" style="margin-top: 9px;text-align: center;">
137
+													    <input class="form-control" type="text" ng-model="item.bwOne" name="bwOne" ng-readonly="disabled" />
138
+													</label>
139
+												</th>
140
+												<th>
141
+													<label class="label" style="margin-top: 9px;text-align: center;">
142
+													    <input class="form-control" type="text" ng-model="item.wdOne" name="wdOne" ng-readonly="disabled"
143
+													    onblur="this.value= this.value.match(/(\-)?\d+(\.\d{0,2})?/) ? this.value.match(/(\-)?\d+(\.\d{0,2})?/)[0] : ''" />
144
+													</label>
145
+												</th>
146
+												<th>
147
+													<label class="label" style="margin-top: 9px;text-align: center;">
148
+													    <input class="form-control" type="text" ng-model="item.bwTwo" name="bwTwo" ng-readonly="disabled" />
149
+													</label>
150
+												</th>
151
+												<th>
152
+													<label class="label" style="margin-top: 9px;text-align: center;">
153
+													    <input class="form-control" type="text" ng-model="item.wdTwo" name="wdTwo" ng-readonly="disabled"
154
+													    onblur="this.value= this.value.match(/(\-)?\d+(\.\d{0,2})?/) ? this.value.match(/(\-)?\d+(\.\d{0,2})?/)[0] : ''" />
155
+													</label>
156
+												</th>
157
+												<th>
158
+													<label class="label" style="margin-top: 9px;text-align: center;">
159
+													    <input class="form-control" type="text" ng-model="item.bwThree" name="bwThree" ng-readonly="disabled" />
160
+													</label>
161
+												</th>
162
+												<th>
163
+													<label class="label" style="margin-top: 9px;text-align: center;">
164
+													    <input class="form-control" type="text" ng-model="item.wdThree" name="wdThree" ng-readonly="disabled"
165
+													    onblur="this.value= this.value.match(/(\-)?\d+(\.\d{0,2})?/) ? this.value.match(/(\-)?\d+(\.\d{0,2})?/)[0] : ''" />
166
+													</label>
167
+												</th>
168
+											</tr>
169
+										</tbody></table>
170
+									</div>
171
+								</fieldset>
172
+								<header><strong>仓内检查情况<span style="color: red;">*</span></strong></header>
173
+								<fieldset>
174
+									<section>
175
+								       	<label class="textarea"> <i class="icon-append fa fa-comment"></i>
176
+								           	<textarea rows="5" ng-model="form.lqzk" name="lqzk" maxlength="255" class="ng-pristine ng-untouched ng-valid" required ng-disabled="disabled"></textarea>
177
+								       	</label>
178
+									</section>
179
+								</fieldset>
180
+								<header><strong>粮情分析<span style="color: red;">*</span></strong></header>
181
+								<fieldset>
182
+									<section>
183
+								       	<label class="textarea"> <i class="icon-append fa fa-comment"></i>
184
+								           	<textarea rows="5" ng-model="form.lqfx" name="lqfx" maxlength="255" class="ng-pristine ng-untouched ng-valid" required ng-disabled="disabled"></textarea>
185
+								       	</label>
186
+									</section>
187
+								</fieldset>
188
+								<fieldset>
189
+									<div class="row">
190
+										<section class="col col-3">
191
+	                                        <label class="label">提交人</label> 
192
+	                                        <label class="input"> 
193
+	                                            <input class="form-control" type="text" ng-model="form.tjr" name="tjr" required ng-readonly="true">
194
+	                                        </label>
195
+	                                    </section>
196
+										<section class="col col-3">
197
+	                                        <label class="label">提交日期<span style="color: red;">*</span></label> 
198
+	                                        <label class="input"> 
199
+	                                            <input class="form-control" type="text" ng-model="form.tjrq" name="tjrq" 
200
+				                                    onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" ng-disabled="true" required />
201
+	                                        </label>
202
+	                                    </section>
203
+									</div>
204
+                                </fieldset>
205
+                                <div>
206
+                                    <footer class="text-align-center">
207
+										<button type="button" class="btn btn-primary" ng-hide="disabled" ng-click="save()">提交</button>
208
+                                        <button type="button" class="btn btn-default" ng-click="retList(form)">取消</button>
209
+                                    </footer>
210
+                               </div>
211
+                            </form>
212
+                        </div>
213
+                    </div>
214
+            </article>
215
+        </div>
216
+    </section>
217
+</div>

+ 25 - 35
src/main/resources/static/app/storage/grainAnalysis/views/weekAnalysis-edit.html

@@ -22,15 +22,9 @@
22 22
                                         <section class="col col-3">
23 23
                                             <label class="label txt-bg-red">仓房名称<span style="color: red;">*</span></label> 
24 24
                                             <label class="select"> 
25
-												<select 
26
-													ng-model="form.houseId"
27
-													name="houseId"
28
-													class="form-control"
25
+												<select ng-model="form.houseId" name="houseId" class="form-control"
29 26
 													ng-options="store.storehouseId as store.storehouseName for store in storelist"
30
-													ng-change="onStoreChange()"
31
-													required
32
-													ng-disabled="true"
33
-												>
27
+													ng-change="onStoreChange()" required ng-disabled="true">
34 28
 													<option value="">请选择</option>
35 29
 												</select>
36 30
                                             </label>
@@ -38,14 +32,9 @@
38 32
                                         <section class="col col-3">
39 33
                                             <label class="label">货位名称<span style="color: red;">*</span></label> 
40 34
                                             <label class="select"> 
41
-                                                <select 
42
-													ng-model="form.warehouseId"
43
-													name="warehouseId"
35
+                                                <select ng-model="form.warehouseId" name="warehouseId"
44 36
 													ng-options="ware.warehouseId as ware.warehouseName for ware in wareAnalysisList"
45
-													ng-change="onTimeChange()"
46
-													required
47
-													ng-disabled="disabled"
48
-												>
37
+													ng-change="onTimeChange()" required ng-disabled="disabled">
49 38
                                                     <option value="">--请选择--</option>
50 39
                                                 </select>
51 40
                                             </label>
@@ -75,33 +64,17 @@
75 64
 										<section class="col col-3" id="DataTables_Table_1_wrapper" class="dataTables_wrapper">
76 65
                                             <label class="label">检查开始日期<span style="color: red;">*</span></label> 
77 66
                                             <label class="input"> 
78
-                                                <input 
79
-													class="form-control"
80
-													type="text"
81
-                                                    ng-model="form.jcqsrq"
82
-													name="jcqsrq"
83
-													id="startDate"
67
+                                                <input class="form-control" type="text" ng-model="form.jcqsrq" name="jcqsrq" id="startDate"
84 68
                                                     onClick="WdatePicker({lang:'zh-cn',maxDate:'#F{$dp.$D(\'endDate\')}'})"
85
-													ng-disabled="true"
86
-													ng-blur="onTimeChange()"
87
-													required
88
-												/>
69
+													ng-disabled="true" ng-blur="onTimeChange()" required />
89 70
                                             </label>
90 71
                                         </section>
91 72
 										<section class="col col-3">
92 73
                                             <label class="label">检查终止日期<span style="color: red;">*</span></label> 
93 74
                                             <label class="input"> 
94
-                                                <input 
95
-													type="text"
96
-													name="jczzrq"
97
-                                                    ng-model="form.jczzrq"
98
-													class="form-control"
99
-													id="endDate"
75
+                                                <input type="text" name="jczzrq" ng-model="form.jczzrq" class="form-control" id="endDate"
100 76
                                                     onClick="WdatePicker({lang:'zh-cn',minDate:'#F{$dp.$D(\'startDate\')}'})"
101
-													ng-disabled="true"
102
-													ng-blur="onTimeChange()"
103
-													required
104
-												/>
77
+													ng-disabled="true" ng-blur="onTimeChange()" required />
105 78
                                             </label>
106 79
                                         </section>
107 80
                                     </div>
@@ -192,6 +165,23 @@
192 165
 								       	</label>
193 166
 									</section>
194 167
 								</fieldset>
168
+								<fieldset>
169
+									<div class="row">
170
+										<section class="col col-3">
171
+	                                        <label class="label">提交人</label> 
172
+	                                        <label class="input"> 
173
+	                                            <input class="form-control" type="text" ng-model="form.tjr" name="tjr" required ng-readonly="true">
174
+	                                        </label>
175
+	                                    </section>
176
+										<section class="col col-3">
177
+	                                        <label class="label">提交日期<span style="color: red;">*</span></label> 
178
+	                                        <label class="input"> 
179
+	                                            <input class="form-control" type="text" ng-model="form.tjrq" name="tjrq" 
180
+				                                    onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" ng-disabled="true" required />
181
+	                                        </label>
182
+	                                    </section>
183
+									</div>
184
+                                </fieldset>
195 185
                                 <div>
196 186
                                     <footer class="text-align-center">
197 187
 										<button type="button" class="btn btn-primary" ng-hide="disabled" ng-click="save()">提交</button>

+ 4 - 2
src/main/resources/static/app/storage/grainAnalysis/views/weekAnalysis-list.html

@@ -42,9 +42,10 @@
42 42
 											<tr>
43 43
 												<th data-class="expand" style="text-align:center;">序号</th>
44 44
 												<th data-class="expand" style="text-align:center;">所属月份</th>
45
+												<th data-class="expand" style="text-align:center;">提交人</th>
45 46
 												<th data-class="expand" style="text-align:center;">提交日期</th>
46 47
 												<th data-class="expand" style="text-align:center;">检查开始日期----检查结束日期</th>
47
-												<th data-class="expand" style="text-align:center;">上报仓房数</th>
48
+												<th data-class="expand" style="text-align:center;" ng-show="grain.lylx=='0'">上报仓房数</th>
48 49
 												<th data-class="expand" style="text-align:center;">状态</th>
49 50
 												<th data-class="expand" style="text-align:center;">操作</th>
50 51
 											</tr>
@@ -54,9 +55,10 @@
54 55
 											<tr ng-repeat="item in pageInfo.list">
55 56
 												<td style="text-align:center;">{{$index + 1 + (pageInfo.pageNum-1) * pageInfo.pageSize}}</td>
56 57
 												<td style="text-align:center;">{{ item.ssyf }}</td>
58
+												<td style="text-align:center;">{{ item.tjr }}</td>
57 59
 												<td style="text-align:center;">{{ item.tjrq }}</td>
58 60
 												<td style="text-align:center;">{{ item.jcksrq + '----' + item.jcjsrq }}</td>
59
-												<td style="text-align:center;">{{ item.sbcfs }}</td>
61
+												<td style="text-align:center;" ng-show="grain.lylx=='0'">{{ item.sbcfs }}</td>
60 62
 												<td style="text-align:center;">{{ item.dataStatus == '0'?"未完成":"已完成" }}</td>
61 63
 												<td style="text-align:center;">
62 64
 													<a href-void ng-click="edit(item.id, 'update')" ng-show="item.dataStatus=='0'">编辑</a>

+ 68 - 18
src/main/resources/static/app/storage/module.js

@@ -2169,8 +2169,14 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2169 2169
                     title: '粮情分析报告'
2170 2170
                 }
2171 2171
             })
2172
-            .state('app.storage.grainAnalysis.weekList', {
2173
-                url: '/weekList',
2172
+            .state('app.storage.grainAnalysis.yl', {
2173
+                abstract: true,
2174
+                data: {
2175
+                    title: '原粮'
2176
+                }
2177
+            })
2178
+            .state('app.storage.grainAnalysis.yl.weekList', {
2179
+                url: '/yl/weekList/:lylx',
2174 2180
                 data: {
2175 2181
                     title: '周报'
2176 2182
                 },
@@ -2182,8 +2188,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2182 2188
                 }
2183 2189
             })
2184 2190
             //列表点新建或编辑查看跳转的路由
2185
-            .state('app.storage.grainAnalysis.houseWeekAnalysisList', {
2186
-                url: '/houseWeekAnalysisList/:id/:butType',
2191
+            .state('app.storage.grainAnalysis.yl.houseWeekAnalysisList', {
2192
+                url: '/yl/houseWeekAnalysisList/:id/:butType/:lylx',
2187 2193
                 data: {
2188 2194
                     title: '周报详情'
2189 2195
                 },
@@ -2195,8 +2201,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2195 2201
                 }
2196 2202
             })
2197 2203
             //编辑单仓粮情分析跳转的路由
2198
-            .state('app.storage.grainAnalysis.weekEdit', {
2199
-                url: '/weekEdit/:id/:butType/:gnly_butType',
2204
+            .state('app.storage.grainAnalysis.yl.weekEdit', {
2205
+                url: '/yl/weekEdit/:id/:butType/:gnly_butType/:lylx',
2200 2206
                 data: {
2201 2207
                     title: '周报详情'
2202 2208
                 },
@@ -2207,8 +2213,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2207 2213
                     }
2208 2214
                 }
2209 2215
             })
2210
-            .state('app.storage.grainAnalysis.monthList', {
2211
-                url: '/monthList',
2216
+            .state('app.storage.grainAnalysis.yl.monthList', {
2217
+                url: '/yl/monthList/:lylx',
2212 2218
                 data: {
2213 2219
                     title: '半月报'
2214 2220
                 },
@@ -2220,8 +2226,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2220 2226
                 }
2221 2227
             })
2222 2228
             //列表点新建或编辑查看跳转的路由
2223
-            .state('app.storage.grainAnalysis.houseMonthAnalysisList', {
2224
-                url: '/houseMonthAnalysisList/:id/:butType',
2229
+            .state('app.storage.grainAnalysis.yl.houseMonthAnalysisList', {
2230
+                url: '/yl/houseMonthAnalysisList/:id/:butType',
2225 2231
                 data: {
2226 2232
                     title: '半月报详情'
2227 2233
                 },
@@ -2232,8 +2238,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2232 2238
                     }
2233 2239
                 }
2234 2240
             })
2235
-            .state('app.storage.grainAnalysis.monthEdit', {
2236
-                url: '/monthEdit/:id/:butType/:gnly_butType',
2241
+            .state('app.storage.grainAnalysis.yl.monthEdit', {
2242
+                url: '/yl/monthEdit/:id/:butType/:gnly_butType',
2237 2243
                 data: {
2238 2244
                     title: '半月报详情'
2239 2245
                 },
@@ -2244,8 +2250,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2244 2250
                     }
2245 2251
                 }
2246 2252
             })
2247
-            .state('app.storage.grainAnalysis.quarterList', {
2248
-                url: '/quarterList',
2253
+            .state('app.storage.grainAnalysis.yl.quarterList', {
2254
+                url: '/yl/quarterList/:lylx',
2249 2255
                 data: {
2250 2256
                     title: '季报'
2251 2257
                 },
@@ -2257,8 +2263,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2257 2263
                 }
2258 2264
             })
2259 2265
             //列表点新建或编辑查看跳转的路由
2260
-            .state('app.storage.grainAnalysis.houseQuarterAnalysisList', {
2261
-                url: '/houseQuarterAnalysisList/:id/:butType',
2266
+            .state('app.storage.grainAnalysis.yl.houseQuarterAnalysisList', {
2267
+                url: '/yl/houseQuarterAnalysisList/:id/:butType',
2262 2268
                 data: {
2263 2269
                     title: '季报详情'
2264 2270
                 },
@@ -2269,8 +2275,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2269 2275
                     }
2270 2276
                 }
2271 2277
             })
2272
-            .state('app.storage.grainAnalysis.quarterEdit', {
2273
-                url: '/quarterEdit/:id/:butType/:gnly_butType',
2278
+            .state('app.storage.grainAnalysis.yl.quarterEdit', {
2279
+                url: '/yl/quarterEdit/:id/:butType/:gnly_butType',
2274 2280
                 data: {
2275 2281
                     title: '季报详情'
2276 2282
                 },
@@ -2281,6 +2287,50 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2281 2287
                     }
2282 2288
                 }
2283 2289
             })
2290
+            .state('app.storage.grainAnalysis.cpl', {
2291
+                abstract: true,
2292
+                data: {
2293
+                    title: '成品粮'
2294
+                }
2295
+            })
2296
+            .state('app.storage.grainAnalysis.cpl.weekList', {
2297
+                url: '/cpl/weekList/:lylx',
2298
+                data: {
2299
+                    title: '周报'
2300
+                },
2301
+                views: {
2302
+                    "content@app": {
2303
+                        controller: 'weekAnalysisCtrl',
2304
+                        templateUrl: 'app/storage/grainAnalysis/views/weekAnalysis-list.html'
2305
+                    }
2306
+                }
2307
+            })
2308
+            //列表点新建或编辑查看跳转的路由
2309
+            .state('app.storage.grainAnalysis.cpl.houseWeekAnalysisList', {
2310
+                url: '/cpl/houseWeekAnalysisList/:id/:butType/:lylx',
2311
+                data: {
2312
+                    title: '周报详情'
2313
+                },
2314
+                views: {
2315
+                    "content@app": {
2316
+                        controller: 'houseWeekAnalysisCtrl',
2317
+                        templateUrl: 'app/storage/grainAnalysis/views/house-weekAnalysis-list.html'
2318
+                    }
2319
+                }
2320
+            })
2321
+            //编辑单仓粮情分析跳转的路由
2322
+            .state('app.storage.grainAnalysis.cpl.weekEdit', {
2323
+                url: '/cpl/weekEdit/:id/:butType/:gnly_butType/:lylx',
2324
+                data: {
2325
+                    title: '周报详情'
2326
+                },
2327
+                views: {
2328
+                    "content@app": {
2329
+                        controller: 'weekAnalysisEditCtrl',
2330
+                        templateUrl: 'app/storage/grainAnalysis/views/weekAnalysis-cpl-edit.html'
2331
+                    }
2332
+                }
2333
+            })
2284 2334
 			//周报(旧)
2285 2335
             .state('app.storage.grainAnalysis.week', {
2286 2336
                 url: '/storage/grainAnalysis/week',

+ 0 - 2
src/main/resources/static/app/warnAndAlarm/qualityWarn/views/qualityWarn-list.html

@@ -44,7 +44,6 @@
44 44
                                         <tr>
45 45
                                             <th data-class="expand" style="text-align:center;">序号</th>
46 46
                                             <th data-class="expand" style="text-align:center;">仓房/油罐</th>
47
-                                            <th data-class="expand" style="text-align:center;">货位</th>
48 47
                                             <th data-class="expand" style="text-align:center;">粮油品种</th>
49 48
                                             <th data-class="expand" style="text-align:center;">粮食性质</th>
50 49
                                             <th data-class="expand" style="text-align:center;">类型</th>
@@ -59,7 +58,6 @@
59 58
                                         <tr ng-repeat="warning in pageInfo.list">
60 59
                                             <td style="text-align:center;">{{ $index + 1 }}</td>
61 60
                                             <td style="text-align:center;">{{ warning.cfmc }}</td>
62
-                                            <td style="text-align:center;">{{ warning.hwmc }}</td>
63 61
                                             <td style="text-align:center;">{{ warning.pzmc }}</td>
64 62
                                             <td style="text-align:center;">{{ warning.lyxzmc }}</td>
65 63
                                             <td style="text-align:center;">{{ warning.crklx }}</td>