新增财务仪表盘并统一金额到角
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user