调整了添加物品及采购单位弹窗布局
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user