fix(shelf): 解决货架模型重量数据同步问题
- 在HomeV3Activity中添加重量值赋值逻辑确保模型数据完整 - 临时注释PendingInboundItem中的重量赋值避免数据冲突 - 修复货架适配器数据更新时重量信息丢失的问题
This commit is contained in:
@@ -252,6 +252,8 @@ class HomeV3Activity : BaseActivity() {
|
||||
} else {
|
||||
intent.getSerializableExtra(ShelfV3Activity.SHELF_MODEL) as? SlotModel
|
||||
} ?: return
|
||||
val weight = list[position].weight
|
||||
model.weight = weight
|
||||
list[position] = model
|
||||
shelfAdapter.notifyItemChanged(position)
|
||||
}
|
||||
|
||||
@@ -27,6 +27,6 @@ data class PendingInboundItem(
|
||||
traceCode = traceCode,
|
||||
inboundNo = inboundNo,
|
||||
storeTime = DateTimeUtil.formatDateTime(dateTime = Date()),
|
||||
weight = weight
|
||||
// weight = weight
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user