feat: ULD 管理所属航司下拉接入接口

列表页/编辑页所属航司下拉由 mock 改为接口数据源 POST /typeCode/intCarrier,
编辑页按已选航司置顶回填

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-02 18:29:26 +08:00
parent 794c873173
commit 657be255b0
4 changed files with 51 additions and 22 deletions

View File

@@ -320,6 +320,12 @@ interface Api {
@POST("typeCode/communicateType")
suspend fun getCommunicateTypeList(): DictListBean
/**
* 获取所属航司列表(国际)
*/
@POST("typeCode/intCarrier")
suspend fun getIntCarrierList(): DictListBean
/**
* 查询平板车信息
*/

View File

@@ -84,6 +84,24 @@ object DictUtils {
KeyValue("出港库存至库区", "3"),
)
/**
* 获取所属航司列表(国际)
*/
fun getIntCarrierList(
addAll: Boolean = false,
checkedValue: String? = null,
callBack: (List<KeyValue>) -> Unit
) {
launchCollect({
NetApply.api
.getIntCarrierList()
}) {
onSuccess = {
handleCallBack(it, checkedValue, addAll, callBack)
}
}
}
/**
* 获取代理列表
*/