204 lines
8.1 KiB
XML
204 lines
8.1 KiB
XML
<?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="com.lukouguoji.module_base.ui.weight.search.layout.SearchLayoutType" />
|
||
|
||
<variable
|
||
name="viewModel"
|
||
type="com.lukouguoji.gjc.viewModel.GjcInspectionViewModel" />
|
||
</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" />
|
||
|
||
<!-- 搜索区域 -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginHorizontal="10dp"
|
||
android:layout_marginTop="10dp"
|
||
android:gravity="center_vertical"
|
||
android:orientation="horizontal">
|
||
|
||
<!-- 航班日期 -->
|
||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
hint='@{"请选择航班日期"}'
|
||
icon="@{@drawable/img_date}"
|
||
type="@{SearchLayoutType.DATE}"
|
||
value="@={viewModel.flightDate}" />
|
||
|
||
<!-- 航班号 -->
|
||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
hint='@{"请输入航班号"}'
|
||
type="@{SearchLayoutType.INPUT}"
|
||
value="@={viewModel.flightNo}" />
|
||
|
||
<!-- 代理 -->
|
||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
hint='@{"请选择代理"}'
|
||
list="@{viewModel.agentList}"
|
||
type="@{SearchLayoutType.SPINNER}"
|
||
value="@={viewModel.agentId}" />
|
||
|
||
<!-- 审核状态 -->
|
||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
hint='@{"请选择审核状态"}'
|
||
list="@{viewModel.auditStatusList}"
|
||
type="@{SearchLayoutType.SPINNER}"
|
||
value="@={viewModel.auditStatus}" />
|
||
|
||
<!-- 运单号 -->
|
||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
hint='@{"请输入运单号"}'
|
||
icon="@{@drawable/img_scan}"
|
||
setOnIconClickListener="@{()-> viewModel.waybillScanClick()}"
|
||
type="@{SearchLayoutType.INPUT}"
|
||
value="@={viewModel.waybillNo}" />
|
||
|
||
<!-- 搜索按钮 -->
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center_horizontal"
|
||
android:layout_weight="1">
|
||
|
||
<ImageView
|
||
android:layout_width="32dp"
|
||
android:layout_height="32dp"
|
||
android:onClick="@{()-> viewModel.searchClick()}"
|
||
android:src="@drawable/img_search" />
|
||
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
|
||
<!-- 列表 -->
|
||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||
android:id="@+id/srl"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="1">
|
||
|
||
<androidx.recyclerview.widget.RecyclerView
|
||
android:id="@+id/rv"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
itemLayoutId="@{viewModel.itemLayoutId}"
|
||
viewHolder="@{viewModel.itemViewHolder}"
|
||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||
tools:listitem="@layout/item_gjc_inspection" />
|
||
|
||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||
|
||
<!-- 底部统计和操作按钮 -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="50dp"
|
||
android:background="@color/white"
|
||
android:gravity="center_vertical"
|
||
android:paddingHorizontal="15dp">
|
||
|
||
<!-- 全选按钮区域 -->
|
||
<LinearLayout
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center_vertical"
|
||
android:onClick="@{()->viewModel.checkAllClick()}">
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="全选"
|
||
android:textColor="@color/c666666"
|
||
android:textSize="16sp" />
|
||
|
||
<ImageView
|
||
android:id="@+id/checkIcon"
|
||
android:layout_width="24dp"
|
||
android:layout_height="24dp"
|
||
android:layout_marginLeft="5dp"
|
||
android:src="@drawable/img_check_all" />
|
||
|
||
</LinearLayout>
|
||
|
||
<!-- 统计信息 -->
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:layout_marginLeft="20dp"
|
||
android:gravity="center_vertical"
|
||
android:orientation="horizontal">
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text='@{"合计:"+viewModel.totalCount+"票"}'
|
||
android:textColor="@color/bottom_tool_tips_text_color"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold"
|
||
tools:text="合计:11票" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="20dp"
|
||
android:text='@{"总件数:"+viewModel.totalPc}'
|
||
android:textColor="@color/bottom_tool_tips_text_color"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold"
|
||
tools:text="总件数:100" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="20dp"
|
||
android:text='@{"总重量:"+viewModel.totalWeight}'
|
||
android:textColor="@color/bottom_tool_tips_text_color"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold"
|
||
tools:text="总重量:100" />
|
||
|
||
</LinearLayout>
|
||
|
||
<!-- 操作按钮 -->
|
||
<TextView
|
||
style="@style/tv_bottom_btn"
|
||
android:onClick="@{()-> viewModel.auditRejectClick()}"
|
||
android:text="退回"
|
||
android:layout_marginRight="10dp" />
|
||
|
||
<TextView
|
||
style="@style/tv_bottom_btn"
|
||
android:onClick="@{()-> viewModel.auditPassClick()}"
|
||
android:text="通过" />
|
||
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
</layout>
|