diff --git a/resources/views/store_receivables/zhongcai_reconciliations/partials/embedded-table.blade.php b/resources/views/store_receivables/zhongcai_reconciliations/partials/embedded-table.blade.php index a4472292..bc951e9c 100644 --- a/resources/views/store_receivables/zhongcai_reconciliations/partials/embedded-table.blade.php +++ b/resources/views/store_receivables/zhongcai_reconciliations/partials/embedded-table.blade.php @@ -1,5 +1,6 @@ -@php $pageIds = $records->pluck('id')->map(fn($id) => (string) $id)->values(); @endphp +@php + $pageIds = $records->pluck('id')->map(fn($id) => (string) $id)->values(); + $platformTabs = [ + 'jd' => '京东', + 'douyin' => '抖音', + 'tmall' => '天猫', + 'pdd' => '拼多多', + 'taobao' => '淘宝', + 'jingxi' => '京喜', + ]; + $douyinHeaders = [ + '日期', '订单编号', '财务售价', '财务运费', '财务佣金', + '财务空包费', '财务打款金额', '笔数', '备注', '正确店铺', '负责人', + '账户', '类型', '创建人', '标签', '所属利润中心', '负责平台', 'ID', + '实收', '差异', '退款', + ]; + $jdHeaders = [ + '日期', '订单编号', '财务售价', '财务运费', '财务佣金', '财务空包费', + '财务打款金额', '笔数', '备注', '正确店铺', '负责人', '账户', '类型', + '创建人', '标签', '所属利润中心', '负责平台', 'ID', '实收', '运费', + '差异', '是否退款', '备注', '问题件', + ]; + $tmallHeaders = [ + '日期', '订单编号', '财务售价', '财务运费', '财务佣金', '财务空包费', + '财务打款金额', '笔数', '备注', '正确店铺', '负责人', '账户', '类型', + '创建人', '标签', '所属利润中心', '负责平台', 'ID', '实收', '差异', + '是否退款', '备注', '问题件', + ]; + $pddHeaders = [ + '日期', '订单编号', '财务售价', '财务运费', '财务佣金', '财务空包费', + '财务打款金额', '笔数', '备注', '正确店铺', '负责人', '账户', '类型', + '创建人', '标签', '所属利润中心', '负责平台', 'ID', '实收', '差异', + '退款', '小额打款', + ]; + $taobaoHeaders = [ + '日期', '订单编号', '财务售价', '财务运费', '财务佣金', '财务空包费', + '财务打款金额', '笔数', '备注', '正确店铺', '负责人', '账户', '类型', + '创建人', '标签', '所属利润中心', '负责平台', 'ID', '实收', '差异', + '是否退款', '备注', '问题件', + ]; + $platformIds = [ + 'all' => $pageIds->all(), + ] + array_fill_keys(array_keys($platformTabs), []); -
| isEmpty()) disabled @endif - x-on:change="selected = $event.target.checked ? @js($pageIds) : []" - x-bind:checked="selected.length === {{ $pageIds->count() }} && selected.length > 0" + x-bind:disabled="platformIds[activePlatform].length === 0" + x-on:change="selected = $event.target.checked ? platformIds[activePlatform] : []" + x-bind:checked="selected.length === platformIds[activePlatform].length && selected.length > 0" class="h-4 w-4 rounded border-gray-300 text-green" /> | {{ trans('store_zhongcai_reconciliations.bill_date') }} | @@ -98,17 +180,98 @@{{ trans('store_zhongcai_reconciliations.difference_data') }} | {{ trans('general.actions') }} | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + isEmpty()) disabled @endif + x-bind:disabled="platformIds[activePlatform].length === 0" + x-on:change="selected = $event.target.checked ? platformIds[activePlatform] : []" + x-bind:checked="selected.length === platformIds[activePlatform].length && selected.length > 0" + class="h-4 w-4 rounded border-gray-300 text-green" /> + | + @foreach ($jdHeaders as $header) +{{ $header }} | + @endforeach +|||||||||||||||||||||
| + isEmpty()) disabled @endif + x-bind:disabled="platformIds[activePlatform].length === 0" + x-on:change="selected = $event.target.checked ? platformIds[activePlatform] : []" + x-bind:checked="selected.length === platformIds[activePlatform].length && selected.length > 0" + class="h-4 w-4 rounded border-gray-300 text-green" /> + | + @foreach ($douyinHeaders as $header) +{{ $header }} | + @endforeach +|||||||||||||||||||||
| + isEmpty()) disabled @endif + x-bind:disabled="platformIds[activePlatform].length === 0" + x-on:change="selected = $event.target.checked ? platformIds[activePlatform] : []" + x-bind:checked="selected.length === platformIds[activePlatform].length && selected.length > 0" + class="h-4 w-4 rounded border-gray-300 text-green" /> + | + @foreach ($tmallHeaders as $header) +{{ $header }} | + @endforeach +|||||||||||||||||||||
| + isEmpty()) disabled @endif + x-bind:disabled="platformIds[activePlatform].length === 0" + x-on:change="selected = $event.target.checked ? platformIds[activePlatform] : []" + x-bind:checked="selected.length === platformIds[activePlatform].length && selected.length > 0" + class="h-4 w-4 rounded border-gray-300 text-green" /> + | + @foreach ($pddHeaders as $header) +{{ $header }} | + @endforeach +|||||||||||||||||||||
| + isEmpty()) disabled @endif + x-bind:disabled="platformIds[activePlatform].length === 0" + x-on:change="selected = $event.target.checked ? platformIds[activePlatform] : []" + x-bind:checked="selected.length === platformIds[activePlatform].length && selected.length > 0" + class="h-4 w-4 rounded border-gray-300 text-green" /> + | + @foreach ($taobaoHeaders as $header) +{{ $header }} | + @endforeach +|||||||||||||||||||||
| {{ trans('store_zhongcai_reconciliations.no_records') }} | ||||||||||||||||||||||
| @endforeach @endif + @foreach ($platformTabs as $key => $label) + @if (count($platformIds[$key]) === 0) + | ||||||||||||||||||||||
| + 当前页暂无{{ $label }}平台数据 + | +||||||||||||||||||||||