This commit is contained in:
zlwu committed 2026-05-25 17:43:49 +08:00
1 parent 771f010a39
commit ee4abd361e
102 files changed
+8021 -4094

No files matched your search

+5 -4
View File
@@ -1474,7 +1474,7 @@
<el-table-column label="供货价" min-width="110" align="center">
<template #default="{ row }">
<span v-if="!orderPriceVersionDetail?.quotationId">-</span>
<span v-else>¥{{ (Number(row.supplierPrice || 0) || 0).toFixed(2) }}</span>
<span v-else>¥{{ formatAmount(row.supplierPrice || 0) }}</span>
</template>
</el-table-column>
<el-table-column label="供货金额" min-width="110" align="center">
@@ -1482,7 +1482,7 @@
</el-table-column>
<el-table-column label="商品售价" min-width="110" align="center">
<template #default="{ row }"
>¥{{ (Number(row.finalPrice ?? row.price) || 0).toFixed(2) }}</template
>¥{{ formatAmount(row.finalPrice ?? row.price) }}</template
>
</el-table-column>
<el-table-column label="商品金额" min-width="110" align="center">
@@ -1548,6 +1548,7 @@
import { useUserStore } from '@/store/modules/user'
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
import { ensureCategoryPathDataLoaded, formatCategoryPathLabel } from '@/utils/category-path-display'
import { formatMoneyDisplay } from '@/utils/money-format'
defineOptions({ name: 'OrderManagement' })
@@ -2061,8 +2062,8 @@
}
const formatAmount = (amount: number | string) => {
const num = typeof amount === 'string' ? parseFloat(amount) : amount
return isNaN(num) ? '0.00' : num.toFixed(2)
if (amount == null || amount === '') return '0.00'
return formatMoneyDisplay(amount)
}
const displayValue = (value: any) => {