hrjy 2 years ago
parent
commit
2d297920c6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/api/controller/water/WaterQueryController.php

+ 2 - 2
app/api/controller/water/WaterQueryController.php

@@ -160,7 +160,7 @@ class WaterQueryController
             foreach ($science as $item) {
                 $m2 = $item['long'] * $item['wide'];
                 $floor1 = ceil($floor / $m2);
-                $table[] = ['title' => '底板', 'name' => $item['name'], 'specifications' =>  $details['long'].'m*'.$details['wide'].'m', 'number' => $floor1, 'unit_price' => $item['unit_price'], 'company' => $item['company'], 'ot_price' => $item['unit_price'] * $floor1, 'weight' => $item['weight'] * $v, 'type' => 4];
+                $table[] = ['title' => '底板', 'name' => $item['name'], 'specifications' =>  $item['long'].'m*'.$item['wide'].'m', 'number' => $floor1, 'unit_price' => $item['unit_price'], 'company' => $item['company'], 'ot_price' => $item['unit_price'] * $floor1, 'weight' => $item['weight'] * $v, 'type' => 4];
             }
         }else {
             $floor = $calculation['floor_number'];
@@ -174,7 +174,7 @@ class WaterQueryController
                             $floor1 += 1;
                             $floor = 0;
                         }
-                        $table[] = ['title' => '底板', 'name' => $item['name'], 'specifications' =>  $details['long'].'m*'.$details['wide'].'m', 'number' => $floor1, 'unit_price' => $item['unit_price'], 'company' => $item['company'], 'ot_price' => $item['unit_price'] * $floor1, 'weight' => $item['weight'] * $v, 'type' => 4];
+                        $table[] = ['title' => '底板', 'name' => $item['name'], 'specifications' =>  $item['long'].'m*'.$item['wide'].'m', 'number' => $floor1, 'unit_price' => $item['unit_price'], 'company' => $item['company'], 'ot_price' => $item['unit_price'] * $floor1, 'weight' => $item['weight'] * $v, 'type' => 4];
                     }
                 }
             }