diff --git a/src/views/modules/proofing/requestForProofing.vue b/src/views/modules/proofing/requestForProofing.vue index a4c669a..a5ee3c8 100644 --- a/src/views/modules/proofing/requestForProofing.vue +++ b/src/views/modules/proofing/requestForProofing.vue @@ -201,6 +201,11 @@ + + + + + { - this.superAdmin=data.superAdmin - if(data.superAdmin){ - this.ifDisableFlag = false - return false - } - if (data.status === '已完成' || data.status === '已升版') { - this.ifDisableFlag = true - return false + getBMStatusDesc(this.searchData).then(({data}) => { + this.superAdmin=data.superAdmin + if(data.superAdmin){ + this.ifDisableFlag = false + return false + } + if (data.status === '已完成' || data.status === '已升版') { + this.ifDisableFlag = true + return false + } + if(data.status === '审批中') { + let tempData = { + site: row.site, + stepId: row.stepId, + menuId: '103002' } - if(data.status === '审批中') { - let tempData = { - site: row.site, - stepId: row.stepId, - menuId: '103002' - } - getNodeAuthority(tempData).then(({data}) => { - if (data && data.code === 0) { - this.ifDisableFlag = true - let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm - let arr = plmStepRoleBaseBm.filter(a => a.fieldId === 'basicInformation') - if (arr.length > 0) { - if (arr[0].updateFlag === 'N') { - this.ifDisableFlag = true - } else { - this.ifDisableFlag = false - } - } else { + getNodeAuthority(tempData).then(({data}) => { + if (data && data.code === 0) { + this.ifDisableFlag = true + let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm + let arr = plmStepRoleBaseBm.filter(a => a.fieldId === 'basicInformation') + if (arr.length > 0) { + if (arr[0].updateFlag === 'N') { this.ifDisableFlag = true + } else { + this.ifDisableFlag = false } + } else { + this.ifDisableFlag = true } - }) - } - }) - + } + }) + } + }) }, // 同意提交