|
@@ -14,7 +14,12 @@
|
|
|
<i class="icon icon-table2"></i> 编辑 - 承包商合同
|
|
<i class="icon icon-table2"></i> 编辑 - 承包商合同
|
|
|
</span>
|
|
</span>
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="onSubmitBigAdd">提交审核</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick">企管法规处</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick">专业处室审核</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick2">专业科室接收</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick">复审</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick">初审</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="routeDataType==2" @click="onSubmitBigAdd">提交审核</el-button>
|
|
|
<el-button type="primary" size="mini" v-if="activeName!=1" style="margin-left: 8px" @click="onSeaveBigAdd">保存</el-button>
|
|
<el-button type="primary" size="mini" v-if="activeName!=1" style="margin-left: 8px" @click="onSeaveBigAdd">保存</el-button>
|
|
|
<el-button @click="onBack" type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
<el-button @click="onBack" type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</span>
|
|
</span>
|
|
@@ -49,7 +54,6 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>-->
|
|
</el-col>-->
|
|
|
-
|
|
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="评价单位名称">
|
|
<el-form-item label="评价单位名称">
|
|
|
<el-input :disabled="disabled" v-model="formData.ProjectPlace" placeholder="请输入" style="width: 100%"></el-input>
|
|
<el-input :disabled="disabled" v-model="formData.ProjectPlace" placeholder="请输入" style="width: 100%"></el-input>
|
|
@@ -110,14 +114,13 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="业绩评价" name="2" :disabled="performance.disabled" >
|
|
<el-tab-pane label="业绩评价" name="2" :disabled="performance.disabled" >
|
|
|
- <evaluation-list ref="evaluation_list_one" :type="routeData.type" :evaluateId="routeData.item.Id" :category="routeData.item.Id" ></evaluation-list>
|
|
|
|
|
|
|
+ <evaluation-list ref="evaluation_list_one" :type="routeDataType" :evaluateId="serviceId" :category="serviceId" ></evaluation-list>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<el-tab-pane label="专业处室业绩评价" name="3" :disabled="departmentPerformance.disabled">
|
|
<el-tab-pane label="专业处室业绩评价" name="3" :disabled="departmentPerformance.disabled">
|
|
|
<evaluation-list></evaluation-list>
|
|
<evaluation-list></evaluation-list>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
+
|
|
|
<el-tab-pane label="审批流程" name="4" :disabled="approvalProcess.disabled">
|
|
<el-tab-pane label="审批流程" name="4" :disabled="approvalProcess.disabled">
|
|
|
<el-card class="box-card mycard">
|
|
<el-card class="box-card mycard">
|
|
|
<div slot="header"
|
|
<div slot="header"
|
|
@@ -134,7 +137,10 @@
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
|
- <submitPopup ref="submitpopup"></submitPopup>
|
|
|
|
|
|
|
+ <submitPopup ref="submitpopup" :eveId="formData.Id"></submitPopup>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -143,9 +149,10 @@
|
|
|
import {
|
|
import {
|
|
|
mapGetters
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
} from 'vuex'
|
|
|
- import api from '@/api/oilcontract/contract'
|
|
|
|
|
|
|
+ import api from '@/api/oilcontract/contract'
|
|
|
import evaluationList from './evaluationlist'
|
|
import evaluationList from './evaluationlist'
|
|
|
import WfHistory from '@/components/workflow/wfhistory.vue'
|
|
import WfHistory from '@/components/workflow/wfhistory.vue'
|
|
|
|
|
+ import apiSupplier from '@/api/oilsupplier/supplier'
|
|
|
export default {
|
|
export default {
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters({
|
|
...mapGetters({
|
|
@@ -160,7 +167,8 @@
|
|
|
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- routeData:'',//上一页面传过来的值
|
|
|
|
|
|
|
+ routeData:{},//上一页面传过来的值
|
|
|
|
|
+ routeDataType:'',//上一页面传过来的type
|
|
|
|
|
|
|
|
dialogVisibleCom:false,
|
|
dialogVisibleCom:false,
|
|
|
|
|
|
|
@@ -175,7 +183,7 @@
|
|
|
},
|
|
},
|
|
|
// 审批流程
|
|
// 审批流程
|
|
|
approvalProcess:{
|
|
approvalProcess:{
|
|
|
- disabled:false,//禁用
|
|
|
|
|
|
|
+ disabled:true,//禁用
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
entrydetail: {
|
|
entrydetail: {
|
|
@@ -197,10 +205,22 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- this.routeData = this.$route.query
|
|
|
|
|
|
|
+ // this.routeData = this.$route.query.item
|
|
|
|
|
+ this.routeDataType = this.$route.query.type
|
|
|
|
|
+ if(this.routeDataType==1){
|
|
|
|
|
+ this.approvalProcess.disabled = true
|
|
|
|
|
+ }else{
|
|
|
|
|
+ if(this.routeData.Status!=0){
|
|
|
|
|
+ this.approvalProcess.disabled = false
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.approvalProcess.disabled = true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
console.log('跳转数据',this.routeData)
|
|
console.log('跳转数据',this.routeData)
|
|
|
this.serviceId = this.$route.params.opera;
|
|
this.serviceId = this.$route.params.opera;
|
|
|
this.getDictOptions();
|
|
this.getDictOptions();
|
|
|
|
|
+
|
|
|
// console.log(this.serviceId);
|
|
// console.log(this.serviceId);
|
|
|
// if(this.serviceId != 'add' && this.serviceId>0) {
|
|
// if(this.serviceId != 'add' && this.serviceId>0) {
|
|
|
// this.formData.Id = this.serviceId;
|
|
// this.formData.Id = this.serviceId;
|
|
@@ -208,8 +228,65 @@
|
|
|
// } else {
|
|
// } else {
|
|
|
// this.formData.Id = 0;
|
|
// this.formData.Id = 0;
|
|
|
// }
|
|
// }
|
|
|
|
|
+ this.showIdDatas(this.serviceId)
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //拿id查审核流程
|
|
|
|
|
+ showIdDatas(id){
|
|
|
|
|
+ console.log('审批流程222',id)
|
|
|
|
|
+ api.getEntityAndCert(id, this.$axios).then(res => {
|
|
|
|
|
+ console.log('审批流程',res)
|
|
|
|
|
+ var data = res.data
|
|
|
|
|
+ this.entrydetail.business = id
|
|
|
|
|
+ this.entrydetail.instance = data.WorkflowId
|
|
|
|
|
+ this.entrydetail.process = data.ProcessKey
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 初审
|
|
|
|
|
+ commonAuditClick(){
|
|
|
|
|
+ var data = {
|
|
|
|
|
+ result:1,
|
|
|
|
|
+ AuditRemark:'6666'
|
|
|
|
|
+ }
|
|
|
|
|
+ api.contractCommonAudit(this.serviceId,data, this.$axios).then(res => {
|
|
|
|
|
+ console.log('初审',res)
|
|
|
|
|
+
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ commonAuditClick2(){
|
|
|
|
|
+ var data = {
|
|
|
|
|
+ ProfessionalAudit:15878,
|
|
|
|
|
+ AuditRemark:'6666'
|
|
|
|
|
+ }
|
|
|
|
|
+ api.businessSeparateAudit(this.serviceId,data, this.$axios).then(res => {
|
|
|
|
|
+ console.log('初审',res)
|
|
|
|
|
+
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ // // 复审
|
|
|
|
|
+ // commonAuditClick(){
|
|
|
|
|
+ // var data = {
|
|
|
|
|
+ // result:1,
|
|
|
|
|
+ // AuditRemark:'6666'
|
|
|
|
|
+ // }
|
|
|
|
|
+ // api.contractCommonAudit(this.serviceId,data, this.$axios).then(res => {
|
|
|
|
|
+ // console.log('初审',res)
|
|
|
|
|
+
|
|
|
|
|
+ // }).catch(err => {
|
|
|
|
|
+ // console.error(err)
|
|
|
|
|
+ // })
|
|
|
|
|
+ // },
|
|
|
//提交评价
|
|
//提交评价
|
|
|
onSubmitBigAdd(){
|
|
onSubmitBigAdd(){
|
|
|
this.$refs.submitpopup.dialogVisibleCom = true
|
|
this.$refs.submitpopup.dialogVisibleCom = true
|
|
@@ -221,7 +298,7 @@
|
|
|
var fractionBoolean_1 = this.$refs.evaluation_list_one.fractionBoolean
|
|
var fractionBoolean_1 = this.$refs.evaluation_list_one.fractionBoolean
|
|
|
|
|
|
|
|
if(fractionBoolean_1){
|
|
if(fractionBoolean_1){
|
|
|
- if(this.formData.Id == 0){
|
|
|
|
|
|
|
+ if(this.formData.Id == 0||this.formData.Id == undefined||this.formData.Id == null){
|
|
|
this.addEvaluate()
|
|
this.addEvaluate()
|
|
|
}else{
|
|
}else{
|
|
|
this.updateEvaluate()
|
|
this.updateEvaluate()
|
|
@@ -229,17 +306,18 @@
|
|
|
}else{
|
|
}else{
|
|
|
this.$message.error('填写的分数有误');
|
|
this.$message.error('填写的分数有误');
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
//新增评价
|
|
//新增评价
|
|
|
addEvaluate(){
|
|
addEvaluate(){
|
|
|
var formData = {
|
|
var formData = {
|
|
|
- ContractId:this.routeData.Id,
|
|
|
|
|
|
|
+ ContractId:this.serviceId,
|
|
|
Items:this.evaluation_list,
|
|
Items:this.evaluation_list,
|
|
|
|
|
+ IsFinal:0,
|
|
|
}
|
|
}
|
|
|
api.addContractEvaluate(formData, this.$axios).then(res => {
|
|
api.addContractEvaluate(formData, this.$axios).then(res => {
|
|
|
console.log('新增',res)
|
|
console.log('新增',res)
|
|
|
this.formData.Id = res.data.item
|
|
this.formData.Id = res.data.item
|
|
|
|
|
+ this.routeDataType = 2
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
});
|
|
});
|
|
@@ -247,7 +325,7 @@
|
|
|
//编辑评价
|
|
//编辑评价
|
|
|
updateEvaluate(){
|
|
updateEvaluate(){
|
|
|
var formData = {
|
|
var formData = {
|
|
|
- ContractId:this.routeData.Id,
|
|
|
|
|
|
|
+ ContractId:this.serviceId,
|
|
|
Items:this.evaluation_list,
|
|
Items:this.evaluation_list,
|
|
|
}
|
|
}
|
|
|
api.updateContractEvaluate(this.formData.Id,formData, this.$axios).then(res => {
|
|
api.updateContractEvaluate(this.formData.Id,formData, this.$axios).then(res => {
|
|
@@ -261,7 +339,6 @@
|
|
|
this.activeName = '2'
|
|
this.activeName = '2'
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
initDatas() {
|
|
initDatas() {
|
|
|
if(this.formData.Id) {
|
|
if(this.formData.Id) {
|
|
|
api.getEntity(this.formData.Id, this.$axios).then(res => {
|
|
api.getEntity(this.formData.Id, this.$axios).then(res => {
|