Files
aerologic-app/module_gjc/src/main/res/layout/activity_gjc_handover.xml
2025-12-15 15:59:12 +08:00

1380 lines
74 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<import type="android.view.View" />
<variable
name="viewModel"
type="com.lukouguoji.gjc.viewModel.GjcHandoverViewModel" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_f2"
android:orientation="vertical">
<include layout="@layout/title_tool_bar" />
<!-- 内容区域 -->
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_white_radius_8"
android:orientation="vertical"
android:padding="15dp">
<!-- 主标题 -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="15dp"
android:text="安徽省航空物流有限公司货物交接单"
android:textColor="@color/color_33"
android:textSize="18sp"
android:textStyle="bold" />
<!-- 基础信息表格 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_table_cell"
android:orientation="vertical">
<!-- 第一行:托运人/[value]/交货日期/2025年12月20日 (4列) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="托运人或代理人"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayAgentName}"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="交货日期"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayDeliveryDate}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 第二行:销售代理人/[value]/计划班期/[value] (4列) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="销售代理人"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.dataBean.saleAgentCode ?? ``}"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="计划班期(航班号/日期/目的地)"
android:textColor="@color/color_33"
android:textSize="13sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayFlightPlan}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 第三行:交货单位/[value]/货单号/[value] (4列) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="交货单位"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayAgentName}"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="货单号"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayWaybillNo}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 第四行:件数/[value]/重量/[value] (4列) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="件数"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayPc}"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="重量"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayWeight}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 第五行:计重重量/[value]/体积数/[value] (4列) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="计重重量"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayChargeWeight}"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="体积数"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayVolume}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 第六行:品名/[value跨3列] -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="品名"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="5"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayGoods}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 第七行:备注/[value跨3列] -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="备注"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="5"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayRemark}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 第八行:是否跨境电商 - 修复为4列标准表格每列独立单元格 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="是否为跨境电商货物"
android:textColor="@color/color_33"
android:textSize="14sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:orientation="horizontal">
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.cbEcFlag.equals(`0`)}"
android:onClick="@{() -> viewModel.onCbEcFlagClick(`0`)}"
android:text="否"
android:textSize="14sp" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:checked="@{viewModel.cbEcFlag.equals(`1`)}"
android:onClick="@{() -> viewModel.onCbEcFlagClick(`1`)}"
android:text="是"
android:textSize="14sp" />
</RadioGroup>
</LinearLayout>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="平台或快递企业名称"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.dataBean.expressName ?? ``}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<!-- 运输声明 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_table_cell"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:lineSpacingExtra="4dp"
android:padding="10dp"
android:text="运输声明:\n 我司声明交接单上所列货物品名、件数、重量、体积、目的站等信息与实际货物及航空运单填写内容一致;我司充分了解航空公司有关规定,严格遵守国家法律,按照航司要求收运货物,交由航司承运的此票货物已按防止隐含危险品货物收运检查要求进行检查,确认货物无隐含危险品。如发生夹带、瞒报和匿报等违规行为,本公司愿承担由此产生的一切后果和法律责任。"
android:textColor="@color/color_33"
android:textSize="14sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="36dp"
android:gravity="center_vertical|end"
android:orientation="horizontal"
android:paddingHorizontal="10dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="销售代理人盖章:"
android:textColor="@color/color_33" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{viewModel.dataBean.saleAgentCode ?? ``}"
android:textColor="@color/color_33"
tools:text="李某某" />
</LinearLayout>
</LinearLayout>
<!-- 签名区域 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/bg_table_cell"
android:orientation="vertical">
<!-- 第一行:交货单位盖章、经办人签名、经办人身份证号 - 改为6列标签+value -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="交货单位盖章"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@{viewModel.displayAgentName}"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="经办人签名"
android:textColor="@color/color_33"
android:textSize="14sp" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@={viewModel.dataBean.opName}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="经办人身份证号"
android:textColor="@color/color_33"
android:textSize="14sp" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="5"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@={viewModel.dataBean.opCardId}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<!-- 分隔标题:以下由货站人员填写 -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="#F0F0F0"
android:gravity="center"
android:padding="8dp"
android:text="以下由货站人员填写"
android:textColor="@color/color_33"
android:textSize="15sp"
android:textStyle="bold" />
<!-- 表头行 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<!-- 列2具体项目 -->
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="4"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="《防止隐含危险品货物收运检查单》"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<!-- 列3-->
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="是"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<!-- 列4-->
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="否"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>
<!-- 检查项表格 - 修复为正确的4列布局第1列包含文件部分和货物部分 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<!-- 列1文件部分和货物部分上下堆叠 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="文件部分(柜台)"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="货物部分(收运)"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="5"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:padding="5dp"
android:text="1.申报货物的品名为确指品名"
android:textColor="@color/color_33"
android:textSize="14sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.goodsNameYes}"
android:onClick="@{() -> viewModel.onGoodsNameClick(true)}"
android:text="" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.goodsNameNo}"
android:onClick="@{() -> viewModel.onGoodsNameClick(false)}"
android:text="" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:padding="5dp"
android:text="2.对货物品名进行判断,确认货物内不含未申报的危险品"
android:textColor="@color/color_33"
android:textSize="14sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.dangerYes}"
android:onClick="@{() -> viewModel.onDangerClick(true)}"
android:text="" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.dangerNo}"
android:onClick="@{() -> viewModel.onDangerClick(false)}"
android:text="" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:padding="5dp"
android:text="3.是否非观赏鱼类货物,或属于无&quot;暖宝宝&quot;且无&quot;高锰酸钾等氧化剂类或其他类消毒剂&quot;的观赏鱼类货物"
android:textColor="@color/color_33"
android:textSize="13sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.fishYes}"
android:onClick="@{() -> viewModel.onFishClick(true)}"
android:text="" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.fishNo}"
android:onClick="@{() -> viewModel.onFishClick(false)}"
android:text="" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:padding="5dp"
android:text="1.包装件没有油渍或液体渗漏,也没有烟雾或者气体冒出"
android:textColor="@color/color_33"
android:textSize="14sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.packagingYes}"
android:onClick="@{() -> viewModel.onPackagingClick(true)}"
android:text="" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.packagingNo}"
android:onClick="@{() -> viewModel.onPackagingClick(false)}"
android:text="" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:padding="5dp"
android:text="2.清除或涂去无关标记或标签"
android:textColor="@color/color_33"
android:textSize="14sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.labelsYes}"
android:onClick="@{() -> viewModel.onLabelsClick(true)}"
android:text="" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.labelsNo}"
android:onClick="@{() -> viewModel.onLabelsClick(false)}"
android:text="" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- 高风险检查表 - Excel风格3列布局checkbox居中 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_table_cell"
android:orientation="vertical">
<!-- 表头行 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="4"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="《高风险货物收运检查单》"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="是"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="否"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>
<!-- 检查项1 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="50dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="4"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:padding="8dp"
android:text="1.航空货物外观显现异常或有拆换夹带迹象"
android:textColor="@color/color_33"
android:textSize="14sp" />
<!-- 是 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.appearanceYes}"
android:onClick="@{() -> viewModel.onAppearanceClick(true)}"
android:text="" />
</LinearLayout>
<!-- 否 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.appearanceNo}"
android:onClick="@{() -> viewModel.onAppearanceClick(false)}"
android:text="" />
</LinearLayout>
</LinearLayout>
<!-- 检查项2 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="50dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="4"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:padding="8dp"
android:text="2.有具体情报显示航空货物可能对民用航空安全构成威胁"
android:textColor="@color/color_33"
android:textSize="14sp" />
<!-- 是 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.threatYes}"
android:onClick="@{() -> viewModel.onThreatClick(true)}"
android:text="" />
</LinearLayout>
<!-- 否 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.threatNo}"
android:onClick="@{() -> viewModel.onThreatClick(false)}"
android:text="" />
</LinearLayout>
</LinearLayout>
<!-- 结论行 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="4"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:padding="8dp"
android:text="结论:是否可以判定为高风险货物"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<!-- 是 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.highRiskYes}"
android:onClick="@{() -> viewModel.onHighRiskClick(true)}"
android:text="" />
</LinearLayout>
<!-- 否 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.highRiskNo}"
android:onClick="@{() -> viewModel.onHighRiskClick(false)}"
android:text="" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- 跨境电商检查表 - Excel风格4列布局是/不适用/否checkbox居中 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_table_cell"
android:orientation="vertical">
<!-- 表头行 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="start|center_vertical"
android:text="《跨境电商货物收运检查单》"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="是"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="不适用"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="否"
android:textColor="@color/color_33"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>
<!-- 检查项 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="50dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:gravity="center_vertical"
android:padding="8dp"
android:text="是否已提交《落实三个&quot;百分百&quot;制度声明》"
android:textColor="@color/color_33"
android:textSize="14sp" />
<!-- 是 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.submitStatementYes}"
android:onClick="@{() -> viewModel.onSubmitStatementClick(1)}"
android:text="" />
</LinearLayout>
<!-- 不适用 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.submitStatementNA}"
android:onClick="@{() -> viewModel.onSubmitStatementClick(2)}"
android:text="" />
</LinearLayout>
<!-- 否 checkbox居中 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="@{viewModel.submitStatementNo}"
android:onClick="@{() -> viewModel.onSubmitStatementClick(0)}"
android:text="" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- 货站收运人员签字 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/bg_table_cell"
android:gravity="center_vertical|start"
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:text="货站收运人员检查签字盖章:"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 分隔标题:以下由安检人员填写 -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="#F0F0F0"
android:gravity="center"
android:padding="8dp"
android:text="以下由安检人员填写"
android:textColor="@color/color_33"
android:textSize="15sp"
android:textStyle="bold" />
<!-- 安检信息表格 - 修复为4行×2列结构包含安检盖章 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="10dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:background="@drawable/bg_table_cell"
android:orientation="vertical">
<!-- 第1行安检机通道号 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="安检机通道号"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="开始过机时间"
android:textColor="@color/color_33"
android:textSize="14sp" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@={viewModel.securityChannel}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
<!-- 第2行开始过机时间 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@={viewModel.securityStartTime}"
android:textColor="@color/color_33"
android:textSize="14sp" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="结束过机时间"
android:textColor="@color/color_33"
android:textSize="14sp" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="center"
android:text="@={viewModel.securityEndTime}"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<!-- 第4行安检盖章 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/bg_table_cell"
android:gravity="top|center_horizontal"
android:paddingTop="8dp"
android:text="安检盖章"
android:textColor="@color/color_33"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- 底部操作按钮 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:paddingHorizontal="15dp">
<!-- 退回按钮 -->
<TextView
style="@style/tv_bottom_btn"
android:layout_width="120dp"
android:layout_marginEnd="20dp"
android:onClick="@{()-> viewModel.cancelClick()}"
android:text="取消" />
<!-- 通过按钮 -->
<TextView
style="@style/tv_bottom_btn"
android:layout_width="120dp"
android:onClick="@{()-> viewModel.saveClick()}"
android:text="保存" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</layout>