fix(gjc): 出库交接卡片装机状态标签移到查看详情行最左侧

「允许/不允许装机」原在卡片头部右侧,与 IMP 代码标签抢同一位置;
头部右侧只保留 IMP 代码,查看详情点击区域仍为标签右侧整段。

Refs: 禅道 Bug #634

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
YANG JIANKUAN
2026-10-14 20:22:00 -07:00
parent eb0fb12c8d
commit 9db20749e2

View File

@@ -79,19 +79,6 @@
android:textSize="11sp"
android:visibility="@{!bean.isHandovered &amp;&amp; !bean.dgrCode.empty ? View.VISIBLE : View.GONE}" />
<!-- 装机状态标签(与平板「装机状态」一致:允许=绿 / 不允许=浅红,无值不显示) -->
<TextView
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_marginStart="8dp"
android:background="@{bean.isAllowLoad ? @drawable/bg_phone_tag_green : @drawable/bg_phone_tag_red_light}"
android:gravity="center"
android:paddingHorizontal="8dp"
android:text="@{bean.allowLoadText}"
android:textColor="@{bean.isAllowLoad ? @color/phone_tag_green_text : @color/phone_danger_text}"
android:textSize="11sp"
android:visibility="@{bean.allowLoadText.empty ? View.GONE : View.VISIBLE}" />
<!-- 已交接:对勾 + 状态文字 -->
<LinearLayout
android:layout_width="wrap_content"
@@ -211,14 +198,34 @@
android:layout_marginTop="16dp"
android:background="@color/phone_stat_bg" />
<!-- 底部行:左侧装机状态标签(Bug #634:从头部移下来,头部右侧只留 IMP 代码)+ 右侧查看详情 -->
<LinearLayout
android:id="@+id/ll_detail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|end"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingTop="12dp">
<!-- 装机状态标签(与平板「装机状态」一致:允许=绿 / 不允许=浅红,无值不显示) -->
<TextView
android:layout_width="wrap_content"
android:layout_height="20dp"
android:background="@{bean.isAllowLoad ? @drawable/bg_phone_tag_green : @drawable/bg_phone_tag_red_light}"
android:gravity="center"
android:paddingHorizontal="8dp"
android:text="@{bean.allowLoadText}"
android:textColor="@{bean.isAllowLoad ? @color/phone_tag_green_text : @color/phone_danger_text}"
android:textSize="11sp"
android:visibility="@{bean.allowLoadText.empty ? View.GONE : View.VISIBLE}" />
<LinearLayout
android:id="@+id/ll_detail"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical|end"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -235,4 +242,6 @@
</LinearLayout>
</LinearLayout>
</layout>