feat: fix issues

This commit is contained in:
2026-03-22 21:54:16 +08:00
parent 0ae77ffbf8
commit d2a0648238
9 changed files with 11 additions and 11 deletions

View File

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

View File

@@ -24,7 +24,7 @@ class FlightQueryListViewModel : BasePageViewModel() {
val serviceType = MutableLiveData("") val serviceType = MutableLiveData("")
val addressTypeList = MutableLiveData(listOf(KeyValue("全部", ""))).apply { val addressTypeList = MutableLiveData(listOf(KeyValue("全部", ""))).apply {
DictUtils.getAreaTypeList { DictUtils.getCountryTypeList {
value = it value = it
} }
} }

View File

@@ -23,6 +23,7 @@ class IntImpPickUpDLVBean : Serializable {
var cashWeight: Double = 0.0 // 计费重量 var cashWeight: Double = 0.0 // 计费重量
var pkId: String = "" // 提货编号(提货单号) var pkId: String = "" // 提货编号(提货单号)
var location: String = "" // 库位 var location: String = "" // 库位
var locationInStore: String = "" // 入库库位
var chargeTime: String = "" // 缴费时间(提取时间) var chargeTime: String = "" // 缴费时间(提取时间)
var dlvTime: String = "" // 出库时间 var dlvTime: String = "" // 出库时间
var goods: String = "" // 品名 var goods: String = "" // 品名

View File

@@ -300,7 +300,7 @@ interface Api {
* 获取地区类型 * 获取地区类型
*/ */
@POST("typeCode/countryType") @POST("typeCode/countryType")
suspend fun getAreaTypeList(): DictListBean suspend fun getCountryTypeList(): DictListBean
/** /**
* 获取国家代码 * 获取国家代码

View File

@@ -457,14 +457,14 @@ object DictUtils {
/** /**
* 地区类型 * 地区类型
*/ */
fun getAreaTypeList( fun getCountryTypeList(
addAll: Boolean = true, addAll: Boolean = true,
checkedValue: String? = null, checkedValue: String? = null,
callBack: (List<KeyValue>) -> Unit callBack: (List<KeyValue>) -> Unit
) { ) {
launchCollect({ launchCollect({
NetApply.api NetApply.api
.getAreaTypeList() .getCountryTypeList()
}) { }) {
onSuccess = { onSuccess = {
handleCallBack(it, checkedValue, addAll, callBack) handleCallBack(it, checkedValue, addAll, callBack)

View File

@@ -106,12 +106,11 @@
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"
enable="@{true}" enable="@{false}"
hint='@{"请输入库位号"}'
title='@{"库位号"}' title='@{"库位号"}'
titleLength="@{5}" titleLength="@{5}"
type="@{DataLayoutType.INPUT}" type="@{DataLayoutType.INPUT}"
value='@={viewModel.location}' /> value='@{viewModel.location}' />
</LinearLayout> </LinearLayout>

View File

@@ -124,7 +124,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="@{bean.ref}" android:text="@{bean.locationMft}"
android:textColor="@color/text_normal" android:textColor="@color/text_normal"
android:textSize="16sp" /> android:textSize="16sp" />

View File

@@ -205,7 +205,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="@{bean.location}" android:text="@{bean.locationInStore}"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </androidx.appcompat.widget.LinearLayoutCompat>

View File

@@ -26,7 +26,7 @@ class HbQueryListViewModel : BasePageViewModel() {
val serviceType = MutableLiveData("") val serviceType = MutableLiveData("")
val addressTypeList = MutableLiveData(listOf(KeyValue("全部", ""))).apply { val addressTypeList = MutableLiveData(listOf(KeyValue("全部", ""))).apply {
DictUtils.getAreaTypeList { DictUtils.getCountryTypeList {
value = it value = it
} }
} }