feat: 国际出港 开始计重 通道
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.lukouguoji.module_base.bean
|
||||
|
||||
import dev.utils.app.info.KeyValue
|
||||
|
||||
/**
|
||||
* 字典-Location接口返回数据Bean
|
||||
*/
|
||||
data class DictLocationBean(
|
||||
var code: String = "", // 编码值 (例如: "18")
|
||||
var name: String = "" // 显示名称 (例如: "国际出港通道01")
|
||||
) {
|
||||
/**
|
||||
* 转换为KeyValue
|
||||
* KeyValue(显示名称, 编码值)
|
||||
*/
|
||||
fun toKeyValue() = KeyValue(name, code)
|
||||
}
|
||||
@@ -13,6 +13,7 @@ import com.lukouguoji.module_base.bean.CarOrUldBean
|
||||
import com.lukouguoji.module_base.bean.DiBangChannelBean
|
||||
import com.lukouguoji.module_base.bean.DictIdValueBean
|
||||
import com.lukouguoji.module_base.bean.DictListBean
|
||||
import com.lukouguoji.module_base.bean.DictLocationBean
|
||||
import com.lukouguoji.module_base.bean.DocumentHandoverBean
|
||||
import com.lukouguoji.module_base.bean.FlatcarBean
|
||||
import com.lukouguoji.module_base.bean.FlightBean
|
||||
@@ -150,6 +151,11 @@ interface Api {
|
||||
@GET("typeCode/searchDateType")
|
||||
suspend fun getDictList(@Query("code") code: String): BaseResultBean<List<DictIdValueBean>>
|
||||
|
||||
/**
|
||||
* 获取字典列表 - location接口
|
||||
*/
|
||||
@GET("typeCode/locationByCode")
|
||||
suspend fun getDictListByLocation(@Query("code") code: String): BaseResultBean<List<DictLocationBean>>
|
||||
|
||||
/**
|
||||
* 获取字典列表----根据用户角色选择转运类型
|
||||
|
||||
@@ -409,7 +409,7 @@ object DictUtils {
|
||||
) {
|
||||
launchCollect({
|
||||
NetApply.api
|
||||
.getDictList("GJCPASSAGEWAY")
|
||||
.getDictListByLocation("GJCPASSAGEWAY")
|
||||
}) {
|
||||
onSuccess = {
|
||||
callBack((it.data ?: emptyList()).map { b -> b.toKeyValue() })
|
||||
|
||||
Reference in New Issue
Block a user