feat: 国际出港运抵列表新增运抵状态筛选

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-02 11:34:46 +08:00
parent b65e61595b
commit 4e6e654558
2 changed files with 24 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ import com.lukouguoji.module_base.ktx.launchLoadingCollect
import com.lukouguoji.module_base.ktx.showToast
import com.lukouguoji.module_base.ktx.toRequestBody
import com.lukouguoji.module_base.model.ScanModel
import dev.utils.app.info.KeyValue
import dev.utils.common.DateUtils
import com.lukouguoji.module_base.ktx.formatDate
import kotlinx.coroutines.launch
@@ -34,6 +35,16 @@ class IntExpArriveViewModel : BasePageViewModel() {
val flightNo = MutableLiveData("") // 航班号
val waybillNo = MutableLiveData("") // 运单号
val hno = MutableLiveData("") // 分单号
val arrivalStatus = MutableLiveData("") // 运抵状态0未运抵1已运抵
// 运抵状态下拉列表
val arrivalStatusList = MutableLiveData(
listOf(
KeyValue("全部", ""),
KeyValue("已运抵", "1"),
KeyValue("未运抵", "0")
)
)
// ========== 统计信息 ==========
val totalCount = MutableLiveData("0") // 合计票数
@@ -301,7 +312,8 @@ class IntExpArriveViewModel : BasePageViewModel() {
"fdate" to flightDate.value?.ifEmpty { null },
"fno" to flightNo.value?.ifEmpty { null },
"wbNo" to waybillNo.value?.ifEmpty { null },
"hno" to hno.value?.ifEmpty { null }
"hno" to hno.value?.ifEmpty { null },
"arrivalStatus" to arrivalStatus.value?.ifEmpty { null }
)
// 列表参数 (含分页)

View File

@@ -79,6 +79,16 @@
android:layout_height="wrap_content"
android:layout_weight="1" />
<!-- 运抵状态 -->
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
hint='@{"请选择运抵状态"}'
list="@{viewModel.arrivalStatusList}"
type="@{SearchLayoutType.SPINNER}"
value="@={viewModel.arrivalStatus}"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" />
<!-- 搜索按钮 -->
<LinearLayout
android:layout_width="0dp"