diff --git a/src/pages/index.vue b/src/pages/index.vue index 69094de..43aed2e 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -170,18 +170,20 @@ isShowItemApprove2.value = isHave.children.some(item=>{ return item.componentName == 'itemApprove2' }) - await sparePartsApplicationApprovePage() - await sparePartsApplicationApprovePage1() // 如果只有一级审核 、待审核数量等于一级审核数量 if(isShowItemApprove1.value && !isShowItemApprove2.value){ + await sparePartsApplicationApprovePage() number.value =number1.value } // 如果只有二级审核 待审核数量等于二级审核数量 - if(isShowItemApprove1.value && !isShowItemApprove2.value){ - number.value =number2.value + if(!isShowItemApprove1.value && isShowItemApprove2.value){ + await sparePartsApplicationApprovePage1() + number.value =number2.value } // 如果一级审核二级审核都存在 待审核数量等于二级审核数量 if(isShowItemApprove1.value && isShowItemApprove2.value){ + await sparePartsApplicationApprovePage() + await sparePartsApplicationApprovePage1() meaus.value[isHaveIndex].children.splice(1,1) number.value =number2.value }