feat: 国际出港开始组装板型下拉对接后端板型接口

进入页面调用 /typeCode/bordType 取全量板型,选中待组装运单后
以航班号前两位作 carrier 重新加载覆盖下拉数据源;后端 carrier
必填,无承运人时传空串。替换原 BOARDTYPE 字典实现。

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-11 16:20:08 +08:00
parent 6d4908da1a
commit 07ea8853f3
3 changed files with 20 additions and 7 deletions

View File

@@ -271,6 +271,9 @@ class IntExpAssembleStartViewModel : BaseViewModel() {
assembleWeight = previousAssembleWeight
operator = previousOperator // 从operator LiveData获取的值
}
// 按该运单航班号前两位(承运人)重新加载板型选项,覆盖下拉数据源
loadBoardTypeList(selectedWaybill.fno.trim().take(2))
}
// 刷新列表
@@ -415,10 +418,11 @@ class IntExpAssembleStartViewModel : BaseViewModel() {
/**
* 加载板型选项列表(字典)
* 加载板型选项列表
* @param carrier 承运人二字码(待组装运单航班号前两位);进入页面时不传,选中运单后按承运人重新加载并覆盖数据源
*/
fun loadBoardTypeList() {
DictUtils.getBoardTypeList { boardTypeList.value = it }
fun loadBoardTypeList(carrier: String? = null) {
DictUtils.getBoardTypeList(carrier) { boardTypeList.value = it }
}
/**