feat: 国际进港舱单列表 REF 绿色高亮及装机单库位号字段修正

- 舱单列表项 REF=1 时显示浅绿色背景,展开按钮同步变为黑色
- 装机单列表库位号取值改为 locationTally 字段
- GjjManifest 新增 locationTally 字段

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 17:33:44 +08:00
parent 6d2a79a639
commit 471c81bdc7
5 changed files with 17 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
package com.lukouguoji.gjj.holder
import android.graphics.Color
import android.view.View
import com.lukouguoji.gjj.R
import com.lukouguoji.gjj.databinding.ItemIntImpManifestBinding
@@ -43,6 +44,13 @@ class IntImpManifestViewHolder(view: View) :
clickListener?.onItemClick(position, 102) // 102=删除
}
// 展开按钮颜色:绿色背景时黑色,否则保持原色
if (bean.ref == "1") {
binding.ivShow.setColorFilter(Color.BLACK)
} else {
binding.ivShow.clearColorFilter()
}
// 展开按钮点击事件 - 先加载分单数据,再切换展开状态
binding.ivShow.setOnClickListener {
if (!bean.showMore.get() && bean.haWbList.isNullOrEmpty()) {

View File

@@ -259,7 +259,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{bean.location}"
android:text="@{bean.locationTally}"
android:textColor="@color/text_normal"
android:textSize="16sp" />

View File

@@ -32,7 +32,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_white_radius_8"
android:background="@{`1`.equals(bean.ref) ? @drawable/bg_light_green_radius_8 : @drawable/bg_white_radius_8}"
android:orientation="vertical">
<!-- 主内容区 -->