新增财务仪表盘并统一金额到角

This commit is contained in:
yml
2026-06-09 00:13:03 +08:00
parent a2a0489158
commit 2dfa2611fd
40 changed files with 1324 additions and 70 deletions
@@ -6,6 +6,7 @@ import { showToast, showDialog } from 'vant'
import { fetchOrderChat } from '@/features/chats/api/chats'
import { createDispute } from '@/features/disputes/api/disputes'
import { uploadFile } from '@/shared/api/files'
import { formatMoney } from '@/shared/utils/money'
import {
acceptCheckout,
cancelOrder,
@@ -529,7 +530,7 @@ function readUnitPrice(priceText: string) {
}
function roundMoney(value: number) {
return Math.round(value)
return Math.round(Number(value || 0) * 10) / 10
}
function roundQuantity(value: number) {
@@ -537,7 +538,7 @@ function roundQuantity(value: number) {
}
function money(value: unknown) {
return `${roundMoney(readNumber(value))}`
return formatMoney(readNumber(value))
}
function formatHandoffRecordType(type: string) {