|
|
|
|
@ -412,10 +412,10 @@ class StatisticsController extends CommonController
|
|
|
|
|
$item->order_total = $order->sum('total');
|
|
|
|
|
$item->lies = $this->getLies($project_id, $order->pluck('id'));
|
|
|
|
|
}
|
|
|
|
|
// dd($data->toArray());
|
|
|
|
|
// dd($data->toArray());
|
|
|
|
|
// 获取所有列
|
|
|
|
|
$lie = array_column($data[0]->lies,'name');
|
|
|
|
|
return view($this->bladePath . ".huli", compact("data","lie"));
|
|
|
|
|
$lie = array_column($data[0]->lies, 'name');
|
|
|
|
|
return view($this->bladePath . ".huli", compact("data", "lie"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -429,7 +429,7 @@ class StatisticsController extends CommonController
|
|
|
|
|
$list = [];
|
|
|
|
|
foreach ($productItem as $item) {
|
|
|
|
|
foreach ($factor as $v) {
|
|
|
|
|
$list[$item->id.'-'.$v->id] = [
|
|
|
|
|
$list = [
|
|
|
|
|
'name' => $item->price + $v->price . '元/天',
|
|
|
|
|
'total_price' => $item->price + $v->price,
|
|
|
|
|
'product_item_id' => $item->id,
|
|
|
|
|
|