|
|
@@ -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>
|
|
|
@@ -40,58 +40,63 @@
|
|
|
<el-button type="primary" size="mini" @click="saveEntity">保存</el-button>
|
|
|
</span> -->
|
|
|
</div>
|
|
|
- <el-form label-width="110px" ref="EntityForm" :model="formData">
|
|
|
+ <el-form label-width="160px" ref="EntityForm" :model="evaluateData" :rules="rules">
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="供应商名称">
|
|
|
- <el-select ref="SupplierSelect" v-model="contractData.SupplierName" :disabled="true" placeholder="请选择" style="width: 100%" ></el-select>
|
|
|
+ <el-input disabled="disabled" v-model="evaluateData.SupplierName" style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="供应项目名称">
|
|
|
- <el-input :disabled="disabled" v-model="contractData.ProjectName" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ <el-form-item label="评价得分" prop="SumScore">
|
|
|
+ <el-input-number :disabled="!auditBtnBoolean" v-model="evaluateData.SumScore" ::max="100" :min="0" placeholder="请输入" style="width: 100%" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="工程地点" >
|
|
|
- <el-input :disabled="disabled" v-model="contractData.ProjectPlace" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+
|
|
|
+ <el-col :span="8" >
|
|
|
+ <el-form-item label="产品质量(30分)" prop="SumScore1">
|
|
|
+ <el-input-number :disabled="!auditBtnBoolean" v-model="evaluateData.SumScore1" :max="10" :min="0" placeholder="请输入" style="width: 100%" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="合同编号">
|
|
|
- <el-input :disabled="disabled" v-model="contractData.ContractNo" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+
|
|
|
+ <el-col :span="8" >
|
|
|
+ <el-form-item label="合同履行(20分)" prop="SumScore2">
|
|
|
+ <el-input-number :disabled="!auditBtnBoolean" v-model="evaluateData.SumScore2" :max="20" :min="0" placeholder="请输入" style="width: 100%" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="项目负责人" >
|
|
|
- <el-input :disabled="disabled" v-model="contractData.ProjectOwner" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+
|
|
|
+ <el-col :span="8" >
|
|
|
+ <el-form-item label="售后服务(15分)" prop="SumScore3">
|
|
|
+ <el-input-number :disabled="!auditBtnBoolean" v-model="evaluateData.SumScore3" :max="20" :min="0" placeholder="请输入" style="width: 100%" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="项目类别">
|
|
|
- <el-select :disabled="disabled" v-model="contractData.ProjectType" placeholder="请选择" style="width: 100%">
|
|
|
- <el-option key="1" label="咨询" value="1"></el-option>
|
|
|
- <el-option key="2" label="勘探" value="2"></el-option>
|
|
|
- <el-option key="3" label="设计" value="3"></el-option>
|
|
|
- <el-option key="4" label="施工" value="4"></el-option>
|
|
|
- </el-select>
|
|
|
+
|
|
|
+ <el-col :span="8" >
|
|
|
+ <el-form-item label="诚信经营(15分)" prop="SumScore4">
|
|
|
+ <el-input-number :disabled="!auditBtnBoolean" v-model="evaluateData.SumScore4" :max="5" :min="0" placeholder="请输入" style="width: 100%" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="是否分包">
|
|
|
- <!-- SubPackage -->
|
|
|
- <el-select :disabled="disabled" placeholder="请选择" v-model="contractData.SubPackage" style="width: 100%">
|
|
|
- <el-option :key="1" label="是" :value="1"></el-option>
|
|
|
- <el-option :key="2" label="否" :value="2"></el-option>
|
|
|
+
|
|
|
+ <el-col :span="8" >
|
|
|
+ <el-form-item label="协同响应(20分)" prop="SumScore5">
|
|
|
+ <el-input-number :disabled="!auditBtnBoolean" v-model="evaluateData.SumScore5" :max="10" :min="0" placeholder="请输入" style="width: 100%" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" >
|
|
|
+ <el-form-item label="评价结果" prop="Conclusion">
|
|
|
+ <el-select :disabled="!auditBtnBoolean" v-model="evaluateData.Conclusion" placeholder="请选择" style="width: 100%">
|
|
|
+ <el-option :key="1" label="优秀" :value="1"></el-option>
|
|
|
+ <el-option :key="2" label="合格" :value="2"></el-option>
|
|
|
+ <el-option :key="3" label="不合格" :value="3"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="备注">
|
|
|
+ <el-input type="textarea" :disabled="!auditBtnBoolean" v-model="evaluateData.Note" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
|
|
|
@@ -100,16 +105,16 @@
|
|
|
<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">
|
|
|
- <base-list ref="evaluation_listtype_two" :evaluateId="formData.Id" category="1" :ContractClass="contractData.ContractClass" :disabledForm="auditBtnBooleanZhuan"></base-list>
|
|
|
+ <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>
|
|
|
|
|
|
<el-tab-pane label="审批流程" name="6" :disabled="formData.Status==0">
|
|
|
@@ -146,6 +151,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 +209,8 @@
|
|
|
auditBtnBooleanZhuan:true,
|
|
|
auditstepcode:'',
|
|
|
|
|
|
+ departmentBoolean:false,
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -214,8 +222,8 @@
|
|
|
// this.getDictOptions();
|
|
|
|
|
|
this.IsFinal = this.$route.query.IsFinal;
|
|
|
- if(this.IsFinal==undefined || this.IsFinal == "") this.IsFinal = 0;
|
|
|
|
|
|
+ if(this.IsFinal==undefined || this.IsFinal == "") this.IsFinal = 0;
|
|
|
|
|
|
if(this.serviceId != 'add' && this.serviceId>0) {
|
|
|
this.formData.Id = this.serviceId;
|
|
|
@@ -227,9 +235,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查审核流程
|
|
|
@@ -308,33 +332,35 @@
|
|
|
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('业绩评价填写的分数有误');
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
//专业处室评价
|
|
|
majorEvaluate(){
|
|
|
-
|
|
|
var formData = this.evaluation_list
|
|
|
api.saveSecEvaluation(this.formData.Id,formData, this.$axios).then(res => {
|
|
|
console.log('新增',res)
|
|
|
@@ -355,7 +381,7 @@
|
|
|
var formData = {
|
|
|
ContractId:this.contractData.Id,
|
|
|
Items:this.evaluation_list,
|
|
|
- IsFinal:this.IsFinal, //是否履行,最终
|
|
|
+ IsFinal:Number(this.IsFinal) , //是否履行,最终
|
|
|
}
|
|
|
api.addContractEvaluate(formData, this.$axios).then(res => {
|
|
|
console.log('新增',res)
|
|
|
@@ -426,7 +452,7 @@
|
|
|
}else{
|
|
|
this.auditBtnBooleanZhuan = false
|
|
|
}
|
|
|
- if(this.formData.Status=='0'){
|
|
|
+ if(Number(this.formData.Status)<=0){
|
|
|
this.auditBtnBoolean = true
|
|
|
}else{
|
|
|
this.auditBtnBoolean = false
|