|
@@ -20,17 +20,16 @@ import com.grkj.iscs.model.vo.ticket.LotoMapRespVO
|
|
|
import com.grkj.iscs.model.vo.ticket.StepDetailRespVO
|
|
import com.grkj.iscs.model.vo.ticket.StepDetailRespVO
|
|
|
import com.grkj.iscs.model.vo.ticket.TicketDetailRespVO
|
|
import com.grkj.iscs.model.vo.ticket.TicketDetailRespVO
|
|
|
import com.grkj.iscs.util.BitmapUtil
|
|
import com.grkj.iscs.util.BitmapUtil
|
|
|
|
|
+import com.grkj.iscs.util.CommonUtils
|
|
|
import com.grkj.iscs.util.SPUtils
|
|
import com.grkj.iscs.util.SPUtils
|
|
|
import com.grkj.iscs.util.ToastUtils
|
|
import com.grkj.iscs.util.ToastUtils
|
|
|
import com.grkj.iscs.util.log.LogUtil
|
|
import com.grkj.iscs.util.log.LogUtil
|
|
|
-import com.grkj.iscs.util.release
|
|
|
|
|
import com.grkj.iscs.view.base.BaseMvpFragment
|
|
import com.grkj.iscs.view.base.BaseMvpFragment
|
|
|
import com.grkj.iscs.view.dialog.TipDialog
|
|
import com.grkj.iscs.view.dialog.TipDialog
|
|
|
import com.grkj.iscs.view.iview.IStepView
|
|
import com.grkj.iscs.view.iview.IStepView
|
|
|
import com.grkj.iscs.view.presenter.StepPresenter
|
|
import com.grkj.iscs.view.presenter.StepPresenter
|
|
|
import com.grkj.iscs.view.widget.CustomStationLayer
|
|
import com.grkj.iscs.view.widget.CustomStationLayer
|
|
|
import com.onlylemi.mapview.library.MapViewListener
|
|
import com.onlylemi.mapview.library.MapViewListener
|
|
|
-import com.sik.sikcore.thread.ThreadUtils
|
|
|
|
|
import com.zhy.adapter.recyclerview.CommonAdapter
|
|
import com.zhy.adapter.recyclerview.CommonAdapter
|
|
|
import com.zhy.adapter.recyclerview.base.ViewHolder
|
|
import com.zhy.adapter.recyclerview.base.ViewHolder
|
|
|
|
|
|
|
@@ -109,7 +108,6 @@ class StepFragment(val goBack: () -> Unit, val changePage: (PageChangeBO) -> Uni
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
mBinding?.cbBack?.setOnClickListener { goBack() }
|
|
mBinding?.cbBack?.setOnClickListener { goBack() }
|
|
|
initMap()
|
|
initMap()
|
|
|
mBinding?.cbAction?.setOnClickListener {
|
|
mBinding?.cbAction?.setOnClickListener {
|
|
@@ -254,6 +252,8 @@ class StepFragment(val goBack: () -> Unit, val changePage: (PageChangeBO) -> Uni
|
|
|
"${it?.get(2)?.lockNum}/${it?.get(4)?.lockNum}/${it?.get(7)?.lockNum}"
|
|
"${it?.get(2)?.lockNum}/${it?.get(4)?.lockNum}/${it?.get(7)?.lockNum}"
|
|
|
mStepList.forEach { step ->
|
|
mStepList.forEach { step ->
|
|
|
step.stepDetail = it?.find { it.stepIndex == step.index }
|
|
step.stepDetail = it?.find { it.stepIndex == step.index }
|
|
|
|
|
+ step.title =
|
|
|
|
|
+ it?.find { it.stepIndex == step.index }?.androidStepContent ?: step.title
|
|
|
}
|
|
}
|
|
|
mBinding?.rvStep?.adapter?.notifyDataSetChanged()
|
|
mBinding?.rvStep?.adapter?.notifyDataSetChanged()
|
|
|
it?.filter { it.stepStatus == "1" }?.maxByOrNull { it.stepIndex!! }?.stepIndex?.let {
|
|
it?.filter { it.stepStatus == "1" }?.maxByOrNull { it.stepIndex!! }?.stepIndex?.let {
|
|
@@ -371,7 +371,7 @@ class StepFragment(val goBack: () -> Unit, val changePage: (PageChangeBO) -> Uni
|
|
|
when (step) {
|
|
when (step) {
|
|
|
3 -> {
|
|
3 -> {
|
|
|
if (presenter?.canModifyColocker(requireContext(), step) == false) {
|
|
if (presenter?.canModifyColocker(requireContext(), step) == false) {
|
|
|
- ToastUtils.tip(R.string.current_step_can_not_be_process)
|
|
|
|
|
|
|
+ ToastUtils.tip(R.string.current_step_can_not_modify_colocker)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
changePage(
|
|
changePage(
|
|
@@ -387,7 +387,6 @@ class StepFragment(val goBack: () -> Unit, val changePage: (PageChangeBO) -> Uni
|
|
|
|
|
|
|
|
4 -> {
|
|
4 -> {
|
|
|
if (mStep != 3) {
|
|
if (mStep != 3) {
|
|
|
- ToastUtils.tip(R.string.current_step_can_not_be_process)
|
|
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
updateStep(4)
|
|
updateStep(4)
|
|
@@ -395,7 +394,12 @@ class StepFragment(val goBack: () -> Unit, val changePage: (PageChangeBO) -> Uni
|
|
|
|
|
|
|
|
5, 6, 7, 8 -> {
|
|
5, 6, 7, 8 -> {
|
|
|
if (mStep != step - 1) {
|
|
if (mStep != step - 1) {
|
|
|
- ToastUtils.tip(R.string.current_step_can_not_be_process)
|
|
|
|
|
|
|
+ ToastUtils.tip(
|
|
|
|
|
+ getString(
|
|
|
|
|
+ R.string.please_done_operation,
|
|
|
|
|
+ mStepList.find { it.index == mStep+1 }?.title
|
|
|
|
|
+ )
|
|
|
|
|
+ )
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
updateStep(step)
|
|
updateStep(step)
|
|
@@ -562,7 +566,7 @@ class StepFragment(val goBack: () -> Unit, val changePage: (PageChangeBO) -> Uni
|
|
|
|
|
|
|
|
data class StepBO(
|
|
data class StepBO(
|
|
|
val pic: Int,
|
|
val pic: Int,
|
|
|
- val title: String,
|
|
|
|
|
|
|
+ var title: String,
|
|
|
val index: Int,
|
|
val index: Int,
|
|
|
val indexStr: String,
|
|
val indexStr: String,
|
|
|
var stepDetail: StepDetailRespVO? = null
|
|
var stepDetail: StepDetailRespVO? = null
|