feat: opt 开始组装 tree
This commit is contained in:
@@ -7,6 +7,9 @@ import com.lukouguoji.module_base.bean.AssembleInfoBean
|
||||
|
||||
/**
|
||||
* 组装信息ViewHolder
|
||||
* 支持两种行类型:
|
||||
* 1. 一级ULD行: 显示ULD编号、总件数、总重量、展开/折叠箭头
|
||||
* 2. 二级运单行: 显示缩进、运单号、件数、重量
|
||||
*/
|
||||
class AssembleInfoViewHolder(view: View) :
|
||||
BaseViewHolder<AssembleInfoBean, ItemAssembleInfoBinding>(view) {
|
||||
@@ -15,6 +18,12 @@ class AssembleInfoViewHolder(view: View) :
|
||||
val bean = getItemBean(item) ?: return
|
||||
binding.bean = bean
|
||||
binding.position = position
|
||||
|
||||
// 设置点击事件(type=2表示组装信息列表点击)
|
||||
itemView.setOnClickListener {
|
||||
clickListener?.onItemClick(position, 2)
|
||||
}
|
||||
|
||||
binding.executePendingBindings()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user