feat: remove scan support for all fno
This commit is contained in:
@@ -38,13 +38,6 @@ class GjcBoxWeighingViewModel : BasePageViewModel() {
|
||||
// 方法区
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* 扫码输入航班号
|
||||
*/
|
||||
fun flightNoScanClick() {
|
||||
ScanModel.startScan(getTopActivity(), Constant.RequestCode.FLIGHT_NO)
|
||||
}
|
||||
|
||||
/**
|
||||
* 扫码输入架子车号
|
||||
*/
|
||||
@@ -132,10 +125,6 @@ class GjcBoxWeighingViewModel : BasePageViewModel() {
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
if (resultCode == Activity.RESULT_OK && data != null) {
|
||||
when (requestCode) {
|
||||
Constant.RequestCode.FLIGHT_NO -> {
|
||||
flightNo.value = data.getStringExtra(Constant.Result.CODED_CONTENT)
|
||||
refresh()
|
||||
}
|
||||
Constant.RequestCode.CAR -> {
|
||||
carId.value = data.getStringExtra(Constant.Result.CODED_CONTENT)
|
||||
refresh()
|
||||
|
||||
@@ -75,13 +75,6 @@ class GjcWeighingRecordViewModel : BasePageViewModel() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 扫码输入航班号
|
||||
*/
|
||||
fun flightNoScanClick() {
|
||||
ScanModel.startScan(getTopActivity(), Constant.RequestCode.FLIGHT_NO)
|
||||
}
|
||||
|
||||
/**
|
||||
* 扫码输入运单号
|
||||
*/
|
||||
@@ -156,10 +149,6 @@ class GjcWeighingRecordViewModel : BasePageViewModel() {
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
if (resultCode == Activity.RESULT_OK && data != null) {
|
||||
when (requestCode) {
|
||||
Constant.RequestCode.FLIGHT_NO -> {
|
||||
flightNo.value = data.getStringExtra(Constant.Result.CODED_CONTENT)
|
||||
refresh()
|
||||
}
|
||||
Constant.RequestCode.WAYBILL -> {
|
||||
waybillNo.value = data.getStringExtra(Constant.Result.CODED_CONTENT)
|
||||
refresh()
|
||||
|
||||
@@ -79,13 +79,6 @@ class GjcWeighingViewModel : BasePageViewModel() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 扫码输入航班号
|
||||
*/
|
||||
fun flightNoScanClick() {
|
||||
ScanModel.startScan(getTopActivity(), Constant.RequestCode.FLIGHT_NO)
|
||||
}
|
||||
|
||||
/**
|
||||
* 扫码输入运单号
|
||||
*/
|
||||
@@ -173,10 +166,6 @@ class GjcWeighingViewModel : BasePageViewModel() {
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
if (resultCode == Activity.RESULT_OK && data != null) {
|
||||
when (requestCode) {
|
||||
Constant.RequestCode.FLIGHT_NO -> {
|
||||
flightNo.value = data.getStringExtra(Constant.Result.CODED_CONTENT)
|
||||
refresh()
|
||||
}
|
||||
Constant.RequestCode.WAYBILL -> {
|
||||
waybillNo.value = data.getStringExtra(Constant.Result.CODED_CONTENT)
|
||||
refresh()
|
||||
|
||||
Reference in New Issue
Block a user