hrjy 3 年之前
父节点
当前提交
6ff751e476
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/api/controller/water/WaterQueryController.php

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

@@ -174,6 +174,8 @@ class WaterQueryController
                             $floor1 += 1;
                             $floor1 += 1;
                             $floor = 0;
                             $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];
                         $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];
                     }
                     }
                 }
                 }