业绩明细弹窗金额保留两位小数 #537

Merged
yueyang merged 1 commits from fix/yueyang-performance-metric-amount-precision into main 2026-10-25 00:20:05 +08:00
2 changed files with 3 additions and 2 deletions

View File

@ -2347,7 +2347,7 @@
function wan(value) {
return '¥' + (Number(value || 0) / 10000).toLocaleString('zh-CN', {
minimumFractionDigits: 2,
maximumFractionDigits: 4
maximumFractionDigits: 2
});
}

View File

@ -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)