feat: 国际出港出库交接新增装机状态显示与允许装机操作
列表项新增「装机状态」列,依据分页接口 allowLoad 字段展示, 允许装机绿色、不允许红色,并重新分配列权重避免长字段换行。 底部新增「允许装机」按钮,支持多选后批量调用允许装机接口。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,19 @@ class GjcUldUseBean : Serializable {
|
||||
|
||||
var loadArea: String = "" // 组装区
|
||||
var pc: Long = 0 // 组装件数
|
||||
var allowLoad: String = "" // 允许装机(0:不允许;1:允许)
|
||||
|
||||
// 是否允许装机
|
||||
val isAllowLoad: Boolean
|
||||
get() = allowLoad == "1"
|
||||
|
||||
// 装机状态文本
|
||||
val allowLoadText: String
|
||||
get() = when (allowLoad) {
|
||||
"1" -> "允许装机"
|
||||
"0" -> "不允许装机"
|
||||
else -> ""
|
||||
}
|
||||
var fillWeightFlag: String = "" // 回填状态:0-未回填,1-部分回填,2-已回填
|
||||
|
||||
// 回填状态文本
|
||||
|
||||
@@ -738,6 +738,14 @@ interface Api {
|
||||
@POST("IntExpOutHandover/waitingTrans")
|
||||
suspend fun waitingTrans(@Body data: RequestBody): BaseResultBean<String>
|
||||
|
||||
/**
|
||||
* 国际出港出库交接-允许装机
|
||||
* 接口路径: /IntExpOutHandover/allow
|
||||
* @param data 请求参数:选中的ULD列表(GjcUldUseBean 数组)
|
||||
*/
|
||||
@POST("IntExpOutHandover/allow")
|
||||
suspend fun allowLoading(@Body data: RequestBody): BaseResultBean<Boolean>
|
||||
|
||||
/**
|
||||
* 国际出港-出港装载 分页查询
|
||||
* 接口路径: /IntExpLoad/pageQuery
|
||||
|
||||
Reference in New Issue
Block a user