refactor: 国际出港移库详情/编辑按最新接口文档重新对接

- 新增 GjcMoveDetail Bean 对应 /IntExpMove/detail 返回与 /IntExpMove/update 请求体
- 承运人改取 by、运单类型改取 awbTypeName,去掉文档中不存在的航班字段,新增移交状态展示
- 保存时回传完整详情对象,仅替换备注与 pic/originalPic/picNumber
- 列表 Bean 随 Intent 传入,回填 detail 返回为空的承运人、出运路径等展示字段

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-11 14:55:54 +08:00
parent 85fd66b005
commit efe7a1d2a9
6 changed files with 106 additions and 46 deletions

View File

@@ -0,0 +1,29 @@
package com.lukouguoji.module_base.bean
/**
* 国际出港移库详情数据模型
* 对应接口:/IntExpMove/detail 返回的 data/IntExpMove/update 的请求体
*/
data class GjcMoveDetail(
var maWbId: Long? = null, // GJC_MAWB.MAWBID
var wbNo: String? = null, // 运单号
var pc: Long? = null, // 件数
var weight: Double? = null, // 重量
var by: String? = null, // 承运人1
var awbTypeName: String? = null, // 运单类型(中文)
var range: String? = null, // 出运路径
var spCode: String? = null, // 特码
var agentCode: String? = null, // 代理人
var moveState: Int? = null, // 交接状态0 未交接1 已交接
var goods: String? = null, // 品名
var remark: String? = null, // 备注
var pic: String? = null, // 交接图片缩略图路径(逗号分隔)
var originalPic: String? = null, // 交接图片原图路径(逗号分隔)
var picNumber: String? = null // 交接图片数量
) {
/**
* 移交状态中文(与列表项文案一致)
*/
val moveStateText: String
get() = if (moveState == 1) "已移交" else "未移交"
}

View File

@@ -37,6 +37,7 @@ import com.lukouguoji.module_base.bean.GjcHandoverSheetResponse
import com.lukouguoji.module_base.bean.GjcInspectionBean
import com.lukouguoji.module_base.bean.GjcMaWb
import com.lukouguoji.module_base.bean.GjcMove
import com.lukouguoji.module_base.bean.GjcMoveDetail
import com.lukouguoji.module_base.bean.GjcUldUseBean
import com.lukouguoji.module_base.bean.GjcWarehouse
import com.lukouguoji.module_base.bean.GjcWaybillBean
@@ -897,7 +898,7 @@ interface Api {
* 接口路径: /IntExpMove/detail
*/
@POST("IntExpMove/detail")
suspend fun getIntExpMoveDetail(@Query("maWbId") maWbId: Long): BaseResultBean<GjcMaWb>
suspend fun getIntExpMoveDetail(@Query("maWbId") maWbId: Long): BaseResultBean<GjcMoveDetail>
/**
* 国际出港移库-编辑(仅更新备注与交接图片)