feat: 国际出港装载列表项加航程及始发站/目的站筛选

列表项改为5列并新增航程(range 为空时回退始发港-目的港拼接);
搜索区参考电报生成接口,填航班日期+号联动查询,始发站可下拉、
目的站自动填充只读,dep/dest 作为筛选传给列表接口。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-20 12:19:51 +08:00
parent 608f1af1f4
commit 3fedef27a7
5 changed files with 172 additions and 28 deletions

View File

@@ -9,6 +9,8 @@ data class GjcCheckInPage(
var fno: String? = null, // 航班号
var wbNo: String? = null, // 运单号
var hno: String? = null, // 分单号
var dep: String? = null, // 始发站
var dest: String? = null, // 目的站
var pageNum: Int = 1, // 页码
var pageSize: Int = 10 // 每页条数
)

View File

@@ -10,6 +10,8 @@ class GjcExportLoad {
var activeId: String = "" // 运单活跃号
var by1: String = "" // 第一承运人
var dep: String = "" // 始发港
var dest: String = "" // 目的港
var range: String = "" // 航程
var fdate: String = "" // 申报航班日期
var fid: String = "" // 航班主键id
var fno: String = "" // 申报航班号
@@ -47,4 +49,14 @@ class GjcExportLoad {
fun getFullWaybillNo(): String {
return if (prefix.isNotEmpty()) "$prefix$no" else no
}
/**
* 航程
* 优先取 range为空时用 始发港-目的港 拼接
*/
val rangeText: String
get() {
if (range.isNotBlank()) return range
return if (dep.isNotEmpty() && dest.isNotEmpty()) "$dep-$dest" else dep + dest
}
}