修复了用户输入状态未重置问题
This commit is contained in:
@@ -89,6 +89,9 @@ class SelfProcurementViewModel @Inject constructor(
|
||||
weight * 1000 / consumeValue / purchaseValue
|
||||
val finalCount = count.toSafeDouble(currentItem.unitName)
|
||||
Timber.d("startSensorScale weight = $weight, count = $count, finalCount = $finalCount, consumeValue = $consumeValue, purchaseValue = $purchaseValue")
|
||||
if (info.goodsCountTemp.isEmpty()) {
|
||||
_countUserInput.value = false
|
||||
}
|
||||
_selectedItem.value = info.copy(
|
||||
goodsWeight = weight.toSafeBigDecimal(),
|
||||
goodsCountTemp = if (_countUserInput.value) info.goodsCountTemp else count.toSafeString(
|
||||
|
||||
Reference in New Issue
Block a user