This commit is contained in:
2025-11-27 18:07:14 +08:00
parent d69f964464
commit f797767919
4 changed files with 64 additions and 100 deletions

View File

@@ -4,10 +4,12 @@ package com.lukouguoji.module_base.bean
* ULD信息Bean
*/
class UldInfoBean {
var uldNo: String = "" // ULD编号
var planeType: String = "" // 机型
var weightLimit: String = "" // 限重
var totalPieces: String = "" // 总件数
var totalWeight: String = "" // 总重量
var status: String = "" // 状态
var uldNo: String = "" // ULD编号
var materialWeight: String = "" // 耗材重量
var uldStatus: String = "" // ULD状态
var planeType: String = "" // 机型
var weightLimit: String = "" // 限重
var totalPieces: String = "" // 总件数
var totalWeight: String = "" // 总重量
var status: String = "" // 状态(旧字段,保留兼容)
}

View File

@@ -4,10 +4,15 @@ package com.lukouguoji.module_base.bean
* 运单信息Bean
*/
class WaybillInfoBean {
var waybillNo: String = "" // 运单号
var pieces: String = "" // 件数
var weight: String = "" // 重量
var destination: String = "" // 目的港
var specialCode: String = "" // 特码
var goodsName: String = "" // 品名
var waybillNo: String = "" // 运单号
var waybillPieces: String = "" // 运单件数
var waybillWeight: String = "" // 运单重量
var assembleCount: String = "" // 组装件数
var assembleWeight: String = "" // 组装重量
var operator: String = "" // 操作人
var pieces: String = "" // 件数(旧字段,保留兼容)
var weight: String = "" // 重量(旧字段,保留兼容)
var destination: String = "" // 目的港
var specialCode: String = "" // 特码
var goodsName: String = "" // 品名
}

View File

@@ -34,22 +34,19 @@ class IntExpAssembleStartViewModel : BaseViewModel() {
// ========== ULD信息 ==========
val uldInfo = MutableLiveData(UldInfoBean().apply {
uldNo = "AKE12345HK"
planeType = "B777"
weightLimit = "1500"
totalPieces = "120"
totalWeight = "2450.5"
status = "进行中"
uldNo = "PMC12345MU"
materialWeight = ""
uldStatus = "正常"
})
// ========== 运单信息 ==========
val waybillInfo = MutableLiveData(WaybillInfoBean().apply {
waybillNo = "99912345678"
pieces = "25"
weight = "350.5"
destination = "LAX"
specialCode = "GEN"
goodsName = "ELECTRONICS"
waybillNo = "78112345678"
waybillPieces = "100"
waybillWeight = "200"
assembleCount = ""
assembleWeight = ""
operator = "张三"
})
/**

View File

@@ -150,21 +150,21 @@
android:layout_marginBottom="16dp"
android:background="@drawable/bg_white_radius_8"
android:orientation="vertical"
android:padding="16dp">
android:padding="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ULD信息"
android:textColor="@color/text_normal"
android:textSize="16sp"
android:textSize="14sp"
android:textStyle="bold" />
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
app:dividerColor="@color/line" />
<!-- ULD信息字段 - 使用PadDataLayoutNew横向排列 -->
@@ -188,12 +188,12 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"机型"}'
enable="@{true}"
required="@{true}"
title='@{"耗材重量"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.uldInfo.planeType}" />
value="@={viewModel.uldInfo.materialWeight}" />
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
@@ -201,50 +201,10 @@
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"限重"}'
title='@{"ULD状态"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.uldInfo.weightLimit}" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:orientation="horizontal">
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"总件数:"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.uldInfo.totalPieces}" />
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"总重量:"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.uldInfo.totalWeight}" />
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"状态:"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.uldInfo.status}" />
value="@={viewModel.uldInfo.uldStatus}" />
</LinearLayout>
</LinearLayout>
@@ -254,21 +214,21 @@
android:layout_height="wrap_content"
android:background="@drawable/bg_white_radius_8"
android:orientation="vertical"
android:padding="16dp">
android:padding="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="运单信息"
android:textColor="@color/text_normal"
android:textSize="16sp"
android:textSize="14sp"
android:textStyle="bold" />
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
app:dividerColor="@color/line" />
<!-- 运单信息字段 -->
@@ -294,10 +254,10 @@
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"件数:"}'
title='@{"运单件数:"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.waybillInfo.pieces}" />
value="@={viewModel.waybillInfo.waybillPieces}" />
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
@@ -305,10 +265,10 @@
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"重量:"}'
title='@{"运单重量:"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.waybillInfo.weight}" />
value="@={viewModel.waybillInfo.waybillWeight}" />
</LinearLayout>
<LinearLayout
@@ -321,12 +281,23 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
enable="@{false}"
enable="@{true}"
required="@{false}"
title='@{"目的港"}'
title='@{"组装件数"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.waybillInfo.destination}" />
value="@={viewModel.waybillInfo.assembleCount}" />
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
enable="@{true}"
required="@{true}"
title='@{"组装重量:"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.waybillInfo.assembleWeight}" />
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
@@ -334,21 +305,10 @@
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"特码"}'
title='@{"操作人"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.waybillInfo.specialCode}" />
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
enable="@{false}"
required="@{false}"
title='@{"品名:"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={viewModel.waybillInfo.goodsName}" />
value="@={viewModel.waybillInfo.operator}" />
</LinearLayout>
@@ -356,9 +316,9 @@
<!-- 底部操作按钮 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_height="56dp"
android:gravity="center"
android:layout_marginTop="15dp"
android:layout_marginTop="8dp"
android:orientation="horizontal"
android:paddingHorizontal="16dp">