feat: 国际出港开始组装运单列表首次装货后显示剩余/总数

首次装货成功前件数、重量列显示总数;成功后表头切换为
「剩余件数/总件数」「剩余重量/总重量」,剩余值由 pc 减
checkInPc、weight 减 checkInWeight 得出。三处接口数据转
Bean 的重复代码合并为扩展函数。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-08 20:43:55 +08:00
parent 6b2006fdb7
commit 7a09bbbeab
4 changed files with 60 additions and 40 deletions

View File

@@ -190,7 +190,7 @@
android:layout_width="120dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="件数"
android:text='@{viewModel.hasLoadedOnce ? "剩余件数/总件数" : "件数"}'
android:textColor="@color/text_normal"
android:textSize="13sp" />
@@ -199,7 +199,7 @@
android:layout_width="120dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="重量"
android:text='@{viewModel.hasLoadedOnce ? "剩余重量/总重量" : "重量"}'
android:textColor="@color/text_normal"
android:textSize="13sp" />

View File

@@ -55,7 +55,7 @@
android:layout_width="120dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@{bean.pieces}"
android:text="@{bean.piecesDisplay}"
android:textColor="@{bean.isMarked ? @color/text_red : @color/text_normal}"
android:textSize="14sp" />
@@ -64,7 +64,7 @@
android:layout_width="120dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@{bean.weight}"
android:text="@{bean.weightDisplay}"
android:textColor="@{bean.isMarked ? @color/text_red : @color/text_normal}"
android:textSize="14sp" />