feat: fix issues
This commit is contained in:
@@ -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
|
||||
@@ -24,7 +24,7 @@ class FlightQueryListViewModel : BasePageViewModel() {
|
||||
val serviceType = MutableLiveData("")
|
||||
|
||||
val addressTypeList = MutableLiveData(listOf(KeyValue("全部", ""))).apply {
|
||||
DictUtils.getAreaTypeList {
|
||||
DictUtils.getCountryTypeList {
|
||||
value = it
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ class IntImpPickUpDLVBean : Serializable {
|
||||
var cashWeight: Double = 0.0 // 计费重量
|
||||
var pkId: String = "" // 提货编号(提货单号)
|
||||
var location: String = "" // 库位
|
||||
var locationInStore: String = "" // 入库库位
|
||||
var chargeTime: String = "" // 缴费时间(提取时间)
|
||||
var dlvTime: String = "" // 出库时间
|
||||
var goods: String = "" // 品名
|
||||
|
||||
@@ -300,7 +300,7 @@ interface Api {
|
||||
* 获取地区类型
|
||||
*/
|
||||
@POST("typeCode/countryType")
|
||||
suspend fun getAreaTypeList(): DictListBean
|
||||
suspend fun getCountryTypeList(): DictListBean
|
||||
|
||||
/**
|
||||
* 获取国家代码
|
||||
|
||||
@@ -457,14 +457,14 @@ object DictUtils {
|
||||
/**
|
||||
* 地区类型
|
||||
*/
|
||||
fun getAreaTypeList(
|
||||
fun getCountryTypeList(
|
||||
addAll: Boolean = true,
|
||||
checkedValue: String? = null,
|
||||
callBack: (List<KeyValue>) -> Unit
|
||||
) {
|
||||
launchCollect({
|
||||
NetApply.api
|
||||
.getAreaTypeList()
|
||||
.getCountryTypeList()
|
||||
}) {
|
||||
onSuccess = {
|
||||
handleCallBack(it, checkedValue, addAll, callBack)
|
||||
|
||||
@@ -106,12 +106,11 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
hint='@{"请输入库位号"}'
|
||||
enable="@{false}"
|
||||
title='@{"库位号"}'
|
||||
titleLength="@{5}"
|
||||
type="@{DataLayoutType.INPUT}"
|
||||
value='@={viewModel.location}' />
|
||||
value='@{viewModel.location}' />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{bean.ref}"
|
||||
android:text="@{bean.locationMft}"
|
||||
android:textColor="@color/text_normal"
|
||||
android:textSize="16sp" />
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{bean.location}"
|
||||
android:text="@{bean.locationInStore}"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
@@ -26,7 +26,7 @@ class HbQueryListViewModel : BasePageViewModel() {
|
||||
val serviceType = MutableLiveData("")
|
||||
|
||||
val addressTypeList = MutableLiveData(listOf(KeyValue("全部", ""))).apply {
|
||||
DictUtils.getAreaTypeList {
|
||||
DictUtils.getCountryTypeList {
|
||||
value = it
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user