|
|
|
@ -698,7 +698,6 @@ |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.dataForm = data.row |
|
|
|
console.log(this.dataForm) |
|
|
|
this.getNodeAuthority(data.row) |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
@ -930,41 +929,40 @@ |
|
|
|
}, |
|
|
|
// 获取流程的配置权限 |
|
|
|
getNodeAuthority (row) { |
|
|
|
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 |
|
|
|
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 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 同意提交 |
|
|
|
|