feat: 国际进港仓库修改库位功能优化
- 修改库位弹窗打开时预填充当前库位 - 已出库分单拦截修改库位操作并提示 - 修复主单列表入库时间字段绑定错误(opDate→inDate) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@ import dev.utils.app.info.KeyValue
|
||||
* 国际进港 - 修改库位对话框
|
||||
*/
|
||||
class IntImpModifyStorageDialogModel(
|
||||
private val currentLocationId: String = "",
|
||||
private val callback: (IntImpModifyStorageDialogModel) -> Unit
|
||||
) : BaseDialogModel<DialogIntImpModifyStorageBinding>(DIALOG_TYPE_CENTER) {
|
||||
|
||||
@@ -54,6 +55,10 @@ class IntImpModifyStorageDialogModel(
|
||||
onSuccess = { result ->
|
||||
val list = result.data?.map { it.toKeyValue() } ?: emptyList()
|
||||
locationList.value = list
|
||||
// 列表加载完成后,预选当前库位
|
||||
if (currentLocationId.isNotEmpty()) {
|
||||
selectedLocationCode.value = currentLocationId
|
||||
}
|
||||
}
|
||||
onFailed = { _, msg ->
|
||||
showToast(msg ?: "加载库位列表失败")
|
||||
|
||||
Reference in New Issue
Block a user