From 190f9b0a724836dca7cf9cdfbf0d8da140e876ee Mon Sep 17 00:00:00 2001 From: qiuxiang <394405259@qq.com> Date: Tue, 10 Nov 2026 16:00:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E9=BD=90=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E6=9C=88=E5=BA=A6=E7=8E=AF=E6=AF=94=E6=AF=94=E8=BE=83=E6=9C=88?= =?UTF-8?q?=E4=BB=BD=20(#1046)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/StoreReceivingBalanceOverview.vue | 9 +++++++++ tests/Unit/View/StoreReceivingBalanceOverviewTest.php | 1 + 2 files changed, 10 insertions(+) diff --git a/resources/assets/js/components/business/StoreReceivingBalanceOverview.vue b/resources/assets/js/components/business/StoreReceivingBalanceOverview.vue index 9e7341a7..813f380d 100644 --- a/resources/assets/js/components/business/StoreReceivingBalanceOverview.vue +++ b/resources/assets/js/components/business/StoreReceivingBalanceOverview.vue @@ -487,6 +487,10 @@ export default { available_platform_count: 0, complete: false, }, + comparison: { + current: '2026-10', + previous: '2026-09', + }, total: null, platforms: [], }, @@ -848,6 +852,11 @@ export default { complete: false, ...(body.summary || {}), }, + comparison: { + current: '2026-10', + previous: '2026-09', + ...(body.comparison || {}), + }, total: body.total || null, platforms: Array.isArray(body.platforms) ? body.platforms : [], }; diff --git a/tests/Unit/View/StoreReceivingBalanceOverviewTest.php b/tests/Unit/View/StoreReceivingBalanceOverviewTest.php index 101d82c9..caa29f24 100644 --- a/tests/Unit/View/StoreReceivingBalanceOverviewTest.php +++ b/tests/Unit/View/StoreReceivingBalanceOverviewTest.php @@ -90,6 +90,7 @@ class StoreReceivingBalanceOverviewTest extends TestCase $this->assertStringContainsString('fetchMonthlyClosingStores', $source); $this->assertStringContainsString('monthlyStoreRows', $source); $this->assertStringContainsString('monthly-closing-store-table', $source); + $this->assertStringContainsString('...(body.comparison || {})', $source); $this->assertStringContainsString('店铺期末余额 = 期初余额 + 收入 - 支出', $source); $this->assertStringContainsString('缺少期初时显示“—”', $source); }