|
|
@@ -5,6 +5,7 @@ import android.view.ViewGroup
|
|
|
import android.widget.LinearLayout
|
|
|
import androidx.core.view.isVisible
|
|
|
import androidx.fragment.app.viewModels
|
|
|
+import androidx.lifecycle.ViewModel
|
|
|
import com.drake.brv.BindingAdapter
|
|
|
import com.drake.brv.annotaion.DividerOrientation
|
|
|
import com.drake.brv.utils.dividerSpace
|
|
|
@@ -184,7 +185,16 @@ class JobExecuteFragment : BaseFragment<FragmentJobExecuteBinding>() {
|
|
|
itemBinding.stepLayout.setDebouncedClickListener {
|
|
|
val workflowStep =
|
|
|
viewModel.workflowSteps.find { it.stepId == item.workflowStepId }
|
|
|
+ if (item.stepIndex < viewModel.currentStepData?.stepIndex!!) {
|
|
|
+ return@setDebouncedClickListener
|
|
|
+ }
|
|
|
if (item.stepId != viewModel.currentStepData?.stepId && workflowStep?.enableSetLocker == false && workflowStep.enableSetColocker == false) {
|
|
|
+ PopTip(
|
|
|
+ getString(
|
|
|
+ R.string.please_done_operation,
|
|
|
+ viewModel.currentStepData?.androidStepContent
|
|
|
+ )
|
|
|
+ )
|
|
|
return@setDebouncedClickListener
|
|
|
}
|
|
|
if (workflowStep?.confirmType != 0 &&
|