Compare commits

...

3 Commits

Author SHA1 Message Date
3c413833cf feat: opt 进港查询 2026-03-22 16:30:34 +08:00
072df758db feat: opt 进港查询 2026-03-22 16:04:44 +08:00
6c4e97945b feat: fix form 2026-03-20 15:30:12 +08:00
12 changed files with 42 additions and 51 deletions

View File

@@ -97,7 +97,12 @@
"Read(//usr/local/**)", "Read(//usr/local/**)",
"Read(//opt/homebrew/opt/**)", "Read(//opt/homebrew/opt/**)",
"Bash(/Users/kid/.vfox/sdks/java/bin/java -version 2>&1)", "Bash(/Users/kid/.vfox/sdks/java/bin/java -version 2>&1)",
"Bash(export JAVA_HOME=/Users/kid/.vfox/sdks/java)" "Bash(export JAVA_HOME=/Users/kid/.vfox/sdks/java)",
"mcp__apifox__read_project_oas_kcl8s7",
"mcp__apifox__refresh_project_oas_kcl8s7",
"mcp__apifox__read_project_oas_ref_resources_kcl8s7",
"mcp__apifox__read_project_oas_x3v6fh",
"mcp__apifox__read_project_oas_ref_resources_x3v6fh"
], ],
"deny": [], "deny": [],
"ask": [] "ask": []

View File

@@ -1 +1 @@
/Users/kid/.vfox/cache/java/v-17+35-amzn/java-17+35-amzn /Users/kid/.version-fox/cache/java/v-17+35-amzn/java-17+35-amzn

View File

@@ -11,8 +11,5 @@ class LogQueryViewHolder(view: View) : BaseViewHolder<LogBean, ItemLogQueryBindi
override fun onBind(item: Any?, position: Int) { override fun onBind(item: Any?, position: Int) {
val bean = getItemBean(item) val bean = getItemBean(item)
binding.bean = bean binding.bean = bean
itemView.setOnClickListener {
bean?.let { LogDetailActivity.start(itemView.context, it) }
}
} }
} }

View File

