feat: align pdd reconciliation headers
This commit is contained in:
parent
6ce4fbe6a7
commit
bfb1487adb
@ -37,6 +37,12 @@
|
||||
'创建人', '标签', '所属利润中心', '负责平台', 'ID', '实收', '差异',
|
||||
'是否退款', '备注', '问题件',
|
||||
];
|
||||
$pddHeaders = [
|
||||
'日期', '订单编号', '财务售价', '财务运费', '财务佣金', '财务空包费',
|
||||
'财务打款金额', '笔数', '备注', '正确店铺', '负责人', '账户', '类型',
|
||||
'创建人', '标签', '所属利润中心', '负责平台', 'ID', '实收', '差异',
|
||||
'退款', '小额打款',
|
||||
];
|
||||
$platformIds = [
|
||||
'all' => $pageIds->all(),
|
||||
] + array_fill_keys(array_keys($platformTabs), []);
|
||||
@ -136,7 +142,7 @@
|
||||
<div class="zhongcai-table-wrapper">
|
||||
<table id="zhongcai-reconciliation-table" class="zhongcai-table divide-y divide-gray-200">
|
||||
<thead>
|
||||
<tr x-show="!['jd', 'douyin', 'tmall'].includes(activePlatform)">
|
||||
<tr x-show="!['jd', 'douyin', 'tmall', 'pdd'].includes(activePlatform)">
|
||||
<th class="w-12 text-center">
|
||||
<input type="checkbox" aria-label="{{ trans('store_zhongcai_reconciliations.select_all') }}"
|
||||
@if ($pageIds->isEmpty()) disabled @endif
|
||||
@ -207,6 +213,19 @@
|
||||
<th>{{ $header }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
<tr data-platform-header="pdd" x-show="activePlatform === 'pdd'" x-cloak>
|
||||
<th class="w-12 text-center">
|
||||
<input type="checkbox" aria-label="{{ trans('store_zhongcai_reconciliations.select_all') }}"
|
||||
@if ($pageIds->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" />
|
||||
</th>
|
||||
@foreach ($pddHeaders as $header)
|
||||
<th>{{ $header }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-100 bg-white">
|
||||
@if ($records->isEmpty())
|
||||
|
||||
@ -77,6 +77,13 @@ class ZhongcaiReconciliationPlatformTest extends FeatureTestCase
|
||||
'正确店铺', '负责人', '账户', '类型', '创建人', '标签', '所属利润中心',
|
||||
'负责平台', 'ID', '实收', '差异', '是否退款', '备注', '问题件',
|
||||
], false)
|
||||
->assertSee('data-platform-header="pdd"', false)
|
||||
->assertSeeInOrder([
|
||||
'data-platform-header="pdd"', '日期', '订单编号', '财务售价', '财务运费',
|
||||
'财务佣金', '财务空包费', '财务打款金额', '笔数', '备注',
|
||||
'正确店铺', '负责人', '账户', '类型', '创建人', '标签', '所属利润中心',
|
||||
'负责平台', 'ID', '实收', '差异', '退款', '小额打款',
|
||||
], false)
|
||||
->assertSee('JD-TEST-001')
|
||||
->assertSee('DY-TEST-001')
|
||||
->assertSee('TM-TEST-001')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user