新增种菜数据汇总一级菜单并把两个明细页移入
账单流水数据下移出「种菜明细表」「聚水潭订单标签明细」,新增并列一级菜单「种菜数据汇总」(图标 grass)承载这两个页面;导出路由改到 workspace/planting-data/... 并同步路由名、页面中间件与导出链接;更新导航/页面用例(账单流水数据页签列表恢复原样)。
This commit is contained in:
parent
5bcd6b6c52
commit
b2647fa26d
@ -426,8 +426,6 @@ $navigation = [
|
||||
'icon' => 'receipt_long',
|
||||
'pages' => [
|
||||
['slug' => 'bank-transactions', 'title' => '银行账户流水'],
|
||||
['slug' => 'planting-details', 'title' => '种菜明细表'],
|
||||
['slug' => 'jst-order-labels', 'title' => '聚水潭订单标签明细'],
|
||||
[
|
||||
'slug' => 'store-receiving-bills',
|
||||
'title' => '店铺收款账户账单',
|
||||
@ -473,6 +471,15 @@ $navigation = [
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'slug' => 'planting-data',
|
||||
'title' => '种菜数据汇总',
|
||||
'icon' => 'grass',
|
||||
'pages' => [
|
||||
['slug' => 'planting-details', 'title' => '种菜明细表'],
|
||||
['slug' => 'jst-order-labels', 'title' => '聚水潭订单标签明细'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'slug' => 'account-balance-data',
|
||||
'title' => '账单余额数据',
|
||||
@ -839,6 +846,7 @@ $requestedSectionOrder = [
|
||||
'order-data',
|
||||
'refunds',
|
||||
'billing-transactions',
|
||||
'planting-data',
|
||||
'account-balance-data',
|
||||
'product-inventory',
|
||||
];
|
||||
|
||||
@ -106,7 +106,7 @@
|
||||
<span class="material-icons-outlined" aria-hidden="true">restart_alt</span>
|
||||
<span>重置</span>
|
||||
</a>
|
||||
<a class="upstream-data-button" href="{{ route('business.billing-transactions.jst-order-labels.export', array_merge(['company_id' => company_id()], request()->query())) }}" title="按当前筛选导出全部明细">
|
||||
<a class="upstream-data-button" href="{{ route('business.planting-data.jst-order-labels.export', array_merge(['company_id' => company_id()], request()->query())) }}" title="按当前筛选导出全部明细">
|
||||
<span class="material-icons-outlined" aria-hidden="true">download</span>
|
||||
<span>导出</span>
|
||||
</a>
|
||||
|
||||
@ -189,7 +189,7 @@
|
||||
<span class="material-icons-outlined" aria-hidden="true">restart_alt</span>
|
||||
<span>重置</span>
|
||||
</a>
|
||||
<a class="upstream-data-button" href="{{ route('business.billing-transactions.planting-details.export', array_merge(['company_id' => company_id()], request()->query())) }}" title="按当前筛选导出全部明细">
|
||||
<a class="upstream-data-button" href="{{ route('business.planting-data.planting-details.export', array_merge(['company_id' => company_id()], request()->query())) }}" title="按当前筛选导出全部明细">
|
||||
<span class="material-icons-outlined" aria-hidden="true">download</span>
|
||||
<span>导出</span>
|
||||
</a>
|
||||
|
||||
@ -172,13 +172,13 @@ Route::get('workspace/product-inventory/monthly-weighted-average-price/export',
|
||||
->middleware('business.page:product-inventory,monthly-weighted-average-price')
|
||||
->name('business.product-inventory.monthly-weighted-average-price.export');
|
||||
|
||||
Route::get('workspace/billing-transactions/planting-details/export', 'Business\Pages@exportPlantingDetails')
|
||||
->middleware('business.page:billing-transactions,planting-details')
|
||||
->name('business.billing-transactions.planting-details.export');
|
||||
Route::get('workspace/planting-data/planting-details/export', 'Business\Pages@exportPlantingDetails')
|
||||
->middleware('business.page:planting-data,planting-details')
|
||||
->name('business.planting-data.planting-details.export');
|
||||
|
||||
Route::get('workspace/billing-transactions/jst-order-labels/export', 'Business\Pages@exportJstOrderLabels')
|
||||
->middleware('business.page:billing-transactions,jst-order-labels')
|
||||
->name('business.billing-transactions.jst-order-labels.export');
|
||||
Route::get('workspace/planting-data/jst-order-labels/export', 'Business\Pages@exportJstOrderLabels')
|
||||
->middleware('business.page:planting-data,jst-order-labels')
|
||||
->name('business.planting-data.jst-order-labels.export');
|
||||
|
||||
Route::prefix('workspace/product-inventory/inventory-report/warehouse-mappings')
|
||||
->middleware('business.page:product-inventory,inventory-report')
|
||||
|
||||
@ -76,7 +76,7 @@ class JstOrderLabelsPageTest extends FeatureTestCase
|
||||
app(JstOrderLabelImporter::class)->import('2026-09-01', '2026-09-15', $this->company->id, true);
|
||||
|
||||
$page = $this->loginAs()->get(route('business.pages.show', [
|
||||
'section' => 'billing-transactions',
|
||||
'section' => 'planting-data',
|
||||
'page' => 'jst-order-labels',
|
||||
]));
|
||||
|
||||
@ -89,7 +89,7 @@ class JstOrderLabelsPageTest extends FeatureTestCase
|
||||
->assertSee('data-jst-labels-clear="jst-label-date-to"', false);
|
||||
|
||||
$filtered = $this->loginAs()->get(route('business.pages.show', [
|
||||
'section' => 'billing-transactions',
|
||||
'section' => 'planting-data',
|
||||
'page' => 'jst-order-labels',
|
||||
'label' => '京喜',
|
||||
]));
|
||||
@ -97,7 +97,7 @@ class JstOrderLabelsPageTest extends FeatureTestCase
|
||||
->assertSee('3608400015164657')
|
||||
->assertDontSee('260901-391328633273048');
|
||||
|
||||
$export = $this->loginAs()->get(route('business.billing-transactions.jst-order-labels.export', [
|
||||
$export = $this->loginAs()->get(route('business.planting-data.jst-order-labels.export', [
|
||||
'label' => '京喜',
|
||||
]));
|
||||
$export->assertOk()->assertDownload();
|
||||
|
||||
@ -42,6 +42,12 @@ class MarketingAccountBillsTabsTest extends FeatureTestCase
|
||||
'marketing-account-bills',
|
||||
'deposit-account-bills',
|
||||
], $flowPages);
|
||||
// 种菜明细表 / 聚水潭订单标签明细已移到并列的「种菜数据汇总」下
|
||||
$plantingPages = collect($navigation->firstWhere('slug', 'planting-data')['pages'])
|
||||
->pluck('slug')->all();
|
||||
$this->assertSame(['planting-details', 'jst-order-labels'], $plantingPages);
|
||||
$this->assertNotContains('planting-details', $flowPages);
|
||||
$this->assertNotContains('jst-order-labels', $flowPages);
|
||||
$this->assertSame([
|
||||
'bank-balance',
|
||||
'store-receiving-balance',
|
||||
|
||||
@ -39,7 +39,7 @@ class PlantingDetailsPageTest extends FeatureTestCase
|
||||
$this->assertSame('2026-07-15', $result['date_max']);
|
||||
|
||||
$page = $this->loginAs()->get(route('business.pages.show', [
|
||||
'section' => 'billing-transactions',
|
||||
'section' => 'planting-data',
|
||||
'page' => 'planting-details',
|
||||
]));
|
||||
|
||||
@ -60,7 +60,7 @@ class PlantingDetailsPageTest extends FeatureTestCase
|
||||
|
||||
// 按店铺 + 日期筛选
|
||||
$filtered = $this->loginAs()->get(route('business.pages.show', [
|
||||
'section' => 'billing-transactions',
|
||||
'section' => 'planting-data',
|
||||
'page' => 'planting-details',
|
||||
'store' => '拼多多-亿家达实木家具官方旗舰店',
|
||||
'date_from' => '2026-07-01',
|
||||
@ -71,7 +71,7 @@ class PlantingDetailsPageTest extends FeatureTestCase
|
||||
->assertDontSee('3306215028042824171');
|
||||
|
||||
// 导出:表头 + 行数与页面筛选一致
|
||||
$export = $this->loginAs()->get(route('business.billing-transactions.planting-details.export', [
|
||||
$export = $this->loginAs()->get(route('business.planting-data.planting-details.export', [
|
||||
'store' => '拼多多-亿家达实木家具官方旗舰店',
|
||||
]));
|
||||
|
||||
|
||||
@ -207,10 +207,11 @@ class NavigationTest extends FeatureTestCase
|
||||
'order-data',
|
||||
'refunds',
|
||||
'billing-transactions',
|
||||
'planting-data',
|
||||
'account-balance-data',
|
||||
'product-inventory',
|
||||
],
|
||||
array_slice($slugs, $invoiceIndex, 7)
|
||||
array_slice($slugs, $invoiceIndex, 8)
|
||||
);
|
||||
$this->assertSame(
|
||||
[
|
||||
@ -219,10 +220,11 @@ class NavigationTest extends FeatureTestCase
|
||||
'订单数据',
|
||||
'退款数据',
|
||||
'账单流水数据',
|
||||
'种菜数据汇总',
|
||||
'账单余额数据',
|
||||
'商品价格管理',
|
||||
],
|
||||
array_column(array_slice($navigation, $invoiceIndex, 7), 'title')
|
||||
array_column(array_slice($navigation, $invoiceIndex, 8), 'title')
|
||||
);
|
||||
$this->assertGreaterThan($invoiceIndex, $orderIndex);
|
||||
$this->assertGreaterThan($orderIndex, $refundIndex);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user