number wan split
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user