|
|
@@ -14,12 +14,12 @@
|
|
|
<i class="icon icon-table2"></i> 编辑 - 承包商合同
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='7'&&auditBtn" @click="commonAuditClick(7)">企管法规处</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='7'&&auditBtn" @click="commonAuditClick(7)">企管法规处审批</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='4'&&auditBtn" @click="commonAuditClick(4)">专业处室审核</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='3'&&auditBtn" @click="commonAuditClick(3)">专业科室接收</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='2'&&auditBtn" @click="commonAuditClick(2)">复审</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='1'&&auditBtn" @click="commonAuditClick(1)">初审</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='0'&&formData.Id!=0" @click="commonAuditClick(0)">提交审核</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="Number(formData.Status)<=0&&formData.Id!=0" @click="commonAuditClick(0)">提交审核</el-button>
|
|
|
|
|
|
<!-- <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(7)">企管法规处</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(4)">专业处室审核</el-button>
|
|
|
@@ -27,7 +27,7 @@
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(2)">复审</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(1)">提交审核</el-button> -->
|
|
|
|
|
|
- <el-button type="primary" size="mini" v-if="formData.Status=='0'||(formData.Status=='4'&&auditBtn)" @click="onSeaveBigAdd">保存</el-button>
|
|
|
+ <el-button type="primary" size="mini" v-if="Number(formData.Status)<=0||(formData.Status=='4'&&auditBtn)" @click="onSeaveBigAdd">保存</el-button>
|
|
|
<el-button @click="onBack" type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -100,15 +100,15 @@
|
|
|
<el-tab-pane label="业绩评价" name="2" >
|
|
|
<evaluation-list ref="evaluation_list_one" :evaluateId="formData.Id" category="0" :ContractClass="contractData.ContractClass" :disabledForm="auditBtnBoolean"></evaluation-list>
|
|
|
</el-tab-pane>
|
|
|
-
|
|
|
- <el-tab-pane v-if="formData.Status=='4'||Number(formData.Status)>4" label="专业处室业绩评价" name="3" >
|
|
|
+ <!-- v-if="formData.Status=='4'||Number(formData.Status)>4" -->
|
|
|
+ <el-tab-pane label="专业处室业绩评价" name="3" v-if="departmentBoolean">
|
|
|
<evaluation-list ref="evaluation_list_two" :evaluateId="formData.Id" category="1" :ContractClass="contractData.ContractClass" :disabledForm="auditBtnBooleanZhuan"></evaluation-list>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="基本条件评价" name="4" v-if="contractData.ContractClass=='02'">
|
|
|
<base-list ref="evaluation_listType_one" :evaluateId="formData.Id" category="0" :ContractClass="contractData.ContractClass" :disabledForm="auditBtnBoolean"></base-list>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane v-if="(formData.Status=='4'||Number(formData.Status)>4)&&contractData.ContractClass=='02'" label="专业处室基本条件评价" name="5">
|
|
|
+ <el-tab-pane v-if="departmentBoolean&&contractData.ContractClass=='02'" label="专业处室基本条件评价" name="5">
|
|
|
<base-list ref="evaluation_listtype_two" :evaluateId="formData.Id" category="1" :ContractClass="contractData.ContractClass" :disabledForm="auditBtnBooleanZhuan"></base-list>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
@@ -146,6 +146,7 @@
|
|
|
import WfHistory from '@/components/workflow/wfhistory.vue'
|
|
|
import apiSupplier from '@/api/oilsupplier/supplier'
|
|
|
import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
+ import permissionApi from '@/api/oilcontract/permission';
|
|
|
export default {
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
@@ -203,6 +204,8 @@
|
|
|
auditBtnBooleanZhuan:true,
|
|
|
auditstepcode:'',
|
|
|
|
|
|
+ departmentBoolean:false,
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -226,9 +229,25 @@
|
|
|
this.approvalProcess.disabled = true
|
|
|
this.contractData = this.$route.query.item
|
|
|
}
|
|
|
-
|
|
|
+ this.statusFun()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //状态判断
|
|
|
+ statusFun(){
|
|
|
+ var data = {
|
|
|
+ percode:'oil_contract.Review.Department',
|
|
|
+ }
|
|
|
+ permissionApi.permissionIsauth(data, this.$axios).then(res => {
|
|
|
+ console.log('权限',res.data)
|
|
|
+ if(res.data.code==0){
|
|
|
+ if(res.data.message=='有权限'){
|
|
|
+ this.departmentBoolean = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
//刷新数据接口
|
|
|
refreshPage(){
|
|
|
//拿id查审核流程
|
|
|
@@ -307,28 +326,31 @@
|
|
|
this.evaluation_list = this.evaluation_list.concat(this.$refs.evaluation_listType_one.entityListData.entityList)
|
|
|
}
|
|
|
// 获取第一列评价格式
|
|
|
- var fractionBoolean_1 = this.$refs.evaluation_list_one.fractionBoolean
|
|
|
- if(fractionBoolean_1){
|
|
|
- if(this.formData.Id == 0||this.formData.Id == undefined||this.formData.Id == null){
|
|
|
- this.addEvaluate()
|
|
|
- }else{
|
|
|
- this.updateEvaluate()
|
|
|
+ // var fractionBoolean_1 = this.$refs.evaluation_list_one.fractionBoolean
|
|
|
+ this.$refs.evaluation_list_one.$refs.formEvaluation.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if(this.formData.Id == 0||this.formData.Id == undefined||this.formData.Id == null){
|
|
|
+ this.addEvaluate()
|
|
|
+ }else{
|
|
|
+ this.updateEvaluate()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error('业绩评价填写的分数有误');
|
|
|
}
|
|
|
- }else{
|
|
|
- this.$message.error('业绩评价填写的分数有误');
|
|
|
- }
|
|
|
+ })
|
|
|
}else{//专业处室评价
|
|
|
this.evaluation_list = this.$refs.evaluation_list_two.entityListData.entityList
|
|
|
if(this.contractData.ContractClass=='02'){
|
|
|
this.evaluation_list = this.evaluation_list.concat(this.$refs.evaluation_listType_two.entityListData.entityList)
|
|
|
}
|
|
|
- // 获取第一列评价格式
|
|
|
- var fractionBoolean_1 = this.$refs.evaluation_list_two.fractionBoolean
|
|
|
- if(fractionBoolean_1){
|
|
|
- this.majorEvaluate()
|
|
|
- }else{
|
|
|
- this.$message.error('业绩评价填写的分数有误');
|
|
|
- }
|
|
|
+ // 获取第一列评价格式c
|
|
|
+ this.$refs.evaluation_list_one.$refs.formEvaluation.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.majorEvaluate()
|
|
|
+ } else {
|
|
|
+ this.$message.error('业绩评价填写的分数有误');
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
//专业处室评价
|
|
|
@@ -425,7 +447,7 @@
|
|
|
}else{
|
|
|
this.auditBtnBooleanZhuan = false
|
|
|
}
|
|
|
- if(this.formData.Status=='0'){
|
|
|
+ if(Number(this.formData.Status)<=0){
|
|
|
this.auditBtnBoolean = true
|
|
|
}else{
|
|
|
this.auditBtnBoolean = false
|