feat: opt 国际出港 出港运抵 item

This commit is contained in:
2025-12-15 09:58:36 +08:00
parent fa79b7d9f3
commit 9129ccfb88
2 changed files with 35 additions and 11 deletions

View File

@@ -116,6 +116,30 @@ data class GjcMaWb(
var isSelected: Boolean
get() = checked.get()
set(value) = checked.set(value)
// ==================== 状态转换扩展属性 ====================
/**
* 计重状态中文
* 0-待收运1-已计重2-计重中
*/
val checkInText: String
get() = when (checkIn) {
"0" -> "待收运"
"1" -> "已计重"
"2" -> "计重中"
else -> checkIn ?: ""
}
/**
* 运抵状态中文
* 0-正常运抵1-提前运抵
*/
val arriveFlagText: String
get() = when (arriveFlag) {
"0" -> "正常运抵"
"1" -> "提前运抵"
else -> arriveFlag ?: ""
}
}
/**