调整了添加物品及采购单位弹窗布局

This commit is contained in:
zxj
2025-08-21 18:07:29 +08:00
parent b44e1a35bb
commit 554dfbba2c
3 changed files with 96 additions and 95 deletions
@@ -11,17 +11,7 @@ data class GoodsPurchaseUnitParam(
* 库存与克的转换值
*/
var consumeValue: String = "",
val consumeValueTemp: String = "",
) {
val consumeValueTempValue: String
get() {
if (consumeValue.isNotEmpty()) {
return consumeValue
}
return consumeValueTemp
}
val unitIdStr: String
get() {
if (unitId == 0) return ""
@@ -48,10 +38,9 @@ data class GoodsPurchaseUnitParam(
if (purchaseValue == null || purchaseValue == 0f) {
return "请输入采购单位对应的库存数量"
}
if (consumeValueTemp.isEmpty()) {
if (consumeValue.isEmpty()) {
return "请输入库存单位对应的消耗值"
}
consumeValue = consumeValueTemp
return null
}
}