feat: opt 出港计重 计重明细 update

This commit is contained in:
2025-12-16 09:36:36 +08:00
parent d1ed050c76
commit b4238a04d0
5 changed files with 60 additions and 26 deletions

View File

@@ -108,6 +108,15 @@ class GjcWeighingRecordDetailsViewModel : BaseViewModel() {
launchLoadingCollect({ NetApply.api.getGjcCheckInRecordList(params) }) {
onSuccess = { result ->
val list = result.data ?: emptyList()
// 为每个记录设置数据变化回调
list.forEach { record ->
record.onDataChanged = {
// 数据变化时重新计算统计
calculateStatistics()
}
}
recordList.value = list
if (list.isEmpty()) {