@@ -970,13 +970,6 @@ class HomeFragment : Fragment() {
"ULD管理" "ULD管理"
) )
) )
list.add(
RightMenu(
Constant.AuthName.ComprehensiveColdStorage,
com.lukouguoji.module_base.R.mipmap.gnc_cangku,
"冷库登记"
)
)
} }
else -> { else -> {

View File

@@ -302,6 +302,12 @@ interface Api {
@POST("typeCode/countryType") @POST("typeCode/countryType")
suspend fun getAreaTypeList(): DictListBean suspend fun getAreaTypeList(): DictListBean
/**
* 获取国家代码
*/
@POST("typeCode/countryCode")
suspend fun getCountryCodeList(): DictListBean
/** /**
* 获取通讯方式类型 * 获取通讯方式类型
*/ */

View File

@@ -13,6 +13,7 @@ import com.lukouguoji.module_base.base.BaseDialogModel
import com.lxj.xpopup.XPopup import com.lxj.xpopup.XPopup
import com.lxj.xpopup.enums.PopupPosition import com.lxj.xpopup.enums.PopupPosition
import dev.DevUtils import dev.DevUtils
import com.lukouguoji.module_base.util.DictUtils
import dev.utils.app.info.KeyValue import dev.utils.app.info.KeyValue
/** /**
@@ -22,28 +23,16 @@ class IntImpQueryFilterDialogModel(
val spCode: MutableLiveData<String>, val spCode: MutableLiveData<String>,
val spCodeList: MutableLiveData<List<KeyValue>>, val spCodeList: MutableLiveData<List<KeyValue>>,
val flightNo: MutableLiveData<String>, val flightNo: MutableLiveData<String>,
val dest: MutableLiveData<String>, val origin: MutableLiveData<String>,
val awbType: MutableLiveData<String>, val awbType: MutableLiveData<String>,
val businessType: MutableLiveData<String>, val businessType: MutableLiveData<String>,
val goodsCn: MutableLiveData<String>, val goodsCn: MutableLiveData<String>,
private val onConfirm: () -> Unit private val onConfirm: () -> Unit
) : BaseDialogModel<DialogIntImpQueryFilterBinding>(DIALOG_TYPE_DRAWER) { ) : BaseDialogModel<DialogIntImpQueryFilterBinding>(DIALOG_TYPE_DRAWER) {
val awbTypeList = MutableLiveData( val awbTypeList = MutableLiveData<List<KeyValue>>(emptyList())
listOf(
KeyValue("全部", ""),
KeyValue("主单", "1"),
KeyValue("分单", "2")
)
)
val businessTypeList = MutableLiveData( val businessTypeList = MutableLiveData<List<KeyValue>>(emptyList())
listOf(
KeyValue("全部", ""),
KeyValue("普货", "1"),
KeyValue("特货", "2")
)
)
override fun layoutId() = R.layout.dialog_int_imp_query_filter override fun layoutId() = R.layout.dialog_int_imp_query_filter
@@ -70,12 +59,19 @@ class IntImpQueryFilterDialogModel(
binding.root.findViewById<View>(R.id.tool_back)?.setOnClickListener { binding.root.findViewById<View>(R.id.tool_back)?.setOnClickListener {
dismiss() 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() { fun onResetClick() {
spCode.value = "" spCode.value = ""
flightNo.value = "" flightNo.value = ""
dest.value = "" origin.value = ""
awbType.value = "" awbType.value = ""
businessType.value = "" businessType.value = ""
goodsCn.value = "" goodsCn.value = ""

View File

@@ -57,7 +57,7 @@ class IntArrSupplementInfoViewModel : BaseViewModel() {
* 加载国家代码下拉列表 * 加载国家代码下拉列表
*/ */
private fun loadCountryCodeList() { private fun loadCountryCodeList() {
launchCollect({ NetApply.api.getAreaTypeList() }) { launchCollect({ NetApply.api.getCountryCodeList() }) {
onSuccess = { result -> onSuccess = { result ->
val keyValueList = result.data?.mapNotNull { bean -> val keyValueList = result.data?.mapNotNull { bean ->
if (bean.code != null && bean.name != null) { if (bean.code != null && bean.name != null) {

View File

@@ -13,6 +13,7 @@ import com.lukouguoji.module_base.ktx.launchCollect
import com.lukouguoji.module_base.ktx.launchLoadingCollect import com.lukouguoji.module_base.ktx.launchLoadingCollect
import com.lukouguoji.module_base.ktx.showToast import com.lukouguoji.module_base.ktx.showToast
import com.lukouguoji.module_base.ktx.toRequestBody import com.lukouguoji.module_base.ktx.toRequestBody
import com.lukouguoji.module_base.util.DictUtils
import dev.utils.app.info.KeyValue import dev.utils.app.info.KeyValue
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
@@ -102,19 +103,12 @@ class IntImpQueryEditViewModel : BaseViewModel() {
} }
/** /**
* 加载包装类型下拉列表(国际进港专用 * 加载包装类型下拉列表(收运包装类型
*/ */
private fun loadPackageTypeList() { private fun loadPackageTypeList() {
launchCollect({ NetApply.api.getGjjPackTypeList() }) { DictUtils.getShouYunPackageTypeList(checkedValue = dataBean.value?.packageType) {
onSuccess = { result -> packageTypeList.postValue(it)
val list = result.data?.mapNotNull { bean -> matchPackageType()
if (bean.packageName.isNotEmpty()) {
KeyValue(bean.packageName, bean.packageName)
} else null
} ?: emptyList()
packageTypeList.value = list
matchPackageType()
}
} }
} }

View File

@@ -62,7 +62,7 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
// ==================== 筛选条件 ==================== // ==================== 筛选条件 ====================
val spCode = MutableLiveData("") val spCode = MutableLiveData("")
val flightNo = MutableLiveData("") val flightNo = MutableLiveData("")
val dest = MutableLiveData("") val origin = MutableLiveData("")
val awbType = MutableLiveData("") val awbType = MutableLiveData("")
val businessType = MutableLiveData("") val businessType = MutableLiveData("")
val goodsCn = MutableLiveData("") val goodsCn = MutableLiveData("")
@@ -84,7 +84,7 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
spCode = spCode, spCode = spCode,
spCodeList = spCodeList, spCodeList = spCodeList,
flightNo = flightNo, flightNo = flightNo,
dest = dest, origin = origin,
awbType = awbType, awbType = awbType,
businessType = businessType, businessType = businessType,
goodsCn = goodsCn, goodsCn = goodsCn,
@@ -104,7 +104,7 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
"wbNo" to waybillNo.value!!.ifEmpty { null }, "wbNo" to waybillNo.value!!.ifEmpty { null },
"spCode" to spCode.value!!.ifEmpty { null }, "spCode" to spCode.value!!.ifEmpty { null },
"fno" to flightNo.value!!.ifEmpty { null }, "fno" to flightNo.value!!.ifEmpty { null },
"dest" to dest.value!!.ifEmpty { null }, "origin" to origin.value!!.ifEmpty { null },
"awbType" to awbType.value!!.ifEmpty { null }, "awbType" to awbType.value!!.ifEmpty { null },
"businessType" to businessType.value!!.ifEmpty { null }, "businessType" to businessType.value!!.ifEmpty { null },
"goods" to goodsCn.value!!.ifEmpty { null } "goods" to goodsCn.value!!.ifEmpty { null }
@@ -118,7 +118,7 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
"wbNo" to waybillNo.value!!.ifEmpty { null }, "wbNo" to waybillNo.value!!.ifEmpty { null },
"spCode" to spCode.value!!.ifEmpty { null }, "spCode" to spCode.value!!.ifEmpty { null },
"fno" to flightNo.value!!.ifEmpty { null }, "fno" to flightNo.value!!.ifEmpty { null },
"dest" to dest.value!!.ifEmpty { null }, "origin" to origin.value!!.ifEmpty { null },
"awbType" to awbType.value!!.ifEmpty { null }, "awbType" to awbType.value!!.ifEmpty { null },
"businessType" to businessType.value!!.ifEmpty { null }, "businessType" to businessType.value!!.ifEmpty { null },
"goods" to goodsCn.value!!.ifEmpty { null } "goods" to goodsCn.value!!.ifEmpty { null }

View File

@@ -63,13 +63,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp" /> android:layout_marginBottom="10dp" />
<!-- 目的--> <!-- 始发-->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew <com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
hint='@{"请输入目的港"}' hint='@{"请输入始发港"}'
title='@{"目的港"}' title='@{"始发港"}'
titleLength="@{4}" titleLength="@{4}"
type="@{DataLayoutType.INPUT}" type="@{DataLayoutType.INPUT}"
value='@={model.dest}' value='@={model.origin}'
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp" /> android:layout_marginBottom="10dp" />

View File

@@ -88,7 +88,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text='@{String.valueOf(bean.awbPc)}' android:text='@{String.valueOf(bean.inPc)}'
tools:text="10" /> tools:text="10" />
</androidx.appcompat.widget.LinearLayoutCompat> </androidx.appcompat.widget.LinearLayoutCompat>
@@ -109,7 +109,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text='@{String.valueOf(bean.awbWeight)}' android:text='@{String.valueOf(bean.inWeight)}'
tools:text="200" /> tools:text="200" />
</androidx.appcompat.widget.LinearLayoutCompat> </androidx.appcompat.widget.LinearLayoutCompat>

View File

@@ -78,7 +78,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1.5" android:layout_weight="1.5"
android:gravity="center" android:gravity="center"
android:text="@{bean.outDate != null &amp;&amp; bean.outDate.length() >= 16 ? bean.outDate.substring(0, 16) : (bean.outDate != null &amp;&amp; bean.outDate.length() > 0 ? bean.outDate : `--`)}" android:text="@{bean.outDate != null &amp;&amp; bean.outDate.length() >= 16 ? bean.outDate.substring(0, 16) : (bean.outDate ?? ``)}"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textSize="14sp" /> android:textSize="14sp" />