Compare commits
12 Commits
093314d601
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9363717224 | |||
| df5fa2ea74 | |||
| 3c413833cf | |||
| 072df758db | |||
| 6c4e97945b | |||
| a663609eeb | |||
| 74e9f5a827 | |||
| d6f72186a3 | |||
| b2ea79512c | |||
| 8b666364ae | |||
| aac2c860c6 | |||
| c2b5e74156 |
@@ -88,7 +88,21 @@
|
|||||||
"mcp__apifox__read_project_oas_ref_resources_9otrai",
|
"mcp__apifox__read_project_oas_ref_resources_9otrai",
|
||||||
"Bash(cd:*)",
|
"Bash(cd:*)",
|
||||||
"mcp__apifox__read_project_oas_tua249",
|
"mcp__apifox__read_project_oas_tua249",
|
||||||
"mcp__apifox__read_project_oas_ref_resources_tua249"
|
"mcp__apifox__read_project_oas_ref_resources_tua249",
|
||||||
|
"mcp__apifox__read_project_oas_heib77",
|
||||||
|
"mcp__apifox__read_project_oas_ref_resources_heib77",
|
||||||
|
"Bash(export JAVA_HOME=\"/Applications/Android Studio.app/Contents/jbr/Contents/Home\")",
|
||||||
|
"Bash(export PATH=\"$JAVA_HOME/bin:$PATH\")",
|
||||||
|
"Read(//Library/Java/JavaVirtualMachines/**)",
|
||||||
|
"Read(//usr/local/**)",
|
||||||
|
"Read(//opt/homebrew/opt/**)",
|
||||||
|
"Bash(/Users/kid/.vfox/sdks/java/bin/java -version 2>&1)",
|
||||||
|
"Bash(export JAVA_HOME=/Users/kid/.vfox/sdks/java)",
|
||||||
|
"mcp__apifox__read_project_oas_kcl8s7",
|
||||||
|
"mcp__apifox__refresh_project_oas_kcl8s7",
|
||||||
|
"mcp__apifox__read_project_oas_ref_resources_kcl8s7",
|
||||||
|
"mcp__apifox__read_project_oas_x3v6fh",
|
||||||
|
"mcp__apifox__read_project_oas_ref_resources_x3v6fh"
|
||||||
],
|
],
|
||||||
"deny": [],
|
"deny": [],
|
||||||
"ask": []
|
"ask": []
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
[tools]
|
[tools]
|
||||||
java = "17.0.17+10-amzn"
|
java = "17+35-amzn"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
/Users/kid/.version-fox/cache/java/v-17.0.17+10-amzn/java-17.0.17+10-amzn
|
/Users/kid/.version-fox/cache/java/v-17+35-amzn/java-17+35-amzn
|
||||||
@@ -124,11 +124,12 @@ class XxxViewModel : BasePageViewModel() {
|
|||||||
<LinearLayout orientation="vertical">
|
<LinearLayout orientation="vertical">
|
||||||
<include layout="@layout/title_tool_bar" />
|
<include layout="@layout/title_tool_bar" />
|
||||||
|
|
||||||
<!-- 搜索区:PadSearchLayout 横排 -->
|
<!-- 搜索区:PadSearchLayout 横排 + 操作按钮(如有) -->
|
||||||
<LinearLayout orientation="horizontal">
|
<LinearLayout orientation="horizontal">
|
||||||
<PadSearchLayout type="@{SearchLayoutType.DATE}" value="@={viewModel.flightDate}" />
|
<PadSearchLayout type="@{SearchLayoutType.DATE}" value="@={viewModel.flightDate}" />
|
||||||
<PadSearchLayout type="@{SearchLayoutType.INPUT}" value="@={viewModel.flightNo}" />
|
<PadSearchLayout type="@{SearchLayoutType.INPUT}" value="@={viewModel.flightNo}" />
|
||||||
<ImageView style="@style/iv_search_action" android:onClick="@{()-> viewModel.searchClick()}" />
|
<ImageView style="@style/iv_search_action" android:onClick="@{()-> viewModel.searchClick()}" />
|
||||||
|
<!-- 如需新增/删除按钮,尺寸规范见「开发原则」工具栏图标尺寸规范 -->
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 分页列表 -->
|
<!-- 分页列表 -->
|
||||||
@@ -842,6 +843,7 @@ companion object {
|
|||||||
- 标题栏统一用 `title_tool_bar` — 禁止手动编写 Toolbar
|
- 标题栏统一用 `title_tool_bar` — 禁止手动编写 Toolbar
|
||||||
- 优先使用 PadDataLayoutNew 和 PadSearchLayout 组件
|
- 优先使用 PadDataLayoutNew 和 PadSearchLayout 组件
|
||||||
- 在每个页面布局时,如有截图,务必尽可能还原图片上的页面设计,而不是推测假想。如有困难一律要询问,禁止自己想象
|
- 在每个页面布局时,如有截图,务必尽可能还原图片上的页面设计,而不是推测假想。如有困难一律要询问,禁止自己想象
|
||||||
|
- 工具栏图标尺寸规范: `img_search` 36dp + padding 2dp;`img_add` 40dp 无 padding(使用 `drawable/img_add.xml` 矢量图,`drawable-xhdpi/img_add.png` 已废弃删除)
|
||||||
- 常用资源: `bg_white_radius_8`、`colorPrimary`、`text_normal`、`text_gray`、`color_bottom_layout`
|
- 常用资源: `bg_white_radius_8`、`colorPrimary`、`text_normal`、`text_gray`、`color_bottom_layout`
|
||||||
|
|
||||||
### 环境配置
|
### 环境配置
|
||||||
|
|||||||
@@ -11,8 +11,5 @@ class LogQueryViewHolder(view: View) : BaseViewHolder<LogBean, ItemLogQueryBindi
|
|||||||
override fun onBind(item: Any?, position: Int) {
|
override fun onBind(item: Any?, position: Int) {
|
||||||
val bean = getItemBean(item)
|
val bean = getItemBean(item)
|
||||||
binding.bean = bean
|
binding.bean = bean
|
||||||
itemView.setOnClickListener {
|
|
||||||
bean?.let { LogDetailActivity.start(itemView.context, it) }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -970,13 +970,6 @@ class HomeFragment : Fragment() {
|
|||||||
"ULD管理"
|
"ULD管理"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
list.add(
|
|
||||||
RightMenu(
|
|
||||||
Constant.AuthName.ComprehensiveColdStorage,
|
|
||||||
com.lukouguoji.module_base.R.mipmap.gnc_cangku,
|
|
||||||
"冷库登记"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
value="@={viewModel.status}"
|
value="@={viewModel.status}"
|
||||||
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="0.33" />
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
hint='@{"选择所属航司"}'
|
hint='@{"选择所属航司"}'
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
value="@={viewModel.uldSuffix}"
|
value="@={viewModel.uldSuffix}"
|
||||||
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="0.33" />
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
hint='@{"请输入ULD编号"}'
|
hint='@{"请输入ULD编号"}'
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
value="@={viewModel.uldNo}"
|
value="@={viewModel.uldNo}"
|
||||||
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="0.33" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
@@ -69,11 +69,10 @@
|
|||||||
android:src="@drawable/img_search" />
|
android:src="@drawable/img_search" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="36dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="36dp"
|
android:layout_height="40dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:onClick="@{()-> viewModel.onAddClick()}"
|
android:onClick="@{()-> viewModel.onAddClick()}"
|
||||||
android:padding="4dp"
|
|
||||||
android:src="@drawable/img_add" />
|
android:src="@drawable/img_add" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -6,7 +6,17 @@
|
|||||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
# Specifies the JVM arguments used for the daemon process.
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
|
||||||
|
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
|
||||||
kapt.use.worker.api=false
|
kapt.use.worker.api=false
|
||||||
kapt.include.compile.classpath=false
|
kapt.include.compile.classpath=false
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ data class GjcMaWb(
|
|||||||
|
|
||||||
// ==================== 操作信息 ====================
|
// ==================== 操作信息 ====================
|
||||||
var opDate: String? = null, // 操作时间(入库时间)
|
var opDate: String? = null, // 操作时间(入库时间)
|
||||||
|
var inDate: String? = null, // 入库时间
|
||||||
var opId: String? = null, // 操作员id
|
var opId: String? = null, // 操作员id
|
||||||
var paperTime: Date? = null, // 单证时间
|
var paperTime: Date? = null, // 单证时间
|
||||||
|
|
||||||
|
|||||||
@@ -47,10 +47,14 @@ data class GjjImportManifest(
|
|||||||
var dgrContactMame: String = "",
|
var dgrContactMame: String = "",
|
||||||
// 危险品收货人通讯方式
|
// 危险品收货人通讯方式
|
||||||
var dgrContactNumber: String = "",
|
var dgrContactNumber: String = "",
|
||||||
|
// 航班日期
|
||||||
|
var fdate: String = "",
|
||||||
// 航班起始站
|
// 航班起始站
|
||||||
var fdep: String = "",
|
var fdep: String = "",
|
||||||
// 航班目的站
|
// 航班目的站
|
||||||
var fdest: String = "",
|
var fdest: String = "",
|
||||||
|
// 航班号
|
||||||
|
var fno: String = "",
|
||||||
// 航班id
|
// 航班id
|
||||||
var fid: Long = 0,
|
var fid: Long = 0,
|
||||||
// 运费支付方式
|
// 运费支付方式
|
||||||
@@ -114,6 +118,15 @@ data class GjjImportManifest(
|
|||||||
// 重量
|
// 重量
|
||||||
var weight: Double = 0.0
|
var weight: Double = 0.0
|
||||||
) : Serializable {
|
) : Serializable {
|
||||||
|
// 获取航班信息(日期去横杠/航班号)
|
||||||
|
fun getFlightSplit(): String {
|
||||||
|
if (fdate != "" && fno != "") {
|
||||||
|
val (year, mon, day) = fdate.split("-")
|
||||||
|
return "${year}${mon}${day}/${fno}"
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
// ========== UI扩展字段 ==========
|
// ========== UI扩展字段 ==========
|
||||||
// 选中状态
|
// 选中状态
|
||||||
@Transient
|
@Transient
|
||||||
|
|||||||
@@ -79,12 +79,20 @@ data class GjjImportTally(
|
|||||||
var goodsCn: String = "",
|
var goodsCn: String = "",
|
||||||
// 品名(英文)
|
// 品名(英文)
|
||||||
var goodsEn: String = "",
|
var goodsEn: String = "",
|
||||||
// 放行模式
|
// 放行模式(代码)
|
||||||
|
var relMode: String = "",
|
||||||
|
// 放行模式(名称)
|
||||||
var releaseMode: String = "",
|
var releaseMode: String = "",
|
||||||
|
// 放行时间(perDate)
|
||||||
|
var perDate: String = "",
|
||||||
// 放行时间
|
// 放行时间
|
||||||
var releaseTime: String = "",
|
var releaseTime: String = "",
|
||||||
|
// 指令类型(comType)
|
||||||
|
var comType: String = "",
|
||||||
// 指令类型
|
// 指令类型
|
||||||
var instructionType: String = "",
|
var instructionType: String = "",
|
||||||
|
// 放行备注
|
||||||
|
var relRemark: String = "",
|
||||||
// 备注
|
// 备注
|
||||||
var remark: String = ""
|
var remark: String = ""
|
||||||
) : Serializable {
|
) : Serializable {
|
||||||
@@ -107,5 +115,14 @@ data class GjjImportTally(
|
|||||||
|
|
||||||
// 获取完整运单号
|
// 获取完整运单号
|
||||||
fun getWaybillNo() = "$prefix$no"
|
fun getWaybillNo() = "$prefix$no"
|
||||||
|
|
||||||
|
// 获取航班信息(日期去横杠/航班号)
|
||||||
|
fun getFlightSplit(): String {
|
||||||
|
if (fdate != "" && fno != "") {
|
||||||
|
val (year, mon, day) = fdate.split("-")
|
||||||
|
return "${year}${mon}${day}/${fno}"
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ class IntImpPickUpDLVBean : Serializable {
|
|||||||
var efrCharge: Double = 0.0 // 冷藏费
|
var efrCharge: Double = 0.0 // 冷藏费
|
||||||
var svlCharge: Double = 0.0 // 铲车费
|
var svlCharge: Double = 0.0 // 铲车费
|
||||||
var tallyCharge: Double = 0.0 // 理货费
|
var tallyCharge: Double = 0.0 // 理货费
|
||||||
|
var pipFee: Double = 0.0 // 精密仪器处理费
|
||||||
|
var lapFee: Double = 0.0 // 活体动物处理费
|
||||||
var chargeId: String = "" // 收费员
|
var chargeId: String = "" // 收费员
|
||||||
var chargeName: String = "" // 收费员名称
|
var chargeName: String = "" // 收费员名称
|
||||||
var dlvId: String = ""
|
var dlvId: String = ""
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ class IntImpPickUpRecordBean : Serializable {
|
|||||||
var efrCharge: Double = 0.0 // 冷藏费
|
var efrCharge: Double = 0.0 // 冷藏费
|
||||||
var svlCharge: Double = 0.0 // 铲车费
|
var svlCharge: Double = 0.0 // 铲车费
|
||||||
var tallyCharge: Double = 0.0 // 理货费
|
var tallyCharge: Double = 0.0 // 理货费
|
||||||
|
var pipFee: Double = 0.0 // 精密仪器处理费
|
||||||
|
var lapFee: Double = 0.0 // 活体动物处理费
|
||||||
var chargeName: String = "" // 办理人名称
|
var chargeName: String = "" // 办理人名称
|
||||||
var chargeId: String = "" // 收费员ID
|
var chargeId: String = "" // 收费员ID
|
||||||
var dlvTime: String = "" // 出库时间
|
var dlvTime: String = "" // 出库时间
|
||||||
|
|||||||
@@ -302,6 +302,12 @@ interface Api {
|
|||||||
@POST("typeCode/countryType")
|
@POST("typeCode/countryType")
|
||||||
suspend fun getAreaTypeList(): DictListBean
|
suspend fun getAreaTypeList(): DictListBean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取国家代码
|
||||||
|
*/
|
||||||
|
@POST("typeCode/countryCode")
|
||||||
|
suspend fun getCountryCodeList(): DictListBean
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取通讯方式类型
|
* 获取通讯方式类型
|
||||||
*/
|
*/
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 775 B |
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="200dp"
|
||||||
android:height="24dp"
|
android:height="200dp"
|
||||||
android:viewportWidth="24"
|
android:viewportWidth="24"
|
||||||
android:viewportHeight="24">
|
android:viewportHeight="24">
|
||||||
<path
|
<path
|
||||||
|
|||||||
@@ -100,11 +100,10 @@
|
|||||||
|
|
||||||
<!-- 添加按钮 -->
|
<!-- 添加按钮 -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="36dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="36dp"
|
android:layout_height="40dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:onClick="@{()-> viewModel.addClick()}"
|
android:onClick="@{()-> viewModel.addClick()}"
|
||||||
android:padding="4dp"
|
|
||||||
android:src="@drawable/img_add" />
|
android:src="@drawable/img_add" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -104,11 +104,10 @@
|
|||||||
|
|
||||||
<!-- 添加按钮 -->
|
<!-- 添加按钮 -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="36dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="36dp"
|
android:layout_height="40dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:onClick="@{()-> viewModel.addClick()}"
|
android:onClick="@{()-> viewModel.addClick()}"
|
||||||
android:padding="4dp"
|
|
||||||
android:src="@drawable/img_add" />
|
android:src="@drawable/img_add" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -97,11 +97,10 @@
|
|||||||
|
|
||||||
<!-- 新<><E696B0><EFBFBD>按钮 -->
|
<!-- 新<><E696B0><EFBFBD>按钮 -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="36dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="36dp"
|
android:layout_height="40dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:onClick="@{()-> viewModel.onAddClick()}"
|
android:onClick="@{()-> viewModel.onAddClick()}"
|
||||||
android:padding="4dp"
|
|
||||||
android:src="@drawable/img_add" />
|
android:src="@drawable/img_add" />
|
||||||
|
|
||||||
<!-- 删除按钮 -->
|
<!-- 删除按钮 -->
|
||||||
|
|||||||
@@ -3,6 +3,9 @@ package com.lukouguoji.gjj.activity
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.view.Gravity
|
||||||
|
import android.view.View
|
||||||
|
import android.widget.FrameLayout
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route
|
import com.alibaba.android.arouter.facade.annotation.Route
|
||||||
import com.lukouguoji.gjj.R
|
import com.lukouguoji.gjj.R
|
||||||
import com.lukouguoji.gjj.databinding.ActivityIntImpQueryBinding
|
import com.lukouguoji.gjj.databinding.ActivityIntImpQueryBinding
|
||||||
@@ -42,10 +45,67 @@ class IntImpQueryActivity :
|
|||||||
}
|
}
|
||||||
|
|
||||||
viewModel.initAgentList()
|
viewModel.initAgentList()
|
||||||
|
viewModel.initSpecialCodeList()
|
||||||
|
viewModel.initFilterLists()
|
||||||
|
|
||||||
|
// 观察筛选面板显示状态
|
||||||
|
viewModel.filterVisible.observe(this) { visible ->
|
||||||
|
if (visible) showFilterPanel() else hideFilterPanel()
|
||||||
|
}
|
||||||
|
|
||||||
viewModel.refresh()
|
viewModel.refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun showFilterPanel() {
|
||||||
|
val panel = binding.filterPanel.root
|
||||||
|
val overlay = binding.filterOverlay
|
||||||
|
val panelWidth = window.decorView.width / 3
|
||||||
|
|
||||||
|
panel.layoutParams = (panel.layoutParams as FrameLayout.LayoutParams).apply {
|
||||||
|
width = panelWidth
|
||||||
|
gravity = Gravity.END
|
||||||
|
}
|
||||||
|
|
||||||
|
// 先 INVISIBLE 完成测量,避免第一次显示时闪烁
|
||||||
|
panel.visibility = View.INVISIBLE
|
||||||
|
panel.translationX = panelWidth.toFloat()
|
||||||
|
overlay.visibility = View.VISIBLE
|
||||||
|
overlay.alpha = 0f
|
||||||
|
|
||||||
|
panel.post {
|
||||||
|
panel.visibility = View.VISIBLE
|
||||||
|
panel.animate().translationX(0f).setDuration(250).start()
|
||||||
|
overlay.animate().alpha(1f).setDuration(250).start()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun hideFilterPanel() {
|
||||||
|
val panel = binding.filterPanel.root
|
||||||
|
val overlay = binding.filterOverlay
|
||||||
|
|
||||||
|
if (panel.visibility != View.VISIBLE) return
|
||||||
|
|
||||||
|
panel.animate()
|
||||||
|
.translationX(panel.width.toFloat())
|
||||||
|
.setDuration(250)
|
||||||
|
.withEndAction { panel.visibility = View.GONE }
|
||||||
|
.start()
|
||||||
|
|
||||||
|
overlay.animate()
|
||||||
|
.alpha(0f)
|
||||||
|
.setDuration(250)
|
||||||
|
.withEndAction { overlay.visibility = View.GONE }
|
||||||
|
.start()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onBackPressed() {
|
||||||
|
if (viewModel.filterVisible.value == true) {
|
||||||
|
viewModel.closeFilter()
|
||||||
|
} else {
|
||||||
|
super.onBackPressed()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun start(context: Context) {
|
fun start(context: Context) {
|
||||||
|
|||||||
@@ -110,8 +110,16 @@ class IntImpStorageUseActivity :
|
|||||||
|
|
||||||
val selectedStorage = selectedStorageUseList[0]
|
val selectedStorage = selectedStorageUseList[0]
|
||||||
|
|
||||||
// 弹出库位选择弹框,选择后再调用接口
|
// 已出库的分单不允许修改库位
|
||||||
IntImpModifyStorageDialogModel { dialog ->
|
if (!selectedStorage.outOpId.isNullOrEmpty() || !selectedStorage.outDate.isNullOrEmpty()) {
|
||||||
|
showToast("该分单已出库,不允许修改库位")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 弹出库位选择弹框,选择后再调用接口,传入当前库位ID以预填充
|
||||||
|
IntImpModifyStorageDialogModel(
|
||||||
|
currentLocationId = selectedStorage.locationId?.toString() ?: ""
|
||||||
|
) { dialog ->
|
||||||
val locationName = dialog.locationName
|
val locationName = dialog.locationName
|
||||||
val locationId = dialog.locationId
|
val locationId = dialog.locationId
|
||||||
viewModel.performModifyStorage(locationName, locationId, selectedStorage)
|
viewModel.performModifyStorage(locationName, locationId, selectedStorage)
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import dev.utils.app.info.KeyValue
|
|||||||
* 国际进港 - 修改库位对话框
|
* 国际进港 - 修改库位对话框
|
||||||
*/
|
*/
|
||||||
class IntImpModifyStorageDialogModel(
|
class IntImpModifyStorageDialogModel(
|
||||||
|
private val currentLocationId: String = "",
|
||||||
private val callback: (IntImpModifyStorageDialogModel) -> Unit
|
private val callback: (IntImpModifyStorageDialogModel) -> Unit
|
||||||
) : BaseDialogModel<DialogIntImpModifyStorageBinding>(DIALOG_TYPE_CENTER) {
|
) : BaseDialogModel<DialogIntImpModifyStorageBinding>(DIALOG_TYPE_CENTER) {
|
||||||
|
|
||||||
@@ -54,6 +55,10 @@ class IntImpModifyStorageDialogModel(
|
|||||||
onSuccess = { result ->
|
onSuccess = { result ->
|
||||||
val list = result.data?.map { it.toKeyValue() } ?: emptyList()
|
val list = result.data?.map { it.toKeyValue() } ?: emptyList()
|
||||||
locationList.value = list
|
locationList.value = list
|
||||||
|
// 列表加载完成后,预选当前库位
|
||||||
|
if (currentLocationId.isNotEmpty()) {
|
||||||
|
selectedLocationCode.value = currentLocationId
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onFailed = { _, msg ->
|
onFailed = { _, msg ->
|
||||||
showToast(msg ?: "加载库位列表失败")
|
showToast(msg ?: "加载库位列表失败")
|
||||||
|
|||||||
@@ -1,87 +0,0 @@
|
|||||||
package com.lukouguoji.gjj.dialog
|
|
||||||
|
|
||||||
import android.content.Context
|
|
||||||
import android.content.res.ColorStateList
|
|
||||||
import android.graphics.Color
|
|
||||||
import android.view.View
|
|
||||||
import android.widget.ImageView
|
|
||||||
import android.widget.TextView
|
|
||||||
import androidx.lifecycle.MutableLiveData
|
|
||||||
import com.lukouguoji.gjj.R
|
|
||||||
import com.lukouguoji.gjj.databinding.DialogIntImpQueryFilterBinding
|
|
||||||
import com.lukouguoji.module_base.base.BaseDialogModel
|
|
||||||
import com.lxj.xpopup.XPopup
|
|
||||||
import com.lxj.xpopup.enums.PopupPosition
|
|
||||||
import dev.DevUtils
|
|
||||||
import dev.utils.app.info.KeyValue
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 国际进港查询筛选抽屉
|
|
||||||
*/
|
|
||||||
class IntImpQueryFilterDialogModel(
|
|
||||||
val spCode: MutableLiveData<String>,
|
|
||||||
val flightNo: MutableLiveData<String>,
|
|
||||||
val dest: MutableLiveData<String>,
|
|
||||||
val awbType: MutableLiveData<String>,
|
|
||||||
val businessType: MutableLiveData<String>,
|
|
||||||
val goodsCn: MutableLiveData<String>,
|
|
||||||
private val onConfirm: () -> Unit
|
|
||||||
) : BaseDialogModel<DialogIntImpQueryFilterBinding>(DIALOG_TYPE_DRAWER) {
|
|
||||||
|
|
||||||
val awbTypeList = MutableLiveData(
|
|
||||||
listOf(
|
|
||||||
KeyValue("全部", ""),
|
|
||||||
KeyValue("主单", "1"),
|
|
||||||
KeyValue("分单", "2")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
val businessTypeList = MutableLiveData(
|
|
||||||
listOf(
|
|
||||||
KeyValue("全部", ""),
|
|
||||||
KeyValue("普货", "1"),
|
|
||||||
KeyValue("特货", "2")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
override fun layoutId() = R.layout.dialog_int_imp_query_filter
|
|
||||||
|
|
||||||
override fun onBuild(builder: XPopup.Builder) {
|
|
||||||
super.onBuild(builder)
|
|
||||||
builder.popupPosition(PopupPosition.Right)
|
|
||||||
val activity = DevUtils.getTopActivity()
|
|
||||||
val activityWidth = activity.window.decorView.width
|
|
||||||
builder.maxWidth(activityWidth / 3)
|
|
||||||
builder.popupWidth(activityWidth / 3)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onDialogCreated(context: Context) {
|
|
||||||
binding.model = this
|
|
||||||
binding.lifecycleOwner = context as? androidx.lifecycle.LifecycleOwner
|
|
||||||
|
|
||||||
val titleColor = Color.parseColor("#666666")
|
|
||||||
binding.root.findViewById<TextView>(R.id.title_name)?.text = "筛选条件"
|
|
||||||
binding.root.findViewById<TextView>(R.id.title_name)?.setTextColor(titleColor)
|
|
||||||
binding.root.findViewById<TextView>(R.id.tool_tv_back)?.setTextColor(titleColor)
|
|
||||||
binding.root.findViewById<ImageView>(R.id.tool_iv_back)?.imageTintList = ColorStateList.valueOf(titleColor)
|
|
||||||
binding.root.findViewById<View>(R.id.toolbar)?.setBackgroundColor(Color.WHITE)
|
|
||||||
|
|
||||||
binding.root.findViewById<View>(R.id.tool_back)?.setOnClickListener {
|
|
||||||
dismiss()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun onResetClick() {
|
|
||||||
spCode.value = ""
|
|
||||||
flightNo.value = ""
|
|
||||||
dest.value = ""
|
|
||||||
awbType.value = ""
|
|
||||||
businessType.value = ""
|
|
||||||
goodsCn.value = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
fun onConfirmClick() {
|
|
||||||
dismiss()
|
|
||||||
onConfirm()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -110,7 +110,7 @@ class GjjManifestDetailsViewModel : BaseViewModel(), IGetData {
|
|||||||
DictUtils.getAgentList(addAll = false, checkedValue = data.agent) {
|
DictUtils.getAgentList(addAll = false, checkedValue = data.agent) {
|
||||||
agentList.postValue(it)
|
agentList.postValue(it)
|
||||||
}
|
}
|
||||||
DictUtils.getSpecialCodeList(addAll = false, flag = 1, ieFlag = "I", checkedValue = data.spCode) {
|
DictUtils.getSpecialCodeList(addAll = false, flag = 1, ieFlag = "", checkedValue = data.spCode) {
|
||||||
specialCodeList.postValue(it)
|
specialCodeList.postValue(it)
|
||||||
}
|
}
|
||||||
DictUtils.getBusinessTypeList(
|
DictUtils.getBusinessTypeList(
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import com.lukouguoji.module_base.bean.GjjDeclareParam
|
|||||||
import com.lukouguoji.module_base.bean.GjjImportManifest
|
import com.lukouguoji.module_base.bean.GjjImportManifest
|
||||||
import com.lukouguoji.module_base.common.Constant
|
import com.lukouguoji.module_base.common.Constant
|
||||||
import com.lukouguoji.module_base.common.ConstantEvent
|
import com.lukouguoji.module_base.common.ConstantEvent
|
||||||
|
import com.lukouguoji.gjj.dialog.IntImpTallyResetDialogModel
|
||||||
import com.lukouguoji.module_base.http.net.NetApply
|
import com.lukouguoji.module_base.http.net.NetApply
|
||||||
import com.lukouguoji.module_base.impl.FlowBus
|
import com.lukouguoji.module_base.impl.FlowBus
|
||||||
import com.lukouguoji.module_base.ktx.commonAdapter
|
import com.lukouguoji.module_base.ktx.commonAdapter
|
||||||
@@ -134,22 +135,25 @@ class IntArrAirManifestViewModel : BasePageViewModel() {
|
|||||||
fun resetStatusClick() {
|
fun resetStatusClick() {
|
||||||
val (maWbList, haWbList) = getSelectedItems("请选择要重置的舱单") ?: return
|
val (maWbList, haWbList) = getSelectedItems("请选择要重置的舱单") ?: return
|
||||||
|
|
||||||
val param = GjjDeclareParam(
|
val dialog = IntImpTallyResetDialogModel { dialogModel ->
|
||||||
maWbList = maWbList,
|
val param = GjjDeclareParam(
|
||||||
haWbList = haWbList,
|
maWbList = maWbList,
|
||||||
restStatus = null,
|
haWbList = haWbList,
|
||||||
resetReason = "状态重置"
|
restStatus = dialogModel.resetStatusCode
|
||||||
)
|
)
|
||||||
|
|
||||||
launchLoadingCollect({ NetApply.api.resetIntArrManifestStatus(param.toRequestBody()) }) {
|
launchLoadingCollect({ NetApply.api.resetIntArrManifestStatus(param.toRequestBody()) }) {
|
||||||
onSuccess = {
|
onSuccess = {
|
||||||
showToast("状态重置成功")
|
showToast("状态重置成功")
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
FlowBus.with<String>(ConstantEvent.EVENT_REFRESH).emit("refresh")
|
FlowBus.with<String>(ConstantEvent.EVENT_REFRESH).emit("refresh")
|
||||||
|
}
|
||||||
|
refresh()
|
||||||
}
|
}
|
||||||
refresh()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dialog.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -250,6 +254,19 @@ class IntArrAirManifestViewModel : BasePageViewModel() {
|
|||||||
launchLoadingCollect({ NetApply.api.getIntArrAirManifestList(listParams) }) {
|
launchLoadingCollect({ NetApply.api.getIntArrAirManifestList(listParams) }) {
|
||||||
onSuccess = { result ->
|
onSuccess = { result ->
|
||||||
isAllExpanded.value = false
|
isAllExpanded.value = false
|
||||||
|
// 如果接口未返回航班日期/航班号,用筛选条件填充
|
||||||
|
val fd = flightDate.value ?: ""
|
||||||
|
val fn = flightNo.value ?: ""
|
||||||
|
result.list?.forEach { airManifest ->
|
||||||
|
airManifest.maWb?.let {
|
||||||
|
if (it.fdate.isEmpty()) it.fdate = fd
|
||||||
|
if (it.fno.isEmpty()) it.fno = fn
|
||||||
|
}
|
||||||
|
airManifest.haWbList?.forEach {
|
||||||
|
if (it.fdate.isEmpty()) it.fdate = fd
|
||||||
|
if (it.fno.isEmpty()) it.fno = fn
|
||||||
|
}
|
||||||
|
}
|
||||||
pageModel.handleListBean(result.toBaseListBean())
|
pageModel.handleListBean(result.toBaseListBean())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import com.lukouguoji.module_base.ktx.launchCollect
|
|||||||
import com.lukouguoji.module_base.ktx.launchLoadingCollect
|
import com.lukouguoji.module_base.ktx.launchLoadingCollect
|
||||||
import com.lukouguoji.module_base.ktx.showToast
|
import com.lukouguoji.module_base.ktx.showToast
|
||||||
import com.lukouguoji.module_base.ktx.toRequestBody
|
import com.lukouguoji.module_base.ktx.toRequestBody
|
||||||
|
import com.lukouguoji.module_base.ktx.verifyNullOrEmpty
|
||||||
import dev.utils.app.info.KeyValue
|
import dev.utils.app.info.KeyValue
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
@@ -56,7 +57,7 @@ class IntArrSupplementInfoViewModel : BaseViewModel() {
|
|||||||
* 加载国家代码下拉列表
|
* 加载国家代码下拉列表
|
||||||
*/
|
*/
|
||||||
private fun loadCountryCodeList() {
|
private fun loadCountryCodeList() {
|
||||||
launchCollect({ NetApply.api.getAreaTypeList() }) {
|
launchCollect({ NetApply.api.getCountryCodeList() }) {
|
||||||
onSuccess = { result ->
|
onSuccess = { result ->
|
||||||
val keyValueList = result.data?.mapNotNull { bean ->
|
val keyValueList = result.data?.mapNotNull { bean ->
|
||||||
if (bean.code != null && bean.name != null) {
|
if (bean.code != null && bean.name != null) {
|
||||||
@@ -96,6 +97,17 @@ class IntArrSupplementInfoViewModel : BaseViewModel() {
|
|||||||
fun save() {
|
fun save() {
|
||||||
val formBean = dataBean.value ?: return
|
val formBean = dataBean.value ?: return
|
||||||
|
|
||||||
|
// 收货人必填校验
|
||||||
|
if (formBean.consigneeName.verifyNullOrEmpty("收货人名称不能为空")) return
|
||||||
|
if (formBean.consigneeCountryCode.verifyNullOrEmpty("收货人国家代码不能为空")) return
|
||||||
|
if (formBean.consigneeComType.verifyNullOrEmpty("收货人通讯方式不能为空")) return
|
||||||
|
if (formBean.consigneePNum.verifyNullOrEmpty("收货人联系号码不能为空")) return
|
||||||
|
// 发货人必填校验
|
||||||
|
if (formBean.consignorName.verifyNullOrEmpty("发货人名称不能为空")) return
|
||||||
|
if (formBean.consignorCountryCode.verifyNullOrEmpty("发货人国家代码不能为空")) return
|
||||||
|
if (formBean.consignorComType.verifyNullOrEmpty("发货人通讯方式不能为空")) return
|
||||||
|
if (formBean.consignorPNum.verifyNullOrEmpty("发货人联系号码不能为空")) return
|
||||||
|
|
||||||
if (manifestList.isEmpty()) {
|
if (manifestList.isEmpty()) {
|
||||||
showToast("无可保存的数据")
|
showToast("无可保存的数据")
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.lukouguoji.gjj.viewModel
|
|||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
|
import androidx.lifecycle.Observer
|
||||||
import androidx.lifecycle.viewModelScope
|
import androidx.lifecycle.viewModelScope
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.lukouguoji.module_base.base.BaseViewModel
|
import com.lukouguoji.module_base.base.BaseViewModel
|
||||||
@@ -25,10 +26,27 @@ class IntImpPickUpChargeEditViewModel : BaseViewModel() {
|
|||||||
// 可编辑费用字段(String 用于双向绑定)
|
// 可编辑费用字段(String 用于双向绑定)
|
||||||
val tranChargeStr = MutableLiveData("") // 信息费
|
val tranChargeStr = MutableLiveData("") // 信息费
|
||||||
val whsChargeStr = MutableLiveData("") // 仓储费
|
val whsChargeStr = MutableLiveData("") // 仓储费
|
||||||
val drawBillChargeStr = MutableLiveData("") // 抽单费
|
val drawBillChargeStr = MutableLiveData("") // 文件处理费
|
||||||
val efrChargeStr = MutableLiveData("") // 冷藏费
|
val svlChargeStr = MutableLiveData("") // 叉车费
|
||||||
val svlChargeStr = MutableLiveData("") // 铲车费
|
|
||||||
val tallyChargeStr = MutableLiveData("") // 理货费
|
val tallyChargeStr = MutableLiveData("") // 理货费
|
||||||
|
val pipFeeStr = MutableLiveData("") // 精密仪器处理费
|
||||||
|
val lapFeeStr = MutableLiveData("") // 活体动物处理费
|
||||||
|
val totalAmountStr = MutableLiveData("") // 总费用(实时计算)
|
||||||
|
|
||||||
|
// 总费用计算观察者
|
||||||
|
private val totalCalculator = Observer<String> { calculateTotal() }
|
||||||
|
|
||||||
|
private fun calculateTotal() {
|
||||||
|
val total = (tranChargeStr.value?.toDoubleOrNull() ?: 0.0) +
|
||||||
|
(whsChargeStr.value?.toDoubleOrNull() ?: 0.0) +
|
||||||
|
(drawBillChargeStr.value?.toDoubleOrNull() ?: 0.0) +
|
||||||
|
(svlChargeStr.value?.toDoubleOrNull() ?: 0.0) +
|
||||||
|
(tallyChargeStr.value?.toDoubleOrNull() ?: 0.0) +
|
||||||
|
(dataBean.value?.optCharge ?: 0.0) +
|
||||||
|
(pipFeeStr.value?.toDoubleOrNull() ?: 0.0) +
|
||||||
|
(lapFeeStr.value?.toDoubleOrNull() ?: 0.0)
|
||||||
|
totalAmountStr.value = if (total != 0.0) total.toString() else ""
|
||||||
|
}
|
||||||
|
|
||||||
fun initOnCreated(intent: Intent) {
|
fun initOnCreated(intent: Intent) {
|
||||||
val jsonData = intent.getStringExtra(Constant.Key.DATA) ?: ""
|
val jsonData = intent.getStringExtra(Constant.Key.DATA) ?: ""
|
||||||
@@ -40,9 +58,22 @@ class IntImpPickUpChargeEditViewModel : BaseViewModel() {
|
|||||||
tranChargeStr.value = if (bean.tranCharge != 0.0) bean.tranCharge.toString() else ""
|
tranChargeStr.value = if (bean.tranCharge != 0.0) bean.tranCharge.toString() else ""
|
||||||
whsChargeStr.value = if (bean.whsCharge != 0.0) bean.whsCharge.toString() else ""
|
whsChargeStr.value = if (bean.whsCharge != 0.0) bean.whsCharge.toString() else ""
|
||||||
drawBillChargeStr.value = if (bean.drawBillCharge != 0.0) bean.drawBillCharge.toString() else ""
|
drawBillChargeStr.value = if (bean.drawBillCharge != 0.0) bean.drawBillCharge.toString() else ""
|
||||||
efrChargeStr.value = if (bean.efrCharge != 0.0) bean.efrCharge.toString() else ""
|
|
||||||
svlChargeStr.value = if (bean.svlCharge != 0.0) bean.svlCharge.toString() else ""
|
svlChargeStr.value = if (bean.svlCharge != 0.0) bean.svlCharge.toString() else ""
|
||||||
tallyChargeStr.value = if (bean.tallyCharge != 0.0) bean.tallyCharge.toString() else ""
|
tallyChargeStr.value = if (bean.tallyCharge != 0.0) bean.tallyCharge.toString() else ""
|
||||||
|
pipFeeStr.value = if (bean.pipFee != 0.0) bean.pipFee.toString() else ""
|
||||||
|
lapFeeStr.value = if (bean.lapFee != 0.0) bean.lapFee.toString() else ""
|
||||||
|
|
||||||
|
// 注册总费用实时计算
|
||||||
|
tranChargeStr.observeForever(totalCalculator)
|
||||||
|
whsChargeStr.observeForever(totalCalculator)
|
||||||
|
drawBillChargeStr.observeForever(totalCalculator)
|
||||||
|
svlChargeStr.observeForever(totalCalculator)
|
||||||
|
tallyChargeStr.observeForever(totalCalculator)
|
||||||
|
pipFeeStr.observeForever(totalCalculator)
|
||||||
|
lapFeeStr.observeForever(totalCalculator)
|
||||||
|
|
||||||
|
// 初始计算一次
|
||||||
|
calculateTotal()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
showToast("数据解析失败")
|
showToast("数据解析失败")
|
||||||
getTopActivity().finish()
|
getTopActivity().finish()
|
||||||
@@ -63,9 +94,11 @@ class IntImpPickUpChargeEditViewModel : BaseViewModel() {
|
|||||||
bean.tranCharge = tranChargeStr.value?.toDoubleOrNull() ?: 0.0
|
bean.tranCharge = tranChargeStr.value?.toDoubleOrNull() ?: 0.0
|
||||||
bean.whsCharge = whsChargeStr.value?.toDoubleOrNull() ?: 0.0
|
bean.whsCharge = whsChargeStr.value?.toDoubleOrNull() ?: 0.0
|
||||||
bean.drawBillCharge = drawBillChargeStr.value?.toDoubleOrNull() ?: 0.0
|
bean.drawBillCharge = drawBillChargeStr.value?.toDoubleOrNull() ?: 0.0
|
||||||
bean.efrCharge = efrChargeStr.value?.toDoubleOrNull() ?: 0.0
|
|
||||||
bean.svlCharge = svlChargeStr.value?.toDoubleOrNull() ?: 0.0
|
bean.svlCharge = svlChargeStr.value?.toDoubleOrNull() ?: 0.0
|
||||||
bean.tallyCharge = tallyChargeStr.value?.toDoubleOrNull() ?: 0.0
|
bean.tallyCharge = tallyChargeStr.value?.toDoubleOrNull() ?: 0.0
|
||||||
|
bean.pipFee = pipFeeStr.value?.toDoubleOrNull() ?: 0.0
|
||||||
|
bean.lapFee = lapFeeStr.value?.toDoubleOrNull() ?: 0.0
|
||||||
|
bean.amount = totalAmountStr.value?.toDoubleOrNull() ?: 0.0
|
||||||
|
|
||||||
launchLoadingCollect({
|
launchLoadingCollect({
|
||||||
NetApply.api.modifyIntImpPickUpCharge(bean.toRequestBody())
|
NetApply.api.modifyIntImpPickUpCharge(bean.toRequestBody())
|
||||||
@@ -86,4 +119,15 @@ class IntImpPickUpChargeEditViewModel : BaseViewModel() {
|
|||||||
fun cancel() {
|
fun cancel() {
|
||||||
getTopActivity().finish()
|
getTopActivity().finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onCleared() {
|
||||||
|
super.onCleared()
|
||||||
|
tranChargeStr.removeObserver(totalCalculator)
|
||||||
|
whsChargeStr.removeObserver(totalCalculator)
|
||||||
|
drawBillChargeStr.removeObserver(totalCalculator)
|
||||||
|
svlChargeStr.removeObserver(totalCalculator)
|
||||||
|
tallyChargeStr.removeObserver(totalCalculator)
|
||||||
|
pipFeeStr.removeObserver(totalCalculator)
|
||||||
|
lapFeeStr.removeObserver(totalCalculator)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ class IntImpPickUpRecordViewModel : BasePageViewModel() {
|
|||||||
fun initSpecialCodeList() {
|
fun initSpecialCodeList() {
|
||||||
DictUtils.getSpecialCodeList(
|
DictUtils.getSpecialCodeList(
|
||||||
flag = 1, // 国际
|
flag = 1, // 国际
|
||||||
ieFlag = "I", // 进港
|
ieFlag = "",
|
||||||
parentcode = ""
|
parentcode = ""
|
||||||
) {
|
) {
|
||||||
spCodeList.value = it
|
spCodeList.value = it
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import com.lukouguoji.module_base.ktx.launchCollect
|
|||||||
import com.lukouguoji.module_base.ktx.launchLoadingCollect
|
import com.lukouguoji.module_base.ktx.launchLoadingCollect
|
||||||
import com.lukouguoji.module_base.ktx.showToast
|
import com.lukouguoji.module_base.ktx.showToast
|
||||||
import com.lukouguoji.module_base.ktx.toRequestBody
|
import com.lukouguoji.module_base.ktx.toRequestBody
|
||||||
|
import com.lukouguoji.module_base.util.DictUtils
|
||||||
import dev.utils.app.info.KeyValue
|
import dev.utils.app.info.KeyValue
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
@@ -88,7 +89,7 @@ class IntImpQueryEditViewModel : BaseViewModel() {
|
|||||||
* flag=1(国际), ieFlag=I(进港)
|
* flag=1(国际), ieFlag=I(进港)
|
||||||
*/
|
*/
|
||||||
private fun loadSpCodeList() {
|
private fun loadSpCodeList() {
|
||||||
launchCollect({ NetApply.api.getSpecialCodeList(1, "I", "") }) {
|
launchCollect({ NetApply.api.getSpecialCodeList(1, "", "") }) {
|
||||||
onSuccess = { result ->
|
onSuccess = { result ->
|
||||||
val list = result.data?.mapNotNull { bean ->
|
val list = result.data?.mapNotNull { bean ->
|
||||||
if (bean.name != null && bean.code != null) {
|
if (bean.name != null && bean.code != null) {
|
||||||
@@ -102,19 +103,12 @@ class IntImpQueryEditViewModel : BaseViewModel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加载包装类型下拉列表(国际进港专用)
|
* 加载包装类型下拉列表(收运包装类型)
|
||||||
*/
|
*/
|
||||||
private fun loadPackageTypeList() {
|
private fun loadPackageTypeList() {
|
||||||
launchCollect({ NetApply.api.getGjjPackTypeList() }) {
|
DictUtils.getShouYunPackageTypeList(checkedValue = dataBean.value?.packageType) {
|
||||||
onSuccess = { result ->
|
packageTypeList.postValue(it)
|
||||||
val list = result.data?.mapNotNull { bean ->
|
matchPackageType()
|
||||||
if (bean.packageName.isNotEmpty()) {
|
|
||||||
KeyValue(bean.packageName, bean.packageName)
|
|
||||||
} else null
|
|
||||||
} ?: emptyList()
|
|
||||||
packageTypeList.value = list
|
|
||||||
matchPackageType()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import android.content.Intent
|
|||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import com.lukouguoji.gjj.R
|
import com.lukouguoji.gjj.R
|
||||||
import com.lukouguoji.gjj.activity.IntImpQueryEditActivity
|
import com.lukouguoji.gjj.activity.IntImpQueryEditActivity
|
||||||
import com.lukouguoji.gjj.dialog.IntImpQueryFilterDialogModel
|
|
||||||
import com.lukouguoji.gjj.holder.IntImpQueryViewHolder
|
import com.lukouguoji.gjj.holder.IntImpQueryViewHolder
|
||||||
import com.lukouguoji.gjj.activity.IntImpQueryDetailsActivity
|
import com.lukouguoji.gjj.activity.IntImpQueryDetailsActivity
|
||||||
import com.lukouguoji.module_base.base.BasePageViewModel
|
import com.lukouguoji.module_base.base.BasePageViewModel
|
||||||
@@ -19,6 +18,7 @@ import com.lukouguoji.module_base.ktx.launchLoadingCollect
|
|||||||
import com.lukouguoji.module_base.ktx.showToast
|
import com.lukouguoji.module_base.ktx.showToast
|
||||||
import com.lukouguoji.module_base.ktx.toRequestBody
|
import com.lukouguoji.module_base.ktx.toRequestBody
|
||||||
import com.lukouguoji.module_base.model.ScanModel
|
import com.lukouguoji.module_base.model.ScanModel
|
||||||
|
import com.lukouguoji.module_base.util.DictUtils
|
||||||
import dev.utils.app.info.KeyValue
|
import dev.utils.app.info.KeyValue
|
||||||
import dev.utils.common.DateUtils
|
import dev.utils.common.DateUtils
|
||||||
import com.lukouguoji.module_base.ktx.formatDate
|
import com.lukouguoji.module_base.ktx.formatDate
|
||||||
@@ -55,10 +55,18 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
|
|||||||
val totalPc = MutableLiveData("0")
|
val totalPc = MutableLiveData("0")
|
||||||
val totalWeight = MutableLiveData("0")
|
val totalWeight = MutableLiveData("0")
|
||||||
|
|
||||||
|
// ==================== 特码下拉 ====================
|
||||||
|
val spCodeList = MutableLiveData<List<KeyValue>>(emptyList())
|
||||||
|
|
||||||
|
// ==================== 筛选面板 ====================
|
||||||
|
val filterVisible = MutableLiveData(false)
|
||||||
|
val awbTypeList = MutableLiveData<List<KeyValue>>(emptyList())
|
||||||
|
val businessTypeList = MutableLiveData<List<KeyValue>>(emptyList())
|
||||||
|
|
||||||
// ==================== 筛选条件 ====================
|
// ==================== 筛选条件 ====================
|
||||||
val spCode = MutableLiveData("")
|
val spCode = MutableLiveData("")
|
||||||
val flightNo = MutableLiveData("")
|
val flightNo = MutableLiveData("")
|
||||||
val dest = MutableLiveData("")
|
val origin = MutableLiveData("")
|
||||||
val awbType = MutableLiveData("")
|
val awbType = MutableLiveData("")
|
||||||
val businessType = MutableLiveData("")
|
val businessType = MutableLiveData("")
|
||||||
val goodsCn = MutableLiveData("")
|
val goodsCn = MutableLiveData("")
|
||||||
@@ -76,16 +84,34 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun filterClick() {
|
fun filterClick() {
|
||||||
val filterDialog = IntImpQueryFilterDialogModel(
|
filterVisible.value = true
|
||||||
spCode = spCode,
|
}
|
||||||
flightNo = flightNo,
|
|
||||||
dest = dest,
|
fun closeFilter() {
|
||||||
awbType = awbType,
|
filterVisible.value = false
|
||||||
businessType = businessType,
|
}
|
||||||
goodsCn = goodsCn,
|
|
||||||
onConfirm = { refresh() }
|
fun resetFilter() {
|
||||||
)
|
spCode.value = ""
|
||||||
filterDialog.show()
|
flightNo.value = ""
|
||||||
|
origin.value = ""
|
||||||
|
awbType.value = ""
|
||||||
|
businessType.value = ""
|
||||||
|
goodsCn.value = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
fun confirmFilter() {
|
||||||
|
filterVisible.value = false
|
||||||
|
refresh()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun initFilterLists() {
|
||||||
|
DictUtils.getWaybillTypeList(type = "II", addAll = true, checkedValue = awbType.value) {
|
||||||
|
awbTypeList.postValue(it)
|
||||||
|
}
|
||||||
|
DictUtils.getBusinessTypeList(type = "II", addAll = true, checkedValue = businessType.value) {
|
||||||
|
businessTypeList.postValue(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getData() {
|
override fun getData() {
|
||||||
@@ -99,7 +125,7 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
|
|||||||
"wbNo" to waybillNo.value!!.ifEmpty { null },
|
"wbNo" to waybillNo.value!!.ifEmpty { null },
|
||||||
"spCode" to spCode.value!!.ifEmpty { null },
|
"spCode" to spCode.value!!.ifEmpty { null },
|
||||||
"fno" to flightNo.value!!.ifEmpty { null },
|
"fno" to flightNo.value!!.ifEmpty { null },
|
||||||
"dest" to dest.value!!.ifEmpty { null },
|
"origin" to origin.value!!.ifEmpty { null },
|
||||||
"awbType" to awbType.value!!.ifEmpty { null },
|
"awbType" to awbType.value!!.ifEmpty { null },
|
||||||
"businessType" to businessType.value!!.ifEmpty { null },
|
"businessType" to businessType.value!!.ifEmpty { null },
|
||||||
"goods" to goodsCn.value!!.ifEmpty { null }
|
"goods" to goodsCn.value!!.ifEmpty { null }
|
||||||
@@ -113,7 +139,7 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
|
|||||||
"wbNo" to waybillNo.value!!.ifEmpty { null },
|
"wbNo" to waybillNo.value!!.ifEmpty { null },
|
||||||
"spCode" to spCode.value!!.ifEmpty { null },
|
"spCode" to spCode.value!!.ifEmpty { null },
|
||||||
"fno" to flightNo.value!!.ifEmpty { null },
|
"fno" to flightNo.value!!.ifEmpty { null },
|
||||||
"dest" to dest.value!!.ifEmpty { null },
|
"origin" to origin.value!!.ifEmpty { null },
|
||||||
"awbType" to awbType.value!!.ifEmpty { null },
|
"awbType" to awbType.value!!.ifEmpty { null },
|
||||||
"businessType" to businessType.value!!.ifEmpty { null },
|
"businessType" to businessType.value!!.ifEmpty { null },
|
||||||
"goods" to goodsCn.value!!.ifEmpty { null }
|
"goods" to goodsCn.value!!.ifEmpty { null }
|
||||||
@@ -166,6 +192,16 @@ class IntImpQueryViewModel : BasePageViewModel(), IOnItemClickListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun initSpecialCodeList() {
|
||||||
|
DictUtils.getSpecialCodeList(
|
||||||
|
flag = 1,
|
||||||
|
ieFlag = "",
|
||||||
|
parentcode = ""
|
||||||
|
) {
|
||||||
|
spCodeList.value = it
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun initAgentList() {
|
fun initAgentList() {
|
||||||
launchCollect({
|
launchCollect({
|
||||||
NetApply.api.getIntImpAgentList()
|
NetApply.api.getIntImpAgentList()
|
||||||
|
|||||||
@@ -182,6 +182,18 @@ class IntImpTallyViewModel : BasePageViewModel() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 校验所选单据状态是否为 01(已申报)
|
||||||
|
val invalidMaWb = selectedMaWb.firstOrNull { it.status != "01" }
|
||||||
|
if (invalidMaWb != null) {
|
||||||
|
showToast("运单 ${invalidMaWb.getWaybillNo()} 理货未申报,不允许删除理货")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
val invalidHaWb = selectedHaWb.firstOrNull { it.status != "01" }
|
||||||
|
if (invalidHaWb != null) {
|
||||||
|
showToast("运单 ${invalidHaWb.getWaybillNo()} 理货未申报,不允许删除理货")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 从接口获取删除原因列表
|
// 从接口获取删除原因列表
|
||||||
launchLoadingCollect({ NetApply.api.getDelReasonList() }) {
|
launchLoadingCollect({ NetApply.api.getDelReasonList() }) {
|
||||||
onSuccess = { result ->
|
onSuccess = { result ->
|
||||||
|
|||||||
@@ -61,10 +61,10 @@
|
|||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"特码"}'
|
title='@{"航班信息"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.spCode}'
|
value='@{viewModel.dataBean.getFlightSplit()}'
|
||||||
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" />
|
||||||
|
|||||||
@@ -59,6 +59,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入名称"}'
|
hint='@{"请输入名称"}'
|
||||||
|
required="@{true}"
|
||||||
title='@{"名称"}'
|
title='@{"名称"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
@@ -71,6 +72,7 @@
|
|||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请选择国家代码"}'
|
hint='@{"请选择国家代码"}'
|
||||||
list="@{viewModel.countryCodeList}"
|
list="@{viewModel.countryCodeList}"
|
||||||
|
required="@{true}"
|
||||||
title='@{"国家代码"}'
|
title='@{"国家代码"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.SPINNER}"
|
type="@{DataLayoutType.SPINNER}"
|
||||||
@@ -83,6 +85,7 @@
|
|||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请选择通讯方式"}'
|
hint='@{"请选择通讯方式"}'
|
||||||
list="@{viewModel.comTypeList}"
|
list="@{viewModel.comTypeList}"
|
||||||
|
required="@{true}"
|
||||||
title='@{"通讯方式"}'
|
title='@{"通讯方式"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.SPINNER}"
|
type="@{DataLayoutType.SPINNER}"
|
||||||
@@ -103,6 +106,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入联系号码"}'
|
hint='@{"请输入联系号码"}'
|
||||||
|
required="@{true}"
|
||||||
title='@{"联系号码"}'
|
title='@{"联系号码"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
@@ -154,6 +158,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入名称"}'
|
hint='@{"请输入名称"}'
|
||||||
|
required="@{true}"
|
||||||
title='@{"名称"}'
|
title='@{"名称"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
@@ -166,6 +171,7 @@
|
|||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请选择国家代码"}'
|
hint='@{"请选择国家代码"}'
|
||||||
list="@{viewModel.countryCodeList}"
|
list="@{viewModel.countryCodeList}"
|
||||||
|
required="@{true}"
|
||||||
title='@{"国家代码"}'
|
title='@{"国家代码"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.SPINNER}"
|
type="@{DataLayoutType.SPINNER}"
|
||||||
@@ -178,6 +184,7 @@
|
|||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请选择通讯方式"}'
|
hint='@{"请选择通讯方式"}'
|
||||||
list="@{viewModel.comTypeList}"
|
list="@{viewModel.comTypeList}"
|
||||||
|
required="@{true}"
|
||||||
title='@{"通讯方式"}'
|
title='@{"通讯方式"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.SPINNER}"
|
type="@{DataLayoutType.SPINNER}"
|
||||||
@@ -198,6 +205,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入联系号码"}'
|
hint='@{"请输入联系号码"}'
|
||||||
|
required="@{true}"
|
||||||
title='@{"联系号码"}'
|
title='@{"联系号码"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
|||||||
@@ -99,11 +99,10 @@
|
|||||||
android:src="@drawable/img_search" />
|
android:src="@drawable/img_search" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="36dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="36dp"
|
android:layout_height="40dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:onClick="@{()-> viewModel.addClick()}"
|
android:onClick="@{()-> viewModel.addClick()}"
|
||||||
android:padding="4dp"
|
|
||||||
android:src="@drawable/img_add" />
|
android:src="@drawable/img_add" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|||||||
@@ -109,11 +109,10 @@
|
|||||||
|
|
||||||
<!-- 新增按钮 -->
|
<!-- 新增按钮 -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="36dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="36dp"
|
android:layout_height="40dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:onClick="@{()-> viewModel.onAddClick()}"
|
android:onClick="@{()-> viewModel.onAddClick()}"
|
||||||
android:padding="4dp"
|
|
||||||
android:src="@drawable/img_add" />
|
android:src="@drawable/img_add" />
|
||||||
|
|
||||||
<!-- 删除按钮 -->
|
<!-- 删除按钮 -->
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"运 单 号"}'
|
title='@{"运 单 号"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.wbNo}' />
|
value='@{viewModel.dataBean.wbNo}' />
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"代 理 人"}'
|
title='@{"代 理 人"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.agentCode}' />
|
value='@{viewModel.dataBean.agentCode}' />
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"特 码"}'
|
title='@{"特 码"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.spCode}' />
|
value='@{viewModel.dataBean.spCode}' />
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"提货编号"}'
|
title='@{"提货编号"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.pkId}' />
|
value='@{viewModel.dataBean.pkId}' />
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"件数"}'
|
title='@{"件数"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.pc)}' />
|
value='@{String.valueOf(viewModel.dataBean.pc)}' />
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"重量"}'
|
title='@{"重量"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.weight)}' />
|
value='@{String.valueOf(viewModel.dataBean.weight)}' />
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"计费重量"}'
|
title='@{"计费重量"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.cashWeight)}' />
|
value='@{String.valueOf(viewModel.dataBean.cashWeight)}' />
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入信息费"}'
|
hint='@{"请输入信息费"}'
|
||||||
title='@{"信息费"}'
|
title='@{"信息费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={viewModel.tranChargeStr}' />
|
value='@={viewModel.tranChargeStr}' />
|
||||||
|
|
||||||
@@ -149,13 +149,13 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"服务费"}'
|
title='@{"服务费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.optCharge)}' />
|
value='@{String.valueOf(viewModel.dataBean.optCharge)}' />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 第4行:仓储费、抽单费、冷藏费(可编辑) -->
|
<!-- 第4行:仓储费、文件处理费、叉车费(可编辑) -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入仓储费"}'
|
hint='@{"请输入仓储费"}'
|
||||||
title='@{"仓储费"}'
|
title='@{"仓储费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={viewModel.whsChargeStr}' />
|
value='@={viewModel.whsChargeStr}' />
|
||||||
|
|
||||||
@@ -178,9 +178,9 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入抽单费"}'
|
hint='@{"请输入文件处理费"}'
|
||||||
title='@{"抽单费"}'
|
title='@{"文件处理费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={viewModel.drawBillChargeStr}' />
|
value='@={viewModel.drawBillChargeStr}' />
|
||||||
|
|
||||||
@@ -189,32 +189,21 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入冷藏费"}'
|
hint='@{"请输入叉车费"}'
|
||||||
title='@{"冷藏费"}'
|
title='@{"叉车费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={viewModel.efrChargeStr}' />
|
value='@={viewModel.svlChargeStr}' />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 第5行:铲车费、理货费(可编辑)、总金额(只读) -->
|
<!-- 第5行:理货费、精密仪器处理费、活体动物处理费(可编辑) -->
|
||||||
<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="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
enable="@{true}"
|
|
||||||
hint='@{"请输入铲车费"}'
|
|
||||||
title='@{"铲车费"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@={viewModel.svlChargeStr}' />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -222,7 +211,7 @@
|
|||||||
enable="@{true}"
|
enable="@{true}"
|
||||||
hint='@{"请输入理货费"}'
|
hint='@{"请输入理货费"}'
|
||||||
title='@{"理货费"}'
|
title='@{"理货费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={viewModel.tallyChargeStr}' />
|
value='@={viewModel.tallyChargeStr}' />
|
||||||
|
|
||||||
@@ -230,11 +219,64 @@
|
|||||||
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"
|
||||||
enable="@{false}"
|
enable="@{true}"
|
||||||
title='@{"总金额"}'
|
hint='@{"请输入精密仪器处理费"}'
|
||||||
titleLength="@{5}"
|
title='@{"精密仪器处理费"}'
|
||||||
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.amount)}' />
|
value='@={viewModel.pipFeeStr}' />
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
enable="@{true}"
|
||||||
|
hint='@{"请输入活体动物处理费"}'
|
||||||
|
title='@{"活体动物处理费"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@={viewModel.lapFeeStr}' />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- 第6行:总费用(只读,实时计算) -->
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"总费用"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{viewModel.totalAmountStr}' />
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:visibility="invisible"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{""}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{""}' />
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:visibility="invisible"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{""}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{""}' />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -41,34 +41,34 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"运单号"}'
|
title='@{"运单号"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.wbNo}'
|
value='@{viewModel.dataBean.wbNo}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"代理人"}'
|
title='@{"代理人"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.agentCode}'
|
value='@{viewModel.dataBean.agentCode}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
|
||||||
title='@{"特码"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@{viewModel.dataBean.spCode}'
|
|
||||||
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"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"特码"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{viewModel.dataBean.spCode}' />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@@ -80,34 +80,34 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"提货编号"}'
|
title='@{"提货编号"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.pkId}'
|
value='@{viewModel.dataBean.pkId}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"件数"}'
|
title='@{"件数"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.pc)}'
|
value='@{String.valueOf(viewModel.dataBean.pc)}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
|
||||||
title='@{"重量"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@{String.valueOf(viewModel.dataBean.weight)}'
|
|
||||||
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"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"重量"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{String.valueOf(viewModel.dataBean.weight)}' />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@@ -119,38 +119,38 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"计费重量"}'
|
title='@{"计费重量"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.cashWeight)}'
|
value='@{String.valueOf(viewModel.dataBean.cashWeight)}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"信息费"}'
|
title='@{"信息费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.tranCharge)}'
|
value='@{String.valueOf(viewModel.dataBean.tranCharge)}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"服务费"}'
|
title='@{"服务费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.optCharge)}'
|
value='@{String.valueOf(viewModel.dataBean.optCharge)}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 第4行:仓储费、抽单费、冷藏费 -->
|
<!-- 第4行:仓储费、文件处理费、叉车费 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -158,38 +158,38 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"仓储费"}'
|
title='@{"仓储费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.whsCharge)}'
|
value='@{String.valueOf(viewModel.dataBean.whsCharge)}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
|
||||||
title='@{"抽单费"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@{String.valueOf(viewModel.dataBean.drawBillCharge)}'
|
|
||||||
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"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"文件处理费"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{String.valueOf(viewModel.dataBean.drawBillCharge)}' />
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
|
||||||
title='@{"冷藏费"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@{String.valueOf(viewModel.dataBean.efrCharge)}'
|
|
||||||
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"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"叉车费"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{String.valueOf(viewModel.dataBean.svlCharge)}' />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 第5行:铲车费、理货费、总金额 -->
|
<!-- 第5行:理货费、精密仪器处理费、活体动物处理费 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -197,38 +197,38 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
|
||||||
title='@{"铲车费"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@{String.valueOf(viewModel.dataBean.svlCharge)}'
|
|
||||||
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"
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"理货费"}'
|
title='@{"理货费"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{String.valueOf(viewModel.dataBean.tallyCharge)}'
|
value='@{String.valueOf(viewModel.dataBean.tallyCharge)}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
|
||||||
title='@{"总金额"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@{String.valueOf(viewModel.dataBean.amount)}'
|
|
||||||
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"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"精密仪器处理费"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{String.valueOf(viewModel.dataBean.pipFee)}' />
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"活体动物处理费"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{String.valueOf(viewModel.dataBean.lapFee)}' />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 第6行:提取时间、办理人、出库时间 -->
|
<!-- 第6行:总费用、提取时间、办理人 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -236,34 +236,75 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"总费用"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{String.valueOf(viewModel.dataBean.amount)}' />
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"提取时间"}'
|
title='@{"提取时间"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.chargeTime}'
|
value='@{viewModel.dataBean.chargeTime}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"办理人"}'
|
title='@{"办理人"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{7}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.chargeName}'
|
value='@{viewModel.dataBean.chargeName}' />
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
</LinearLayout>
|
||||||
android:layout_weight="1" />
|
|
||||||
|
<!-- 第7行:出库时间 -->
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
|
||||||
title='@{"出库时间"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@{viewModel.dataBean.dlvTime}'
|
|
||||||
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"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{"出库时间"}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{viewModel.dataBean.dlvTime}' />
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:visibility="invisible"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{""}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{""}' />
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:visibility="invisible"
|
||||||
|
enable="@{false}"
|
||||||
|
title='@{""}'
|
||||||
|
titleLength="@{7}"
|
||||||
|
type="@{DataLayoutType.INPUT}"
|
||||||
|
value='@{""}' />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -17,167 +17,204 @@
|
|||||||
android:background="@color/color_f2"
|
android:background="@color/color_f2"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<!-- 标题栏 -->
|
<!-- 标题栏(始终在最上层,不被遮挡) -->
|
||||||
<include layout="@layout/title_tool_bar" />
|
<include layout="@layout/title_tool_bar" />
|
||||||
|
|
||||||
<!-- 搜索区域 -->
|
<!-- 内容区域(FrameLayout 包裹,筛选面板和遮罩只在此区域内) -->
|
||||||
<LinearLayout
|
<FrameLayout
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="10dp"
|
|
||||||
android:layout_marginTop="10dp"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<!-- 航班日期起 -->
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
hint='@{"请选择开始日期"}'
|
|
||||||
icon="@{@drawable/img_date}"
|
|
||||||
type="@{SearchLayoutType.DATE}"
|
|
||||||
value="@={viewModel.flightDateStart}" />
|
|
||||||
|
|
||||||
<!-- 航班日期止 -->
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
hint='@{"请选择结束日期"}'
|
|
||||||
icon="@{@drawable/img_date}"
|
|
||||||
type="@{SearchLayoutType.DATE}"
|
|
||||||
value="@={viewModel.flightDateEnd}" />
|
|
||||||
|
|
||||||
<!-- 代理人 -->
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
hint='@{"请选择代理"}'
|
|
||||||
list="@{viewModel.agentList}"
|
|
||||||
type="@{SearchLayoutType.SPINNER}"
|
|
||||||
value="@={viewModel.agentId}" />
|
|
||||||
|
|
||||||
<!-- 出库状态 -->
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
hint='@{"请选择出库状态"}'
|
|
||||||
list="@{viewModel.outStatusList}"
|
|
||||||
type="@{SearchLayoutType.SPINNER}"
|
|
||||||
value="@={viewModel.outStatus}" />
|
|
||||||
|
|
||||||
<!-- 运单号 -->
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
hint='@{"请输入运单号"}'
|
|
||||||
icon="@{@drawable/img_scan}"
|
|
||||||
setOnIconClickListener="@{()-> viewModel.waybillScanClick()}"
|
|
||||||
type="@{SearchLayoutType.INPUT}"
|
|
||||||
value="@={viewModel.waybillNo}"
|
|
||||||
autoQueryEnabled="@{true}"
|
|
||||||
autoQueryUrl="@{`/IntImpSearch/queryWbNoList`}"
|
|
||||||
autoQueryParamKey="@{`wbNo`}"
|
|
||||||
autoQueryMinLength="@{4}"
|
|
||||||
autoQueryMaxLength="@{8}"
|
|
||||||
autoQueryTitle="@{`选择运单号`}" />
|
|
||||||
|
|
||||||
<!-- 搜索和筛选按钮 -->
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center_vertical|start"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingHorizontal="24dp">
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="36dp"
|
|
||||||
android:layout_height="36dp"
|
|
||||||
android:onClick="@{()-> viewModel.searchClick()}"
|
|
||||||
android:padding="2dp"
|
|
||||||
android:src="@drawable/img_search" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="36dp"
|
|
||||||
android:layout_height="36dp"
|
|
||||||
android:layout_marginLeft="16dp"
|
|
||||||
android:onClick="@{()-> viewModel.filterClick()}"
|
|
||||||
android:padding="5dp"
|
|
||||||
android:src="@drawable/img_filter" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<!-- 列表区域 -->
|
|
||||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
||||||
android:id="@+id/srl"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<!-- 原有内容 -->
|
||||||
android:id="@+id/rv"
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
itemLayoutId="@{viewModel.itemLayoutId}"
|
android:orientation="vertical">
|
||||||
viewHolder="@{viewModel.itemViewHolder}"
|
|
||||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
||||||
tools:listitem="@layout/item_int_imp_query" />
|
|
||||||
|
|
||||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
<!-- 搜索区域 -->
|
||||||
|
<LinearLayout
|
||||||
<!-- 底部统计信息 -->
|
android:layout_width="match_parent"
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:background="@color/white"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:paddingHorizontal="15dp">
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text='@{`合计:` + viewModel.totalCount + `票`}'
|
android:layout_marginHorizontal="10dp"
|
||||||
android:textColor="@color/bottom_tool_tips_text_color"
|
android:layout_marginTop="10dp"
|
||||||
android:textSize="16sp"
|
android:gravity="center_vertical"
|
||||||
android:textStyle="bold"
|
android:orientation="horizontal">
|
||||||
tools:text="合计:3票" />
|
|
||||||
|
|
||||||
<TextView
|
<!-- 航班日期起 -->
|
||||||
android:layout_width="wrap_content"
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_height="wrap_content"
|
||||||
android:text='@{`总件数:` + viewModel.totalPc}'
|
android:layout_weight="1"
|
||||||
android:textColor="@color/bottom_tool_tips_text_color"
|
hint='@{"请选择开始日期"}'
|
||||||
android:textSize="16sp"
|
icon="@{@drawable/img_date}"
|
||||||
android:textStyle="bold"
|
type="@{SearchLayoutType.DATE}"
|
||||||
tools:text="总件数:100" />
|
value="@={viewModel.flightDateStart}" />
|
||||||
|
|
||||||
<TextView
|
<!-- 航班日期止 -->
|
||||||
android:layout_width="wrap_content"
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_height="wrap_content"
|
||||||
android:text='@{`总重量:` + viewModel.totalWeight}'
|
android:layout_weight="1"
|
||||||
android:textColor="@color/bottom_tool_tips_text_color"
|
hint='@{"请选择结束日期"}'
|
||||||
android:textSize="16sp"
|
icon="@{@drawable/img_date}"
|
||||||
android:textStyle="bold"
|
type="@{SearchLayoutType.DATE}"
|
||||||
tools:text="总重量:100" />
|
value="@={viewModel.flightDateEnd}" />
|
||||||
|
|
||||||
|
<!-- 代理人 -->
|
||||||
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
hint='@{"请选择代理"}'
|
||||||
|
list="@{viewModel.agentList}"
|
||||||
|
type="@{SearchLayoutType.SPINNER}"
|
||||||
|
value="@={viewModel.agentId}" />
|
||||||
|
|
||||||
|
<!-- 出库状态 -->
|
||||||
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
hint='@{"请选择出库状态"}'
|
||||||
|
list="@{viewModel.outStatusList}"
|
||||||
|
type="@{SearchLayoutType.SPINNER}"
|
||||||
|
value="@={viewModel.outStatus}" />
|
||||||
|
|
||||||
|
<!-- 运单号 -->
|
||||||
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
hint='@{"请输入运单号"}'
|
||||||
|
icon="@{@drawable/img_scan}"
|
||||||
|
setOnIconClickListener="@{()-> viewModel.waybillScanClick()}"
|
||||||
|
type="@{SearchLayoutType.INPUT}"
|
||||||
|
value="@={viewModel.waybillNo}"
|
||||||
|
autoQueryEnabled="@{true}"
|
||||||
|
autoQueryUrl="@{`/IntImpSearch/queryWbNoList`}"
|
||||||
|
autoQueryParamKey="@{`wbNo`}"
|
||||||
|
autoQueryMinLength="@{4}"
|
||||||
|
autoQueryMaxLength="@{8}"
|
||||||
|
autoQueryTitle="@{`选择运单号`}" />
|
||||||
|
|
||||||
|
<!-- 搜索和筛选按钮 -->
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center_vertical|start"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingHorizontal="24dp">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:onClick="@{()-> viewModel.searchClick()}"
|
||||||
|
android:padding="2dp"
|
||||||
|
android:src="@drawable/img_search" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
|
android:onClick="@{()-> viewModel.filterClick()}"
|
||||||
|
android:padding="5dp"
|
||||||
|
android:src="@drawable/img_filter" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- 列表区域 -->
|
||||||
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||||
|
android:id="@+id/srl"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="1">
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/rv"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
itemLayoutId="@{viewModel.itemLayoutId}"
|
||||||
|
viewHolder="@{viewModel.itemViewHolder}"
|
||||||
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||||
|
tools:listitem="@layout/item_int_imp_query" />
|
||||||
|
|
||||||
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||||
|
|
||||||
|
<!-- 底部统计信息 -->
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:background="@color/white"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingHorizontal="15dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text='@{`合计:` + viewModel.totalCount + `票`}'
|
||||||
|
android:textColor="@color/bottom_tool_tips_text_color"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
tools:text="合计:3票" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="20dp"
|
||||||
|
android:text='@{`总件数:` + viewModel.totalPc}'
|
||||||
|
android:textColor="@color/bottom_tool_tips_text_color"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
tools:text="总件数:100" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="20dp"
|
||||||
|
android:text='@{`总重量:` + viewModel.totalWeight}'
|
||||||
|
android:textColor="@color/bottom_tool_tips_text_color"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
tools:text="总重量:100" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
<!-- 遮罩层(只覆盖内容区域) -->
|
||||||
|
<View
|
||||||
|
android:id="@+id/filter_overlay"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="#80000000"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:onClick="@{()-> viewModel.closeFilter()}"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<!-- 筛选面板(从右侧滑入,只在内容区域内) -->
|
||||||
|
<include
|
||||||
|
android:id="@+id/filter_panel"
|
||||||
|
layout="@layout/layout_int_imp_query_filter"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:viewModel="@{viewModel}" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</layout>
|
</layout>
|
||||||
|
|||||||
@@ -77,10 +77,10 @@
|
|||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"特码"}'
|
title='@{"航班信息"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.spCode}'
|
value='@{viewModel.dataBean.getFlightSplit()}'
|
||||||
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" />
|
||||||
@@ -312,7 +312,7 @@
|
|||||||
title='@{"放行模式"}'
|
title='@{"放行模式"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.releaseMode}'
|
value='@{viewModel.dataBean.relMode}'
|
||||||
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" />
|
||||||
@@ -322,7 +322,7 @@
|
|||||||
title='@{"放行时间"}'
|
title='@{"放行时间"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.releaseTime}'
|
value='@{viewModel.dataBean.perDate}'
|
||||||
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" />
|
||||||
@@ -332,17 +332,17 @@
|
|||||||
title='@{"指令类型"}'
|
title='@{"指令类型"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.instructionType}'
|
value='@{viewModel.dataBean.comType}'
|
||||||
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" />
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
enable="@{false}"
|
enable="@{false}"
|
||||||
title='@{"备注"}'
|
title='@{"放行备注"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.remark}'
|
value='@{viewModel.dataBean.relRemark}'
|
||||||
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" />
|
||||||
|
|||||||
@@ -174,7 +174,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="10dp">
|
android:layout_marginTop="10dp">
|
||||||
|
|
||||||
<!-- 特码 -->
|
<!-- 航班信息 -->
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -184,13 +184,13 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{4}"
|
completeSpace="@{5}"
|
||||||
android:text="特码:" />
|
android:text="航班信息:" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{manifest.spCode ?? ``}" />
|
android:text="@{manifest.getFlightSplit()}" />
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,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='@{String.valueOf(bean.awbPc)}'
|
android:text='@{String.valueOf(bean.inPc)}'
|
||||||
tools:text="10" />
|
tools:text="10" />
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
@@ -109,7 +109,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='@{String.valueOf(bean.awbWeight)}'
|
android:text='@{String.valueOf(bean.inWeight)}'
|
||||||
tools:text="200" />
|
tools:text="200" />
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1.5"
|
android:layout_weight="1.5"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@{bean.outDate != null && bean.outDate.length() >= 16 ? bean.outDate.substring(0, 16) : (bean.outDate != null && bean.outDate.length() > 0 ? bean.outDate : `--`)}"
|
android:text="@{bean.outDate != null && bean.outDate.length() >= 16 ? bean.outDate.substring(0, 16) : (bean.outDate ?? ``)}"
|
||||||
android:textColor="@android:color/black"
|
android:textColor="@android:color/black"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
|||||||
@@ -266,7 +266,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.opDate}"
|
android:text="@{bean.inDate}"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -181,7 +181,7 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<!-- 特码 -->
|
<!-- 航班信息 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -192,13 +192,13 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{4}"
|
completeSpace="@{5}"
|
||||||
android:text="特码:" />
|
android:text="航班信息:" />
|
||||||
|
|
||||||
<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.spCode}" />
|
android:text="@{bean.getFlightSplit()}" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -5,24 +5,40 @@
|
|||||||
<import type="com.lukouguoji.module_base.ui.weight.data.layout.DataLayoutType" />
|
<import type="com.lukouguoji.module_base.ui.weight.data.layout.DataLayoutType" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="model"
|
name="viewModel"
|
||||||
type="com.lukouguoji.gjj.dialog.IntImpQueryFilterDialogModel" />
|
type="com.lukouguoji.gjj.viewModel.IntImpQueryViewModel" />
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/white"
|
android:background="@color/white"
|
||||||
|
android:elevation="8dp"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<!-- 状态栏占位 -->
|
<!-- 筛选标题栏 -->
|
||||||
<View
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="25dp"
|
android:layout_height="50dp"
|
||||||
android:background="@color/white" />
|
android:gravity="center_vertical"
|
||||||
|
android:paddingHorizontal="15dp">
|
||||||
|
|
||||||
<!-- 标题栏 -->
|
<ImageView
|
||||||
<include layout="@layout/title_tool_bar" />
|
android:layout_width="15dp"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
android:onClick="@{()-> viewModel.closeFilter()}"
|
||||||
|
android:src="@mipmap/left_icon"
|
||||||
|
android:tint="#666666" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="10dp"
|
||||||
|
android:text="筛选条件"
|
||||||
|
android:textColor="#666666"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<com.google.android.material.divider.MaterialDivider
|
<com.google.android.material.divider.MaterialDivider
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -42,71 +58,72 @@
|
|||||||
|
|
||||||
<!-- 特码 -->
|
<!-- 特码 -->
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
hint='@{"请输入特码"}'
|
|
||||||
title='@{"特码"}'
|
|
||||||
titleLength="@{4}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@={model.spCode}'
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="10dp" />
|
android:layout_marginBottom="10dp"
|
||||||
|
hint='@{"请选择特码"}'
|
||||||
|
list="@{viewModel.spCodeList}"
|
||||||
|
title='@{"特码"}'
|
||||||
|
titleLength="@{4}"
|
||||||
|
type="@{DataLayoutType.SPINNER}"
|
||||||
|
value='@={viewModel.spCode}' />
|
||||||
|
|
||||||
<!-- 航班号 -->
|
<!-- 航班号 -->
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="10dp"
|
||||||
hint='@{"请输入航班号"}'
|
hint='@{"请输入航班号"}'
|
||||||
title='@{"航班号"}'
|
title='@{"航班号"}'
|
||||||
titleLength="@{4}"
|
titleLength="@{4}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={model.flightNo}'
|
value='@={viewModel.flightNo}' />
|
||||||
|
|
||||||
|
<!-- 始发港 -->
|
||||||
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="10dp" />
|
android:layout_marginBottom="10dp"
|
||||||
|
hint='@{"请输入始发港"}'
|
||||||
<!-- 目的港 -->
|
title='@{"始发港"}'
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
|
||||||
hint='@{"请输入目的港"}'
|
|
||||||
title='@{"目的港"}'
|
|
||||||
titleLength="@{4}"
|
titleLength="@{4}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={model.dest}'
|
value='@={viewModel.origin}' />
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="10dp" />
|
|
||||||
|
|
||||||
<!-- 运单类型 -->
|
<!-- 运单类型 -->
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="10dp"
|
||||||
hint='@{"请选择运单类型"}'
|
hint='@{"请选择运单类型"}'
|
||||||
list="@{model.awbTypeList}"
|
list="@{viewModel.awbTypeList}"
|
||||||
title='@{"运单类型"}'
|
title='@{"运单类型"}'
|
||||||
titleLength="@{4}"
|
titleLength="@{4}"
|
||||||
type="@{DataLayoutType.SPINNER}"
|
type="@{DataLayoutType.SPINNER}"
|
||||||
value='@={model.awbType}'
|
value='@={viewModel.awbType}' />
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="10dp" />
|
|
||||||
|
|
||||||
<!-- 业务类型 -->
|
<!-- 业务类型 -->
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="10dp"
|
||||||
hint='@{"请选择业务类型"}'
|
hint='@{"请选择业务类型"}'
|
||||||
list="@{model.businessTypeList}"
|
list="@{viewModel.businessTypeList}"
|
||||||
title='@{"业务类型"}'
|
title='@{"业务类型"}'
|
||||||
titleLength="@{4}"
|
titleLength="@{4}"
|
||||||
type="@{DataLayoutType.SPINNER}"
|
type="@{DataLayoutType.SPINNER}"
|
||||||
value='@={model.businessType}'
|
value='@={viewModel.businessType}' />
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="10dp" />
|
|
||||||
|
|
||||||
<!-- 品名(中) -->
|
<!-- 品名(中) -->
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="10dp"
|
||||||
hint='@{"请输入品名"}'
|
hint='@{"请输入品名"}'
|
||||||
title='@{"品名(中)"}'
|
title='@{"品名(中)"}'
|
||||||
titleLength="@{4}"
|
titleLength="@{4}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={model.goodsCn}'
|
value='@={viewModel.goodsCn}' />
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="10dp" />
|
|
||||||
|
|
||||||
<!-- 底部按钮区域 -->
|
<!-- 底部按钮区域 -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@@ -126,7 +143,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/bg_primary_radius_4"
|
android:background="@drawable/bg_primary_radius_4"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:onClick="@{()-> model.onResetClick()}"
|
android:onClick="@{()-> viewModel.resetFilter()}"
|
||||||
android:text="重置"
|
android:text="重置"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
@@ -137,7 +154,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/bg_primary_radius_4"
|
android:background="@drawable/bg_primary_radius_4"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:onClick="@{()-> model.onConfirmClick()}"
|
android:onClick="@{()-> viewModel.confirmFilter()}"
|
||||||
android:text="搜索"
|
android:text="搜索"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
@@ -20,7 +20,8 @@ class HbQueryListViewModel : BasePageViewModel() {
|
|||||||
|
|
||||||
val date = MutableLiveData(DateUtils.getCurrentTime().formatDate())
|
val date = MutableLiveData(DateUtils.getCurrentTime().formatDate())
|
||||||
val fNo = MutableLiveData("")
|
val fNo = MutableLiveData("")
|
||||||
val range = MutableLiveData("")
|
val dep = MutableLiveData("") // 始发站
|
||||||
|
val dest = MutableLiveData("") // 目的站
|
||||||
val addressType = MutableLiveData("")
|
val addressType = MutableLiveData("")
|
||||||
val serviceType = MutableLiveData("")
|
val serviceType = MutableLiveData("")
|
||||||
|
|
||||||
@@ -59,7 +60,7 @@ class HbQueryListViewModel : BasePageViewModel() {
|
|||||||
"limit" to pageModel.limit,
|
"limit" to pageModel.limit,
|
||||||
"fdate" to date.value,
|
"fdate" to date.value,
|
||||||
"fno" to fNo.value,
|
"fno" to fNo.value,
|
||||||
"range" to range.value,
|
"range" to buildRange(),
|
||||||
"countryType" to addressType.value,
|
"countryType" to addressType.value,
|
||||||
"serviceType" to serviceType.value,
|
"serviceType" to serviceType.value,
|
||||||
).toRequestBody()
|
).toRequestBody()
|
||||||
@@ -72,6 +73,13 @@ class HbQueryListViewModel : BasePageViewModel() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun buildRange(): String? {
|
||||||
|
val d = dep.value?.trim()
|
||||||
|
val a = dest.value?.trim()
|
||||||
|
if (d.isNullOrEmpty() && a.isNullOrEmpty()) return null
|
||||||
|
return "${d ?: ""}-${a ?: ""}"
|
||||||
|
}
|
||||||
|
|
||||||
override fun onItemClick(position: Int, type: Int) {
|
override fun onItemClick(position: Int, type: Int) {
|
||||||
val bean = pageModel.rv!!.commonAdapter()!!.getItem(position) as FlightBean
|
val bean = pageModel.rv!!.commonAdapter()!!.getItem(position) as FlightBean
|
||||||
ARouter.getInstance().build(ARouterConstants.ACTIVITY_URL_FLIGHT_QUERY_DETAILS)
|
ARouter.getInstance().build(ARouterConstants.ACTIVITY_URL_FLIGHT_QUERY_DETAILS)
|
||||||
|
|||||||
@@ -46,13 +46,29 @@
|
|||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
hint='@{"请输入航程"}'
|
hint='@{"始发站"}'
|
||||||
setTextAllCaps="@{true}"
|
setTextAllCaps="@{true}"
|
||||||
type="@{SearchLayoutType.INPUT}"
|
type="@{SearchLayoutType.INPUT}"
|
||||||
value="@={viewModel.range}"
|
value="@={viewModel.dep}"
|
||||||
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="0.6" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="-"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
|
hint='@{"目的站"}'
|
||||||
|
setTextAllCaps="@{true}"
|
||||||
|
type="@{SearchLayoutType.INPUT}"
|
||||||
|
value="@={viewModel.dest}"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="0.6" />
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
<com.lukouguoji.module_base.ui.weight.search.layout.PadSearchLayout
|
||||||
hint='@{"请选择地区类型"}'
|
hint='@{"请选择地区类型"}'
|
||||||
@@ -127,7 +143,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='@{"合计:"+viewModel.count+"条"}'
|
android:text='@{"合计:"+viewModel.count+"条"}'
|
||||||
android:textColor="@color/bottom_tool_tips_text_color"
|
android:textColor="@color/bottom_tool_tips_text_color"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
|||||||
Reference in New Issue
Block a user