feat: fix issues

This commit is contained in:
2026-03-26 20:00:41 +08:00
parent bfc39b5d96
commit 67b2dc6d71
3 changed files with 23 additions and 2 deletions

View File

@@ -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)