feat: 国际出港 板箱过磅 fix

This commit is contained in:
2026-01-17 18:53:38 +08:00
parent 9a327975bd
commit 672c8308b8
2 changed files with 15 additions and 20 deletions

View File

@@ -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)
}
}
}
}
/**