feat: opt 出港查询 ui

This commit is contained in:
2025-12-05 11:41:08 +08:00
parent bcc4bada25
commit c0c19c8453
5 changed files with 87 additions and 64 deletions

View File

@@ -14,6 +14,7 @@
android:gravity="center"> android:gravity="center">
<ImageView <ImageView
android:id="@+id/tool_iv_back"
android:layout_width="15dp" android:layout_width="15dp"
android:layout_height="15dp" android:layout_height="15dp"
android:src="@mipmap/left_icon" android:src="@mipmap/left_icon"

View File

@@ -30,6 +30,7 @@ import com.scwang.smart.refresh.layout.api.RefreshLayout
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.* import java.util.*
@Deprecated(message = "废弃的国际出港查询页面由GjcQueryActivity 接管")
//@Route(path = ARouterConstants.ACTIVITY_URL_GJC_QUERY_LIST) //@Route(path = ARouterConstants.ACTIVITY_URL_GJC_QUERY_LIST)
class GjcQueryListActivity : BaseActivity(), View.OnClickListener { class GjcQueryListActivity : BaseActivity(), View.OnClickListener {
private val currentTitleName = "国际出港查询" private val currentTitleName = "国际出港查询"

View File

@@ -1,7 +1,10 @@
package com.lukouguoji.gjc.dialog package com.lukouguoji.gjc.dialog
import android.content.Context import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Color
import android.view.View import android.view.View
import android.widget.ImageView
import android.widget.TextView import android.widget.TextView
import androidx.lifecycle.MutableLiveData import androidx.lifecycle.MutableLiveData
import com.lukouguoji.gjc.R import com.lukouguoji.gjc.R
@@ -61,8 +64,14 @@ class GjcQueryFilterDialogModel(
binding.model = this binding.model = this
binding.lifecycleOwner = context as? androidx.lifecycle.LifecycleOwner binding.lifecycleOwner = context as? androidx.lifecycle.LifecycleOwner
val titleColor = Color.parseColor("#666666")
// 设置标题 // 设置标题
binding.root.findViewById<TextView>(R.id.title_name)?.text = "筛选条件" binding.root.findViewById<TextView>(R.id.title_name)?.text = "筛选条件"
binding.root.findViewById<TextView>(R.id.title_name)?.setTextColor(titleColor)
binding.root.findViewById<TextView>(R.id.tool_tv_back)?.setTextColor(titleColor)
binding.root.findViewById<ImageView>(R.id.tool_iv_back)?.imageTintList = ColorStateList.valueOf(titleColor)
binding.root.findViewById<View>(R.id.toolbar)?.setBackgroundColor(Color.WHITE)
// 返回按钮 // 返回按钮
binding.root.findViewById<View>(R.id.tool_back)?.setOnClickListener { binding.root.findViewById<View>(R.id.tool_back)?.setOnClickListener {

View File

@@ -90,13 +90,16 @@
<!-- 搜索按钮 --> <!-- 搜索按钮 -->
<ImageView <ImageView
style="@style/iv_search_action" android:layout_width="36dp"
android:layout_height="36dp"
android:onClick="@{()-> viewModel.searchClick()}" android:onClick="@{()-> viewModel.searchClick()}"
android:src="@drawable/img_search" /> android:src="@drawable/img_search" />
<!-- 筛选按钮 --> <!-- 筛选按钮 -->
<ImageView <ImageView
style="@style/iv_search_action" android:layout_width="28dp"
android:layout_height="28dp"
android:layout_marginStart="24dp"
android:onClick="@{()-> viewModel.filterClick()}" android:onClick="@{()-> viewModel.filterClick()}"
android:src="@drawable/img_filter" /> android:src="@drawable/img_filter" />
@@ -141,7 +144,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text='@{`合计:` + viewModel.totalCount + `票`}' android:text='@{`合计:` + viewModel.totalCount + `票`}'
android:textColor="@color/text_normal" android:textColor="@color/bottom_tool_tips_text_color"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" android:textStyle="bold"
tools:text="合计3票" /> tools:text="合计3票" />
@@ -151,7 +154,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:text='@{`总件数:` + viewModel.totalPc}' android:text='@{`总件数:` + viewModel.totalPc}'
android:textColor="@color/text_normal" android:textColor="@color/bottom_tool_tips_text_color"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" android:textStyle="bold"
tools:text="总件数100" /> tools:text="总件数100" />
@@ -161,7 +164,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:text='@{`总重量:` + viewModel.totalWeight}' android:text='@{`总重量:` + viewModel.totalWeight}'
android:textColor="@color/text_normal" android:textColor="@color/bottom_tool_tips_text_color"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" android:textStyle="bold"
tools:text="总重量100" /> tools:text="总重量100" />

View File

@@ -2,6 +2,7 @@
<layout xmlns:android="http://schemas.android.com/apk/res/android"> <layout xmlns:android="http://schemas.android.com/apk/res/android">
<data> <data>
<import type="com.lukouguoji.module_base.ui.weight.data.layout.DataLayoutType" /> <import type="com.lukouguoji.module_base.ui.weight.data.layout.DataLayoutType" />
<variable <variable
@@ -24,6 +25,10 @@
<!-- 标题栏 --> <!-- 标题栏 -->
<include layout="@layout/title_tool_bar" /> <include layout="@layout/title_tool_bar" />
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="1dp"/>
<!-- 筛选条件区域 --> <!-- 筛选条件区域 -->
<ScrollView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -38,80 +43,78 @@
<!-- 特码 --> <!-- 特码 -->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew <com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
hint='@{"请输入特码"}' hint='@{"请输入特码"}'
title='@{"特码"}' title='@{"特码"}'
titleLength="@{4}" titleLength="@{4}"
type="@{DataLayoutType.INPUT}" type="@{DataLayoutType.INPUT}"
value='@={model.spCode}' /> value='@={model.spCode}'
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
<!-- 航班号 --> <!-- 航班号 -->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew <com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
hint='@{"请输入航班号"}' hint='@{"请输入航班号"}'
title='@{"航班号"}' title='@{"航班号"}'
titleLength="@{4}" titleLength="@{4}"
type="@{DataLayoutType.INPUT}" type="@{DataLayoutType.INPUT}"
value='@={model.flightNo}' /> value='@={model.flightNo}'
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
<!-- 目的港 --> <!-- 目的港 -->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew <com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
hint='@{"请输入目的港"}' hint='@{"请输入目的港"}'
title='@{"目的港"}' title='@{"目的港"}'
titleLength="@{4}" titleLength="@{4}"
type="@{DataLayoutType.INPUT}" type="@{DataLayoutType.INPUT}"
value='@={model.dest}' /> value='@={model.dest}'
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
<!-- 运单类型 --> <!-- 运单类型 -->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew <com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
hint='@{"请选择运单类型"}' hint='@{"请选择运单类型"}'
list="@{model.awbTypeList}" list="@{model.awbTypeList}"
title='@{"运单类型"}' title='@{"运单类型"}'
titleLength="@{4}" titleLength="@{4}"
type="@{DataLayoutType.SPINNER}" type="@{DataLayoutType.SPINNER}"
value='@={model.awbType}' /> value='@={model.awbType}'
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
<!-- 业务类型 --> <!-- 业务类型 -->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew <com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
hint='@{"请选择业务类型"}' hint='@{"请选择业务类型"}'
list="@{model.businessTypeList}" list="@{model.businessTypeList}"
title='@{"业务类型"}' title='@{"业务类型"}'
titleLength="@{4}" titleLength="@{4}"
type="@{DataLayoutType.SPINNER}" type="@{DataLayoutType.SPINNER}"
value='@={model.businessType}' /> value='@={model.businessType}'
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
<!-- 品名(中) --> <!-- 品名(中) -->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew <com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
hint='@{"请输入品名"}' hint='@{"请输入品名"}'
title='@{"品名(中)"}' title='@{"品名(中)"}'
titleLength="@{4}" titleLength="@{4}"
type="@{DataLayoutType.INPUT}" type="@{DataLayoutType.INPUT}"
value='@={model.goodsCn}' /> value='@={model.goodsCn}'
android:layout_width="match_parent"
</LinearLayout> android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
</ScrollView>
<!-- 底部按钮区域 --> <!-- 底部按钮区域 -->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="300dp"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="32dp"
android:background="@color/white" android:background="@color/white"
android:gravity="center" android:gravity="center"
android:orientation="horizontal" android:orientation="horizontal"
@@ -121,13 +124,13 @@
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginRight="10dp" android:layout_marginRight="24dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@drawable/bg_gray_radius_4" android:background="@drawable/bg_primary_radius_4"
android:gravity="center" android:gravity="center"
android:onClick="@{()-> model.onResetClick()}" android:onClick="@{()-> model.onResetClick()}"
android:text="重置" android:text="重置"
android:textColor="@color/text_normal" android:textColor="@color/white"
android:textSize="16sp" /> android:textSize="16sp" />
<!-- 搜索按钮 --> <!-- 搜索按钮 -->
@@ -146,4 +149,10 @@
</LinearLayout> </LinearLayout>
</ScrollView>
</LinearLayout>
</layout> </layout>