From bcbb5d5a503785ed1fdd67d689d66b858dba946f Mon Sep 17 00:00:00 2001 From: yueyang <2495544247@qq.com> Date: Sun, 25 Oct 2026 00:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E7=BB=A9=E6=98=8E=E7=BB=86=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E9=87=91=E9=A2=9D=E4=BF=9D=E7=95=99=E4=B8=A4=E4=BD=8D?= =?UTF-8?q?=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 业绩明细弹窗金额保留两位小数 --- .../views/business/pages/partials/directory-table.blade.php | 2 +- tests/Feature/Settings/NavigationTest.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/views/business/pages/partials/directory-table.blade.php b/resources/views/business/pages/partials/directory-table.blade.php index cdaa7691..ae0f759b 100644 --- a/resources/views/business/pages/partials/directory-table.blade.php +++ b/resources/views/business/pages/partials/directory-table.blade.php @@ -2347,7 +2347,7 @@ function wan(value) { return '¥' + (Number(value || 0) / 10000).toLocaleString('zh-CN', { minimumFractionDigits: 2, - maximumFractionDigits: 4 + maximumFractionDigits: 2 }); } diff --git a/tests/Feature/Settings/NavigationTest.php b/tests/Feature/Settings/NavigationTest.php index ad8e62c6..963c76fd 100644 --- a/tests/Feature/Settings/NavigationTest.php +++ b/tests/Feature/Settings/NavigationTest.php @@ -110,7 +110,8 @@ class NavigationTest extends FeatureTestCase ], false) ->assertSee('function wan(value)', false) ->assertSee('(Number(value || 0) / 10000)', false) - ->assertSee('maximumFractionDigits: 4', false) + ->assertSee('minimumFractionDigits: 2', false) + ->assertSee('maximumFractionDigits: 2', false) ->assertDontSeeText('查看完整字段与差额判定规则') ->assertDontSee('receipt-method-guide', false) ->assertDontSee('receipt-match-summary', false)