number wan split

This commit is contained in:
Timi
2026-09-19 16:46:00 +08:00
parent 6c488a4731
commit 79d9efad73
12 changed files with 35 additions and 19 deletions
+2 -1
View File
@@ -101,6 +101,7 @@ import type { EventItem } from "@/types/EventItem";
import type { PointRule, PointRuleStatus } from "@/types/Point";
import { getErrorMessage } from "@/utils/error";
import { Message } from "@/utils/message";
import { formatWanInteger } from "@/utils/money";
import { gaoRoleCodes, permissionCodes } from "@/utils/permission";
defineOptions({
@@ -217,7 +218,7 @@ function formatPointValue(value?: number | null): string {
if (value === 0) {
return "不产生积分流水";
}
return `${0 < value ? "发放" : "消耗"} ${Math.abs(value)} 分`;
return `${0 < value ? "发放" : "消耗"} ${formatWanInteger(Math.abs(value))} 分`;
}
function formatNumber(value?: number): string {