feat: opt del reason
This commit is contained in:
@@ -1452,7 +1452,7 @@ interface Api {
|
|||||||
/**
|
/**
|
||||||
* 获取删除原因列表
|
* 获取删除原因列表
|
||||||
*/
|
*/
|
||||||
@GET("typeCode/delReason")
|
@POST("typeCode/delReason")
|
||||||
suspend fun getDelReasonList(@Query("needFormat") needFormat: Boolean = true): BaseResultBean<List<DictBean>>
|
suspend fun getDelReasonList(@Query("needFormat") needFormat: Boolean = true): BaseResultBean<List<DictBean>>
|
||||||
|
|
||||||
@GET("file/verifyVersion")
|
@GET("file/verifyVersion")
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<solid android:color="@color/backgroud_gray" />
|
||||||
|
<corners android:radius="10dp" />
|
||||||
|
</shape>
|
||||||
@@ -120,10 +120,10 @@ class IntExpArriveViewModel : BasePageViewModel() {
|
|||||||
val list = pageModel.rv?.commonAdapter()?.items as? List<GjcMaWb> ?: return
|
val list = pageModel.rv?.commonAdapter()?.items as? List<GjcMaWb> ?: return
|
||||||
val selectedItems = list.filter { it.isSelected }
|
val selectedItems = list.filter { it.isSelected }
|
||||||
|
|
||||||
// if (selectedItems.isEmpty()) {
|
if (selectedItems.isEmpty()) {
|
||||||
// showToast("请选择要删除申报的记录")
|
showToast("请选择要删除申报的记录")
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
|
|
||||||
// 从接口获取删除原因列表
|
// 从接口获取删除原因列表
|
||||||
launchLoadingCollect({ NetApply.api.getDelReasonList() }) {
|
launchLoadingCollect({ NetApply.api.getDelReasonList() }) {
|
||||||
|
|||||||
@@ -148,10 +148,10 @@ class IntExpLoadViewModel : BasePageViewModel() {
|
|||||||
val list = pageModel.rv?.commonAdapter()?.items as? List<GjcExportLoad> ?: return
|
val list = pageModel.rv?.commonAdapter()?.items as? List<GjcExportLoad> ?: return
|
||||||
val selectedItems = list.filter { it.isSelected }
|
val selectedItems = list.filter { it.isSelected }
|
||||||
|
|
||||||
// if (selectedItems.isEmpty()) {
|
if (selectedItems.isEmpty()) {
|
||||||
// showToast("请选择要删除申报的记录")
|
showToast("请选择要删除申报的记录")
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
|
|
||||||
// 从接口获取删除原因列表
|
// 从接口获取删除原因列表
|
||||||
launchLoadingCollect({ NetApply.api.getDelReasonList() }) {
|
launchLoadingCollect({ NetApply.api.getDelReasonList() }) {
|
||||||
|
|||||||
@@ -146,10 +146,10 @@ class IntExpTallyViewModel : BasePageViewModel() {
|
|||||||
val list = pageModel.rv?.commonAdapter()?.items as? List<GjcMaWb> ?: return
|
val list = pageModel.rv?.commonAdapter()?.items as? List<GjcMaWb> ?: return
|
||||||
val selectedItems = list.filter { it.isSelected }
|
val selectedItems = list.filter { it.isSelected }
|
||||||
|
|
||||||
// if (selectedItems.isEmpty()) {
|
if (selectedItems.isEmpty()) {
|
||||||
// showToast("请选择要删除申报的记录")
|
showToast("请选择要删除申报的记录")
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
|
|
||||||
// 从接口获取删除原因列表
|
// 从接口获取删除原因列表
|
||||||
launchLoadingCollect({ NetApply.api.getDelReasonList() }) {
|
launchLoadingCollect({ NetApply.api.getDelReasonList() }) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="600dp"
|
android:layout_width="600dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_dialog_radius_10"
|
android:background="@drawable/bg_dialog_f2_radius_10"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@@ -46,6 +46,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:text="变更原因:"
|
android:text="变更原因:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
@@ -71,6 +72,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:text="联系人姓名:"
|
android:text="联系人姓名:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
@@ -96,6 +98,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:text="联系人电话:"
|
android:text="联系人电话:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="600dp"
|
android:layout_width="600dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_dialog_radius_10"
|
android:background="@drawable/bg_dialog_f2_radius_10"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="变更原因:"
|
android:text="变更原因:"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
@@ -72,6 +73,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="联系人姓名:"
|
android:text="联系人姓名:"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
@@ -97,6 +99,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="联系人电话:"
|
android:text="联系人电话:"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="600dp"
|
android:layout_width="600dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_dialog_radius_10"
|
android:background="@drawable/bg_dialog_f2_radius_10"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="变更原因:"
|
android:text="变更原因:"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
@@ -72,6 +73,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="联系人姓名:"
|
android:text="联系人姓名:"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
@@ -97,6 +99,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="联系人电话:"
|
android:text="联系人电话:"
|
||||||
|
completeSpace="@{6}"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user