lvzhikai 4 jaren geleden
bovenliggende
commit
9edfd762db

+ 9 - 9
src/main/resources/static/app/intelligent/fumigation/controller/fumigationPlanCtrl.js

@@ -260,13 +260,13 @@ angular.module('app.intelligent')
260 260
         // 仓房类型
261 261
         $scope.storehouse.houseType = Number($scope.storehouseObj[houseId].storehouseType);
262 262
         // 仓房结构_地面
263
-        $scope.storehouse.houseGround = $scope.storehouseObj[houseId].ground;
263
+        $scope.storehouse.houseGround = Number($scope.storehouseObj[houseId].ground);
264 264
         // 仓房结构_墙体
265
-        $scope.storehouse.houseWall = $scope.storehouseObj[houseId].wall;
265
+        $scope.storehouse.houseWall = Number($scope.storehouseObj[houseId].wall);
266 266
         // 仓房结构_屋顶
267
-        $scope.storehouse.houseRoof = $scope.storehouseObj[houseId].roof;
267
+        $scope.storehouse.houseRoof = Number($scope.storehouseObj[houseId].roof);
268 268
         // 仓房结构_房架
269
-        $scope.storehouse.houseFrame = $scope.storehouseObj[houseId].house;
269
+        $scope.storehouse.houseFrame = Number($scope.storehouseObj[houseId].house);
270 270
 
271 271
         // 通过仓房id,获取保管员.
272 272
         paymentService.getKepperByHouseId(houseId).then(function(data){
@@ -395,10 +395,10 @@ angular.module('app.intelligent')
395 395
         // 回调函数.
396 396
         modalInstance.result.then(function (result) {
397 397
             if (result.returnType == "cancel") {//点击取消则把刚才添加的数据删除
398
-                if(variable == 1){
398
+                // if(variable == 1){
399 399
                     // 新增则id
400 400
                     fumigationPlanService.removeDetail(fumigationEdit.id).then(function(data){
401
-                        if (data.message == 'success'){
401
+                        if (data.status == 'success'){
402 402
                             fumigationEdit.id = null;
403 403
                             $scope.saveFlag = false;
404 404
                             $scope.getCodeValueByType();
@@ -406,9 +406,9 @@ angular.module('app.intelligent')
406 406
                     },function(data){
407 407
                         console.log(data);
408 408
                     });
409
-                }else{
410
-                    //不做操作
411
-                }
409
+                // }else{
410
+                //     //不做操作
411
+                // }
412 412
             } else if (result.returnType == "submit") {
413 413
                 // 审批人.
414 414
                 $scope.submit(result.assignee, result.list,fumigationEdit);

+ 6 - 3
src/main/resources/static/app/intelligent/fumigation/views/plan/fumigationPlan-edit.html

@@ -117,9 +117,12 @@
117 117
 											</th>
118 118
 											<th>
119 119
 												<section>
120
-													<label class="input">
121
-														<input class="form-control" type="text" ng-model="storehouse.houseGround"
122
-			                                                ng-readonly="true" name="houseGround">
120
+													<label class="select">
121
+														<select ng-model="storehouse.houseGround" name="houseGround" ng-disabled="true"
122
+																ng-options="enum.enumid as enum.enumname for enum in dicDataList[1037]"
123
+																class="form-control">
124
+															<option value="">--请选择--</option>
125
+														</select>
123 126
 													</label>
124 127
 												</section>
125 128
 											</th>

File diff suppressed because it is too large
+ 36061 - 35337
src/main/resources/static/build/app.js