feat: opt 开始组装 tree

This commit is contained in:
2025-12-18 11:34:06 +08:00
parent 1906e7ce65
commit 222ae8a0f5
6 changed files with 476 additions and 58 deletions

View File

@@ -76,6 +76,8 @@ class IntExpAssembleStartActivity :
)
binding.rvAssembleInfo.layoutManager = LinearLayoutManager(this)
binding.rvAssembleInfo.adapter = assembleInfoAdapter
// 添加点击监听器
binding.rvAssembleInfo.addOnItemClickListener(this)
// 左侧组装位置列表
assemblePositionAdapter = CommonAdapter(
@@ -122,8 +124,9 @@ class IntExpAssembleStartActivity :
*/
override fun onItemClick(position: Int, type: Int) {
when (type) {
0 -> viewModel.onPositionItemClick(position) // 组装位置点击
1 -> viewModel.onWaybillItemClick(position) // 运单列表点击
0 -> viewModel.onPositionItemClick(position) // 组装位置点击
1 -> viewModel.onWaybillItemClick(position) // 运单列表点击
2 -> viewModel.onAssembleInfoItemClick(position) // 组装信息列表点击
else -> {}
}
}