Browse Source

熏蒸改造

fanxw 2 years ago
parent
commit
017cfb91c5

+ 69 - 49
src/main/resources/static/app/intelligent/fumigation/controller/fumHomeWorkCtrl.js

@@ -139,9 +139,8 @@ angular.module('app.intelligent')
139 139
                 $scope.fumigationProcess = data.processEdit;
140 140
 
141 141
                 $scope.fumigationProcess.xzczry = $scope.fumigation.xzczry;//熏蒸作业人员
142
-                $scope.fumigationProcess.operationSupervisor = $scope.fumigation.operationSupervisor;//熏蒸作业负责人
142
+                $scope.fumigationProcess.operationSupervisor = $scope.fumigation.xzzyfzr;//熏蒸作业负责人
143 143
                 $scope.fumigationProcess.djcxz = $scope.fumigation.djcxz;//第几次熏蒸
144
-                $scope.fumigationProcess.perforatedDate = $filter('date')($scope.fumigationProcess.perforatedDate, "yyyy-MM-dd");
145 144
 
146 145
             },function(data){
147 146
                 console.log(data);
@@ -161,6 +160,7 @@ angular.module('app.intelligent')
161 160
                 }
162 161
 
163 162
                 $scope.fumigationProcess.fumigationId = id;
163
+                $scope.fumigationProcess.operationSupervisor = $scope.fumigation.xzzyfzr;
164 164
 
165 165
             },function(data){
166 166
                 console.log(data);
@@ -214,17 +214,50 @@ angular.module('app.intelligent')
214 214
             }
215 215
         },"不能填写无,暂无,空等选项!");
216 216
         
217
-        // 自定义验证:散气日期
218
-//        $.validator.addMethod("sqrq",function(value,element, params) {
219
-//        	var xzkssj = $filter('date')($scope.fumigation.fumigationStart.substring(0,10), "yyyy-MM-dd");
220
-//        	var xzjssj = $filter('date')($scope.fumigation.fumigationEnd.substring(0,10), "yyyy-MM-dd");
221
-//        	var sqrq = $filter('date')(value, "yyyy-MM-dd");
222
-//            if(sqrq >= xzjssj || sqrq <= xzkssj){
223
-//                return this.optional(element)|| false;
224
-//            }else{
225
-//                return this.optional(element)|| true;
226
-//            }
227
-//        },"散气日期必须在熏蒸开始时间与结束时间范围内,且不可等于!");
217
+        $scope.countSqts = function() {
218
+        	var sqksrq = null;
219
+        	var sqjsrq = null;
220
+        	$("input[name='bulkStartTime']").each(function(j,item){
221
+                if(item.value != '' && item.value != null && typeof item.value != 'undefined'){
222
+                	sqksrq = $filter('date')(item.value.substring(0,10), "yyyy-MM-dd");
223
+                	sqksrq = sqksrq.split('-');
224
+                }
225
+            });
226
+            $("input[name='bulkEndTime']").each(function(j,item){
227
+                if(item.value != '' && item.value != null && typeof item.value != 'undefined'){
228
+                	sqjsrq = $filter('date')(item.value.substring(0,10), "yyyy-MM-dd");
229
+                	sqjsrq = sqjsrq.split('-');
230
+                }
231
+            });
232
+            if (null != sqksrq && "undefined" != sqksrq && sqjsrq != null && "undefined" != sqjsrq) {
233
+            	var sqksrq_int = new Date(sqksrq[0], sqksrq[1]-1, sqksrq[2]);
234
+            	var sqjsrq_int = new Date(sqjsrq[0], sqjsrq[1]-1, sqjsrq[2]);
235
+            	var day = parseInt(Math.abs(sqjsrq_int-sqksrq_int) / (1000 * 60 * 60 * 24));
236
+            	$scope.fumigationProcess.perforatedDays = day+1;
237
+            }
238
+        }
239
+        
240
+        // 自定义验证:实际散气开始日期
241
+        $.validator.addMethod("sjsqkssj",function(value,element, params) {
242
+        	//var xzsykssj = $filter('date')($scope.fumigation.fumigationStart, "yyyy-MM-dd HH:mm:ss");
243
+        	var xzsyjssj = $filter('date')($scope.fumigation.fumigationEnd, "yyyy-MM-dd HH:mm:ss");
244
+        	//实际散气开始时间
245
+        	var sjsqkssj = $filter('date')(value, "yyyy-MM-dd HH:mm:ss");
246
+        	//实际散气结束时间
247
+        	var sjsqjssj = $filter('date')($scope.fumigationProcess.bulkEndTime, "yyyy-MM-dd HH:mm:ss");
248
+            if(sjsqkssj < xzsyjssj){
249
+                return this.optional(element)|| false;
250
+            }else{
251
+            	$scope.countSqts();
252
+                return this.optional(element)|| true;
253
+            }
254
+        }, "实际散气开始时间不的早于熏蒸作业施药结束时间,可以等于!");
255
+
256
+        // 自定义验证:实际散气结束时间
257
+        $.validator.addMethod("sjsqjssj",function(value,element, params) {
258
+        	$scope.countSqts();
259
+            return this.optional(element)|| true;
260
+        }, "");
228 261
 
