feat: fix issues
This commit is contained in:
@@ -108,7 +108,14 @@ class IntImpLoadingListActivity :
|
||||
return
|
||||
}
|
||||
|
||||
IntImpModifyStorageDialogModel { dialog ->
|
||||
// 如果所有选中项库位相同,则预选该库位
|
||||
val commonLocation = selectedItems.map { it.locationTally }.distinct().let {
|
||||
if (it.size == 1) it.first() else ""
|
||||
}
|
||||
|
||||
IntImpModifyStorageDialogModel(
|
||||
currentLocationName = commonLocation
|
||||
) { dialog ->
|
||||
val locationName = dialog.locationName
|
||||
val locationId = dialog.locationId
|
||||
viewModel.performModifyStorage(locationName, locationId, selectedItems)
|
||||
|
||||
Reference in New Issue
Block a user