feat: visa delete/detail
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
<data>
|
||||
|
||||
<import type="android.view.View" />
|
||||
|
||||
<import type="com.lukouguoji.module_base.ui.weight.data.layout.DataLayoutType" />
|
||||
|
||||
<import type="com.lukouguoji.module_base.common.DetailsPageType" />
|
||||
@@ -50,7 +52,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请选择航班日期"}'
|
||||
setRefreshCallBack="@{viewModel::onFlightDateInputComplete}"
|
||||
title='@{"航班日期"}'
|
||||
@@ -63,7 +65,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请输入航班号"}'
|
||||
setRefreshCallBack="@{viewModel::onFlightNoInputComplete}"
|
||||
title='@{"航班号"}'
|
||||
@@ -116,7 +118,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请输入运单号"}'
|
||||
title='@{"运单号"}'
|
||||
titleLength="@{6}"
|
||||
@@ -127,7 +129,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请输入不正常件数"}'
|
||||
title='@{"不正常件数"}'
|
||||
titleLength="@{6}"
|
||||
@@ -147,7 +149,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请输入运单总件数"}'
|
||||
title='@{"运单总件数"}'
|
||||
titleLength="@{6}"
|
||||
@@ -158,7 +160,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请输入运单总重量"}'
|
||||
title='@{"运单总重量"}'
|
||||
titleLength="@{6}"
|
||||
@@ -178,7 +180,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请输入复称重量"}'
|
||||
title='@{"复称重量"}'
|
||||
titleLength="@{6}"
|
||||
@@ -189,7 +191,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请输入品名"}'
|
||||
title='@{"品名"}'
|
||||
titleLength="@{6}"
|
||||
@@ -209,6 +211,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请选择外包装"}'
|
||||
list="@{viewModel.outerPackageList}"
|
||||
title='@{"外包装"}'
|
||||
@@ -220,6 +223,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请选择破损情况"}'
|
||||
list="@{viewModel.damageTypeList}"
|
||||
title='@{"包装破损情况"}'
|
||||
@@ -240,6 +244,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请选择内容物情况"}'
|
||||
list="@{viewModel.contentTypeList}"
|
||||
title='@{"内容物情况"}'
|
||||
@@ -251,6 +256,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请选择不正常类型"}'
|
||||
list="@{viewModel.unusualTypeList}"
|
||||
title='@{"不正常类型"}'
|
||||
@@ -271,7 +277,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请选择发现时间"}'
|
||||
title='@{"发现时间"}'
|
||||
titleLength="@{6}"
|
||||
@@ -282,6 +288,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请选择"}'
|
||||
list="@{viewModel.photoList}"
|
||||
title='@{"图片是否留底"}'
|
||||
@@ -301,7 +308,7 @@
|
||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
enable="@{true}"
|
||||
enable="@{!viewModel.isDetailMode}"
|
||||
hint='@{"请输入备注"}'
|
||||
inputHeight="@{80}"
|
||||
title='@{"备注"}'
|
||||
@@ -313,12 +320,13 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 上传图像区域 -->
|
||||
<!-- 图像区域标题(详情模式无图片时隐藏) -->
|
||||
<TextView
|
||||
android:id="@+id/tv_image_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="上传图像"
|
||||
android:text='@{viewModel.isDetailMode ? "图片" : "上传图像"}'
|
||||
android:textColor="@color/text_normal"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
@@ -334,14 +342,15 @@
|
||||
app:spanCount="4"
|
||||
tools:listitem="@layout/item_image_select" />
|
||||
|
||||
<!-- 底部按钮 -->
|
||||
<!-- 底部按钮(详情模式隐藏) -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="horizontal"
|
||||
android:visibility="@{viewModel.isDetailMode ? View.GONE : View.VISIBLE}">
|
||||
|
||||
<TextView
|
||||
style="@style/tv_bottom_btn"
|
||||
|
||||
@@ -317,6 +317,13 @@
|
||||
android:background="@color/colorPrimary"
|
||||
android:text="修改" />
|
||||
|
||||
<!-- 删除按钮 -->
|
||||
<TextView
|
||||
android:id="@+id/btn_delete"
|
||||
style="@style/tv_item_action"
|
||||
android:background="@color/red"
|
||||
android:text="删除" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</com.mcxtzhang.swipemenulib.SwipeMenuLayout>
|
||||
|
||||
Reference in New Issue
Block a user