feat: opt 原舱单
This commit is contained in:
@@ -24,16 +24,18 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/white"
|
android:layout_marginHorizontal="10dp"
|
||||||
android:orientation="horizontal"
|
android:layout_marginTop="10dp"
|
||||||
android:padding="15dp">
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<!-- 航班日期 -->
|
<!-- 航班日期 -->
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
hint="@{`请选择航班日期`}"
|
hint='@{"请选择航班日期"}'
|
||||||
|
icon="@{@drawable/img_date}"
|
||||||
type="@{SearchLayoutType.DATE}"
|
type="@{SearchLayoutType.DATE}"
|
||||||
value="@={viewModel.flightDate}" />
|
value="@={viewModel.flightDate}" />
|
||||||
|
|
||||||
@@ -42,7 +44,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
hint="@{`请输入航班号`}"
|
hint='@{"请输入航班号"}'
|
||||||
type="@{SearchLayoutType.INPUT}"
|
type="@{SearchLayoutType.INPUT}"
|
||||||
value="@={viewModel.flightNo}" />
|
value="@={viewModel.flightNo}" />
|
||||||
|
|
||||||
@@ -51,7 +53,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
hint="@{`请输入运单号`}"
|
hint='@{"请输入运单号"}'
|
||||||
icon="@{@drawable/scan_code}"
|
icon="@{@drawable/scan_code}"
|
||||||
setOnIconClickListener="@{(v)-> viewModel.scanWaybill()}"
|
setOnIconClickListener="@{(v)-> viewModel.scanWaybill()}"
|
||||||
type="@{SearchLayoutType.INPUT}"
|
type="@{SearchLayoutType.INPUT}"
|
||||||
@@ -62,144 +64,152 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
hint="@{`请输入分单号`}"
|
hint='@{"请输入分单号"}'
|
||||||
icon="@{@drawable/scan_code}"
|
icon="@{@drawable/scan_code}"
|
||||||
setOnIconClickListener="@{(v)-> viewModel.scanHouseNo()}"
|
setOnIconClickListener="@{(v)-> viewModel.scanHouseNo()}"
|
||||||
type="@{SearchLayoutType.INPUT}"
|
type="@{SearchLayoutType.INPUT}"
|
||||||
value="@={viewModel.houseNo}" />
|
value="@={viewModel.houseNo}" />
|
||||||
|
|
||||||
<!-- 搜索按钮 -->
|
<!-- 搜索按钮 -->
|
||||||
|
<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
|
<ImageView
|
||||||
style="@style/iv_search_action"
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
android:onClick="@{()-> viewModel.searchClick()}"
|
android:onClick="@{()-> viewModel.searchClick()}"
|
||||||
|
android:padding="2dp"
|
||||||
android:src="@drawable/img_search" />
|
android:src="@drawable/img_search" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||||
android:id="@+id/srl"
|
android:id="@+id/srl"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_marginHorizontal="10dp"
|
||||||
android:layout_marginTop="10dp">
|
android:layout_marginTop="10dp"
|
||||||
|
android:layout_weight="1">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/rv"
|
android:id="@+id/rv"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingLeft="15dp"
|
android:overScrollMode="never"
|
||||||
android:paddingRight="15dp"
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||||
itemLayoutId="@{viewModel.itemLayoutId}"
|
itemLayoutId="@{viewModel.itemLayoutId}"
|
||||||
viewHolder="@{viewModel.itemViewHolder}" />
|
viewHolder="@{viewModel.itemViewHolder}" />
|
||||||
|
|
||||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||||
|
|
||||||
<!-- 底部工具栏 -->
|
<!-- 底部统计和操作按钮 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="60dp"
|
android:layout_height="50dp"
|
||||||
android:background="@color/color_bottom_layout"
|
android:background="@android:color/white"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingLeft="20dp"
|
android:paddingHorizontal="15dp">
|
||||||
android:paddingRight="20dp">
|
|
||||||
|
|
||||||
<!-- 全选按钮 -->
|
<!-- 全选按钮 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="5dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:onClick="@{()-> viewModel.checkAllClick()}">
|
android:onClick="@{()-> viewModel.checkAllClick()}"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/checkIcon"
|
android:id="@+id/checkIcon"
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
|
android:layout_marginEnd="5dp"
|
||||||
android:src="@drawable/img_check_all" />
|
android:src="@drawable/img_check_all" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="5dp"
|
|
||||||
android:text="全选"
|
android:text="全选"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/color_66"
|
||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 合计信息 -->
|
<!-- 统计信息 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:layout_marginLeft="30dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="20dp"
|
android:text='@{"合计:"+viewModel.totalCount+"票"}'
|
||||||
android:text='@{"合计:"+viewModel.totalCount+"票"}'
|
android:textColor="@color/bottom_tool_tips_text_color"
|
||||||
android:textColor="@color/white"
|
android:textSize="18sp"
|
||||||
android:textSize="16sp" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:text='@{"总件数:"+viewModel.totalPc}'
|
android:text='@{"总件数:"+viewModel.totalPc}'
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/bottom_tool_tips_text_color"
|
||||||
android:textSize="16sp" />
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text='@{"总重量:"+viewModel.totalWeight}'
|
android:layout_marginLeft="20dp"
|
||||||
android:textColor="@color/white"
|
android:text='@{"总重量:"+viewModel.totalWeight}'
|
||||||
android:textSize="16sp" />
|
android:textColor="@color/bottom_tool_tips_text_color"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 操作按钮区域 -->
|
<!-- 状态重置按钮 (蓝色) -->
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<!-- 状态重置 -->
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/tv_bottom_btn"
|
style="@style/tv_bottom_btn"
|
||||||
android:layout_marginRight="10dp"
|
|
||||||
android:background="@drawable/bg_blue_radius_4"
|
|
||||||
android:onClick="@{()-> viewModel.resetStatusClick()}"
|
android:onClick="@{()-> viewModel.resetStatusClick()}"
|
||||||
android:text="状态重置" />
|
android:text="状态重置" />
|
||||||
|
|
||||||
<!-- 补充信息 -->
|
<!-- 补充信息按钮 (蓝色) -->
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/tv_bottom_btn"
|
style="@style/tv_bottom_btn"
|
||||||
android:layout_marginRight="10dp"
|
|
||||||
android:background="@drawable/bg_blue_radius_4"
|
|
||||||
android:onClick="@{()-> viewModel.supplementInfoClick()}"
|
android:onClick="@{()-> viewModel.supplementInfoClick()}"
|
||||||
android:text="补充信息" />
|
android:text="补充信息" />
|
||||||
|
|
||||||
<!-- 删除申报 -->
|
<!-- 删除申报按钮 (蓝色) -->
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/tv_bottom_btn"
|
style="@style/tv_bottom_btn"
|
||||||
android:layout_marginRight="10dp"
|
|
||||||
android:background="@drawable/bg_blue_radius_4"
|
|
||||||
android:onClick="@{()-> viewModel.deleteDeclarationClick()}"
|
android:onClick="@{()-> viewModel.deleteDeclarationClick()}"
|
||||||
android:text="删除申报" />
|
android:text="删除申报" />
|
||||||
|
|
||||||
<!-- 舱单申报 -->
|
<!-- 舱单申报按钮 (红色) -->
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/tv_bottom_btn"
|
android:layout_width="100dp"
|
||||||
android:background="@drawable/bg_red_radius_4"
|
android:layout_height="40dp"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_marginLeft="15dp"
|
||||||
|
android:background="@drawable/bg_red_btn_bottom"
|
||||||
|
android:gravity="center"
|
||||||
android:onClick="@{()-> viewModel.declareClick()}"
|
android:onClick="@{()-> viewModel.declareClick()}"
|
||||||
android:text="舱单申报" />
|
android:text="舱单申报"
|
||||||
|
android:textColor="@color/white"
|
||||||
</LinearLayout>
|
android:textSize="18sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user