feat: ui opt

This commit is contained in:
2025-11-27 11:28:50 +08:00
parent 7e80d0e789
commit bea8a8c8c8
5 changed files with 236 additions and 277 deletions

View File

@@ -18,4 +18,18 @@ data class GjcCheckInRecord(
var weight: Double = 0.0, // 运抵重量
var volume: Double = 0.0, // 运抵体积
var whId: Long = 0 // GJC_WAREHOUSE.ID
)
) {
// 件数的字符串表示(用于双向绑定)
var pcStr: String
get() = if (pc == 0L) "" else pc.toString()
set(value) {
pc = value.toLongOrNull() ?: 0L
}
// 重量的字符串表示(用于双向绑定)
var weightStr: String
get() = if (weight == 0.0) "" else weight.toString()
set(value) {
weight = value.toDoubleOrNull() ?: 0.0
}
}

View File

@@ -119,6 +119,12 @@ class PadDataLayoutNew : FrameLayout {
loadImage(iv, value)
}
var inputType: Int = android.text.InputType.TYPE_CLASS_TEXT
set(value) {
field = value
et.inputType = value
}
/**
* 刷新事件回调
*/