修复了消耗值为空字符串时重量不显示的问题

修复了相机未初始化或已关闭时调用拍照报错问题
调整了未确认列表允许收货
调整了重量大于1kg时显示kg
This commit is contained in:
zxj
2025-08-22 14:51:43 +08:00
parent d7536e75af
commit 3cda898756
7 changed files with 43 additions and 14 deletions
@@ -114,7 +114,7 @@ class SelfProcurementViewModel @Inject constructor(
// val selectUnitType = currentItem.selectUnitType
// if (selectUnitType == null) return@startScale
var consumeValue = selectUnitType.consumeValue?.toDouble() ?: 1.0
var consumeValue = selectUnitType.consumeValue?.toSafeDouble() ?: 1.0
var purchaseValue = selectUnitType.purchaseValue?.toDouble() ?: 1.0
if (consumeValue == 0.0) {
consumeValue = 1.0