设计稿逐态渲染对照走查(01~11 全模块)后的修正: - 运单追踪竖排时间线为已发生节点补状态pill(绿底展示该环节日志content,超长省略) - 11 页手机端标题按设计稿改短标题(DeviceUtil.isPhone 分支,平板长标题零变化): 出库交接/出港待计重/计重记录/计重明细/开始计重/出港运抵/出港移库/出港查询/ 出港货物/进港查询/进港货物 - ULD 编辑表单「来源」移至「所在港」之后(设计稿顺序) - 出港计重列表卡片与计重记录卡片补字段小图标(airplane/location/person/tag) 接口缺口台账复核:#31 进港移库整模块缺失成立(api-doc 全模块清单+报价单双重印证); #19 修正定性——IntExpArrive/declare 入参已含收发货人全套字段,改登记为待确认提交口径; #10 成立(单条 deleteUld 在、批量无)。 双端抽验:手机短标题三页生效(出港待计重/出库交接/进港货物),平板保持长标题,零崩溃。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
201 lines
7.6 KiB
XML
201 lines
7.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
国际出港待计重 - 列表卡片(手机版变体)
|
||
|
||
平板版为 layout-sw600dp/item_gjc_weighing.xml(横排 KV + 选择图标 iv_icon)。
|
||
变量 bean / position 与平板一致;根节点保留 id ll(ViewHolder 整卡点击进开始计重)。
|
||
手机独有 id:btn_pre_arrive(单票提前运抵,ViewHolder 判空绑定)。
|
||
|
||
状态标签:checkIn = 2 → 计重中(绿);其余(0 待收运)→ 未计重(橙)
|
||
-->
|
||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
xmlns:tools="http://schemas.android.com/tools">
|
||
|
||
<data>
|
||
|
||
<variable
|
||
name="bean"
|
||
type="com.lukouguoji.module_base.bean.GjcWeighingBean" />
|
||
|
||
<variable
|
||
name="position"
|
||
type="int" />
|
||
</data>
|
||
|
||
<androidx.appcompat.widget.LinearLayoutCompat
|
||
android:id="@+id/ll"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginHorizontal="16dp"
|
||
android:layout_marginTop="10dp"
|
||
android:background="@drawable/bg_phone_card"
|
||
android:orientation="vertical"
|
||
android:padding="14dp">
|
||
|
||
<!-- 头行:运单号 + 状态标签 + 箭头 -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center_vertical"
|
||
android:orientation="horizontal">
|
||
|
||
<TextView
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:text="@{bean.wbNo}"
|
||
android:textColor="@color/phone_text_strong"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold"
|
||
tools:text="78133363398" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:background="@{`2`.equals(bean.checkIn) ? @drawable/bg_phone_tag_green : @drawable/bg_phone_tag_orange}"
|
||
android:paddingHorizontal="8dp"
|
||
android:paddingVertical="3dp"
|
||
android:text="@{`2`.equals(bean.checkIn) ? `计重中` : `未计重`}"
|
||
android:textColor="@{`2`.equals(bean.checkIn) ? @color/phone_tag_green_text : @color/phone_tag_orange_text}"
|
||
android:textSize="11sp"
|
||
tools:text="未计重" />
|
||
|
||
<ImageView
|
||
android:layout_width="16dp"
|
||
android:layout_height="16dp"
|
||
android:layout_marginStart="6dp"
|
||
android:src="@drawable/ic_phone_chevron_right" />
|
||
|
||
</LinearLayout>
|
||
|
||
<!-- 字段网格:日期 / 航程 -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="12dp"
|
||
android:orientation="horizontal">
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:gravity="center_vertical"
|
||
android:orientation="horizontal">
|
||
|
||
<ImageView
|
||
android:layout_width="14dp"
|
||
android:layout_height="14dp"
|
||
android:src="@drawable/ic_phone_airplane" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginStart="6dp"
|
||
android:text='@{"日期: " + bean.fdate}'
|
||
android:textColor="@color/phone_text_body"
|
||
android:textSize="13sp"
|
||
tools:text="日期: 20260721" />
|
||
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:gravity="center_vertical"
|
||
android:orientation="horizontal">
|
||
|
||
<ImageView
|
||
android:layout_width="14dp"
|
||
android:layout_height="14dp"
|
||
android:src="@drawable/ic_phone_location" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginStart="6dp"
|
||
android:text='@{"航程: " + bean.range}'
|
||
android:textColor="@color/phone_text_body"
|
||
android:textSize="13sp"
|
||
tools:text="航程: HFE-LAX" />
|
||
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
|
||
<!-- 字段网格:代理 / 特码 -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="8dp"
|
||
android:orientation="horizontal">
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:gravity="center_vertical"
|
||
android:orientation="horizontal">
|
||
|
||
<ImageView
|
||
android:layout_width="14dp"
|
||
android:layout_height="14dp"
|
||
android:src="@drawable/ic_phone_person" />
|
||
|
||
<TextView
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginStart="6dp"
|
||
android:layout_weight="1"
|
||
android:ellipsize="end"
|
||
android:maxLines="1"
|
||
android:text='@{"代理: " + bean.agentName}'
|
||
android:textColor="@color/phone_text_body"
|
||
android:textSize="13sp"
|
||
tools:text="代理: 中外运" />
|
||
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:gravity="center_vertical"
|
||
android:orientation="horizontal">
|
||
|
||
<ImageView
|
||
android:layout_width="14dp"
|
||
android:layout_height="14dp"
|
||
android:src="@drawable/ic_phone_tag" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginStart="6dp"
|
||
android:text='@{"特码: " + bean.spCode}'
|
||
android:textColor="@color/phone_text_body"
|
||
android:textSize="13sp"
|
||
tools:text="特码: DGR" />
|
||
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
|
||
<!-- 单票提前运抵(已提前运抵置灰,ViewHolder 判空绑定点击) -->
|
||
<TextView
|
||
android:id="@+id/btn_pre_arrive"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="36dp"
|
||
android:layout_marginTop="12dp"
|
||
android:alpha="@{`1`.equals(bean.arriveFlag) ? 0.45f : 1f}"
|
||
android:background="@drawable/bg_phone_btn_weak"
|
||
android:gravity="center"
|
||
android:text="@{`1`.equals(bean.arriveFlag) ? `已提前运抵` : `提前运抵`}"
|
||
android:textColor="@color/phone_primary"
|
||
android:textSize="14sp"
|
||
tools:text="提前运抵" />
|
||
|
||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||
|
||
</layout>
|