229 262
         // 返回.
230 263
         $scope.retList = function () {
@@ -264,11 +297,6 @@ angular.module('app.intelligent')
264 297
                             $scope.fumigationProcess.bulkEndTime = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
265 298
                         }
266 299
                     });
267
-                    $("input[name='perforatedDate']").each(function(j,item){
268
-                        if(item.value != '' && item.value != null && typeof item.value != 'undefined'){
269
-                            $scope.fumigationProcess.perforatedDate = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
270
-                        }
271
-                    });
272 300
 
273 301
                     $scope.fumigationProcess.byqcnlhqnd = $scope.fumigationProcess.tonicBefore;
274 302
                     $scope.fumigationProcess.mbnd = $scope.fumigationProcess.targetConcentration;
@@ -447,9 +475,10 @@ angular.module('app.intelligent')
447 475
                 
448 476
                     $scope.fumigationProcess.bulkStartTime = $filter('date')(data.processEdit.bulkStartTime, "yyyy-MM-dd HH:mm:ss");
449 477
                     $scope.fumigationProcess.bulkEndTime = $filter('date')(data.processEdit.bulkEndTime, "yyyy-MM-dd HH:mm:ss");
450
-                    $scope.fumigationProcess.perforatedDate = $filter('date')(data.processEdit.perforatedDate, "yyyy-MM-dd");
451 478
                     $scope.fumigationAfter.checkInsectCageTime = $filter('date')(data.afterEdit.checkInsectCageTime, "yyyy-MM-dd HH:mm:ss");
452 479
                 }
480
+                
481
+                $scope.fumigationAfter.recordId = $scope.fumigation.id;
453 482
 
454 483
             },function(data){
455 484
                 console.log(data);
@@ -468,6 +497,7 @@ angular.module('app.intelligent')
468 497
                 $scope.zyhcs = $scope.hc_num.join("|"); //把数组用“,”隔开,以字符串的方式返回
469 498
 
470 499
                 $scope.fumigationAfter.fumigationId = id;
500
+                $scope.fumigationAfter.recordId = $scope.fumigation.id;
471 501
             },function(data){
472 502
                 console.log(data);
473 503
             });
@@ -476,7 +506,6 @@ angular.module('app.intelligent')
476 506
                 $scope.fumigationProcess = data.processEdit[0];
477 507
                 $scope.fumigationProcess.bulkStartTime = $filter('date')(data.processEdit[0].bulkStartTime, "yyyy-MM-dd HH:mm:ss");
478 508
                 $scope.fumigationProcess.bulkEndTime = $filter('date')(data.processEdit[0].bulkEndTime, "yyyy-MM-dd HH:mm:ss");
479
-                $scope.fumigationProcess.perforatedDate = $filter('date')(data.processEdit[0].perforatedDate, "yyyy-MM-dd");
480 509
             },function(data){
481 510
                 console.log(data);
482 511
             });
@@ -523,17 +552,18 @@ angular.module('app.intelligent')
523 552
             }
524 553
         },"不能填写无,暂无,空等选项!");
525 554
         
526
-        // 自定义验证
527
-//        $.validator.addMethod("czsjzysj",function(value,element, params) {
528
-//        	var sqrq = $filter('date')($scope.fumigationProcess.perforatedDate.substring(0,10), "yyyy-MM-dd");
529
-//        	var xzjssj = $filter('date')($scope.fumigation.fumigationEnd.substring(0,10), "yyyy-MM-dd");
530
-//        	var czsjzysj = $filter('date')($("input[name='residueCollectionTime']").val(), "yyyy-MM-dd");
531
-//            if(czsjzysj <= sqrq || czsjzysj >= xzjssj){
532
-//                return this.optional(element)|| false;
533
-//            }else{
534
-//                return this.optional(element)|| true;
535
-//            }
536
-//        },"残渣收集作业时间必须大于散气日期!");
555
+        // 自定义验证:实际残渣收集作业开始时间
556
+        $.validator.addMethod("sjczsjzykssj",function(value,element, params) {
557
+        	//实际残渣收集作业开始时间
558
+        	var sjsqjssj = $filter('date')($scope.fumigationProcess.bulkEndTime, "yyyy-MM-dd HH:mm:ss");
559
+        	//实际残渣收集作业开始时间
560
+        	var sjczsjzykssj = $filter('date')($("input[name='sjczsjzykssj']").val(), "yyyy-MM-dd HH:mm:ss");
561
+            if(sjczsjzykssj < sjsqjssj){
562
+                return this.optional(element)|| false;
563
+            }else{
564
+                return this.optional(element)|| true;
565
+            }
566
+        },"实际残残渣收集开始时间不得早于实际散气结束时间!");
537 567
 
538 568
         // 返回.
539 569
         $scope.retList = function () {
@@ -552,30 +582,20 @@ angular.module('app.intelligent')
552 582
                             $scope.fumigationAfter.checkInsectCageTime = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
553 583
                         }
