添加物品消耗单位输入
This commit is contained in:
@@ -262,6 +262,7 @@ class SelfProcurementViewModel @Inject constructor(
|
||||
goodsName = searchFirst.goodsName,
|
||||
kcUnitId = searchFirst.kcUnitId ?: 0,
|
||||
unitList = searchFirst.unitVoList,
|
||||
consumeValue = searchFirst.consumeValue ?: ""
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -369,8 +370,11 @@ class SelfProcurementViewModel @Inject constructor(
|
||||
val searchList: List<SearchGoodsInfo.Record> =
|
||||
response.result?.records ?: emptyList()
|
||||
if (searchList.isNotEmpty()) {
|
||||
val searchItem = searchList[0]
|
||||
_selectedItem.value = _selectedItem.value?.copy(
|
||||
unitList = searchList[0].unitVoList
|
||||
unitList = searchItem.unitVoList,
|
||||
kcUnitId = searchItem.kcUnitId ?: 0,
|
||||
consumeValue = searchItem.consumeValue ?: ""
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user