fix(gjc): 出港移库编辑页手机卡片按原型重做样式
- 主信息卡去掉蓝色表头,改为白底 + 左侧 3dp 蓝色装饰条(clipToOutline 随圆角裁切) - 移库信息 / 交接图片 / 补充信息三张分区卡:白底深色标题 + 分割线,替代彩色表头 - 字号、字重、颜色、圆角、描边按「移库编辑」HTML 原型逐项对齐 - 备注行改为本页自有输入行,去掉下划线 - 卡片阴影改用原型的蓝灰半透明色,容器 clipToPadding=false,避免阴影发脏与被截断 只改本页手机布局:页面专用色值与 drawable 以 move_edit_ 前缀放在 module_gjc, 公共颜色、组件与平板布局均未改动。 Refs: 禅道 Bug #632 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,9 @@ class IntExpMoveEditActivity :
|
|||||||
|
|
||||||
binding.viewModel = viewModel
|
binding.viewModel = viewModel
|
||||||
|
|
||||||
|
// 手机主信息卡:按圆角裁切子 View,让左侧蓝色装饰条贴合卡片圆角(平板布局无该 id)
|
||||||
|
binding.cardWaybill?.clipToOutline = true
|
||||||
|
|
||||||
// 绑定图片 RecyclerView 引用
|
// 绑定图片 RecyclerView 引用
|
||||||
viewModel.rvImages = binding.rvImages
|
viewModel.rvImages = binding.rvImages
|
||||||
|
|
||||||
|
|||||||
10
module_gjc/src/main/res/drawable/bg_move_edit_card.xml
Normal file
10
module_gjc/src/main/res/drawable/bg_move_edit_card.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- 出港移库编辑页(手机)分区卡片:白底 + 12dp 圆角 + 1dp 描边 -->
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="@android:color/white" />
|
||||||
|
<corners android:radius="12dp" />
|
||||||
|
<stroke
|
||||||
|
android:width="1dp"
|
||||||
|
android:color="@color/move_edit_card_border" />
|
||||||
|
</shape>
|
||||||
10
module_gjc/src/main/res/drawable/bg_move_edit_card_main.xml
Normal file
10
module_gjc/src/main/res/drawable/bg_move_edit_card_main.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- 出港移库编辑页(手机)主信息卡:白底 + 12dp 圆角 + 1dp 描边;左侧装饰条由布局叠加,靠 clipToOutline 裁圆角 -->
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="@android:color/white" />
|
||||||
|
<corners android:radius="12dp" />
|
||||||
|
<stroke
|
||||||
|
android:width="1dp"
|
||||||
|
android:color="@color/move_edit_card_border_main" />
|
||||||
|
</shape>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- 出港移库编辑页(手机)移交状态圆点 -->
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="oval">
|
||||||
|
<solid android:color="@color/move_edit_dot_done" />
|
||||||
|
</shape>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- 出港移库编辑页(手机)移交状态圆点 -->
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="oval">
|
||||||
|
<solid android:color="@color/move_edit_dot_pending" />
|
||||||
|
</shape>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- 出港移库编辑页(手机)运单类型标签:红底 + 4dp 圆角 -->
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="@color/move_edit_tag_red" />
|
||||||
|
<corners android:radius="4dp" />
|
||||||
|
</shape>
|
||||||
@@ -5,17 +5,16 @@
|
|||||||
|
|
||||||
详情(DetailsPageType.Details):列表卡片「查看详情」进入,全部只读;
|
详情(DetailsPageType.Details):列表卡片「查看详情」进入,全部只读;
|
||||||
编辑(DetailsPageType.Modify):列表卡片「编辑」进入(对应平板侧滑「编辑」),仅备注与交接图片可改。
|
编辑(DetailsPageType.Modify):列表卡片「编辑」进入(对应平板侧滑「编辑」),仅备注与交接图片可改。
|
||||||
样式沿用设计稿 05_出港移库「运单详情」:蓝色表头卡片 + 两列字段网格;移库人/移库时间取列表数据(listBean)。
|
样式取自「移库编辑」HTML 原型:主信息卡左侧蓝色装饰条,分区卡白底表头 + 分割线,两列字段网格;移库人/移库时间取列表数据(listBean)。
|
||||||
-->
|
-->
|
||||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="com.lukouguoji.module_base.common.DetailsPageType" />
|
<import type="com.lukouguoji.module_base.common.DetailsPageType" />
|
||||||
|
|
||||||
<import type="com.lukouguoji.module_base.ui.weight.phone.PhoneFormRowType" />
|
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
@@ -38,150 +37,292 @@
|
|||||||
android:fillViewport="true"
|
android:fillViewport="true"
|
||||||
android:overScrollMode="never">
|
android:overScrollMode="never">
|
||||||
|
|
||||||
|
<!-- clipToPadding=false:卡片阴影要画进 16dp 内边距,否则在卡片左右边缘被裁齐 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:clipToPadding="false"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="16dp">
|
android:padding="16dp">
|
||||||
|
|
||||||
<!-- ==================== 卡片一:运单基本信息 ==================== -->
|
<!-- ==================== 卡片一:运单基本信息(白底 + 左侧蓝色装饰条,样式取自「移库编辑」原型) ==================== -->
|
||||||
|
<!-- 横向:左侧 3dp 装饰条(高度随内容)+ 内容;clipToOutline 由 Activity 设置,让装饰条随卡片圆角裁切。
|
||||||
|
卡片阴影:系统默认黑色短阴影会和描边叠成一圈脏边,改用原型的蓝灰半透明阴影色(API 28+ 生效) -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/card_waybill"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_phone_card"
|
android:background="@drawable/bg_move_edit_card_main"
|
||||||
|
android:elevation="6dp"
|
||||||
|
android:outlineAmbientShadowColor="@color/move_edit_shadow_main"
|
||||||
|
android:outlineSpotShadowColor="@color/move_edit_shadow_main"
|
||||||
|
tools:targetApi="28"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="3dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/move_edit_accent" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<!-- 蓝色表头:运单号 + 移交状态 -->
|
<!-- 表头:运单号 + 移交状态 -->
|
||||||
<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_phone_card_header_blue"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingHorizontal="16dp"
|
android:paddingVertical="12dp"
|
||||||
android:paddingVertical="12dp">
|
android:paddingStart="17dp"
|
||||||
|
android:paddingEnd="16dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:letterSpacing="0.04"
|
||||||
|
android:maxLines="1"
|
||||||
android:text="@{viewModel.dataBean.wbNo}"
|
android:text="@{viewModel.dataBean.wbNo}"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/move_edit_wb_no"
|
||||||
android:textSize="17sp"
|
android:textSize="19sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="8dp"
|
android:layout_width="8dp"
|
||||||
android:layout_height="8dp"
|
android:layout_height="8dp"
|
||||||
|
android:layout_marginStart="12dp"
|
||||||
android:layout_marginEnd="6dp"
|
android:layout_marginEnd="6dp"
|
||||||
android:background="@{viewModel.dataBean.moveState == 1 ? @drawable/bg_phone_dot_green : @drawable/bg_phone_dot_gray}" />
|
android:background="@{viewModel.dataBean.moveState == 1 ? @drawable/bg_move_edit_dot_done : @drawable/bg_move_edit_dot_pending}" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
android:text="@{viewModel.dataBean.moveStateText}"
|
android:text="@{viewModel.dataBean.moveStateText}"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/move_edit_status"
|
||||||
android:textSize="14sp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:background="@color/move_edit_card_border" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="16dp">
|
android:paddingStart="17dp"
|
||||||
|
android:paddingTop="16dp"
|
||||||
|
android:paddingEnd="16dp"
|
||||||
|
android:paddingBottom="16dp">
|
||||||
|
|
||||||
<!-- 运单类型(红标签) -->
|
<!-- 运单类型(红标签) -->
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="22dp"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_phone_tag_red"
|
android:background="@drawable/bg_move_edit_tag_red"
|
||||||
android:gravity="center"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:paddingHorizontal="8dp"
|
android:paddingHorizontal="10dp"
|
||||||
|
android:paddingVertical="4dp"
|
||||||
android:text='@{viewModel.dataBean.awbTypeName == null || viewModel.dataBean.awbTypeName.empty ? "-" : viewModel.dataBean.awbTypeName}'
|
android:text='@{viewModel.dataBean.awbTypeName == null || viewModel.dataBean.awbTypeName.empty ? "-" : viewModel.dataBean.awbTypeName}'
|
||||||
android:textColor="@color/phone_tag_red_text"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp" />
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<!-- 品名(主字段大字) -->
|
<!-- 品名 -->
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="12dp"
|
android:layout_marginTop="12dp"
|
||||||
android:layout_marginBottom="12dp"
|
|
||||||
android:text='@{viewModel.dataBean.goods == null || viewModel.dataBean.goods.empty ? "-" : viewModel.dataBean.goods}'
|
android:text='@{viewModel.dataBean.goods == null || viewModel.dataBean.goods.empty ? "-" : viewModel.dataBean.goods}'
|
||||||
android:textColor="@color/phone_text_strong"
|
android:textColor="@color/move_edit_heading"
|
||||||
android:textSize="22sp"
|
android:textSize="22sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<!-- 第 1 行:件数 / 重量 -->
|
<!-- 两列字段:件数/重量、特码/代理人、出运路径/承运人 -->
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneKvItem
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
title='@{"件数"}'
|
android:orientation="vertical">
|
||||||
value='@{viewModel.dataBean.pc == null ? "" : String.valueOf(viewModel.dataBean.pc)}' />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneKvItem
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="32dp"
|
android:text="件数"
|
||||||
android:layout_weight="1"
|
android:textColor="@color/move_edit_label"
|
||||||
title='@{"重量"}'
|
android:textSize="12sp" />
|
||||||
value='@{viewModel.dataBean.weight == null ? "" : String.valueOf(viewModel.dataBean.weight) + " kg"}' />
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
|
android:text='@{viewModel.dataBean.pc == null ? "-" : String.valueOf(viewModel.dataBean.pc)}'
|
||||||
|
android:textColor="@color/move_edit_heading"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 第 2 行:特码 / 代理人 -->
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="12dp"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneKvItem
|
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
title='@{"特码"}'
|
android:layout_marginStart="16dp"
|
||||||
value="@{viewModel.dataBean.spCode}" />
|
android:orientation="vertical">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneKvItem
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="32dp"
|
android:text="重量"
|
||||||
android:layout_weight="1"
|
android:textColor="@color/move_edit_label"
|
||||||
title='@{"代理人"}'
|
android:textSize="12sp" />
|
||||||
value="@{viewModel.dataBean.agentCode}" />
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
|
android:text='@{viewModel.dataBean.weight == null ? "-" : String.valueOf(viewModel.dataBean.weight) + " kg"}'
|
||||||
|
android:textColor="@color/move_edit_heading"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 第 3 行:出运路径 / 承运人 -->
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="12dp"
|
android:layout_marginTop="16dp"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneKvItem
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
title='@{"出运路径"}'
|
android:orientation="vertical">
|
||||||
value="@{viewModel.dataBean.range}" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneKvItem
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="特码"
|
||||||
|
android:textColor="@color/move_edit_label"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
|
android:text='@{viewModel.dataBean.spCode == null || viewModel.dataBean.spCode.empty ? "-" : viewModel.dataBean.spCode}'
|
||||||
|
android:textColor="@color/move_edit_heading"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="32dp"
|
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
title='@{"承运人"}'
|
android:layout_marginStart="16dp"
|
||||||
value="@{viewModel.dataBean.by}" />
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="代理人"
|
||||||
|
android:textColor="@color/move_edit_label"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
|
android:text='@{viewModel.dataBean.agentCode == null || viewModel.dataBean.agentCode.empty ? "-" : viewModel.dataBean.agentCode}'
|
||||||
|
android:textColor="@color/move_edit_heading"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="出运路径"
|
||||||
|
android:textColor="@color/move_edit_label"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
|
android:text='@{viewModel.dataBean.range == null || viewModel.dataBean.range.empty ? "-" : viewModel.dataBean.range}'
|
||||||
|
android:textColor="@color/move_edit_heading"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="承运人"
|
||||||
|
android:textColor="@color/move_edit_label"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
|
android:text='@{viewModel.dataBean.by == null || viewModel.dataBean.by.empty ? "-" : viewModel.dataBean.by}'
|
||||||
|
android:textColor="@color/move_edit_heading"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@@ -194,66 +335,122 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:background="@drawable/bg_phone_card"
|
android:background="@drawable/bg_move_edit_card"
|
||||||
|
android:elevation="2dp"
|
||||||
|
android:outlineAmbientShadowColor="@color/move_edit_shadow"
|
||||||
|
android:outlineSpotShadowColor="@color/move_edit_shadow"
|
||||||
|
tools:targetApi="28"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:visibility="@{viewModel.listBean != null && viewModel.listBean.isMoved ? View.VISIBLE : View.GONE}">
|
android:visibility="@{viewModel.listBean != null && viewModel.listBean.isMoved ? View.VISIBLE : View.GONE}">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_phone_card_header_green"
|
|
||||||
android:paddingHorizontal="16dp"
|
android:paddingHorizontal="16dp"
|
||||||
android:paddingVertical="10dp"
|
android:paddingVertical="12dp"
|
||||||
android:text="移库信息"
|
android:text="移库信息"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/move_edit_heading"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:background="@color/move_edit_card_border" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="vertical"
|
||||||
android:paddingHorizontal="16dp"
|
android:padding="16dp">
|
||||||
android:paddingVertical="12dp">
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneKvItem
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
title='@{"移库人"}'
|
android:orientation="vertical">
|
||||||
value="@{viewModel.listBean.opUserDisplay}" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneKvItem
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="移库人"
|
||||||
|
android:textColor="@color/move_edit_label"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
|
android:text='@{viewModel.listBean.opUserDisplay == null || viewModel.listBean.opUserDisplay.empty ? "-" : viewModel.listBean.opUserDisplay}'
|
||||||
|
android:textColor="@color/move_edit_heading"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="32dp"
|
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
title='@{"移库时间"}'
|
android:layout_marginStart="16dp"
|
||||||
value="@{viewModel.listBean.opdate}" />
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="移库时间"
|
||||||
|
android:textColor="@color/move_edit_label"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:fontFamily="sans-serif-medium"
|
||||||
|
android:text='@{viewModel.listBean.opdate == null || viewModel.listBean.opdate.empty ? "-" : viewModel.listBean.opdate}'
|
||||||
|
android:textColor="@color/move_edit_heading"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- ==================== 卡片三:交接图片(Bug #632:样式与进港移库「异常照片」一致——橙色表头 + 三列虚线加号槽位,长按图片出删除角标) ==================== -->
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- ==================== 卡片三:交接图片(Bug #632:白底表头 + 分割线,三列加号槽位,长按图片出删除角标) ==================== -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:background="@drawable/bg_phone_card"
|
android:background="@drawable/bg_move_edit_card"
|
||||||
|
android:elevation="2dp"
|
||||||
|
android:outlineAmbientShadowColor="@color/move_edit_shadow"
|
||||||
|
android:outlineSpotShadowColor="@color/move_edit_shadow"
|
||||||
|
tools:targetApi="28"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_phone_card_header_orange"
|
|
||||||
android:paddingHorizontal="16dp"
|
android:paddingHorizontal="16dp"
|
||||||
android:paddingVertical="10dp"
|
android:paddingVertical="12dp"
|
||||||
android:text="交接图片"
|
android:text="交接图片"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/move_edit_heading"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:background="@color/move_edit_card_border" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/rv_images"
|
android:id="@+id/rv_images"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -272,42 +469,71 @@
|
|||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="暂无图片"
|
android:text="暂无图片"
|
||||||
android:textColor="@color/phone_text_hint"
|
android:textColor="@color/move_edit_hint"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:visibility="@{viewModel.showNoImage ? View.VISIBLE : View.GONE}" />
|
android:visibility="@{viewModel.showNoImage ? View.VISIBLE : View.GONE}" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- ==================== 卡片四:补充信息(Bug #632:备注录入与保存,表头底色 #F3F4F6) ==================== -->
|
<!-- ==================== 卡片四:补充信息(Bug #632:备注录入与保存,无下划线) ==================== -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:background="@drawable/bg_phone_card"
|
android:background="@drawable/bg_move_edit_card"
|
||||||
|
android:elevation="2dp"
|
||||||
|
android:outlineAmbientShadowColor="@color/move_edit_shadow"
|
||||||
|
android:outlineSpotShadowColor="@color/move_edit_shadow"
|
||||||
|
tools:targetApi="28"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<!-- 表头文字色:Bug 单写的是白色,但白字在 #F3F4F6 上不可读,暂用标题深色,待确认 -->
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_phone_card_header_gray"
|
|
||||||
android:paddingHorizontal="16dp"
|
android:paddingHorizontal="16dp"
|
||||||
android:paddingVertical="10dp"
|
android:paddingVertical="12dp"
|
||||||
android:text="补充信息"
|
android:text="补充信息"
|
||||||
android:textColor="@color/phone_text_title"
|
android:textColor="@color/move_edit_heading"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.phone.PhoneFormRow
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:background="@color/move_edit_card_border" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingHorizontal="16dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingBottom="4dp"
|
android:orientation="horizontal"
|
||||||
enable="@{viewModel.pageType != DetailsPageType.Details}"
|
android:padding="16dp">
|
||||||
hint='@{"请输入备注"}'
|
|
||||||
title='@{"备注"}'
|
<TextView
|
||||||
type="@{viewModel.pageType == DetailsPageType.Details ? PhoneFormRowType.TEXT : PhoneFormRowType.INPUT}"
|
android:layout_width="40dp"
|
||||||
value="@={viewModel.remark}" />
|
android:layout_height="wrap_content"
|
||||||
|
android:text="备注"
|
||||||
|
android:textColor="@color/move_edit_form"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="32dp"
|
||||||
|
android:layout_marginStart="12dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@null"
|
||||||
|
android:enabled="@{viewModel.pageType != DetailsPageType.Details}"
|
||||||
|
android:hint='@{viewModel.pageType == DetailsPageType.Details ? "--" : "请输入备注"}'
|
||||||
|
android:importantForAutofill="no"
|
||||||
|
android:inputType="text"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:padding="0dp"
|
||||||
|
android:text="@={viewModel.remark}"
|
||||||
|
android:textColor="@color/move_edit_form"
|
||||||
|
android:textColorHint="@color/move_edit_hint"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
19
module_gjc/src/main/res/values/colors_move_edit.xml
Normal file
19
module_gjc/src/main/res/values/colors_move_edit.xml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- 出港移库编辑页(手机版 activity_int_exp_move_edit)专用色值,取自「移库编辑」HTML 原型,仅该页使用 -->
|
||||||
|
<resources>
|
||||||
|
<color name="move_edit_accent">#3B6FE0</color> <!-- 主信息卡左侧装饰条 -->
|
||||||
|
<color name="move_edit_card_border">#E6EBF2</color> <!-- 分区卡描边 / 表头分割线 -->
|
||||||
|
<color name="move_edit_card_border_main">#DCE4F0</color> <!-- 主信息卡描边 -->
|
||||||
|
<color name="move_edit_wb_no">#1B3F8F</color> <!-- 运单号 -->
|
||||||
|
<color name="move_edit_heading">#132239</color> <!-- 卡片标题 / 品名 / 字段值 -->
|
||||||
|
<color name="move_edit_label">#6B7A8D</color> <!-- 字段标签 -->
|
||||||
|
<color name="move_edit_status">#5A6B84</color> <!-- 状态文字 -->
|
||||||
|
<color name="move_edit_form">#1F2A3C</color> <!-- 备注标签与输入 -->
|
||||||
|
<color name="move_edit_hint">#6B7280</color> <!-- 备注占位文字 -->
|
||||||
|
<color name="move_edit_tag_red">#D93025</color> <!-- 运单类型标签 -->
|
||||||
|
<color name="move_edit_dot_pending">#F5A623</color> <!-- 未移交圆点 -->
|
||||||
|
<color name="move_edit_dot_done">#10B981</color> <!-- 已移交圆点 -->
|
||||||
|
<!-- 卡片阴影色(原型 rgba(16,30,51,…));系统还会再乘主题阴影透明度,故这里给半透明 -->
|
||||||
|
<color name="move_edit_shadow_main">#80101E33</color>
|
||||||
|
<color name="move_edit_shadow">#50101E33</color>
|
||||||
|
</resources>
|
||||||
Reference in New Issue
Block a user