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 6d23b413..f3b49382 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
@@ -11,12 +11,17 @@
@php
$pageIds = $records->pluck('id')->map(fn($id) => (string) $id)->values();
+ $platformTabs = [
+ 'jd' => '京东',
+ 'douyin' => '抖音',
+ 'tmall' => '天猫',
+ 'pdd' => '拼多多',
+ 'taobao' => '淘宝',
+ 'jingxi' => '京喜',
+ ];
$platformIds = [
'all' => $pageIds->all(),
- 'jd' => [],
- 'douyin' => [],
- 'tmall' => [],
- ];
+ ] + array_fill_keys(array_keys($platformTabs), []);
foreach ($records as $record) {
$platform = (string) $record->responsible_platform;
@@ -24,7 +29,13 @@
? 'jd'
: (str_contains($platform, '抖音')
? 'douyin'
- : (str_contains($platform, '天猫') ? 'tmall' : null));
+ : (str_contains($platform, '天猫')
+ ? 'tmall'
+ : (str_contains($platform, '拼多多')
+ ? 'pdd'
+ : (str_contains($platform, '淘宝')
+ ? 'taobao'
+ : (str_contains($platform, '京喜') ? 'jingxi' : null)))));
if ($platformKey !== null) {
$platformIds[$platformKey][] = (string) $record->id;
@@ -87,12 +98,7 @@
平台筛选
- @foreach ([
- 'all' => '全部',
- 'jd' => '京东',
- 'douyin' => '抖音',
- 'tmall' => '天猫',
- ] as $key => $label)
+ @foreach ($platformTabs as $key => $label)