feat: opt 出港计重 计重明细 update
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user