From 2996e670e0cf239a945012dbea8635bd6ee43b5f Mon Sep 17 00:00:00 2001 From: YANG JIANKUAN Date: Wed, 14 Oct 2026 20:21:50 -0700 Subject: [PATCH] =?UTF-8?q?fix(gjc):=20=E5=87=BA=E6=B8=AF=E7=A7=BB?= =?UTF-8?q?=E5=BA=93=E7=BC=96=E8=BE=91=E6=8B=86=E5=88=86=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8E=E8=A1=A5=E5=85=85=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=8D=A1=E7=89=87=EF=BC=8C=E8=A1=A5=E4=B8=8A=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 交接图片单独成卡:橙色表头 + 三列虚线加号槽位,与国内进港移库「异常照片」一致; 其下新增「补充信息」卡片(表头底色 #F3F4F6)承载备注录入 - 删除不了图片:选图组件长按回调 onItemClick(rl) 以显示删除角标,ViewModel 只处理了 点角标删除,角标永远出不来;补上长按切换(详情态不可删,平板共用一并生效) - 公共选图格子 item_image_select_new 拆双变体:平板原样移到 layout-sw600dp/, 手机版改为灰色虚线框 + 灰色加号(国内移库拍照页同步统一) 表头文字颜色暂用深色(Bug 单写白字,白字在 #F3F4F6 上不可读),待确认。 Refs: 禅道 Bug #632 Co-Authored-By: Claude Opus 5.5 --- .../drawable/bg_phone_card_header_gray.xml | 9 +++ .../layout-sw600dp/item_image_select_new.xml | 48 ++++++++++++++ .../main/res/layout/item_image_select_new.xml | 18 ++++-- .../gjc/viewModel/IntExpMoveEditViewModel.kt | 15 +++-- .../res/layout/activity_int_exp_move_edit.xml | 63 +++++++++++++------ 5 files changed, 124 insertions(+), 29 deletions(-) create mode 100644 module_base/src/main/res/drawable/bg_phone_card_header_gray.xml create mode 100644 module_base/src/main/res/layout-sw600dp/item_image_select_new.xml diff --git a/module_base/src/main/res/drawable/bg_phone_card_header_gray.xml b/module_base/src/main/res/drawable/bg_phone_card_header_gray.xml new file mode 100644 index 0000000..eb18e61 --- /dev/null +++ b/module_base/src/main/res/drawable/bg_phone_card_header_gray.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/module_base/src/main/res/layout-sw600dp/item_image_select_new.xml b/module_base/src/main/res/layout-sw600dp/item_image_select_new.xml new file mode 100644 index 0000000..b4c8eee --- /dev/null +++ b/module_base/src/main/res/layout-sw600dp/item_image_select_new.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/module_base/src/main/res/layout/item_image_select_new.xml b/module_base/src/main/res/layout/item_image_select_new.xml index b4c8eee..76af315 100644 --- a/module_base/src/main/res/layout/item_image_select_new.xml +++ b/module_base/src/main/res/layout/item_image_select_new.xml @@ -1,4 +1,8 @@ + @@ -12,15 +16,17 @@ android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="0dp" - android:layout_margin="5dp" - android:background="@{bean.path.length() == 0 ? @color/color_f2 : @color/white}"> + android:layout_margin="6dp" + android:background="@drawable/bg_phone_photo_add"> - + android:text="+" + android:textColor="@color/phone_text_hint" + android:textSize="24sp" /> = adapter.items.size) return + when (type) { + // 长按已选图片:切换删除角标(Bug #632:原先未处理长按,角标出不来导致无法删除) + R.id.rl -> { + val bean = adapter.getItem(position) as? FileBean ?: return + if (bean.path.isNotEmpty() && pageType.value != DetailsPageType.Details) { + bean.canDelete.set(!bean.canDelete.get()) + } } + + R.id.iv_delete -> adapter.removeItem(position) } } } diff --git a/module_gjc/src/main/res/layout/activity_int_exp_move_edit.xml b/module_gjc/src/main/res/layout/activity_int_exp_move_edit.xml index b468460..be22b06 100644 --- a/module_gjc/src/main/res/layout/activity_int_exp_move_edit.xml +++ b/module_gjc/src/main/res/layout/activity_int_exp_move_edit.xml @@ -235,43 +235,35 @@ - + - - + android:orientation="vertical"> + android:textColor="@color/white" + android:textSize="15sp" + android:textStyle="bold" /> + app:spanCount="3" /> + + + + + + + + + +