feat: 国际出港 板箱过磅 fix
This commit is contained in:
@@ -205,11 +205,17 @@ class GjcBoxWeighingAddViewModel : BaseViewModel() {
|
||||
* 加载探板收口列表
|
||||
*/
|
||||
private fun loadPiCloseList() {
|
||||
// 探板收口选项(是/否)
|
||||
piCloseList.value = listOf(
|
||||
KeyValue("1", "是"),
|
||||
KeyValue("0", "否")
|
||||
)
|
||||
launchCollect({
|
||||
NetApply.api.getDictList("PICLOSE")
|
||||
}) {
|
||||
onSuccess = {
|
||||
// 将 DictIdValueBean 转换为 KeyValue
|
||||
// 显示和提交都使用 value 字段
|
||||
piCloseList.value = (it.data ?: emptyList()).map { b ->
|
||||
KeyValue(b.value, b.value)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user