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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
titleLength="@{5}"
|
||||
type="@{DataLayoutType.SPINNER}"
|
||||
value='@={viewModel.channel}'
|
||||
required="@{true}"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
@@ -342,33 +343,21 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第7行:件数、备注、空 -->
|
||||
<!-- 第7行:备注 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||
hint='@{"请输入件数"}'
|
||||
title='@{"件数"}'
|
||||
titleLength="@{5}"
|
||||
type="@{DataLayoutType.INPUT}"
|
||||
value='@={viewModel.dataBean.pieces}'
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||
hint='@{"请输入备注"}'
|
||||
title='@{"备注"}'
|
||||
titleLength="@{5}"
|
||||
type="@{DataLayoutType.INPUT}"
|
||||
value='@={viewModel.dataBean.remark}'
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_weight="2" />
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user