liyinglin 2 years ago
parent 17530aee01
commit 95651360a9

@ -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,

@ -28,6 +28,13 @@
{{ $row->name }}
</td>
<td>{{ $row->order_total }}</td>
@foreach ($row->lies as $r)
<td>{
{{$r->total_price}}
</td>
@endforeach
{{-- <td>--}}
{{-- @foreach ($row->content as $item)--}}
{{-- {{ $item['ask'] }}{{ $item['score'] }}<br/>--}}

Loading…
Cancel
Save