feat: 国际出港交接复磅状态改为 IMP 代码

列表项第二行第三列由「复磅状态」改为「IMP 代码」,取交接分页接口
返回的 dgrCode 字段;值非空且不等于 ELI、ELM 时以红色显示,
空值与 ELI、ELM 保持常规颜色。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-28 16:31:27 +08:00
parent f312ef866c
commit 861ce8ca1e

View File

@@ -167,7 +167,7 @@
</LinearLayout>
<!-- 第二行:目的港、库位号、复磅状态、交接人、交接时间 -->
<!-- 第二行:目的港、库位号、IMP代码、交接人、交接时间 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -221,7 +221,7 @@
</LinearLayout>
<!-- 复磅状态 -->
<!-- IMP代码非空且不是 ELI/ELM 时标红) -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
@@ -233,14 +233,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
completeSpace="@{5}"
android:text="复磅状态"
android:text="IMP代码"
android:textSize="15sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{bean.wtDate != null &amp;&amp; !bean.wtDate.isEmpty() ? `已复磅` : `未复磅`}"
android:textColor="@{bean.wtDate != null &amp;&amp; !bean.wtDate.isEmpty() ? @color/text_green : @color/text_normal}"
android:text="@{bean.dgrCode}"
android:textColor="@{bean.dgrCode != null &amp;&amp; !bean.dgrCode.isEmpty() &amp;&amp; !bean.dgrCode.equals(`ELI`) &amp;&amp; !bean.dgrCode.equals(`ELM`) ? @color/text_red : @color/text_normal}"
android:textSize="15sp" />
</LinearLayout>