number wan split
This commit is contained in:
@@ -160,6 +160,7 @@ import type { Customer } from "@/types/Customer";
|
||||
import type { PointRedemption, PointRedemptionStatus } from "@/types/Point";
|
||||
import { buildPresetDateRange, parseDateFilterType, parseDateTime } from "@/utils/date";
|
||||
import { Message } from "@/utils/message";
|
||||
import { formatWanInteger } from "@/utils/money";
|
||||
import { getPackageQuantityText } from "@/utils/package";
|
||||
import { getCustomerPhotoURL } from "@/utils/customer";
|
||||
import { permissionCodes } from "@/utils/permission";
|
||||
@@ -258,7 +259,7 @@ async function load(): Promise<void> {
|
||||
}
|
||||
|
||||
function formatPoint(value?: number): string {
|
||||
return `${(value || 0).toLocaleString("zh-CN")} 分`;
|
||||
return `${formatWanInteger(value ?? 0)} 分`;
|
||||
}
|
||||
|
||||
function quantityText(value?: number | string): string {
|
||||
|
||||
Reference in New Issue
Block a user