fix(shelf): 解决货架模型重量数据同步问题

- 在HomeV3Activity中添加重量值赋值逻辑确保模型数据完整
- 临时注释PendingInboundItem中的重量赋值避免数据冲突
- 修复货架适配器数据更新时重量信息丢失的问题
This commit is contained in:
2026-06-25 14:48:04 +08:00
parent 70f4146509
commit 419e08c0e0
2 changed files with 3 additions and 1 deletions
@@ -252,6 +252,8 @@ class HomeV3Activity : BaseActivity() {
} else { } else {
intent.getSerializableExtra(ShelfV3Activity.SHELF_MODEL) as? SlotModel intent.getSerializableExtra(ShelfV3Activity.SHELF_MODEL) as? SlotModel
} ?: return } ?: return
val weight = list[position].weight
model.weight = weight
list[position] = model list[position] = model
shelfAdapter.notifyItemChanged(position) shelfAdapter.notifyItemChanged(position)
} }
@@ -27,6 +27,6 @@ data class PendingInboundItem(
traceCode = traceCode, traceCode = traceCode,
inboundNo = inboundNo, inboundNo = inboundNo,
storeTime = DateTimeUtil.formatDateTime(dateTime = Date()), storeTime = DateTimeUtil.formatDateTime(dateTime = Date()),
weight = weight // weight = weight
) )
} }