Browse Source

巡检工单填写步骤显示,填写逻辑校验

lipenghui 3 months ago
parent
commit
ee4b0e7f09
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/pms/inspect/order/WriteOrder.vue

+ 2 - 1
src/views/pms/inspect/order/WriteOrder.vue

@@ -195,7 +195,7 @@ const completedSteps = (tabIndex) => {
 const isStepValid = (tabIndex) => {
   const current = currentStep.value[tabIndex]
   debugger
-  if (formData[tabIndex][current].ifNormal===null) {
+  if (formData[tabIndex][current].ifNormal===null||formData[tabIndex][current].ifNormal===undefined) {
     return false
   }
   if (formData[tabIndex][current].ifNormal&&(formData[tabIndex][current].description===undefined||formData[tabIndex][current].description===null||formData[tabIndex][current].description==='')) {
@@ -243,6 +243,7 @@ const submitForm =  (tabIndex,current,type) => {
       push({ name: 'IotInspectOrder', params:{}})
     }
   } catch (error) {
+    debugger
     ElMessage.error('提交失败,请检查数据')
   }
 }