|
|
|
@ -5,10 +5,10 @@ |
|
|
|
<el-col :span="18"><div class="grid-content bg-purple"> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="refresh()" >刷新数据</el-button> |
|
|
|
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag&&isAuth('103002:bmSave')">保存数据</el-button> |
|
|
|
<el-button v-if="dataForm.status === 'spz'&&!ifDisableFlag&&spForm.sp.includes(searchData.username)" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
<el-button v-if="dataForm.status === 'spz' && dataForm.isReject === 'Y' &&!ifDisableFlag&&spForm.sp.includes(searchData.username)" type="primary" @click="submitDataModal">驳回</el-button> |
|
|
|
<el-button v-if="dataForm.status === 'cg'&&!ifDisableFlag" type="primary" @click="issueModal">下达</el-button> |
|
|
|
<el-button type="primary" @click="saveData()" v-if="(!ifDisableFlag&&isAuth('103002:bmSave'))||(superAdmin)">保存数据</el-button> |
|
|
|
<el-button v-if="dataForm.status === 'spz'&&((!ifDisableFlag&&spForm.sp.includes(searchData.username))||(superAdmin))" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
<el-button v-if="dataForm.status === 'spz' && ((dataForm.isReject === 'Y' &&!ifDisableFlag&&spForm.sp.includes(searchData.username))||(superAdmin))" type="primary" @click="submitDataModal">驳回</el-button> |
|
|
|
<el-button v-if="dataForm.status === 'cg'&&(!ifDisableFlag||(superAdmin))" type="primary" @click="issueModal">下达</el-button> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col><el-col :span="3"><div class="grid-content bg-purple"> |
|
|
|
@ -331,6 +331,7 @@ |
|
|
|
codeNo: '', |
|
|
|
buNo:'', |
|
|
|
}, |
|
|
|
superAdmin:false, |
|
|
|
ifDisableFlag:false, |
|
|
|
quotationOfficerFlag:false, |
|
|
|
engineerFlag:false, |
|
|
|
@ -534,7 +535,7 @@ |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.getNodeAuthority(data.row) |
|
|
|
this.dataForm = data.row |
|
|
|
this.$message.success( '操作成功') |
|
|
|
// this.$message.success( '操作成功') |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
@ -800,8 +801,12 @@ |
|
|
|
}, |
|
|
|
// 获取流程的配置权限 |
|
|
|
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 |
|
|
|
|