Procházet zdrojové kódy

Merge branch 'master' of http://101.36.160.140:21044/depot-tianjin/depot-web-tianjin

XuPengHui před 2 roky
rodič
revize
059040167d

+ 0 - 203
src/main/resources/static/app/business/facility/controller/del_facilityScrapListCtrl.js

@@ -1,203 +0,0 @@
1
-"use strict";
2
-//器材信息
3
-angular.module('app.business')
4
-    .controller("facilityScrapListCtrl", function($scope, $http,$state,$rootScope,facilityListService,enumService,orgService,$stateParams, APP_CONFIG) {
5
-    	
6
-    // 获取列表数据
7
-    	
8
-    	//分页、查询条件
9
-	     $scope.pageInfo = {pageNum : 1, pageSize : 10};
10
-	     $scope.device = {deviceType:"",deviceName:""};
11
-		 
12
-
13
-		 
14
-	 $scope.loadData = function() {
15
-		 
16
-			 if($scope.device.deviceName != undefined && $scope.device.deviceName != ""){
17
-				 
18
-				 if($scope.pageInfo.pageNum!=1||$scope.pageInfo.pageSize!=10){
19
-					 $scope.device.deviceName=$scope.device.deviceName;
20
-				 }else{
21
-					 $scope.device.deviceName = $scope.device.deviceName[0].id;
22
-				 }
23
-		   	 }
24
-		
25
-            facilityListService.getPageInfoFacility($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.device.deviceName,$scope.device.deviceType,$rootScope.orgInfo.orgName).then(function(data){
26
-				 $scope.pageInfo = data; 
27
-		     },function(data){
28
-		         console.log(data);
29
-		     });
30
-		 
31
-	 }
32
-	 $scope.loadData();
33
-	 //新增
34
-	 $scope.showAddInput = function () {
35
-		 $state.go('app.business.facility.addFacilityScrap',{id:0,isNotEdit:false});
36
-	 }
37
-
38
-
39
-    // 翻页
40
-    $scope.goPage = function(pageNum) {
41
-        $scope.pageInfo.pageNum = pageNum;
42
-        $scope.loadData();
43
-    }
44
-    
45
-    // 根据id删除信息
46
-    $scope.remove = function(id) {
47
-    	deviceInputService.removeById(id).then(function (data) {
48
-            if(data.msg == "success"){
49
-                alert("删除成功");
50
-                $scope.loadData();
51
-            }else{
52
-                alert("删除失败");
53
-            }
54
-        });
55
-    }
56
-    
57
-	
58
-	// 查看页面
59
-    $scope.showViewInput = function(id) {
60
-    	$state.go('app.business.device.inputEdit',{id:id,isNotEdit:true});
61
-    }
62
-    
63
-    //修改页面
64
-    $scope.showEditInput = function(id) {
65
-    	$state.go('app.business.device.inputEdit',{id:id,isNotEdit:false});
66
-    }
67
-
68
-    //树形下拉框获取器材设备名称
69
-    $scope.getDeviceName = function() {
70
-    	$scope.deviceType=angular.fromJson($scope.device.deviceType);
71
-        enumService.getTreeListByTypeId($scope.device.deviceName,$scope.deviceType).then(function(data) {
72
-            $scope.deviceNameTreeData = data;
73
-        },function(data) {
74
-            console.log(data);
75
-        })
76
-    };
77
-    
78
-    
79
-    
80
-})
81
-
82
-    .controller("addFacilityScrapCtrl", function($scope, $filter,$http,$state,$rootScope, facilityListService,equipmentEquipmentPoolService,enumService,$stateParams, APP_CONFIG) {
83
-    	  //根据id获取数据
84
-       /*$scope.loadDataById = function(id) {
85
-                deviceInputService.loadDataById(id).then(function(data){
86
-                	$scope.device = data;
87
-                	$scope.device.inputTime = $filter('date')($scope.device.inputTime, "yyyy-MM-dd");
88
-                	$scope.device.produceTime = $filter('date')($scope.device.produceTime, "yyyy-MM-dd");
89
-                	$scope.device.position=parseInt(data.position);
90
-                	$scope.device.storageRack=parseInt(data.storageRack);
91
-                	$scope.device.storageRackCell=parseInt(data.storageRackCell);
92
-                	$scope.device.deviceManager = parseInt($scope.device.deviceManager);
93
-                	
94
-                	$scope.getDeviceName();
95
-                },function(data){
96
-                    // console.log(data);
97
-                });
98
-            };
99
-            
100
-          //查看修改调用此方法
101
-         if ($stateParams.id != 0) {
102
-        	 $scope.loadDataById($stateParams.id);
103
-         }*/
104
-    	
105
-    	//树形下拉框获取器材设备名称
106
-        $scope.getDeviceName = function(deviceType,deviceName) {
107
-        	//$scope.deviceType=angular.fromJson($scope.device.deviceType);
108
-        	//$scope.device.deviceName=angular.fromJson($scope.device.deviceName);
109
-        	if(deviceType==undefined  ){
110
-        		deviceType=angular.fromJson($scope.device.deviceType);
111
-        	}
112
-            enumService.getTreeListByTypeId(deviceName,deviceType).then(function(data) {
113
-                $scope.deviceNameTreeData = data;
114
-            },function(data) {
115
-                console.log(data);
116
-            })
117
-        };
118
-        
119
-    	$scope.loadDataByParam = function(deviceType,deviceName,model) {
120
-    		$scope.device = {deviceType:null,deviceName:null,model:null};
121
-    		$scope.device.deviceType = parseInt(deviceType);
122
-    		//$scope.device.deviceName = deviceName;
123
-    		$scope.device.model = model;
124
-    		$scope.getDeviceName($scope.device.deviceType,deviceName);
125
-        };
126
-    	if($stateParams.deviceType!=null,$stateParams.deviceName!=null,$stateParams.model!=null){
127
-    		$scope.loadDataByParam($stateParams.deviceType,$stateParams.deviceName,$stateParams.model);
128
-    	}
129
-         //判断可否修改
130
-         var disabled = false;
131
-    	 $("#deviceInput-form input").attr("disabled",disabled);
132
-         $("#deviceInput-form select").attr("disabled",disabled);
133
-         
134
-        if($stateParams.isNotEdit != null){
135
-    	    if ($stateParams.isNotEdit == "false") {
136
-                $scope.isNotEdit = false;
137
-            } else if ($stateParams.isNotEdit == "true") {
138
-                $scope.isNotEdit = true;
139
-            }
140
-        }else{
141
-            $scope.isNotEdit = false;
142
-        }
143
-        
144
-        
145
-        
146
-         // 存放位置
147
-         $scope.loadData = function() {
148
-         	equipmentEquipmentPoolService.getPageInfo(null, null,null).then(function(data){
149
-         		$scope.equipmentEquipmentPool = data.list;
150
-             },function(data){
151
-                 console.log(data);
152
-             });
153
-         }
154
-         $scope.loadData();
155
-         
156
-         // 提交表单
157
-         var validator = $("#deviceInput-form").validate();
158
-         $scope.saveData = function() {
159
-     		if (validator.form()) {
160
-     			//粮库名称
161
-     			//$scope.device.storehouse=$rootScope.depotInfo.orgName;
162
-     			
163
-     			$scope.deviceName=angular.fromJson($scope.device.deviceName);
164
-     			$scope.device.deviceName=$scope.deviceName[0].id;
165
-     			//入库的原始数量
166
-     			//$scope.device.deviceManager = $scope.device.useCount+"";
167
-     			$scope.device.useCount = parseInt($scope.device.deviceManager);
168
-     			 if ($scope.device.deviceName == '' || $scope.device.deviceName == null) {
169
-     	            $("#devicename-error").text("必须填写");
170
-     	        } else {
171
-     	            $("#devicename-error").text("");
172
-     	        }
173
-     			
174
-     			$scope.device.orgId=$rootScope.userInfo.orgId;
175
-     			
176
-     		   $http({
177
-   				method: 'POST',
178
-   				url: APP_CONFIG.deviceUrl + '/deviceInput/save',
179
-   				data: {
180
-   					deviceInputJson : angular.toJson($scope.device)
181
-   				}
182
-   			}).then(function successCallback(response) {
183
-   				if(response.data.status == "success"){
184
-   					alert("保存成功!");
185
-   					$state.go('app.business.device.deviceInputList');
186
-   				}else{
187
-   					alert(response.data.msg);
188
-   					$scope.saveFlag = false;
189
-   				}
190
-   				
191
-   			}, function errorCallback(response) {
192
-   				// 请求失败执行代码
193
-   			});
194
-     		   
195
-     		   
196
-     		   
197
-     		    
198
-     		}
199
-     	}
200
-        
201
-    	
202
-         
203
-    })

