feat(box-list): 盒数保留两位小数
This commit is contained in:
		
							parent
							
								
									94603fd863
								
							
						
					
					
						commit
						a15b27a415
					
				| 
						 | 
					@ -98,9 +98,7 @@ export default {
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    toInt(value) {
 | 
					    toInt(value) {
 | 
				
			||||||
      if (value === null || value === undefined) return 0
 | 
					      return value || '0.00'
 | 
				
			||||||
      const intValue = parseInt(value, 10)
 | 
					 | 
				
			||||||
      return isNaN(intValue) ? 0 : intValue
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    formatMemberInfo(member) {
 | 
					    formatMemberInfo(member) {
 | 
				
			||||||
      if (!member) return ''
 | 
					      if (!member) return ''
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue