feat: 新增顾家和索菲亚过账菜单 (#1035)

This commit is contained in:
chenxi 2026-11-10 13:44:35 +08:00
parent 0cafb30404
commit dcd7ea8b49
3 changed files with 20 additions and 3 deletions

View File

@ -719,7 +719,10 @@ $navigation = [
'slug' => 'posting-data',
'title' => '过账数据',
'icon' => 'post_add',
'pages' => [],
'pages' => [
['slug' => 'kuka-posting', 'title' => '顾家过账'],
['slug' => 'suofeiya-posting', 'title' => '索菲亚过账'],
],
],
[
'slug' => 'negative-alerts',

View File

@ -613,7 +613,14 @@ class NavigationTest extends FeatureTestCase
$postingIndex = array_search('posting-data', $slugs, true);
$this->assertSame($receivablesIndex + 1, $postingIndex);
$this->assertSame('过账数据', $navigation[$postingIndex]['title']);
$this->assertSame([], $navigation[$postingIndex]['pages']);
$this->assertSame(
['kuka-posting', 'suofeiya-posting'],
array_column($navigation[$postingIndex]['pages'], 'slug')
);
$this->assertSame(
['顾家过账', '索菲亚过账'],
array_column($navigation[$postingIndex]['pages'], 'title')
);
$this->assertSame(
['after-sales-expenses', 'promotion-expenses'],
array_column($orderData['pages'][0]['tabs'], 'slug')

View File

@ -151,7 +151,14 @@ class UserPermissionsTest extends FeatureTestCase
$this->assertContains('posting-data', $allowed);
$this->assertSame(['store-receivables', 'posting-data'], array_column($navigation, 'slug'));
$this->assertSame([], $navigation[1]['pages']);
$this->assertSame(
['kuka-posting', 'suofeiya-posting'],
array_column($navigation[1]['pages'], 'slug')
);
$this->assertSame(
['顾家过账', '索菲亚过账'],
array_column($navigation[1]['pages'], 'title')
);
}
}