feat: 开始组装
This commit is contained in:
@@ -9,4 +9,10 @@ class AssembleWaybillBean {
|
||||
var weight: String = "" // 重量
|
||||
var flight: String = "" // 配载航班
|
||||
var isMarked: Boolean = false // 是否标记(红色显示)
|
||||
var fno: String = ""
|
||||
var fdate: String = ""
|
||||
|
||||
val fLightInfo: String
|
||||
get() = "$fno/${fdate.replace("-", "")}"
|
||||
|
||||
}
|
||||
|
||||
@@ -130,6 +130,8 @@ class IntExpAssembleStartViewModel : BaseViewModel() {
|
||||
pieces = warehouse.pc.toString()
|
||||
weight = String.format("%.1f", warehouse.weight)
|
||||
flight = warehouse.flight
|
||||
fno = warehouse.fno
|
||||
fdate = warehouse.fdate
|
||||
isMarked = false
|
||||
}
|
||||
}.toMutableList()
|
||||
@@ -164,6 +166,8 @@ class IntExpAssembleStartViewModel : BaseViewModel() {
|
||||
pieces = warehouse.pc.toString()
|
||||
weight = String.format("%.1f", warehouse.weight)
|
||||
flight = warehouse.flight
|
||||
fno = warehouse.fno
|
||||
fdate = warehouse.fdate
|
||||
isMarked = false
|
||||
}
|
||||
}.toMutableList()
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1.2"
|
||||
android:gravity="center"
|
||||
android:text="@{bean.flight}"
|
||||
android:text="@{bean.fLightInfo}"
|
||||
android:textColor="@{bean.isMarked ? @color/text_red : @color/text_normal}"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user