feat(box-list): 盒数保留两位小数
This commit is contained in:
		
							parent
							
								
									94603fd863
								
							
						
					
					
						commit
						a15b27a415
					
				| 
						 | 
				
			
			@ -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 ''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue