feat: 国际出港板箱过磅新增耗材重量并计入货重
- 过磅表单新增只读的耗材重量,数据随列表项 Bean 带入,扫码新增时 取 queryUsingUldByUld 返回的 consumeWeight - 货重公式由「装机重 - ULD自重」改为「装机重 - ULD自重 - 耗材自重」 - queryUsingUldByUld 返回后补触发重量计算,此前该接口异步返回时 耗材重量不会参与计算 - 表单保持每行三列:第三列自上而下为总重、装机重、耗材重量、货重, 目的港单独占一行三分之一宽,备注换行整行撑满 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -259,7 +259,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第5行:架子车自重、ULD自重、货重(绿色只读) -->
|
||||
<!-- 第5行:架子车自重、ULD自重、耗材重量(只读) -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -289,10 +289,10 @@
|
||||
|
||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||
enable="@{false}"
|
||||
title='@{"货重"}'
|
||||
title='@{"耗材重量"}'
|
||||
titleLength="@{5}"
|
||||
type="@{DataLayoutType.INPUT}"
|
||||
value='@{viewModel.cargoWeight}'
|
||||
value='@{viewModel.consumeWeight}'
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
@@ -300,7 +300,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第6行:航班日期、航班号、目的港 -->
|
||||
<!-- 第6行:航班日期、航班号、货重(绿色只读) -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -331,11 +331,11 @@
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||
hint='@{"请输入目的港"}'
|
||||
title='@{"目的港"}'
|
||||
enable="@{false}"
|
||||
title='@{"货重"}'
|
||||
titleLength="@{5}"
|
||||
type="@{DataLayoutType.INPUT}"
|
||||
value='@={viewModel.dataBean.fdest}'
|
||||
value='@{viewModel.cargoWeight}'
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
@@ -343,7 +343,32 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第7行:备注 -->
|
||||
<!-- 第7行:目的港(占 1/3 宽度) -->
|
||||
<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.fdest}'
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<!-- 占位:保持目的港与上方各行第一列同宽 -->
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第8行:备注(整行) -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user