+ 12 - 9
src/main/resources/static/app/business/facility/controller/facilityGetListCtrl.js

@@ -29,7 +29,7 @@ angular.module('app.business')
29 29
     
30 30
     // 根据id删除信息
31 31
     $scope.remove = function(id) {
32
-    	facilityListService.removeById(id).then(function (data) {
32
+    	FacilityGetService.removeById(id).then(function (data) {
33 33
             if(data.status == "success"){
34 34
                 alert("删除成功");
35 35
                 $scope.loadData();
@@ -78,14 +78,14 @@ angular.module('app.business')
78 78
         //         console.log(data);
79 79
         //     })
80 80
         // };
81
+		
81 82
         $scope.loadfacilityList = function() {
82 83
             FacilityGetService.getFacilityList().then(function(data){
83 84
 				 $scope.facilityList = data; 
84 85
                  setTimeout(function () {
85 86
                     if($stateParams.facility) {
86 87
                         var receiveFacility = angular.fromJson($stateParams.facility);
87
-                        $scope.repairInfo = receiveFacility;
88
-                        $scope.repairInfo.ssmc = +receiveFacility.ssmc;
88
+						$scope.repairInfo = receiveFacility;
89 89
                     }
90 90
                  }, 1000);
91 91
                  
@@ -126,15 +126,15 @@ angular.module('app.business')
126 126
                 ssmc: '',
127 127
                 ssfl: '',
128 128
                 wxfzr: '',
129
-                orgId: $rootScope.userInfo.orgId,
130 129
                 bz: '',
131 130
             };
132 131
         }
133
-        $scope.useKeepChange = function(e) {
132
+        $scope.useFacilityChange = function(e) {
134 133
             $scope.facility = $scope.facilityList.find(function(v) {
135
-                return v.id === $scope.repairInfo.basicsId;
134
+                return v.id == $scope.repairInfo.basicsId;
136 135
             });
137
-			
136
+			$scope.repairInfo.ssfl = $scope.facility.ssfl;
137
+			$scope.repairInfo.ssmc = $scope.facility.ssmc;
138 138
         };
139 139
          // 存放位置
140 140
         //  $scope.loadData = function() {
@@ -166,10 +166,13 @@ angular.module('app.business')
166 166
      	        // }
167 167
                 
168 168
                 var params = angular.copy($scope.repairInfo);
169
-            	params.ssfl = $scope.facility.ssfl;
170
-                params.ssmc = $scope.facility.ssmc;
171 169
                 params.wxksrq = $("#repairInfo_wxksrq").val();
172 170
                 params.wxjsrq = $("#repairInfo_wxjsrq").val();
171
+                params.gzrq = $("#repairInfo_gzrq").val();
172
+				// params.ssfl = $scope.facility.ssfl;
173
+                // params.ssmc = $scope.facility.ssmc;
174
+                params.orgId = $rootScope.userInfo.orgId;
175
+				
173 176
                 FacilityGetService.savaFacility({dFacilitiesRepairJson : angular.toJson(params)}).then(function (response) {
174 177
                     if(response.status == "success"){
175 178
                         alert("保存成功!");

+ 7 - 7
src/main/resources/static/app/business/facility/controller/facilityKeepListCtrl.js

@@ -29,7 +29,7 @@ angular.module('app.business')
29 29
     
30 30
     // 根据id删除信息
31 31
     $scope.remove = function(id) {
32
-    	facilityListService.removeById(id).then(function (data) {
32
+    	facilityKeepService.removeById(id).then(function (data) {
33 33
             if(data.status == "success"){
34 34
                 alert("删除成功");
35 35
                 $scope.loadData();
@@ -85,7 +85,6 @@ angular.module('app.business')
85 85
                     if($stateParams.facility) {
86 86
                         var receiveFacility = angular.fromJson($stateParams.facility);
87 87
                         $scope.keepInfo = receiveFacility;
88
-                        $scope.keepInfo.ssmc = +receiveFacility.ssmc;
89 88
                     }
90 89
                  }, 1000);
91 90
                  
@@ -126,14 +125,15 @@ angular.module('app.business')
126 125
                 ssmc: '',
127 126
                 ssfl: '',
128 127
                 byfzr: '',
129
-                orgId: $rootScope.userInfo.orgId,
130 128
                 bz: '',
131 129
             };
132 130
         }
133
-        $scope.useKeepChange = function(e) {
131
+        $scope.useFacilityChange = function(e) {
134 132
             $scope.facility = $scope.facilityList.find(function(v) {
135
-                return v.id === $scope.keepInfo.basicsId;
133
+                return v.id == $scope.keepInfo.basicsId;
136 134
             });
135
+            $scope.keepInfo.ssfl = $scope.facility.ssfl;
136
+			$scope.keepInfo.ssmc = $scope.facility.ssmc;
137 137
         };
138 138
          // 存放位置
139 139
         //  $scope.loadData = function() {
@@ -165,10 +165,10 @@ angular.module('app.business')
165 165
      	        // }
166 166
                 
167 167
                 var params = angular.copy($scope.keepInfo);
168
-                params.ssfl = $scope.facility.ssfl;
169
-                params.ssmc = $scope.facility.ssmc;
170 168
                 params.byksrq = $("#keepInfo_byksrq").val();
171 169
                 params.byjsrq = $("#keepInfo_byjsrq").val();
170
+                params.orgId = $rootScope.userInfo.orgId;
171
+
172 172
                 facilityKeepService.savaFacility({dFacilitiesMaintainJson : angular.toJson(params)}).then(function (response) {
173 173
                     if(response.status == "success"){
174 174
                         alert("保存成功!");

+ 0 - 107
src/main/resources/static/app/business/facility/service/del_facilityScrapListService.js

@@ -1,107 +0,0 @@
1
-"use strict";
2
-
3
-angular.module('app.business').service("facilityScrapListService", function($http, $q,$rootScope, APP_CONFIG) {
4
-    //器材列表
5
-	this.getPageInfoFacility = function(pageNum, pageSize,deviceName,deviceType,orgName){
6
-		var d = $q.defer();
7
-		$http({
8
-			method : 'GET',
9
-			url : APP_CONFIG.deviceUrl + '/devicePutStorage/getPageInfoList',
10
-			params : {
11
-				pageNum : pageNum,
12
-				pageSize : pageSize,
13
-				deviceName:deviceName,
14
-				deviceType : deviceType,
15
-				orgName : orgName,
16
-                orgId : $rootScope.orgInfo.orgId
17
-			}
18
-		}).then(function successCallback(response) {
19
-			// 请求成功执行代码
20
-			d.resolve(response.data);
21
-		}, function errorCallback(response) {
22
-			// 请求失败执行代码
23
-			d.reject("error");
24
-		});
25
-		return d.promise;
26
-	}
27
-
28
-  //根据id移除数据
29
-    this.removeById = function(id){
30
-        if (!confirm("确定要删除吗?")) {
31
-            return;
32
-        }
33
-        var d = $q.defer();
34
-        $http({
35
-            method: 'POST',
36
-            url: APP_CONFIG.deviceUrl + '/deviceInput/remove',
37
-            data: {
38
-                id : id
39
-            }
40
-        }).then(function successCallback(response) {
41
-            d.resolve(response.data);
42
-        }, function errorCallback(response) {
43
-            //console.log(response);
44
-        });
45
-        return d.promise;
46
-    }
47
-  
48
-    
49
-   //根据id加载数据
50
-    this.loadDataById = function(id){
51
-        var d = $q.defer();
52
-        $http({
53
-        	method : 'GET',
54
-            url: APP_CONFIG.deviceUrl + '/deviceInput/loadDataById',
55
-            params: {
56
-                id : id
57
-            }
58
-        }).then(function successCallback(response) {
59
-            d.resolve(response.data);
60
-        }, function errorCallback(response) {
61
-            //console.log(response);
62
-        });
63
-        return d.promise;
64
-    }
65
-
66
-  /*//增加
67
-    this.save = function(device){
68
-        var d = $q.defer();
69
-        $http({
70
-            method: 'POST',
71
-            url: APP_CONFIG.deviceUrl + '/deviceInput/save',
72
-            data: {
73
-            	deviceInputJson : angular.toJson(device)
74
-            }
75
-        }).then(function successCallback(response) {
76
-            d.resolve(response.data);
77
-        }, function errorCallback(response) {
78
-            //console.log(response);
79
-        });
80
-        return d.promise;
81
-    }
82
-    */
83
-    
84
-    //设备管理台账
85
-	this.getDeviceAccount = function(pageNum, pageSize,ssfl){
86
-		var d = $q.defer();
87
-		$http({
88
-			method : 'GET',
89
-			url : APP_CONFIG.deviceUrl + '/devicePutStorage/getPageInfoList',
90
-			params : {
91
-				pageNum : pageNum,
92
-				pageSize : pageSize,
93
-                ssfl : ssfl,
94
-				orgName : $rootScope.orgInfo.orgName,
95
-                orgId : $rootScope.orgInfo.orgId
96
-			}
97
-		}).then(function successCallback(response) {
98
-			// 请求成功执行代码
99
-			d.resolve(response.data);
100
-		}, function errorCallback(response) {
101
-			// 请求失败执行代码
102
-			d.reject("error");
103
-		});
104
-		return d.promise;
105
-	}
106
-
107
-})

+ 10 - 7
src/main/resources/static/app/business/facility/views/add-facility-get.html

@@ -20,17 +20,18 @@
20 20
                                                 <select name="ssmc"
21 21
                                                     placeholder="设施名称"
22 22
                                                     ng-model="repairInfo.basicsId"
23
-                                                    ng-options="facility.id as facility.ssmc for facility in facilityList"
23
+                                                    ng-options="facility.id+'' as facility.ssmc for facility in facilityList"
24 24
                                                     ng-disabled="isNotEdit" 
25 25
                                                     ng-readonly="isNotEdit"
26
-                                                    ng-change="useKeepChange()"
26
+                                                    ng-change="useFacilityChange()"
27
+													required
27 28
                                                 >
28 29
 													<option value="">--请选择--</option>
29 30
                                                 </select> 
30 31
                                             </label>
31 32
                                         </section>
32 33
                                         <section class="col col-3">
33
-											<label class="label">设施分类:<span style="color: red;">*</span></label>
34
+											<label class="label">设施分类:</label>
34 35
 											<!-- <multi-select-tree  data-input-model="data2" data-default-label="请选择" name="name"  
35 36
 													multi-select="false" data-output-model="deviceName" select-only-leafs="true"
36 37
 													disabled-tree="isNotEdit" data-callback="selectOnly1Or2(item, selectedItems)">
@@ -52,7 +53,7 @@
52 53
 									</div>
53 54
 									<div class="row">
54 55
 										<section class="col col-3">
55
-											<label class="label">故障日期:</label>
56
+											<label class="label">故障日期:<span style="color: red;">*</span></label>
56 57
 											<label class="input">
57 58
 												<input 
58 59
                                                     id="repairInfo_gzrq" 
@@ -62,11 +63,12 @@
62 63
                                                     ng-disabled="isNotEdit" 
63 64
                                                     onClick="WdatePicker({lang:'zh-cn'})" 
64 65
                                                     placeholder="故障日期:"
66
+													required
65 67
                                                 >
66 68
 											</label>
67 69
 										</section>
68 70
                                         <section class="col col-3">
69
-											<label class="label">维修开始日期:</label>
71
+											<label class="label">维修开始日期:<span style="color: red;">*</span></label>
70 72
 											<label class="input">
71 73
 												<input 
72 74
                                                     id="repairInfo_wxksrq" 
@@ -76,6 +78,7 @@
76 78
                                                     ng-disabled="isNotEdit" 
77 79
                                                     onClick="WdatePicker({lang:'zh-cn'})" 
78 80
                                                     placeholder="维修开始日期"
81
+													required
79 82
                                                 >
80 83
 											</label>
81 84
 										</section>
@@ -94,9 +97,9 @@
94 97
 											</label>
95 98
 										</section>
96 99
 										<section class="col col-3">
97
-											<label class="label">维修负责人: </label>
100
+											<label class="label">维修负责人: <span style="color: red;">*</span></label>
98 101
 											<label class="input">
99
-												<input type="text" ng-model="repairInfo.wxfzr" name="wxfzr" ng-disabled="isNotEdit" ng-readonly="isNotEdit" placeholder="维修负责人">
102
+												<input required type="text" ng-model="repairInfo.wxfzr" name="wxfzr" ng-disabled="isNotEdit" ng-readonly="isNotEdit" placeholder="维修负责人">
100 103
 											</label>
101 104
 										</section>
102 105
                                     </div>

+ 10 - 7
src/main/resources/static/app/business/facility/views/add-facility-keep.html

@@ -20,17 +20,18 @@
20 20
                                                 <select name="ssmc"
21 21
                                                     placeholder="设施名称"
22 22
                                                     ng-model="keepInfo.basicsId"
23
-                                                    ng-options="facility.id as facility.ssmc for facility in facilityList"
23
+                                                    ng-options="facility.id+'' as facility.ssmc for facility in facilityList"
24 24
                                                     ng-disabled="isNotEdit" 
25 25
                                                     ng-readonly="isNotEdit"
26
-                                                    ng-change="useKeepChange()"
26
+                                                    ng-change="useFacilityChange()"
27
+                                                    required
27 28
                                                 >
28 29
 													<option value="">--请选择--</option>
29 30
                                                 </select> 
30 31
                                             </label>
31 32
                                         </section>
32 33
                                         <section class="col col-3">
33
-											<label class="label">设施分类:<span style="color: red;">*</span></label>
34
+											<label class="label">设施分类:</label>
34 35
 											<!-- <multi-select-tree  data-input-model="data2" data-default-label="请选择" name="name"  
35 36
 													multi-select="false" data-output-model="deviceName" select-only-leafs="true"
36 37
 													disabled-tree="isNotEdit" data-callback="selectOnly1Or2(item, selectedItems)">
@@ -52,7 +53,7 @@
52 53
 									</div>
53 54
 									<div class="row">
54 55
                                         <section class="col col-3">
55
-											<label class="label">保养开始日期:</label>
56
+											<label class="label">保养开始日期:<span style="color: red;">*</span></label>
56 57
 											<label class="input">
57 58
 												<input 
58 59
                                                     id="keepInfo_byksrq" 
@@ -62,11 +63,12 @@
62 63
                                                     ng-disabled="isNotEdit" 
63 64
                                                     onClick="WdatePicker({lang:'zh-cn'})" 
64 65
                                                     placeholder="保养开始日期"
66
+                                                    required
65 67
                                                 >
66 68
 											</label>
67 69
 										</section>
68 70
 										<section class="col col-3">
69
-											<label class="label">保养结束日期:</label>
71
+											<label class="label">保养结束日期:<span style="color: red;">*</span></label>
70 72
 											<label class="input">
71 73
                                                 <input 
72 74
                                                     id="keepInfo_byjsrq" 
@@ -76,13 +78,14 @@
76 78
                                                     ng-disabled="isNotEdit" 
77 79
                                                     onClick="WdatePicker({lang:'zh-cn'})" 
78 80
                                                     placeholder="保养结束日期"
81
+                                                    required
79 82
                                                 >
80 83
 											</label>
81 84
 										</section>
82 85
 										<section class="col col-3">
83
-											<label class="label">保养负责人: </label>
86
+											<label class="label">保养负责人:<span style="color: red;">*</span> </label>
84 87
 											<label class="input">
85
-												<input type="text" ng-model="keepInfo.byfzr" name="byfzr" ng-disabled="isNotEdit" ng-readonly="isNotEdit" placeholder="保养负责人">
88
+												<input type="text" ng-model="keepInfo.byfzr" name="byfzr" ng-disabled="isNotEdit" ng-readonly="isNotEdit" placeholder="保养负责人" required>
86 89
 											</label>
87 90
 										</section>
88 91
                                     </div>

+ 5 - 5
src/main/resources/static/app/business/facility/views/add-facility-scrap.html

@@ -24,7 +24,7 @@
24 24
                                             </label>
25 25
                                         </section>
26 26
                                         <section class="col col-3">
27
-											<label class="label"  id="devicename-label">设施类型:<span style="color: red;">*</span></label>
27
+											<label class="label"  id="devicename-label">设施类型:</label>
28 28
 											<!-- <multi-select-tree  data-input-model="data2" data-default-label="请选择" name="name"  
29 29
 													multi-select="false" data-output-model="deviceName" select-only-leafs="true"
30 30
 													disabled-tree="isNotEdit" data-callback="selectOnly1Or2(item, selectedItems)">
@@ -37,7 +37,7 @@
37 37
 					                            data-default-label="请选择" name="deviceName" 
38 38
 					                            multi-select="false"
39 39
 					                            select-only-leafs="true"
40
-					                            data-callback="selectOnly1Or2(item, selectedItems)" required>
40
+					                            data-callback="selectOnly1Or2(item, selectedItems)">
41 41
 					                        </multi-select-tree>
42 42
 											 <em><span style="color: #D56161;margin-top:6px;padding:0 1px;font-style:normal;font-size:11px;line-height:15px;" id="devicename-error"></span></em>
43 43
 											</label>
@@ -45,7 +45,7 @@
45 45
 									</div>
46 46
 									<div class="row">
47 47
 										<section class="col col-3">
48
-											<label class="label">设施状态</label>
48
+											<label class="label">设施状态: <span style="color: red;">*</span></label>
49 49
 											<label class="input">
50 50
 												<select required name="unite" ng-model="device.unit" ng-disabled="isNotEdit" ng-readonly="isNotEdit">
51 51
                                                     <option value="">--请选择--</option>
@@ -55,9 +55,9 @@
55 55
 											</label>
56 56
 										</section>
57 57
                                         <section class="col col-3">
58
-											<label class="label">报废日期:</label>
58
+											<label class="label">报废日期:<span style="color: red;">*</span></label>
59 59
 											<label class="input">
60
-												<input type="text" ng-model="device.inputTime" name="inputTime" data-smart-datepicker ng-disabled="isNotEdit"
60
+												<input required type="text" ng-model="device.inputTime" name="inputTime" data-smart-datepicker ng-disabled="isNotEdit"
61 61
 													   placeholder="报废日期">
62 62
 											</label>
63 63
 										</section>

+ 10 - 10
src/main/resources/static/app/business/facility/views/add-facility.html

@@ -20,7 +20,7 @@
20 20
                                             </label>
21 21
                                         </section>
22 22
                                         <section class="col col-3">
23
-											<label class="label"  id="devicename-label">设施分类:<span style="color: red;">*</span></label>
23
+											<label class="label"  id="devicename-label">设施分类:</label>
24 24
 											  <label class="select" id="deviceName-label">
25 25
 											 <multi-select-tree 
26 26
 					                            disabled-tree="isNotEdit"
@@ -29,7 +29,7 @@
29 29
 					                            data-default-label="请选择" name="ssfl" 
30 30
 					                            multi-select="false"
31 31
 					                            select-only-leafs="true"
32
-					                            data-callback="selectOnly1Or2(item, selectedItems)" required>
32
+					                            data-callback="selectOnly1Or2(item, selectedItems)">
33 33
 					                        </multi-select-tree>
34 34
 											 <em><span style="color: #D56161;margin-top:6px;padding:0 1px;font-style:normal;font-size:11px;line-height:15px;" id="devicename-error"></span></em>
35 35
 											</label>
@@ -49,31 +49,31 @@
49 49
 									</div>
50 50
 									<div class="row">
51 51
                                         <section class="col col-3">
52
-											<label class="label">竣工年份:</label>
52
+											<label class="label">竣工年份:<span style="color: red;">*</span></label>
53 53
 											<label class="input">
54 54
                                                 <input type="text" name="jgnf" id="facility_jgnf" ng-disabled="isNotEdit" ng-model="facilityInfo.jgnf"
55
-							                		class="form-control" onClick="WdatePicker({lang:'zh-cn', dateFmt: 'yyyy'})" ng-readonly="true">
55
+							                		class="form-control" onClick="WdatePicker({lang:'zh-cn', dateFmt: 'yyyy'})" ng-readonly="true" required>
56 56
 											</label>
57 57
 										</section>
58 58
 										<section class="col col-3">
59
-											<label class="label">安装时间:</label>
59
+											<label class="label">安装时间:<span style="color: red;">*</span></label>
60 60
 											<label class="input">
61 61
 												<input type="text" id="facility_azsj" name="azsj" ng-disabled="isNotEdit"  ng-model="facilityInfo.azsj"
62
-													   placeholder="安装时间" onClick="WdatePicker({lang:'zh-cn', dateFmt: 'yyyy-MM-dd HH:mm:ss'})">
62
+													   placeholder="安装时间" onClick="WdatePicker({lang:'zh-cn', dateFmt: 'yyyy-MM-dd HH:mm:ss'})" required>
63 63
 											</label>
64 64
 										</section>
65 65
 										<section class="col col-3">
66
-											<label class="label">调试时间: </label>
66
+											<label class="label">调试时间: <span style="color: red;">*</span></label>
67 67
 											<label class="input">
68 68
 												<input type="text" id="facility_tssj" name="tssj" ng-disabled="isNotEdit" ng-model="facilityInfo.tssj"
69
-													   placeholder="调试时间" onClick="WdatePicker({lang:'zh-cn', dateFmt: 'yyyy-MM-dd HH:mm:ss'})">
69
+													   placeholder="调试时间" onClick="WdatePicker({lang:'zh-cn', dateFmt: 'yyyy-MM-dd HH:mm:ss'})" required>
70 70
 											</label>
71 71
 										</section>
72 72
                                         <section class="col col-3">
73
-											<label class="label">验收时间:</label>
73
+											<label class="label">验收时间:<span style="color: red;">*</span></label>
74 74
 											<label class="input">
75 75
 												<input type="text" id="facility_yssj" name="yssj" ng-disabled="isNotEdit" ng-model="facilityInfo.yssj"
76
-													   placeholder="验收时间" onClick="WdatePicker({lang:'zh-cn', dateFmt: 'yyyy-MM-dd HH:mm:ss'})">
76
+													   placeholder="验收时间" onClick="WdatePicker({lang:'zh-cn', dateFmt: 'yyyy-MM-dd HH:mm:ss'})" required>
77 77
 											</label>
78 78
 										</section>
79 79
                                     </div>

+ 4 - 3
src/main/resources/static/app/business/facility/views/facility-getList.html

@@ -51,9 +51,10 @@
51 51
                                         <th align="center">{{$index + 1 + (pageInfo.pageNum-1) * pageInfo.pageSize}}</th>
52 52
                                         <td>{{facility.ssmc}}</td> 
53 53
                                         <td>{{facility.ssfl}}</td>
54
-                                        <td>{{facility.byksrq}}</td>
55
-                                        <td>{{facility.byjsrq}}</td>
56
-                                        <td>{{facility.byfzr}}</td>
54
+                                        <td>{{facility.gzrq}}</td>
55
+                                        <td>{{facility.wxksrq}}</td>
56
+                                        <td>{{facility.wxjsrq}}</td>
57
+                                        <td>{{facility.wxfzr}}</td>
57 58
                                         <td>
58 59
                                             <a href-void ng-click="viewFacility(facility)"><i class="fa fa-info-circle"></i>查看</a>
59 60
                                             <a href-void ng-click="editFacility(facility)"><i class="fa fa-edit"></i>修改</a>

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

@@ -3067,7 +3067,7 @@ angular.module('app.business')
3067 3067
             views: {
3068 3068
                 "content@app": {
3069 3069
                     controller: 'facilityGetListCtrl',
3070
-                    templateUrl: 'app/business/facility/views/facility-getlist.html'
3070
+                    templateUrl: 'app/business/facility/views/facility-get-list.html'
3071 3071
                 }
3072 3072
             }
3073 3073
         }) 

+ 6 - 6
src/main/resources/static/app/business/purchase/views/add.html

@@ -20,15 +20,15 @@
20 20
                                 <fieldset>
21 21
                                     <div class="row">
22 22
                                         <section class="col col-3">
23
-                                            <label class="label">年度轮换计划通知文号:</label> 
23
+                                            <label class="label">年度轮换计划通知文号:<span style="color: red;">*</span></label> 
24 24
                                             <label class="input"> 
25
-                                                <input class="form-control" type="text" ng-model="form.ndlhjhtzwh" name="ndlhjhtzwh" ng-disabled="disabled" >
25
+                                                <input class="form-control" type="text" ng-model="form.ndlhjhtzwh" name="ndlhjhtzwh" ng-disabled="disabled" required>
26 26
                                             </label>
27 27
                                         </section>
28 28
                                         <section class="col col-3">
29
-                                            <label class="label txt-bg-red">委托轮换协议号:</label> 
29
+                                            <label class="label txt-bg-red">委托轮换协议号:<span style="color: red;">*</span></label> 
30 30
                                             <label class="input"> 
31
-                                                <input class="form-control" type="text" ng-model="form.wtlhxyh" name="wtlhxyh" ng-disabled="disabled" 
31
+                                                <input class="form-control" type="text" ng-model="form.wtlhxyh" name="wtlhxyh" ng-disabled="disabled" required
32 32
                                                 >
33 33
                                             </label>
34 34
                                         </section>
@@ -39,9 +39,9 @@
39 39
                                             </label>
40 40
                                         </section>
41 41
                                         <section class="col col-3">
42
-                                            <label class="label">轮换年度:</label> 
42
+                                            <label class="label">轮换年度:<span style="color: red;">*</span></label> 
43 43
                                             <label class="input"> 
44
-                                                <input class="form-control" type="text" ng-model="form.lhnd" name="lhnd" ng-disabled="disabled" >
44
+                                                <input class="form-control" type="text" ng-model="form.lhnd" name="lhnd" ng-disabled="disabled" required>
45 45
                                             </label>
46 46
                                         </section>
47 47
                                     </div>

+ 5 - 3
src/main/resources/static/app/intelligent/grainDetection/views/insectPestDetection-edit.html

@@ -87,9 +87,11 @@
87 87
 											</th>
88 88
 											<th>
89 89
 												<section>
90
-													<label class="input">
91
-														<input class="form-control" type="text" ng-model="insectPests.cldjpd"
92
-															   name="cldjpd" validFrequency="true" required>
90
+													<label class="select">
91
+														<select ng-model="insectPests.cldjpd" name="cldjpd"
92
+																ng-options="enum.enumid as enum.enumname for enum in dicDataList[5281]" required>
93
+															<option value="">--请选择--</option>
94
+														</select><i></i>
93 95
 													</label>
94 96
 												</section>
95 97
 											</th>

+ 1 - 1
src/main/resources/static/app/storage/controller/keepAccount/houseKeepAccountCtrl.js

@@ -301,7 +301,7 @@ angular.module('app.storage').controller("houseKeepAccountCtrl",
301 301
 	$scope.loadWare();
302 302
 
303 303
 
304
-	// $scope.butType = $stateParams.butType;
304
+	$scope.butType = $stateParams.butType;
305 305
 	$scope.edit = function() {
306 306
 		$scope.fcbgz = angular.fromJson($stateParams.account);
307 307
 		var rq = $filter('date')($scope.fcbgz.rq, "yyyy-MM-dd");

+ 1 - 1
src/main/resources/static/app/storage/controller/keepAccount/keepTotalAccountCtrl.js

@@ -125,7 +125,7 @@ angular.module('app.storage').controller("keepTotalAccountCtrl",
125 125
 })
126 126
 .controller("keepTotalAccountEditCtrl", 
127 127
 		function($scope, $rootScope, $state, $stateParams, $filter, keepAccountService, StorehouseService, warehouseService, APP_CONFIG) {
128
-
128
+	$scope.butType = $stateParams.butType;
129 129
 	// 获取列表日数据
130 130
 	$scope.edit = function() {
131 131
 		$scope.fcbgz = angular.fromJson($stateParams.account);

+ 0 - 209
src/main/resources/static/app/storage/controller/keepAccount/keepVoucherCtrl.js

@@ -1,209 +0,0 @@
1
-"use strict";
2
-
3
-//保管总账
4
-angular.module('app.storage').controller("keepVoucherCtrl", 
5
-		function($scope, $rootScope, $state, $stateParams, $filter, enumService, keepAccountService, StorehouseService, warehouseService, APP_CONFIG) {
6
-
7
-	// 获取列表数据
8
-	$scope.pageInfo = {pageNum : 1, pageSize : 10};
9
-	$scope.search = {lspz:"", lsxz:"", startDate:"", endDate:""};
10
-	$scope.loadData = function() {
11
-		if($scope.search.lsxz != undefined && $scope.search.lsxz != ""){
12
-			$scope.search.lsxz = $scope.search.lsxz[0].id;
13
-   	 	}
14
-		keepAccountService.getSumAccountPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.search).then(function(data){
15
-	        $scope.pageInfo = data;
16
-	        $scope.deptName = $rootScope.depotInfo.orgName;
17
-	        //获取记账人和审核人
18
-	        //$scope.getAccountRecord($scope.pageInfo.list);
19
-	    },function(data){
20
-	        console.log(data);
21
-	    });
22
-		//加载打印区域的数据
23
-		keepAccountService.getSumAccountPageInfo(null, null, $scope.search).then(function(data){
24
-	        $scope.pageInfos = data;
25
-	        $scope.printList = data.list;
26
-	        //获取记账人和审核人
27
-	        //$scope.getAccountRecord($scope.printList);
28
-	    },function(data){
29
-	        console.log(data);
30
-	    });
31
-		// 树形下拉框(粮食性质)
32
-        enumService.getTreeListByTypeId($scope.search.lsxz, 1032).then(function(data) {
33
-        	var data_new = $scope.data_add(data);
34
-            $scope.grainAttributeTreeData = data_new;
35
-        },function(data) {
36
-            console.log(data);
37
-        });
38
-	}
39
-	$scope.loadData();
40
-
41
-	$scope.data_add = function(data) {
42
-    	//var data_new = $scope.data_add(data);
43
-		var e = [];
44
-    	if (data.length != 0) {
45
-    		//要插入的json对象串
46
-    		var a = {"id":null,"name":"请选择","children":[]};
47
-    		//将返回的json对象和要插入的json对象串转换为字符串格式
48
-    		var f = angular.toJson(a);
49
-    		var b = angular.toJson(data);
50
-    		//把要插入的json对象串插入返回数据的最前面
51
-    		var c = b.substring(0,1);
52
-    		var d = b.substring(1,b.length);
53
-    		e = c + f + "," + d;
54
-    	}
55
-    	//最后在转换为json对象返回去
56
-    	return angular.fromJson(e);
57
-	}
58
-
59
-	$scope.getAccountRecord = function (pageInfo) {
60
-		if (pageInfo != null || pageInfo.length != 0) {
61
-			var obj;
62
-			var rq;
63
-			for (var i = 0; i < pageInfo.length; i++) {
64
-				obj = pageInfo[0];
65
-				rq = $filter('date')(obj.rq, "yyyy-MM");
66
-				keepAccountService.accountingRecord(obj.ch, obj.hwh, obj.lspz, obj.hwxz, rq, obj.wjh, obj.remark, 1).then(function(data){
67
-					$scope.account = data.obj;
68
-					obj.accountingPerson = $scope.account.accountingPerson;//记账人
69
-					obj.auditor = $scope.account.auditor;//审核人
70
-				},function(data){
71
-					console.log(data);
72
-				});
73
-			}
74
-		}
75
-	}
76
-
77
-	// 翻页
78
-	$scope.goPage = function(pageNum) {
79
-		$scope.pageInfo.pageNum = pageNum;
80
-		$scope.loadData();
81
-	}
82
-
83
-    //页面跳转
84
-    $scope.edit = function(account, butType) {
85
-		var obj_str = angular.toJson(account);
86
-		$scope.fcbgz = angular.fromJson(obj_str);
87
-		var rq = $filter('date')($scope.fcbgz.rq, "yyyy-MM");
88
-		if (butType != 3) { //记账、审核、查看
89
-			keepAccountService.accountingRecord(null, null, $scope.fcbgz.lspz, $scope.fcbgz.hwxz, rq, $scope.fcbgz.wjh, $scope.fcbgz.remark, 1).then(function(data){
90
-				$scope.account = data.obj;
91
-				if (butType == 0) { //记账
92
-					if (data.obj.id != null || data.obj.id != undefined) {
93
-						alert("当前记录已记账!");
94
-						return;
95
-					}
96
-				} else if (butType == 1) { //审核
97
-					if (data.obj.id == null || data.obj.id == undefined) {
98
-						alert("当前记录还尚未记账,请先记账!");
99
-						return;
100
-					} else {
101
-						if (data.obj.auditor != null || data.obj.auditor != undefined) {
102
-							alert("当前记录已审核!");
103
-							return;
104
-						}
105
-					}
106
-				} else if (butType == 2) { //查看
107
-					if (data.obj.id == null || data.obj.id == undefined) {
108
-						alert("当前记录还尚未记账,请先记账!");
109
-						return;
110
-					}
111
-				}
112
-				$state.go('app.storage.account.keepTotalAccount.keepTotalAccountEdit',{account:angular.toJson(account), butType:butType});
113
-			},function(data){
114
-		        console.log(data);
115
-		    });
116
-		} else { //分仓账
117
-			$state.go('app.storage.account.houseKeepAccount',{account:angular.toJson(account), type:butType});
118
-		}
119
-	}
120
-	//打印
121
-	$scope.print = function() {
122
-		$("#print").printArea();
123
-	}
124
-	
125
-})
126
-.controller("keepTotalAccountEditCtrl", 
127
-		function($scope, $rootScope, $state, $stateParams, $filter, keepAccountService, StorehouseService, warehouseService, APP_CONFIG) {
128
-
129
-	// 获取列表日数据
130
-	$scope.edit = function() {
131
-		$scope.fcbgz = angular.fromJson($stateParams.account);
132
-		$scope.fcbgz.lcmc = $rootScope.depotInfo.orgName;
133
-		var rq = $filter('date')($scope.fcbgz.rq, "yyyy-MM");
134
-		keepAccountService.accountingRecord($scope.fcbgz.ch, $scope.fcbgz.hwh, $scope.fcbgz.lspz, $scope.fcbgz.hwxz, rq, $scope.fcbgz.wjh, $scope.fcbgz.remark, 1).then(function(data){
135
-			$scope.account = data.obj;
136
-
137
-			if ($stateParams.butType == 0) { //记账
138
-				//初始化数据记账表对象数据
139
-				$scope.account.lspz = $scope.fcbgz.lspz;
140
-				$scope.account.hwxz = $scope.fcbgz.hwxz;
141
-				$scope.account.rq = rq;
142
-				$scope.account.srsl = $scope.fcbgz.srsl;
143
-				$scope.account.zcsl = $scope.fcbgz.zcsl;
144
-				$scope.account.kcsl = $scope.fcbgz.kcsl;
145
-				$scope.account.accountingPerson = $rootScope.userInfo.realName; //记账人
146
-				$scope.account.accountingDate = $filter('date')(new Date(), "yyyy-MM-dd"); //记账时间
147
-				$scope.account.remark = $scope.fcbgz.remark; //摘要
148
-				$scope.account.wjh = $scope.fcbgz.wjh; //文件号
149
-				//设置状态为记账
150
-				//$scope.accountType = 0;
151
-
152
-				//影藏审核信息
153
-				$scope.auditor_th = true;
154
-			} else if ($stateParams.butType == 1) { //审核
155
-				//设置记账时间格式化和不可编辑
156
-				$scope.account.accountingDate = $filter('date')($scope.account.accountingDate, "yyyy-MM-dd");
157
-				$scope.accounting_isNotEdit = true;
158
-				//显示审核信息
159
-				$scope.auditor_th = false;
160
-				//设置审核人为当前用户,审核时间为当前时间
161
-				$scope.account.auditor = $rootScope.userInfo.realName;
162
-				$scope.account.auditorDate = $filter('date')(new Date(), "yyyy-MM-dd");
163
-			} else if ($stateParams.butType == 2) { //查看
164
-				//设置记账时间格式化和不可编辑
165
-				$scope.account.accountingDate = $filter('date')($scope.account.accountingDate, "yyyy-MM-dd");
166
-				$scope.accounting_isNotEdit = true;
167
-				//显示审核信息
168
-				$scope.auditor_th = false;
169
-				//审核信息设置不可编辑
170
-				$scope.account.auditorDate = $filter('date')($scope.account.auditorDate, "yyyy-MM-dd");
171
-				$scope.auditor_isNotEdit = true;
172
-				//提交按钮影藏
173
-				$scope.isNotEdit = true;
174
-			}
175
-			//初始分仓保管账表对象数据
176
-			$scope.fcbgz.hwxz = $rootScope.dicData[$scope.fcbgz.hwxz];
177
-			$scope.fcbgz.lspz = $rootScope.dicData[$scope.fcbgz.lspz];
178
-			$scope.fcbgz.dj = $rootScope.dicData[$scope.fcbgz.dj];
179
-			$scope.fcbgz.rq = rq;
180
-		},function(data){
181
-	        console.log(data);
182
-	    });
183
-
184
-	}
185
-	$scope.edit();
186
-	
187
-	//提交
188
-	$scope.submit = function() {
189
-		keepAccountService.submit($scope.account, 1, $rootScope.orgInfo.orgId).then(function(data){
190
-			if (data.status = 'success') {
191
-				alert(data.msg);
192
-			} else {
193
-				alert("保存失败!");
194
-			}
195
-			$scope.retList();
196
-		},function(data){
197
-			alert("保存失败!");
198
-	    });
199
-	}
200
-	
201
-	//返回
202
-    $scope.retList = function () {
203
-		if ($rootScope.previousState_name != '') {
204
-        	$rootScope.back();
205
-        } else {
206
-        	$state.go('app.storage.account.keepTotalAccount');
207
-        }
208
-    }
209
-});