产品编码 | 产品名称 | 合计 | @if($months) @foreach($months as $k => $v){{$v}}月 | @endforeach @endif @if($single['sum']) @foreach($single['sum'] as $k => $v)|
---|---|---|---|---|
{{$single['product'][$k]['product_code']}} | [查] {{$single['product'][$k]['product_name']}} - {{$single['product'][$k]['product_spec']}} | 销售客户数 | {{count((array)$single['all'][$k])}} | @if($months) @foreach($months as $v2){{:$sum = count((array)$v[$v2])}} @if($sum>0) {{$sum}} @else @endif | @endforeach @endif
销售金额 | @number(array_sum((array)$single['sum_money'][$k]), 2) | @if($months) @foreach($months as $v2)@if($single['sum_money'][$k][$v2] > 0) @number($single['sum_money'][$k][$v2], 2) @else @endif | @endforeach @endif