feat: opt 开始装载
This commit is contained in:
@@ -12,4 +12,5 @@ class UldInfoBean {
|
|||||||
var totalPieces: String = "" // 总件数
|
var totalPieces: String = "" // 总件数
|
||||||
var totalWeight: String = "" // 总重量
|
var totalWeight: String = "" // 总重量
|
||||||
var status: String = "" // 状态(旧字段,保留兼容)
|
var status: String = "" // 状态(旧字段,保留兼容)
|
||||||
|
var useId: Long = 0 // ULD使用ID(来自getUld接口)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -351,6 +351,8 @@ class IntExpAssembleStartViewModel : BaseViewModel() {
|
|||||||
if (materialWeight.isEmpty()) {
|
if (materialWeight.isEmpty()) {
|
||||||
materialWeight = uldBean.consumeWeight?.toString() ?: ""
|
materialWeight = uldBean.consumeWeight?.toString() ?: ""
|
||||||
}
|
}
|
||||||
|
// 保存useId(用于装货/卸货接口)
|
||||||
|
useId = uldBean.useId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -442,7 +444,8 @@ class IntExpAssembleStartViewModel : BaseViewModel() {
|
|||||||
"故障" -> "1"
|
"故障" -> "1"
|
||||||
else -> ""
|
else -> ""
|
||||||
},
|
},
|
||||||
"loadArea" to loadArea
|
"loadArea" to loadArea,
|
||||||
|
"useId" to uldInfo.value?.useId // 添加useId(来自getUld接口)
|
||||||
)
|
)
|
||||||
|
|
||||||
// 4. 构建wbInfo(运单信息)
|
// 4. 构建wbInfo(运单信息)
|
||||||
|
|||||||
Reference in New Issue
Block a user