feat: 国际进港舱单列表 REF 绿色高亮及装机单库位号字段修正
- 舱单列表项 REF=1 时显示浅绿色背景,展开按钮同步变为黑色 - 装机单列表库位号取值改为 locationTally 字段 - GjjManifest 新增 locationTally 字段 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,8 @@ data class GjjManifest(
|
|||||||
var splitFlag: String = "", // 分批标志
|
var splitFlag: String = "", // 分批标志
|
||||||
var subCode: String = "", // 子代码
|
var subCode: String = "", // 子代码
|
||||||
var unNumber: String = "", // 危险品编号
|
var unNumber: String = "", // 危险品编号
|
||||||
var activeId: Long = 0 // 活动ID
|
var activeId: Long = 0, // 活动ID
|
||||||
|
var locationTally: String = "" // 理货库位号
|
||||||
) : Serializable {
|
) : Serializable {
|
||||||
// 分单列表
|
// 分单列表
|
||||||
var haWbList: List<GjjHaWb>? = null
|
var haWbList: List<GjjHaWb>? = null
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<corners android:radius="8dp" />
|
||||||
|
<solid android:color="#A5D6A7" />
|
||||||
|
</shape>
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.lukouguoji.gjj.holder
|
package com.lukouguoji.gjj.holder
|
||||||
|
|
||||||
|
import android.graphics.Color
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import com.lukouguoji.gjj.R
|
import com.lukouguoji.gjj.R
|
||||||
import com.lukouguoji.gjj.databinding.ItemIntImpManifestBinding
|
import com.lukouguoji.gjj.databinding.ItemIntImpManifestBinding
|
||||||
@@ -43,6 +44,13 @@ class IntImpManifestViewHolder(view: View) :
|
|||||||
clickListener?.onItemClick(position, 102) // 102=删除
|
clickListener?.onItemClick(position, 102) // 102=删除
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 展开按钮颜色:绿色背景时黑色,否则保持原色
|
||||||
|
if (bean.ref == "1") {
|
||||||
|
binding.ivShow.setColorFilter(Color.BLACK)
|
||||||
|
} else {
|
||||||
|
binding.ivShow.clearColorFilter()
|
||||||
|
}
|
||||||
|
|
||||||
// 展开按钮点击事件 - 先加载分单数据,再切换展开状态
|
// 展开按钮点击事件 - 先加载分单数据,再切换展开状态
|
||||||
binding.ivShow.setOnClickListener {
|
binding.ivShow.setOnClickListener {
|
||||||
if (!bean.showMore.get() && bean.haWbList.isNullOrEmpty()) {
|
if (!bean.showMore.get() && bean.haWbList.isNullOrEmpty()) {
|
||||||
|
|||||||
@@ -259,7 +259,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{bean.location}"
|
android:text="@{bean.locationTally}"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_white_radius_8"
|
android:background="@{`1`.equals(bean.ref) ? @drawable/bg_light_green_radius_8 : @drawable/bg_white_radius_8}"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<!-- 主内容区 -->
|
<!-- 主内容区 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user