fix: 运费列表保留金额格式,空顺丰运费显示月结
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d259004f9d
commit
0fb3ee50e3
3 files changed
+59
-81
No files matched your search
@@ -145,10 +145,14 @@
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">{{
|
||||
freightAmountText(
|
||||
row.transportMode,
|
||||
row.freightAmount ?? row.freightDraft?.freightAmount
|
||||
)
|
||||
isSfExpress(row.transportMode) &&
|
||||
(row.freightAmount == null || row.freightAmount === '')
|
||||
? '月结'
|
||||
: row.freightAmount != null &&
|
||||
row.freightAmount !== '' &&
|
||||
Number.isFinite(Number(row.freightAmount))
|
||||
? '¥' + formatMoneyDisplay(row.freightAmount)
|
||||
: '—'
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -303,7 +307,8 @@
|
||||
type FreightUnlinkRow
|
||||
} from '@/components/business/freight-unlink-dialog/index.vue'
|
||||
import { formatDisplayOrDash } from '@/utils/datetime-display'
|
||||
import { freightAmountText } from '@/utils/sf-express-freight'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import { isSfExpress } from '@/utils/sf-express-freight'
|
||||
import {
|
||||
receptionSourceLabel,
|
||||
receptionSourceTagType,
|
||||
|
||||
Reference in new issue
Block a user