feat: opt 进港查询

This commit is contained in:
2026-03-22 16:30:34 +08:00
parent 072df758db
commit 3c413833cf
3 changed files with 16 additions and 26 deletions

View File

@@ -13,6 +13,7 @@ import com.lukouguoji.module_base.base.BaseDialogModel
import com.lxj.xpopup.XPopup
import com.lxj.xpopup.enums.PopupPosition
import dev.DevUtils
import com.lukouguoji.module_base.util.DictUtils
import dev.utils.app.info.KeyValue
/**
@@ -29,21 +30,9 @@ class IntImpQueryFilterDialogModel(
private val onConfirm: () -> Unit
) : BaseDialogModel<DialogIntImpQueryFilterBinding>(DIALOG_TYPE_DRAWER) {
val awbTypeList = MutableLiveData(
listOf(
KeyValue("全部", ""),
KeyValue("主单", "1"),
KeyValue("分单", "2")
)
)
val awbTypeList = MutableLiveData<List<KeyValue>>(emptyList())
val businessTypeList = MutableLiveData(
listOf(
KeyValue("全部", ""),
KeyValue("普货", "1"),
KeyValue("特货", "2")
)
)
val businessTypeList = MutableLiveData<List<KeyValue>>(emptyList())
override fun layoutId() = R.layout.dialog_int_imp_query_filter
@@ -70,6 +59,13 @@ class IntImpQueryFilterDialogModel(
binding.root.findViewById<View>(R.id.tool_back)?.setOnClickListener {
dismiss()
}
DictUtils.getWaybillTypeList(type = "II", addAll = true, checkedValue = awbType.value) {
awbTypeList.postValue(it)
}
DictUtils.getBusinessTypeList(type = "II", addAll = true, checkedValue = businessType.value) {
businessTypeList.postValue(it)
}
}
fun onResetClick() {