feat: fix 国际出港
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
# 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
|
||||||
org.gradle.java.home=/Users/kid/.version-fox/cache/java/v-17.0.16+8-amzn/java-17.0.16+8-amzn
|
|
||||||
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.
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ class GjcUldUseBean {
|
|||||||
var height: String = "" // 高度
|
var height: String = "" // 高度
|
||||||
var passageway: String = "" // 通道号
|
var passageway: String = "" // 通道号
|
||||||
var passagewayName: String = "" // 通道号(中文)
|
var passagewayName: String = "" // 通道号(中文)
|
||||||
var piClose: String = "" // 探板/收口
|
var plClose: String = "" // 探板/收口
|
||||||
var piCloseSize: String = "" // 探板尺寸(CM)
|
var plCloseSize: String = "" // 探板尺寸(CM)
|
||||||
var location: String = "" // 位置
|
var location: String = "" // 位置
|
||||||
var pieces: String = "" // 件数(字符串格式)
|
var pieces: String = "" // 件数(字符串格式)
|
||||||
var remark: String = "" // 备注
|
var remark: String = "" // 备注
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import com.lukouguoji.module_base.base.BaseViewModel
|
|||||||
import com.lukouguoji.module_base.bean.GjcUldUseBean
|
import com.lukouguoji.module_base.bean.GjcUldUseBean
|
||||||
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.module_base.http.net.DiBangWeightModel
|
|
||||||
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.formatDate
|
import com.lukouguoji.module_base.ktx.formatDate
|
||||||
@@ -24,7 +23,6 @@ import com.lukouguoji.module_base.ktx.verifyNullOrEmpty
|
|||||||
import com.lukouguoji.module_base.model.BluetoothDialogModel
|
import com.lukouguoji.module_base.model.BluetoothDialogModel
|
||||||
import com.lukouguoji.module_base.model.ScanModel
|
import com.lukouguoji.module_base.model.ScanModel
|
||||||
import com.lukouguoji.module_base.util.Common
|
import com.lukouguoji.module_base.util.Common
|
||||||
import com.lukouguoji.module_base.util.DictUtils
|
|
||||||
import com.lukouguoji.module_base.util.PrinterUtils
|
import com.lukouguoji.module_base.util.PrinterUtils
|
||||||
import dev.utils.app.info.KeyValue
|
import dev.utils.app.info.KeyValue
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
@@ -62,7 +60,7 @@ class GjcBoxWeighingAddViewModel : BaseViewModel() {
|
|||||||
|
|
||||||
// 下拉选择数据源
|
// 下拉选择数据源
|
||||||
val passagewayList = MutableLiveData<List<KeyValue>>() // 通道号列表
|
val passagewayList = MutableLiveData<List<KeyValue>>() // 通道号列表
|
||||||
val piCloseList = MutableLiveData<List<KeyValue>>() // 探板收口列表
|
val plCloseList = MutableLiveData<List<KeyValue>>() // 探板收口列表
|
||||||
|
|
||||||
// 打印挂签
|
// 打印挂签
|
||||||
val printTag = MutableLiveData(false)
|
val printTag = MutableLiveData(false)
|
||||||
@@ -108,7 +106,7 @@ class GjcBoxWeighingAddViewModel : BaseViewModel() {
|
|||||||
|
|
||||||
// 加载下拉列表数据
|
// 加载下拉列表数据
|
||||||
loadPassagewayList()
|
loadPassagewayList()
|
||||||
loadPiCloseList()
|
loadPlCloseList()
|
||||||
|
|
||||||
// 初始化航班日期为今天
|
// 初始化航班日期为今天
|
||||||
val today = Date().formatDate()
|
val today = Date().formatDate()
|
||||||
@@ -207,14 +205,14 @@ class GjcBoxWeighingAddViewModel : BaseViewModel() {
|
|||||||
/**
|
/**
|
||||||
* 加载探板收口列表
|
* 加载探板收口列表
|
||||||
*/
|
*/
|
||||||
private fun loadPiCloseList() {
|
private fun loadPlCloseList() {
|
||||||
launchCollect({
|
launchCollect({
|
||||||
NetApply.api.getDictList("PICLOSE")
|
NetApply.api.getDictList("PICLOSE")
|
||||||
}) {
|
}) {
|
||||||
onSuccess = {
|
onSuccess = {
|
||||||
// 将 DictIdValueBean 转换为 KeyValue
|
// 将 DictIdValueBean 转换为 KeyValue
|
||||||
// 显示和提交都使用 value 字段
|
// 显示和提交都使用 value 字段
|
||||||
piCloseList.value = (it.data ?: emptyList()).map { b ->
|
plCloseList.value = (it.data ?: emptyList()).map { b ->
|
||||||
KeyValue(b.value, b.value)
|
KeyValue(b.value, b.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -335,8 +333,8 @@ class GjcBoxWeighingAddViewModel : BaseViewModel() {
|
|||||||
"dgrCode" to bean.dgrCode,
|
"dgrCode" to bean.dgrCode,
|
||||||
"boardType" to bean.boardType,
|
"boardType" to bean.boardType,
|
||||||
"height" to bean.height,
|
"height" to bean.height,
|
||||||
"piClose" to bean.piClose,
|
"plClose" to bean.plClose,
|
||||||
"piCloseSize" to bean.piCloseSize,
|
"plCloseSize" to bean.plCloseSize,
|
||||||
"carWeight" to bean.carWeight,
|
"carWeight" to bean.carWeight,
|
||||||
"uldWeight" to bean.uldWeight,
|
"uldWeight" to bean.uldWeight,
|
||||||
"fdate" to bean.fdate,
|
"fdate" to bean.fdate,
|
||||||
|
|||||||
@@ -226,11 +226,11 @@
|
|||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
||||||
hint='@{"请选择探板收口"}'
|
hint='@{"请选择探板收口"}'
|
||||||
list="@{viewModel.piCloseList}"
|
list="@{viewModel.plCloseList}"
|
||||||
title='@{"探板收口"}'
|
title='@{"探板收口"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.SPINNER}"
|
type="@{DataLayoutType.SPINNER}"
|
||||||
value='@={viewModel.dataBean.piClose}'
|
value='@={viewModel.dataBean.plClose}'
|
||||||
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" />
|
||||||
@@ -240,7 +240,7 @@
|
|||||||
title='@{"探板尺寸"}'
|
title='@{"探板尺寸"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@={viewModel.dataBean.piCloseSize}'
|
value='@={viewModel.dataBean.plCloseSize}'
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginStart="15dp"
|
||||||
|
|||||||
@@ -163,7 +163,7 @@
|
|||||||
title='@{"探板收口"}'
|
title='@{"探板收口"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.piClose}'
|
value='@{viewModel.dataBean.plClose}'
|
||||||
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" />
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
title='@{"探板尺寸"}'
|
title='@{"探板尺寸"}'
|
||||||
titleLength="@{5}"
|
titleLength="@{5}"
|
||||||
type="@{DataLayoutType.INPUT}"
|
type="@{DataLayoutType.INPUT}"
|
||||||
value='@{viewModel.dataBean.piCloseSize}'
|
value='@{viewModel.dataBean.plCloseSize}'
|
||||||
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" />
|
||||||
@@ -236,16 +236,6 @@
|
|||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
|
|
||||||
enable="@{false}"
|
|
||||||
title='@{"件数"}'
|
|
||||||
titleLength="@{5}"
|
|
||||||
type="@{DataLayoutType.INPUT}"
|
|
||||||
value='@{viewModel.dataBean.remark}'
|
|
||||||
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}"
|
enable="@{false}"
|
||||||
title='@{"备注"}'
|
title='@{"备注"}'
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
style="@style/tv_bottom_btn"
|
style="@style/tv_bottom_btn"
|
||||||
android:onClick="@{()-> viewModel.waitingTransClick()}"
|
android:onClick="@{()-> viewModel.waitingTransClick()}"
|
||||||
android:text="待配运" />
|
android:text="配运" />
|
||||||
|
|
||||||
<!-- 交接完成按钮 -->
|
<!-- 交接完成按钮 -->
|
||||||
<TextView
|
<TextView
|
||||||
|
|||||||
@@ -38,7 +38,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.no ?? `--`}"
|
android:text="@{bean.location ?? `--`}"
|
||||||
android:textColor="@android:color/black"
|
android:textColor="@android:color/black"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user