废弃旧日志查询页面,新建日志查询列表页和操作日志详情页。 详情页包含运单信息、流转状态进度条和操作详情时间线。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
120 lines
4.5 KiB
XML
120 lines
4.5 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.aerologic.page.log.list.LogQueryViewModel" />
|
|
</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">
|
|
|
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
hint='@{"请选择航班日期起"}'
|
|
icon="@{@drawable/img_date}"
|
|
type="@{SearchLayoutType.DATE}"
|
|
value="@={viewModel.startDate}"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
hint='@{"请选择航班日期止"}'
|
|
icon="@{@drawable/img_date}"
|
|
type="@{SearchLayoutType.DATE}"
|
|
value="@={viewModel.endDate}"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
hint='@{"请输入关键字"}'
|
|
type="@{SearchLayoutType.INPUT}"
|
|
value="@={viewModel.keyWord}"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
hint='@{"请输入操作员ID"}'
|
|
type="@{SearchLayoutType.INPUT}"
|
|
value="@={viewModel.operatorId}"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="24dp">
|
|
|
|
<ImageView
|
|
android:layout_width="36dp"
|
|
android:layout_height="36dp"
|
|
android:onClick="@{()-> viewModel.searchClick()}"
|
|
android:padding="2dp"
|
|
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"
|
|
itemLayoutId="@{viewModel.itemLayoutId}"
|
|
viewHolder="@{viewModel.itemViewHolder}"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
tools:listitem="@layout/item_log_query" />
|
|
|
|
</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">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text='@{"合计:" + viewModel.count + "条"}'
|
|
android:textColor="@color/bottom_tool_tips_text_color"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
tools:text="合计:1条" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</layout>
|