diff --git a/app/Http/Controllers/Business/FinanceLedger.php b/app/Http/Controllers/Business/FinanceLedger.php index 640bc606..57a32087 100644 --- a/app/Http/Controllers/Business/FinanceLedger.php +++ b/app/Http/Controllers/Business/FinanceLedger.php @@ -68,7 +68,7 @@ class FinanceLedger extends Controller $ledgerData['ledgerStandaloneAccountBackUrl'] = route('business.pages.show', [ 'section' => 'financial-operations', 'page' => 'ledger', - ]) . '?tab=flows&flows_view=basic'; + ]) . '?tab=overview'; return view('business.pages.financial-ledger.account-basic-page', [ 'ledgerData' => $ledgerData, diff --git a/modules/EcommerceFinance/View/NonStoreAccountMonitorPageData.php b/modules/EcommerceFinance/View/NonStoreAccountMonitorPageData.php index 85b8c295..740ca849 100644 --- a/modules/EcommerceFinance/View/NonStoreAccountMonitorPageData.php +++ b/modules/EcommerceFinance/View/NonStoreAccountMonitorPageData.php @@ -96,13 +96,10 @@ final class NonStoreAccountMonitorPageData ->where('category', self::CATEGORY_WANGSHANG) ->values() ->all(); - $fundOverview['legacy_wallet_accounts'] = $retained - ->where('category', self::CATEGORY_LEGACY_WALLET) - ->values() - ->all(); $positiveBalanceTotal = (float) $retained ->sum(static fn (array $row): float => max(0.0, (float) $row['current_balance'])); $fundDistribution = collect(self::CATEGORY_LABELS) + ->except([self::CATEGORY_LEGACY_WALLET]) ->map(function (string $platform, string $category) use ($retained, $positiveBalanceTotal): array { $rows = $retained->where('category', $category)->values(); $summary = $this->summary($rows); @@ -608,7 +605,9 @@ final class NonStoreAccountMonitorPageData ); $categories = $sectionKey === 'direct' ? [self::CATEGORY_BANK => self::CATEGORY_LABELS[self::CATEGORY_BANK]] - : self::CATEGORY_LABELS; + : collect(self::CATEGORY_LABELS) + ->except([self::CATEGORY_LEGACY_WALLET]) + ->all(); foreach ($categories as $category => $label) { $categoryRows = $sectionRows->where('category', $category)->values(); $section['rows'][] = [ @@ -877,7 +876,6 @@ final class NonStoreAccountMonitorPageData self::CATEGORY_BANK => '银行账户', self::CATEGORY_ALIPAY => '支付宝', self::CATEGORY_WANGSHANG => '网商银行', - self::CATEGORY_LEGACY_WALLET => '旧网银钱包', self::CATEGORY_OTHER => '其他账户', ] as $category => $label) { $query = [ diff --git a/resources/views/business/pages/financial-ledger/ledger.blade.php b/resources/views/business/pages/financial-ledger/ledger.blade.php index 9d7da281..0bda27e1 100644 --- a/resources/views/business/pages/financial-ledger/ledger.blade.php +++ b/resources/views/business/pages/financial-ledger/ledger.blade.php @@ -1045,13 +1045,13 @@ @if ($standaloneAccountView !== null)
- +

{{ $standaloneAccountTitle }}

{{ $standaloneAccountDescription }}。当前为独立页面,筛选、列设置和账户编辑均只在本页进行。

- 返回账户基本信息 + 返回账户总览
@else @@ -1793,7 +1793,7 @@ @include('business.pages.financial-ledger.partials.account-home-tabs') @if ($flowView === 'basic') @include('business.pages.financial-ledger.partials.account-type-cards', [ - 'accountTypeCardsBackUrl' => $flowViewUrl('summary'), + 'accountTypeCardsBackUrl' => $ledgerPageUrl . '?tab=overview', ]) @else @if ($flowView === 'daily') diff --git a/resources/views/business/pages/financial-ledger/partials/account-type-cards.blade.php b/resources/views/business/pages/financial-ledger/partials/account-type-cards.blade.php index ae933cc6..435b436a 100644 --- a/resources/views/business/pages/financial-ledger/partials/account-type-cards.blade.php +++ b/resources/views/business/pages/financial-ledger/partials/account-type-cards.blade.php @@ -4,7 +4,7 @@

账户基本信息

点击账户类型卡片查看对应账户资料;每种账户只展示自己需要的表头。

- 返回 + 返回账户总览
@foreach ($ledgerAccountTypeCards as $card) diff --git a/resources/views/business/pages/financial-operations/non-store-accounts.blade.php b/resources/views/business/pages/financial-operations/non-store-accounts.blade.php index a7976fa4..abe7473c 100644 --- a/resources/views/business/pages/financial-operations/non-store-accounts.blade.php +++ b/resources/views/business/pages/financial-operations/non-store-accounts.blade.php @@ -1655,7 +1655,7 @@
- @elseif (in_array($distribution['category'], ['other', 'alipay', 'wangshang', 'legacy_wallet'], true)) + @elseif (in_array($distribution['category'], ['other', 'alipay', 'wangshang'], true))