Browse Source

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

maopixin 2 years ago
parent
commit
adabec0d18

+ 1 - 0
src/main/resources/static/app/intelligent/aeration/controller/aerationJobCtrl.js

@@ -180,6 +180,7 @@ angular.module('app.intelligent')
180
     $scope.save = function () {
180
     $scope.save = function () {
181
     	$scope.aerationJob.tfkssj = $("#tfkssj").val();
181
     	$scope.aerationJob.tfkssj = $("#tfkssj").val();
182
     	$scope.aerationJob.tfjssj = $("#tfjssj").val();
182
     	$scope.aerationJob.tfjssj = $("#tfjssj").val();
183
+    	$scope.aerationJob.djrq = $("#djrq").val();
183
     	
184
     	
184
     	if (!$scope.saveFlag) {
185
     	if (!$scope.saveFlag) {
185
     		if (validator.form()) {
186
     		if (validator.form()) {

+ 3 - 3
src/main/resources/static/app/intelligent/aeration/views/aerationJob-edit.html

@@ -170,8 +170,8 @@
170
 											</th>
170
 											</th>
171
 											<th>
171
 											<th>
172
 												<label class="input">
172
 												<label class="input">
173
-													<input type="text" ng-model="aerationJob.djrq" ng-disabled="isNotEdit"
174
-														name="djrq" class="form-control datepicker" required data-smart-datepicker>
173
+													<input type="text" ng-model="aerationJob.djrq" ng-disabled="isNotEdit" id="djrq"
174
+														name="djrq" class="form-control datepicker" required onClick="WdatePicker({lang:'zh-cn'})" >
175
 												</label>
175
 												</label>
176
 											</th>
176
 											</th>
177
 											<th>
177
 											<th>
@@ -449,7 +449,7 @@
449
 											</th>
449
 											</th>
450
 											<th>
450
 											<th>
451
 												<label class="input">
451
 												<label class="input">
452
-													<input type="text" ng-model="aerationJob.zfdjmj"
452
+													<input type="text" ng-model="aerationJob.zfdjmjZhi"
453
 														ng-disabled="isNotEdit" name="zfdjmj" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''"
453
 														ng-disabled="isNotEdit" name="zfdjmj" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''"
454
 														class="form-control" />
454
 														class="form-control" />
455
 												</label>
455
 												</label>

+ 3 - 3
src/main/resources/static/app/intelligent/grainDetection/controller/insectPestDetectionCtrl.js

@@ -1,6 +1,6 @@
1
 "use strict";
1
 "use strict";
2
 angular.module('app.intelligent').controller("insectPestDetectionCtrl", function ($scope, $stateParams, $state, $rootScope, insectPestDetectionService, $interval,archiveService,$filter) {
2
 angular.module('app.intelligent').controller("insectPestDetectionCtrl", function ($scope, $stateParams, $state, $rootScope, insectPestDetectionService, $interval,archiveService,$filter) {
3
-
3
+    // console.log($rootScope);
4
     // 默认分页
4
     // 默认分页
5
     $scope.pageInfo = {pageNum: 1, pageSize: 10};
5
     $scope.pageInfo = {pageNum: 1, pageSize: 10};
6
     // 筛选条件
6
     // 筛选条件
@@ -319,7 +319,7 @@ angular.module('app.intelligent').controller("insectPestDetectionCtrl", function
319
 
319
 
320
     // 保存.
320
     // 保存.
321
     $scope.saveData = function () {
321
     $scope.saveData = function () {
322
-        console.log($scope.pestList);
322
+        // console.log($scope.pestList);
323
         if (!$scope.saveFlag) {
323
         if (!$scope.saveFlag) {
324
             if (validator.form()) {
324
             if (validator.form()) {
325
                 // 设置saveFlag为true,防止重复提交.
325
                 // 设置saveFlag为true,防止重复提交.
@@ -346,7 +346,7 @@ angular.module('app.intelligent').controller("insectPestDetectionCtrl", function
346
                 });
346
                 });
347
                 hczlStr = hczlStr.slice(0, hczlStr.length - 1);
347
                 hczlStr = hczlStr.slice(0, hczlStr.length - 1);
348
                 ckmdzjhStr = ckmdzjhStr.slice(0, ckmdzjhStr.length - 1);
348
                 ckmdzjhStr = ckmdzjhStr.slice(0, ckmdzjhStr.length - 1);
349
-                console.log(hczlStr, ckmdzjhStr);
349
+                // console.log(hczlStr, ckmdzjhStr);
350
                 $scope.insectPests.hczl = hczlStr;
350
                 $scope.insectPests.hczl = hczlStr;
351
                 $scope.insectPests.ckmdzjh = ckmdzjhStr;
351
                 $scope.insectPests.ckmdzjh = ckmdzjhStr;
352
                 //保存熏蒸数据
352
                 //保存熏蒸数据

+ 17 - 0
src/main/resources/static/app/intelligent/grainDetection/views/insectPestDetection-edit.html

@@ -124,6 +124,23 @@
124
 												</label>
124
 												</label>
125
 											</th>
125
 											</th>
126
 										</tr>
126
 										</tr>
127
+										<tr>
128
+											<th>
129
+												<label label class="label" style="margin-top: 9px;text-align: center;">发生部位</label>
130
+											</th>
131
+											<th>
132
+												<section>
133
+													<label class="input">
134
+														<input class="form-control" type="text" ng-model="insectPests.fsbw"
135
+															   name="hckyxfx">
136
+													</label>
137
+												</section>
138
+											</th>
139
+											<th></th>
140
+											<th></th>
141
+											<th></th>
142
+											<th></th>
143
+										</tr>
127
 									</table>
144
 									</table>
128
 								</fieldset>
145
 								</fieldset>
129
 
146
 

+ 17 - 7
src/main/resources/static/app/intelligent/grainDetection/views/insectPestDetection-list.html

@@ -58,7 +58,7 @@
58
                                         <th data-class="expand" style="text-align:center;">货位名称</th>
58
                                         <th data-class="expand" style="text-align:center;">货位名称</th>
59
                                         <th data-class="expand" style="text-align:center;">扦样人</th>
59
                                         <th data-class="expand" style="text-align:center;">扦样人</th>
60
                                         <th data-class="expand" style="text-align:center;">扦样时间</th>
60
                                         <th data-class="expand" style="text-align:center;">扦样时间</th>
61
-                                        <th data-class="expand" style="text-align:center;">通道号</th>
61
+                                        <!-- <th data-class="expand" style="text-align:center;">通道号</th> -->
62
                                         <th data-class="expand" style="text-align:center;">害虫种类</th>
62
                                         <th data-class="expand" style="text-align:center;">害虫种类</th>
63
                                         <th data-class="expand" style="text-align:center;">虫情(个)</th>
63
                                         <th data-class="expand" style="text-align:center;">虫情(个)</th>
64
                                         <th data-class="expand" style="text-align:center;">检测人</th>
64
                                         <th data-class="expand" style="text-align:center;">检测人</th>
@@ -68,19 +68,29 @@
68
                                     </thead>
68
                                     </thead>
69
 
69
 
70
                                     <tbody>
70
                                     <tbody>
71
-                                    <tr ng-repeat="insectPest in pageInfo.list">
71
+                                    <tr ng-repeat="insectPest in pageInfo.list track by $index" ng-init="parentIndex=$index">
72
                                         <td style="text-align:center;">{{ $index + 1 }}</td>
72
                                         <td style="text-align:center;">{{ $index + 1 }}</td>
73
                                         <td style="text-align:center;">{{ storeHouseCodeObj[insectPest.vcfcode].storehouseName }}</td>
73
                                         <td style="text-align:center;">{{ storeHouseCodeObj[insectPest.vcfcode].storehouseName }}</td>
74
                                         <td style="text-align:center;">{{ wares[insectPest.vhwid].warehouseName }}</td>
74
                                         <td style="text-align:center;">{{ wares[insectPest.vhwid].warehouseName }}</td>
75
                                         <td style="text-align:center;">{{ insectPest.standor }}</td>
75
                                         <td style="text-align:center;">{{ insectPest.standor }}</td>
76
-                                        <td style="text-align:center;">{{ insectPest.standtime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
77
-                                        <td style="text-align:center;">{{ insectPest.itdh }}</td>
78
-                                        <td style="text-align:center;">{{ dicData[insectPest.hczl] }}</td>
79
-                                        <td style="text-align:center;">{{ insectPest.ivalue }}</td>
76
+                                        <td style="text-align:center;">{{ insectPest.standtime.slice(0, insectPest.standtime.length - 2) | date:'yyyy-MM-dd HH:mm:ss' }}</td>
77
+                                        <!-- <td style="text-align:center;">{{ insectPest.itdh }}</td> -->
78
+                                        <td style="text-align:center;">
79
+                                            <span ng-repeat="cIns in insectPest.hczl.split('#') track by $index">
80
+                                                <span ng-if="$index < insectPest.ckmdzjh.split('|').length - 1">{{ dicData[cIns] }}&nbsp;|</span>
81
+                                                <span ng-if="$index >= insectPest.ckmdzjh.split('|').length - 1">{{ dicData[cIns] }}</span>
82
+                                            </span>
83
+                                        </td>
84
+                                        <td style="text-align:center;">
85
+                                            <span ng-repeat="cIns in insectPest.ckmdzjh.split('|') track by $index">
86
+                                                <span ng-if="$index < insectPest.ckmdzjh.split('|').length - 1">{{ cIns }}&nbsp;|</span>
87
+                                                <span ng-if="$index >= insectPest.ckmdzjh.split('|').length - 1">{{ cIns }}</span>
88
+                                            </span>&nbsp;
89
+                                        </td>
80
                                         <td style="text-align:center;">{{ insectPest.vupdatepeople }}</td>
90
                                         <td style="text-align:center;">{{ insectPest.vupdatepeople }}</td>
81
                                         <td style="text-align:center;">{{ insectPest.vupdatetime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
91
                                         <td style="text-align:center;">{{ insectPest.vupdatetime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
82
                                         <td style="text-align:center;">
92
                                         <td style="text-align:center;">
83
-                                            <a ng-hide="isArchive" ng-hide="insectPest.iTdh == null" href-void ng-click="onlyInsectPestDetection(insectPest.vCfCode)"><i class=""></i>{{storeHouseCodeObj[insectPest.vCfCode].storehouseName}}检测</a>
93
+                                            <a ng-hide="isArchive" ng-hide="insectPest.iTdh == null" href-void ng-click="onlyInsectPestDetection(insectPest.vcfcode)"><i class=""></i>{{storeHouseCodeObj[insectPest.vcfcode].storehouseName}}检测</a>
84
                                         </td>
94
                                         </td>
85
                                     </tr>
95
                                     </tr>
86
                                     </tbody>
96
                                     </tbody>