Эх сурвалжийг харах

调整检查页页面显示逻辑

Frankensteinly 8 сар өмнө
parent
commit
6b596729ca

+ 6 - 3
app/src/main/java/com/grkj/iscs_mc/view/fragment/MaterialInspectionPlanFragment.kt

@@ -65,9 +65,11 @@ class MaterialInspectionPlanFragment :
 
 
             when(it?.status) {
             when(it?.status) {
                 "0" -> mBinding?.cbStart?.visibility = View.VISIBLE
                 "0" -> mBinding?.cbStart?.visibility = View.VISIBLE
+                "1" -> {
+                    mBinding?.cbContinue?.visibility = View.VISIBLE
+                }
                 "2" -> {
                 "2" -> {
                     mBinding?.cbSign?.visibility = View.VISIBLE
                     mBinding?.cbSign?.visibility = View.VISIBLE
-                    mBinding?.cbContinue?.visibility = View.VISIBLE
                     mBinding?.cbSubmit?.visibility = View.VISIBLE
                     mBinding?.cbSubmit?.visibility = View.VISIBLE
                 }
                 }
             }
             }
@@ -77,7 +79,6 @@ class MaterialInspectionPlanFragment :
             }
             }
         }
         }
 
 
-        mBinding?.cbSign?.visibility = View.VISIBLE
         mBinding?.cbSign?.setOnClickListener {
         mBinding?.cbSign?.setOnClickListener {
             mPlanId?.let {
             mPlanId?.let {
                 navigateTo(MaterialInspectionPlanFragmentDirections.actionInspectionPlanFragmentToInspectionSignatureFragment(it))
                 navigateTo(MaterialInspectionPlanFragmentDirections.actionInspectionPlanFragmentToInspectionSignatureFragment(it))
@@ -89,7 +90,9 @@ class MaterialInspectionPlanFragment :
         }
         }
 
 
         mBinding?.cbContinue?.setOnClickListener {
         mBinding?.cbContinue?.setOnClickListener {
-
+            mPlanId?.let {
+                navigateTo(MaterialInspectionPlanFragmentDirections.actionInspectionPlanFragmentToInspectionTableFragment(it))
+            }
         }
         }
 
 
         mBinding?.cbSubmit?.setOnClickListener {
         mBinding?.cbSubmit?.setOnClickListener {