|
|
@ -13,8 +13,8 @@ |
|
|
<el-button type="primary" @click="refreshBMPageModal()" v-if="!ifDisableFlag&&isAuth('103002:bmModel')">更新模板</el-button> |
|
|
<el-button type="primary" @click="refreshBMPageModal()" v-if="!ifDisableFlag&&isAuth('103002:bmModel')">更新模板</el-button> |
|
|
<el-button type="primary" @click="searchTable()" >刷新数据</el-button> |
|
|
<el-button type="primary" @click="searchTable()" >刷新数据</el-button> |
|
|
<el-button type="primary" @click="saveTable()" v-if="!ifDisableFlag&&isAuth('103002:bmSave')">保存数据</el-button> |
|
|
<el-button type="primary" @click="saveTable()" v-if="!ifDisableFlag&&isAuth('103002:bmSave')">保存数据</el-button> |
|
|
<el-button v-if="baseForm.status === 'spz'&&!ifDisableFlag&&spForm.sp.include(searchData.username+';')" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
|
|
<el-button v-if="baseForm.status === 'spz' && baseForm.isReject === 'Y' &&!ifDisableFlag&&spForm.sp.include(searchData.username+';')" type="primary" @click="submitDataModal">驳回</el-button> |
|
|
|
|
|
|
|
|
<el-button v-if="baseForm.status === 'spz'&&!ifDisableFlag&&spForm.sp.includes(searchData.username)" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
|
|
<el-button v-if="baseForm.status === 'spz' && baseForm.isReject === 'Y' &&!ifDisableFlag&&spForm.sp.includes(searchData.username)" type="primary" @click="submitDataModal">驳回</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="3"><div class="grid-content bg-purple"> |
|
|
<el-col :span="3"><div class="grid-content bg-purple"> |
|
|
@ -310,12 +310,12 @@ |
|
|
}, |
|
|
}, |
|
|
// 获取流程的配置权限 |
|
|
// 获取流程的配置权限 |
|
|
getNodeAuthority (row) { |
|
|
getNodeAuthority (row) { |
|
|
getBMStatusDesc(this.searchData).then(({data})=>{ |
|
|
|
|
|
if(data.status==='已完成'||data.status==='已升版'){ |
|
|
|
|
|
this.ifDisableFlag=true |
|
|
|
|
|
|
|
|
getBMStatusDesc(this.searchData).then(({data}) => { |
|
|
|
|
|
if (data.status === '已完成' || data.status === '已升版') { |
|
|
|
|
|
this.ifDisableFlag = true |
|
|
return false |
|
|
return false |
|
|
}else { |
|
|
|
|
|
//区分请求成功和失败的状况 |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if(data.status === '审批中') { |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
site: row.site, |
|
|
site: row.site, |
|
|
stepId: row.stepId, |
|
|
stepId: row.stepId, |
|
|
@ -323,15 +323,14 @@ |
|
|
} |
|
|
} |
|
|
getNodeAuthority(tempData).then(({data}) => { |
|
|
getNodeAuthority(tempData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.ifDisableFlag = true |
|
|
let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm |
|
|
let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm |
|
|
let arr = plmStepRoleBaseBm.filter(a => a.fieldId === this.searchData.fieldId) |
|
|
let arr = plmStepRoleBaseBm.filter(a => a.fieldId === this.searchData.fieldId) |
|
|
if (arr.length > 0) { |
|
|
if (arr.length > 0) { |
|
|
if (arr[0].updateFlag === 'N') { |
|
|
if (arr[0].updateFlag === 'N') { |
|
|
this.ifDisableFlag = true |
|
|
this.ifDisableFlag = true |
|
|
} else { |
|
|
} else { |
|
|
if(!this.searchData.ifDisableFlag){ |
|
|
|
|
|
this.ifDisableFlag = false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.ifDisableFlag = false |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.ifDisableFlag = true |
|
|
this.ifDisableFlag = true |
|
|
|