554 584
                     });
555
-                    $("input[name='residueCollectionTime']").each(function(j,item){
585
+                    $("input[name='sjczsjzykssj']").each(function(j,item){
586
+                        if(item.value != '' && item.value != null && typeof item.value != 'undefined'){
587
+                            $scope.fumigationAfter.sjczsjzykssj = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
588
+                        }
589
+                    });
590
+                    $("input[name='sjczsjzyjssj']").each(function(j,item){
556 591
                         if(item.value != '' && item.value != null && typeof item.value != 'undefined'){
557
-                            $scope.fumigationAfter.residueCollectionTime = $filter('date')(item.value, "yyyy-MM-dd");
592
+                            $scope.fumigationAfter.sjczsjzyjssj = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
558 593
                         }
559 594
                     });
560 595
 
561
-                    $scope.fumigationAfter.czsjzysj = $scope.fumigationAfter.checkInsectCageTime;
562
-                    $scope.fumigationAfter.czsjzyrs = $scope.fumigationAfter.numberOperationsCollected;
563
-                    $scope.fumigationAfter.czsjff = $scope.fumigationAfter.residueCollectionMethod;
564
-                    $scope.fumigationAfter.czsjzypzr = $scope.fumigationAfter.collectJobApprover;
565
-                    $scope.fumigationAfter.czclcs = $scope.fumigationAfter.residueTreatmentMeasures;
566
-                    $scope.fumigationAfter.czclzyrs = $scope.fumigationAfter.numberResidueTreatment;
567
-                    $scope.fumigationAfter.czclpzr = $scope.fumigationAfter.residueDisposalApprover;
568
-                    $scope.fumigationAfter.xzhhcjcqk = $scope.fumigationAfter.detectionLiveWorms;
569
-                    $scope.fumigationAfter.xzhckmd = $scope.fumigationAfter.populationDensity;
570
-                    $scope.fumigationAfter.pyswthhcs = $scope.fumigationAfter.samplingCultureHalfMonths;
571
-                    $scope.fumigationAfter.pysswthhcs = $scope.fumigationAfter.samplingCultureMonthHalf;
572
-                    $scope.fumigationAfter.xzxgpj = $scope.fumigationAfter.effectAnalysis;
573 596
                     $scope.fumigationAfter.fumigationId = $scope.fumigation.xzzydh;
574
-                    $scope.fumigationAfter.recordId = $stateParams.homeWorkId;
597
+                    //$scope.fumigationAfter.recordId = $stateParams.homeWorkId;
575 598
                     $scope.fumigationAfter.createTime = $filter('date')($scope.fumigationAfter.createTime, "yyyy-MM-dd HH:mm:ss");
576
-                    if($scope.fumigationAfter.updateTime) {
577
-                        $scope.fumigationAfter.updateTime = $filter('date')($scope.fumigationAfter.updateTime, "yyyy-MM-dd HH:mm:ss");
578
-                    }
579 599
 
580 600
                     homeWorkService.saveFumigationAfterDate($scope.fumigationAfter).then(function(data){
581 601
                         if(data.status == "success"){

+ 76 - 64
src/main/resources/static/app/intelligent/fumigation/views/homework/fumHomeWorkAfter-edit.html

@@ -124,7 +124,7 @@
124 124
                                                     <label class="label" style="margin-top: 50%;text-align: center;">散气情况</label>
125 125
                                                 </th>
126 126
                                                 <th>
127
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">散气开始时间</label>
127
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">实际散气开始时间</label>
128 128
                                                 </th>
129 129
                                                 <th>
130 130
                                                     <section>
@@ -135,7 +135,7 @@
135 135
                                                     </section>
136 136
                                                 </th>
137 137
                                                 <th>
138
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">散气结束时间</label>
138
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">实际散气结束时间</label>
139 139
                                                 </th>
140 140
                                                 <th>
141 141
                                                     <section>
@@ -146,17 +146,6 @@
146 146
                                                     </section>
147 147
                                                 </th>
148 148
                                                 <th>
149
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">散气日期</label>
150
-                                                </th>
151
-                                                <th>
152
-                                                    <section>
153
-                                                        <label class="input">
154
-                                                            <input type="text" class="form-control" ng-model="fumigationProcess.perforatedDate" name="perforatedDate"
155
-                                                                   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="true">
156
-                                                        </label>
157
-                                                    </section>
158
-                                                </th>
159
-                                                <th>
160 149
                                                     <label label class="label" style="margin-top: 9px;text-align: center;">散气持续天数(天)<span style="color: red;">*</span></label>
161 150
                                                 </th>
162 151
                                                 <th>
@@ -167,8 +156,6 @@
167 156
                                                         </label>
168 157
                                                     </section>
169 158
                                                 </th>
170
-                                            </tr>
171
-                                            <tr>
172 159
                                                 <th>
173 160
                                                     <label label class="label" style="margin-top: 9px;text-align: center;">密闭时间(天)</label>
174 161
                                                 </th>
@@ -180,6 +167,8 @@
180 167
                                                         </label>
181 168
                                                     </section>
182 169
                                                 </th>
170
+                                            </tr>
171
+                                            <tr>
183 172
                                                 <th>
184 173
                                                     <label label class="label" style="margin-top: 9px;text-align: center;">CT值</label>
185 174
                                                 </th>
@@ -213,8 +202,6 @@
213 202
                                                         </label>
214 203
                                                     </section>
215 204
                                                 </th>
216
-                                            </tr>
217
-                                            <tr>
218 205
                                                 <th>
219 206
                                                     <label label class="label" style="margin-top: 9px;text-align: center;">散气方法<span style="color: red;">*</span></label>
220 207
                                                 </th>
@@ -226,6 +213,8 @@
226 213
                                                         </label>
227 214
                                                     </section>
228 215
                                                 </th>
216
+                                            </tr>
217
+                                            <tr>
229 218
                                                 <th>
230 219
                                                     <label label class="label" style="margin-top: 9px;text-align: center;">药剂残留率(ppm)</label>
231 220
                                                 </th>
@@ -249,16 +238,18 @@
249 238
                                                     </section>
250 239
                                                 </th>
251 240
                                                 <th>
252
-						                            <label class="label" style="margin-top: 9px; text-align: center">备注</label>
241
+						                            <label class="label" style="margin-top: 9px; text-align: center">散气备注</label>
253 242
 						                        </th>
254 243
 						                        <th>
255 244
 						                            <section>
256 245
 						                                <label class="input">
257
-						                                    <input class="form-control" type="text" ng-model="fumigationAfter.remark"
258
-						                                     ng-readonly="isNotEdit" name="remark" />
246
+						                                    <input class="form-control" type="text" ng-model="fumigationProcess.remark"
247
+						                                     ng-readonly="true" name="remark" />
259 248
 						                                </label>
260 249
 						                            </section>
261 250
 						                        </th>
251
+						                        <th></th>
252
+						                        <th></th>
262 253
                                             </tr>
263 254
                                         </table>
264 255
 
@@ -268,82 +259,94 @@
268 259
                                                     <label class="label" style="margin-top: 9px;text-align: center;">残渣处理</label>
269 260
                                                 </th>
270 261
                                                 <th>
271
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣收集作业时间<span style="color: red;text-align: center;">*</span></label>
262
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">实际残渣收集开始时间<span style="color: red;text-align: center;">*</span></label>
272 263
                                                 </th>
273 264
                                                 <th>
274
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">收集作业人数</label>
275
-                                                </th>
276
-                                                <th>
277
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣收集方法</label>
278
-                                                </th>
279
-                                                <th>
280
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">收集作业批准人</label>
281
-                                                </th>
282
-                                                <th>
283
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣处理措施</label>
284
-                                                </th>
285
-                                                <th>
286
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣处理作业人数</label>
265
+                                                    <section>
266
+                                                        <label class="input">
267
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.sjczsjzykssj"
268
+                                                                   ng-readonly="isNotEdit" name="sjczsjzykssj"
269
+                                                                   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" sjczsjzykssj=true required />
270
+                                                        </label>
271
+                                                    </section>
287 272
                                                 </th>
288 273
                                                 <th>
289
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣处理批准人</label>
274
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">实际残渣收集结束时间<span style="color: red;text-align: center;">*</span></label>
290 275
                                                 </th>
291
-                                            </tr>
292
-                                            <tr>
293 276
                                                 <th>
294 277
                                                     <section>
295 278
                                                         <label class="input">
296
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.residueCollectionTime"
297
-                                                                   ng-readonly="isNotEdit" name="residueCollectionTime"
298
-                                                                   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" czsjzysj=true required />
279
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.sjczsjzyjssj"
280
+                                                                   ng-readonly="isNotEdit" name="sjczsjzyjssj"
281
+                                                                   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" czsjzysj=true required />
299 282
                                                         </label>
300 283
                                                     </section>
301 284
                                                 </th>
302 285
                                                 <th>
286
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">收集作业人数</label>
287
+                                                </th>
288
+                                                <th>
303 289
                                                     <section>
304 290
                                                         <label class="input">
305
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.numberOperationsCollected"
306
-                                                                   ng-readonly="isNotEdit" validInteger="true" name="numberOperationsCollected">
291
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.czsjzyrs"
292
+                                                                   ng-readonly="isNotEdit" validInteger="true" name="czsjzyrs">
307 293
                                                         </label>
308 294
                                                     </section>
309 295
                                                 </th>
310 296
                                                 <th>
297
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣收集方法</label>
298
+                                                </th>
299
+                                                <th>
311 300
                                                     <section>
312 301
                                                         <label class="input">
313
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.residueCollectionMethod"
314
-                                                                   ng-readonly="isNotEdit" name="residueCollectionMethod">
302
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.czsjff"
303
+                                                                   ng-readonly="isNotEdit" name="czsjff">
315 304
                                                         </label>
316 305
                                                     </section>
317 306
                                                 </th>
307
+                                            </tr>
308
+                                            <tr>
309
+                                                <th>
310
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">收集作业批准人</label>
311
+                                                </th>
318 312
                                                 <th>
319 313
                                                     <section>
320 314
                                                         <label class="input">
321
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.collectJobApprover"
322
-                                                                   ng-readonly="isNotEdit" setState=true name="collectJobApprover">
315
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.czsjzypzr"
316
+                                                                   ng-readonly="isNotEdit" setState=true name="czsjzypzr">
323 317
                                                         </label>
324 318
                                                     </section>
325 319
                                                 </th>
326 320
                                                 <th>
321
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣处理措施</label>
322
+                                                </th>
323
+                                                <th>
327 324
                                                     <section>
328 325
                                                         <label class="input">
329
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.residueTreatmentMeasures"
330
-                                                                   ng-readonly="isNotEdit" name="residueTreatmentMeasures">
326
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.czclcs"
327
+                                                                   ng-readonly="isNotEdit" name="czclcs">
331 328
                                                         </label>
332 329
                                                     </section>
333 330
                                                 </th>
334 331
                                                 <th>
332
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣处理作业人数</label>
333
+                                                </th>
334
+                                                <th>
335 335
                                                     <section>
336 336
                                                         <label class="input">
337
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.numberResidueTreatment"
338
-                                                                   ng-readonly="isNotEdit" validInteger="true" name="numberResidueTreatment">
337
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.czclzyrs"
338
+                                                                   ng-readonly="isNotEdit" validInteger="true" name="czclzyrs">
339 339
                                                         </label>
340 340
                                                     </section>
341 341
                                                 </th>
342 342
                                                 <th>
343
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣处理批准人</label>
344
+                                                </th>
345
+                                                <th>
343 346
                                                     <section>
344 347
                                                         <label class="input">
345
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.residueDisposalApprover"
346
-                                                                   ng-readonly="isNotEdit" setState=true name="residueDisposalApprover">
348
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.czclpzr"
349
+                                                                   ng-readonly="isNotEdit" setState=true name="czclpzr">
347 350
                                                         </label>
348 351
                                                     </section>
349 352
                                                 </th>
@@ -362,8 +365,8 @@
362 365
                                                 <th>
363 366
                                                     <section>
364 367
                                                         <label class="input">
365
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.detectionLiveWorms"
366
-                                                                   ng-readonly="isNotEdit" name="detectionLiveWorms">
368
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.xzhhcjcqk"
369
+                                                                   ng-readonly="isNotEdit" name="xzhhcjcqk">
367 370
                                                         </label>
368 371
                                                     </section>
369 372
                                                 </th>
@@ -373,8 +376,8 @@
373 376
                                                 <th>
374 377
                                                     <section>
375 378
                                                         <label class="input">
376
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.populationDensity"
377
-                                                                   ng-readonly="isNotEdit" validIntegerZero="true" name="populationDensity">
379
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.xzhckmd"
380
+                                                                   ng-readonly="isNotEdit" validIntegerZero="true" name="xzhckmd">
378 381
                                                         </label>
379 382
                                                     </section>
380 383
                                                 </th>
@@ -384,8 +387,8 @@
384 387
                                                 <th>
385 388
                                                     <section>
386 389
                                                         <label class="input">
387
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.samplingCultureHalfMonths"
388
-                                                                   ng-readonly="isNotEdit" validIntegerZero="true" name="samplingCultureHalfMonths">
390
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.pyswthhcs"
391
+                                                                   ng-readonly="isNotEdit" validIntegerZero="true" name="pyswthhcs">
389 392
                                                         </label>
390 393
                                                     </section>
391 394
                                                 </th>
@@ -410,8 +413,8 @@
410 413
                                                 <th>
411 414
                                                     <section>
412 415
                                                         <label class="input">
413
-                                                            <input class="form-control" type="text" ng-model="fumigationAfter.samplingCultureMonthHalf"
414
-                                                                   ng-readonly="isNotEdit" validIntegerZero="true" name="samplingCultureMonthHalf">
416
+                                                            <input class="form-control" type="text" ng-model="fumigationAfter.pysswthhcs"
417
+                                                                   ng-readonly="isNotEdit" validIntegerZero="true" name="pysswthhcs">
415 418
                                                         </label>
416 419
                                                     </section>
417 420
                                                 </th>
@@ -475,12 +478,12 @@
475 478
                                                     </section>
476 479
                                                 </th>
477 480
                                                 <th>
478
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">效果评价<span style="color: red;">*</span></label>
481
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">熏蒸效果评价<span style="color: red;">*</span></label>
479 482
                                                 </th>
480 483
                                                 <th>
481 484
                                                     <section>
482 485
                                                         <label class="select">
483
-                                                            <select ng-model="fumigationAfter.effectAnalysis" name="effectAnalysis" ng-disabled="isNotEdit" required>
486
+                                                            <select ng-model="fumigationAfter.xzxgpj" name="xzxgpj" ng-disabled="isNotEdit" required>
484 487
                                                                 <option value="">--请选择--</option>
485 488
                                                                 <option value="0">良好</option>
486 489
                                                                 <option value="1">一般</option>
@@ -489,8 +492,17 @@
489 492
                                                         </label>
490 493
                                                     </section>
491 494
                                                 </th>
492
-                                                <th></th>
493
-                                                <th></th>
495
+                                                <th>
496
+						                            <label class="label" style="margin-top: 9px; text-align: center">熏蒸善后备注</label>
497
+						                        </th>
498
+						                        <th>
499
+						                            <section>
500
+						                                <label class="input">
501
+						                                    <input class="form-control" type="text" ng-model="fumigationAfter.remark"
502
+						                                     ng-readonly="isNotEdit" name="remark" />
503
+						                                </label>
504
+						                            </section>
505
+						                        </th>
494 506
                                             </tr>
495 507
                                             <!--第七个tr结束 -->
496 508
                                             <!-- 创建信息 -->

+ 0 - 2
src/main/resources/static/app/intelligent/fumigation/views/homework/fumHomeWorkAfter-list.html

@@ -47,7 +47,6 @@
47 47
                                         <th data-class="expand" style="text-align:center;">仓房名称</th>
48 48
                                         <th data-class="expand" style="text-align:center;">熏蒸方式</th>
49 49
                                         <th data-class="expand" style="text-align:center;">药剂名称</th>
50
-                                        <th data-class="expand" style="text-align:center;">创建人</th>
51 50
                                         <th data-class="expand" style="text-align:center;">创建时间</th>
52 51
                                         <th data-class="expand" style="text-align:center;"> 操作</th>
53 52
                                     </tr>
@@ -59,7 +58,6 @@
59 58
                                         <td style="text-align:center;">{{ storehouseObj[afterPlan.houseid].storehouseName }}</td>
60 59
                                         <td style="text-align:center;">{{ afterPlan.fumigationtype }}</td>
61 60
                                         <td style="text-align:center;">{{ dicData[afterPlan.drugname] }}</td>
62
-                                        <td style="text-align:center;">{{ userInfoData[afterPlan.creater] }}</td>
63 61
                                         <td style="text-align:center;">{{ afterPlan.createtime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
64 62
                                         <td style="text-align:center;">
65 63
                                             <a href-void has-permission="609" ng-click="getAddAndEdit('edit',afterPlan.id, afterPlan.recordid)"><i class=""></i>修改</a>

+ 42 - 30
src/main/resources/static/app/intelligent/fumigation/views/homework/fumHomeWorkProcess-edit.html

@@ -13,11 +13,7 @@
13 13
             <!-- widget content -->
14 14
             <div class="widget-body no-padding">
15 15
               <form id="fumigationProcess-form" class="smart-form ng-pristine ng-valid" data-validator-option="validateOptions" novalidate="novalidate" style="
16
-                  border-width: 5px;
17
-                  margin-left: 2%;
18
-                  position: relative;
19
-                  margin-right: 2%;
20
-                " >
16
+                  border-width: 5px;margin-left: 2%;position: relative;margin-right: 2%;" >
21 17
                 <header>
22 18
                   <a href-void class="btn btn-default btn-xs" ng-click="retList()">
23 19
                     <i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
@@ -34,7 +30,7 @@
34 30
                     <table class="table table-striped table-bordered table-hover" width="100%" style="padding: 0" >
35 31
                       <!--第一个tr开始 -->
36 32
                       <tr>
37
-                        <th rowspan="2" width="10%">
33
+                        <th rowspan="3" width="10%">
38 34
                           <label class="label" style="margin-top: 50%; text-align: center">作业基本情况</label>
39 35
                         </th>
40 36
                         <th width="15%">
@@ -87,25 +83,51 @@
87 83
                           </section>
88 84
                         </th>
89 85
                         <th>
90
-                          <label class="label" style="margin-top: 9px; text-align: center">熏蒸作业人员</label>
86
+                          <label class="label" style="margin-top: 9px; text-align: center">熏蒸作业施药开始时间</label>
91 87
                         </th>
92 88
                         <th>
93 89
                           <section>
94 90
                             <label class="input">
95
-                              <input class="form-control" type="text" ng-model="fumigationProcess.xzczry" ng-disabled="isNotEdit" name="xzczry" />
91
+                              <input class="form-control" type="text" ng-model="fumigation.fumigationStart"
92
+                                ng-readonly="true" name="fumigationStart" required />
93
+                            </label>
94
+                          </section>
95
+                        </th>
96
+                        <th>
97
+                          <label class="label" style="margin-top: 9px; text-align: center">熏蒸作业施药结束时间</label>
98
+                        </th>
99
+                        <th>
100
+                          <section>
101
+                            <label class="input">
102
+                              <input class="form-control" type="text" ng-model="fumigation.fumigationEnd"
103
+                                ng-readonly="true" name="fumigationEnd" required />
96 104
                             </label>
97 105
                           </section>
98 106
                         </th>
107
+                      </tr>
108
+                      <tr>
99 109
                         <th>
100 110
                           <label class="label" style="margin-top: 9px; text-align: center">熏蒸作业负责人</label>
101 111
                         </th>
102 112
                         <th>
103 113
                           <section>
104 114
                             <label class="input">
105
-                              <input class="form-control" type="text" ng-model="fumigationProcess.operationSupervisor" ng-disabled="isNotEdit" name="operationSupervisor" />
115
+                              <input class="form-control" type="text" ng-model="fumigationProcess.operationSupervisor" ng-disabled="true" name="operationSupervisor" />
116
+                            </label>
117
+                          </section>
118
+                        </th>
119
+                        <th>
120
+                          <label class="label" style="margin-top: 9px; text-align: center">熏蒸作业人员</label>
121
+                        </th>
122
+                        <th>
123
+                          <section>
124
+                            <label class="input">
125
+                              <input class="form-control" type="text" ng-model="fumigationProcess.xzczry" ng-disabled="isNotEdit" name="xzczry" />
106 126
                             </label>
107 127
                           </section>
108 128
                         </th>
129
+                        <th></th>
130
+                        <th></th>
109 131
                       </tr>
110 132
                     </table>
111 133
                 </fieldset>
@@ -968,36 +990,24 @@
968 990
                           <label class="label" style="margin-top: 50%; text-align: center" >散气情况</label>
969 991
                         </th>
970 992
                         <th>
971
-                          <label class="label" style="margin-top: 9px; text-align: center">散气开始时间</label>
993
+                          <label class="label" style="margin-top: 9px; text-align: center">实际散气开始时间<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
972 994
                         </th>
973 995
                         <th>
974 996
                           <section>
975 997
                             <label class="input">
976 998
                               <input type="text" class="form-control" ng-model="fumigationProcess.bulkStartTime" name="bulkStartTime"
977
-                                onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="isNotEdit" />
999
+                                onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="isNotEdit" sjsqkssj=true required />
978 1000
                             </label>
979 1001
                           </section>
980 1002
                         </th>
981 1003
                         <th>
982
-                          <label class="label" style="margin-top: 9px; text-align: center">散气结束时间</label>
1004
+                          <label class="label" style="margin-top: 9px; text-align: center">实际散气结束时间<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
983 1005
                         </th>
984 1006
                         <th>
985 1007
                           <section>
986 1008
                             <label class="input">
987 1009
                               <input type="text" class="form-control" ng-model="fumigationProcess.bulkEndTime" name="bulkEndTime"
988
-                                onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="isNotEdit" />
989
-                            </label>
990
-                          </section>
991
-                        </th>
992
-                        <th>
993
-                          <label class="label" style="margin-top: 9px; text-align: center">散气日期<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
994
-                        </th>
995
-                        <th>
996
-                          <section>
997
-                            <label class="input">
998
-                              <input type="text" class="form-control" ng-model="fumigationProcess.perforatedDate"
999
-                                name="perforatedDate" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})"
1000
-                                ng-disabled="isNotEdit" sqrq=true required />
1010
+                                onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="isNotEdit" sjsqjssj=true required />
1001 1011
                             </label>
1002 1012
                           </section>
1003 1013
                         </th>
@@ -1008,12 +1018,10 @@
1008 1018
                           <section>
1009 1019
                             <label class="input">
1010 1020
                               <input class="form-control" type="text" ng-model="fumigationProcess.perforatedDays"
1011
-                                ng-readonly="isNotEdit" name="perforatedDays" validInteger="true" required />
1021
+                                ng-readonly="true" name="perforatedDays" validInteger="true" required />
1012 1022
                             </label>
1013 1023
                           </section>
1014 1024
                         </th>
1015
-                      </tr>
1016
-                      <tr>
1017 1025
                         <th>
1018 1026
                           <label class="label" style="margin-top: 9px; text-align: center">密闭时间(天)</label>
1019 1027
                         </th>
@@ -1025,6 +1033,8 @@
1025 1033
                             </label>
1026 1034
                           </section>
1027 1035
                         </th>
1036
+                      </tr>
1037
+                      <tr>
1028 1038
                         <th>
1029 1039
                           <label
1030 1040
                             label
@@ -1069,8 +1079,6 @@
1069 1079
                             </label>
1070 1080
                           </section>
1071 1081
                         </th>
1072
-                      </tr>
1073
-                      <tr>
1074 1082
                         <th>
1075 1083
                           <label class="label" style="margin-top: 9px; text-align: center">散气方法<span style="color: red">*</span></label>
1076 1084
                         </th>
@@ -1082,6 +1090,8 @@
1082 1090
                             </label>
1083 1091
                           </section>
1084 1092
                         </th>
1093
+                      </tr>
1094
+                      <tr>
1085 1095
                         <th>
1086 1096
                           <label class="label" style="margin-top: 9px; text-align: center">药剂残留率(ppm)</label>
1087 1097
                         </th>
@@ -1115,6 +1125,8 @@
1115 1125
                             </label>
1116 1126
                           </section>
1117 1127
                         </th>
1128
+                        <th></th>
1129
+                        <th></th>
1118 1130
                       </tr>
1119 1131
 
1120 1132
                       <!-- 创建信息 -->

+ 1 - 1
src/main/resources/static/app/intelligent/fumigation/views/homework/fumHomeWorkProcess-list.html

@@ -60,7 +60,7 @@
60 60
                                         <td style="text-align:center;">{{ dicData[processPlan.grainkind] }}</td>
61 61
                                         <td style="text-align:center;">{{ processPlan.fumigationtype }}</td>
62 62
                                         <td style="text-align:center;">{{ dicData[processPlan.drugname] }}</td>
63
-                                        <td style="text-align:center;">{{ processPlan.createTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
63
+                                        <td style="text-align:center;">{{ processPlan.createtime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
64 64
                                         <td style="text-align:center;">
65 65
                                             <a ng-hide="isArchive" has-permission="605" href-void ng-click="getAddAndEdit('edit',processPlan.id, processPlan.recordid)"><i class=""></i>修改</a>
66 66
 <!--                                             <a ng-hide="isArchive" has-permission="606" href-void ng-click="removeDetail(processPlan.id,processPlan.fumigationId)"><i class=""></i>删除</a> -->

+ 48 - 4
src/main/resources/static/app/intelligent/fumigation/views/plan/forRecord-edit.html

@@ -80,7 +80,7 @@
80 80
 													</section>
81 81
 												</th>
82 82
 												<th>
83
-													<label class="label" style="margin-top: 9px;text-align: center;">熏蒸开始时间<span style="color: red;">*</span></label>
83
+													<label class="label" style="margin-top: 9px;text-align: center;">熏蒸作业施药开始时间<span style="color: red;">*</span></label>
84 84
 												</th>
85 85
 												<th width='15%'>
86 86
 													<section>
@@ -93,7 +93,7 @@
93 93
 											</tr>
94 94
 											<tr>
95 95
 												<th>
96
-													<label class="label" style="margin-top: 9px;text-align: center;">熏蒸结束时间<span style="color: red;">*</span></label>
96
+													<label class="label" style="margin-top: 9px;text-align: center;">熏蒸作业施药结束时间<span style="color: red;">*</span></label>
97 97
 												</th>
98 98
 												<th width='15%'>
99 99
 													<section>
@@ -104,6 +104,51 @@
104 104
 													</section>
105 105
 												</th>
106 106
 												<th>
107
+													<label class="label" style="margin-top: 9px;text-align: center;">预计散气开始时间<span style="color: red;">*</span></label>
108
+												</th>
109
+												<th width='15%'>
110
+													<section>
111
+														<label class="input">
112
+															<input type="text" ng-model="fumForRecord.gasStart" name="gasStart"
113
+																   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
114
+														</label>
115
+													</section>
116
+												</th>
117
+												<th>
118
+													<label class="label" style="margin-top: 9px;text-align: center;">预计散气结束时间<span style="color: red;">*</span></label>
119
+												</th>
120
+												<th width='15%'>
121
+													<section>
122
+														<label class="input">
123
+															<input type="text" ng-model="fumForRecord.gasEnd" name="gasEnd"
124
+																   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
125
+														</label>
126
+													</section>
127
+												</th>
128
+											<tr>
129
+											    <th>
130
+													<label class="label" style="margin-top: 9px;text-align: center;">预计残渣收集作业开始时间<span style="color: red;">*</span></label>
131
+												</th>
132
+												<th width='15%'>
133
+													<section>
134
+														<label class="input">
135
+															<input type="text" ng-model="fumForRecord.residueStart" name="residueStart"
136
+																   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
137
+														</label>
138
+													</section>
139
+												</th>
140
+												<th>
141
+													<label class="label" style="margin-top: 9px;text-align: center;">预计残收集作业结束时间<span style="color: red;">*</span></label>
142
+												</th>
143
+												<th width='15%'>
144
+													<section>
145
+														<label class="input">
146
+															<input type="text" ng-model="fumForRecord.residueEnd" name="residueEnd"
147
+																   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
148
+														</label>
149
+													</section>
150
+												</th>
151
+												<th>
107 152
 													<label class="label" style="margin-top: 9px;text-align: center;">常规熏蒸方式</label>
108 153
 												</th>
109 154
 												<th width='15%'>
@@ -119,6 +164,7 @@
119 164
 														</label>
120 165
 													</section>
121 166
 												</th>
167
+											<tr>
122 168
 												<th>
123 169
 													<label class="label" style="margin-top: 9px;text-align: center;">环流熏蒸方式</label>
124 170
 												</th>
@@ -133,8 +179,6 @@
133 179
 														</label>
134 180
 													</section>
135 181
 												</th>
136
-											</tr>
137
-											<tr>
138 182
 												<th>
139 183
 													<label class="label" style="margin-top: 9px;text-align: center;">环流熏蒸与内环流技术结合</label>
140 184
 												</th>