feat: add vipshop tab to zhongcai reconciliation
This commit is contained in:
parent
b48786c7c4
commit
4396f139ad
@ -17,6 +17,7 @@
|
||||
'tmall' => '天猫',
|
||||
'pdd' => '拼多多',
|
||||
'taobao' => '淘宝',
|
||||
'vipshop' => '唯品会',
|
||||
'jingxi' => '京喜',
|
||||
];
|
||||
$douyinHeaders = [
|
||||
@ -65,7 +66,9 @@
|
||||
? 'pdd'
|
||||
: (str_contains($platform, '淘宝')
|
||||
? 'taobao'
|
||||
: (str_contains($platform, '京喜') ? 'jingxi' : null)))));
|
||||
: (str_contains($platform, '唯品会')
|
||||
? 'vipshop'
|
||||
: (str_contains($platform, '京喜') ? 'jingxi' : null))))));
|
||||
|
||||
if ($platformKey !== null) {
|
||||
$platformIds[$platformKey][] = (string) $record->id;
|
||||
@ -267,7 +270,9 @@
|
||||
? 'pdd'
|
||||
: (str_contains($platform, '淘宝')
|
||||
? 'taobao'
|
||||
: (str_contains($platform, '京喜') ? 'jingxi' : 'other')))));
|
||||
: (str_contains($platform, '唯品会')
|
||||
? 'vipshop'
|
||||
: (str_contains($platform, '京喜') ? 'jingxi' : 'other'))))));
|
||||
@endphp
|
||||
<tr x-show="activePlatform === 'all' || activePlatform === '{{ $platformKey }}'"
|
||||
x-cloak
|
||||
|
||||
@ -25,6 +25,7 @@ class ZhongcaiReconciliationPlatformTest extends FeatureTestCase
|
||||
['platform' => '天猫旗舰店', 'order' => 'TM-TEST-001'],
|
||||
['platform' => '拼多多店铺', 'order' => 'PDD-TEST-001'],
|
||||
['platform' => '淘宝店铺', 'order' => 'TB-TEST-001'],
|
||||
['platform' => '唯品会店铺', 'order' => 'VIP-TEST-001'],
|
||||
['platform' => '京喜店铺', 'order' => 'JX-TEST-001'],
|
||||
] as $row) {
|
||||
StoreZhongcaiReconciliation::create([
|
||||
@ -48,6 +49,7 @@ class ZhongcaiReconciliationPlatformTest extends FeatureTestCase
|
||||
->assertSee('>天猫<', false)
|
||||
->assertSee('>拼多多<', false)
|
||||
->assertSee('>淘宝<', false)
|
||||
->assertSee('>唯品会<', false)
|
||||
->assertSee('>京喜<', false)
|
||||
->assertDontSee('>全部<', false)
|
||||
->assertSee('data-platform="jd"', false)
|
||||
@ -55,6 +57,7 @@ class ZhongcaiReconciliationPlatformTest extends FeatureTestCase
|
||||
->assertSee('data-platform="tmall"', false)
|
||||
->assertSee('data-platform="pdd"', false)
|
||||
->assertSee('data-platform="taobao"', false)
|
||||
->assertSee('data-platform="vipshop"', false)
|
||||
->assertSee('data-platform="jingxi"', false)
|
||||
->assertSee('data-platform-header="jd"', false)
|
||||
->assertSeeInOrder([
|
||||
@ -96,6 +99,7 @@ class ZhongcaiReconciliationPlatformTest extends FeatureTestCase
|
||||
->assertSee('TM-TEST-001')
|
||||
->assertSee('PDD-TEST-001')
|
||||
->assertSee('TB-TEST-001')
|
||||
->assertSee('VIP-TEST-001')
|
||||
->assertSee('JX-TEST-001');
|
||||
}
|
||||
|
||||
@ -116,6 +120,7 @@ class ZhongcaiReconciliationPlatformTest extends FeatureTestCase
|
||||
$response
|
||||
->assertOk()
|
||||
->assertSee('当前页暂无抖音平台数据', false)
|
||||
->assertSee('当前页暂无天猫平台数据', false);
|
||||
->assertSee('当前页暂无天猫平台数据', false)
|
||||
->assertSee('当前页暂无唯品会平台数据', false);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user