feat(出港移库): 对接后端新增出参 flight/businessName/opUserName(问题清单 #1~#3)

- 卡片航班信息绑 flight(航班日期/航班号),不再占位
- 详情页业务类型绑 businessName、移库人绑 opUserName(均回退编码)
- 内网实测:已移库运单 opId/opdate/opUserName 均已回填

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
YANG JIANKUAN
2026-10-09 03:14:04 -07:00
parent 18e438550c
commit f6b3842882
3 changed files with 17 additions and 6 deletions

View File

@@ -44,6 +44,9 @@ data class GjcMove(
var likeNo: String = "", // 部分运单号no(模糊查询)
var range: String = "",
var flight: String = "", // 航班信息(航班日期/航班号,如 20260924/MU2222)
var businessName: String = "", // 业务类型名称(中)
var opUserName: String = "", // 操作人(移库人)姓名
// UI扩展字段 - 使用ObservableBoolean实现自动UI更新
val checked: ObservableBoolean = ObservableBoolean(false)
@@ -67,6 +70,14 @@ data class GjcMove(
val goodsName: String
get() = goodsCn.ifEmpty { goods }
/** 业务类型:优先中文名称,为空回退编码 */
val businessDisplay: String
get() = businessName.ifEmpty { businessType }
/** 移库人:优先姓名,为空回退操作人ID */
val opUserDisplay: String
get() = opUserName.ifEmpty { opId }
/**
* 详情页字段统一空值占位。
* 接口对 businessType / opdate / opId 等字段常返回 null,