|
@@ -160,7 +160,9 @@ class WaterQueryController
|
|
|
foreach ($science as $item) {
|
|
|
$m2 = $item['long'] * $item['wide'];
|
|
|
$floor1 = $floor / $m2;
|
|
|
- $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];
|
|
|
+ $zj += $item['unit_price'] * $floor1;
|
|
|
+ $zzl += $item['weight'] * $floor1;
|
|
|
+ $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'] * $floor1, 'type' => 4];
|
|
|
}
|
|
|
}else {
|
|
|
$floor = $calculation['floor_number'];
|
|
@@ -177,8 +179,8 @@ class WaterQueryController
|
|
|
// $floor = 0;
|
|
|
// }
|
|
|
$zj += $item['unit_price'] * $floor1;
|
|
|
- $zzl += $item['weight'] * $v;
|
|
|
- $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];
|
|
|
+ $zzl += $item['weight'] * $floor1;
|
|
|
+ $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'] * $floor1, 'type' => 4];
|
|
|
}
|
|
|
}
|
|
|
}
|