From a58c606939308ff69eeaa8f22b9fa7ee37f68409 Mon Sep 17 00:00:00 2001 From: qiuxiang Date: Tue, 1 Sep 2026 13:26:49 +0800 Subject: [PATCH] feat: align douyin reconciliation headers --- .../partials/embedded-table.blade.php | 21 ++++++++++++++++++- .../ZhongcaiReconciliationPlatformTest.php | 7 +++++++ 2 files changed, 27 insertions(+), 1 deletion(-) 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 f3b49382d..13496ccda 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 @@ -19,6 +19,12 @@ 'taobao' => '淘宝', 'jingxi' => '京喜', ]; + $douyinHeaders = [ + '日期', '订单编号', '订单编号', '财务售价', '财务运费', '财务佣金', + '财务空包费', '财务打款金额', '笔数', '备注', '正确店铺', '负责人', + '账户', '类型', '创建人', '标签', '所属利润中心', '负责平台', 'ID', + '实收', '差异', '退款', + ]; $platformIds = [ 'all' => $pageIds->all(), ] + array_fill_keys(array_keys($platformTabs), []); @@ -118,7 +124,7 @@
- + + + + @foreach ($douyinHeaders as $header) + + @endforeach + @if ($records->isEmpty()) diff --git a/tests/Feature/Business/ZhongcaiReconciliationPlatformTest.php b/tests/Feature/Business/ZhongcaiReconciliationPlatformTest.php index 8e500503f..aaa5ae95e 100644 --- a/tests/Feature/Business/ZhongcaiReconciliationPlatformTest.php +++ b/tests/Feature/Business/ZhongcaiReconciliationPlatformTest.php @@ -56,6 +56,13 @@ class ZhongcaiReconciliationPlatformTest extends FeatureTestCase ->assertSee('data-platform="pdd"', false) ->assertSee('data-platform="taobao"', false) ->assertSee('data-platform="jingxi"', false) + ->assertSee('data-platform-header="douyin"', false) + ->assertSeeInOrder([ + '日期', '订单编号', '订单编号', '财务售价', '财务运费', '财务佣金', + '财务空包费', '财务打款金额', '笔数', '备注', '正确店铺', '负责人', + '账户', '类型', '创建人', '标签', '所属利润中心', '负责平台', 'ID', + '实收', '差异', '退款', + ], false) ->assertSee('JD-TEST-001') ->assertSee('DY-TEST-001') ->assertSee('TM-TEST-001')
isEmpty()) disabled @endif @@ -150,6 +156,19 @@ {{ 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" /> + {{ $header }}