feat(box-list): 盒数保留两位小数

This commit is contained in:
woody 2025-07-01 15:49:52 +08:00
parent 70f6e909ff
commit 2151263400
1 changed files with 1 additions and 3 deletions

View File

@ -98,9 +98,7 @@ export default {
},
methods: {
toInt(value) {
if (value === null || value === undefined) return 0
const intValue = parseInt(value, 10)
return isNaN(intValue) ? 0 : intValue
return value || '0.00'
},
formatMemberInfo(member) {
if (!member) return ''