|
@@ -14,12 +14,19 @@
|
|
|
<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" v-if="editFrom.Status==7" @click="commonAuditClick">企管法规处</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="editFrom.Status==4" @click="commonAuditClick">专业处室审核</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="editFrom.Status==3" @click="commonAuditClick2">专业科室接收</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="editFrom.Status==2" @click="commonAuditClick">复审</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="editFrom.Status==1" @click="commonAuditClick">初审</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="editFrom.Status==0" @click="onSubmitBigAdd">提交审核</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status==7" @click="commonAuditClick(7)">企管法规处</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status==4" @click="commonAuditClick(4)">专业处室审核</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status==3" @click="commonAuditClick(3)">专业科室接收</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status==2" @click="commonAuditClick(2)">复审</el-button>
|
|
|
|
|
+ <!-- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status==1" @click="commonAuditClick()">初审</el-button> -->
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status==1" @click="commonAuditClick(1)">提交审核</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>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(3)">专业科室接收</el-button>
|
|
|
|
|
+ <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="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>
|
|
@@ -37,51 +44,38 @@
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="承包商名称">
|
|
<el-form-item label="承包商名称">
|
|
|
- <el-select ref="SupplierSelect" v-model="formData.SupplierId" placeholder="请选择" style="width: 100%" @change="supplierChangeHandler">
|
|
|
|
|
- <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-select ref="SupplierSelect" v-model="contractData.SupplierName" :disabled="true" placeholder="请选择" style="width: 100%" ></el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
- <!-- <el-col :span="8">
|
|
|
|
|
- <el-form-item label="合同分类">
|
|
|
|
|
- <el-select v-model="formData.ContractType" 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="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="contractData.ProjectPlace" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
</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="contractData.ProjectPlace" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
</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.ProjectName" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
|
|
|
|
+ <el-input :disabled="disabled" v-model="contractData.ProjectName" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
</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.ContractNo" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
|
|
|
|
+ <el-input :disabled="disabled" v-model="contractData.ContractNo" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
</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-select :disabled="disabled" v-model="formData.ProjectType" placeholder="请选择" style="width: 100%">
|
|
|
|
|
|
|
+ <el-select :disabled="disabled" v-model="contractData.ProjectType" placeholder="请选择" style="width: 100%">
|
|
|
<el-option key="1" label="咨询" value="1"></el-option>
|
|
<el-option key="1" label="咨询" value="1"></el-option>
|
|
|
<el-option key="2" label="勘探" value="2"></el-option>
|
|
<el-option key="2" label="勘探" value="2"></el-option>
|
|
|
<el-option key="3" label="设计" value="3"></el-option>
|
|
<el-option key="3" label="设计" value="3"></el-option>
|
|
@@ -98,7 +92,8 @@
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="是否分包">
|
|
<el-form-item label="是否分包">
|
|
|
- <el-select :disabled="disabled" placeholder="请选择" v-model="formData.SubPackage" style="width: 100%">
|
|
|
|
|
|
|
+ <!-- SubPackage -->
|
|
|
|
|
+ <el-select :disabled="disabled" placeholder="请选择" v-model="contractData.ProjectType" style="width: 100%">
|
|
|
<el-option key="1" label="是" value="1"></el-option>
|
|
<el-option key="1" label="是" value="1"></el-option>
|
|
|
<el-option key="2" label="否" value="2"></el-option>
|
|
<el-option key="2" label="否" value="2"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -107,18 +102,18 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
- <div style="display: flex;justify-content: flex-end;">
|
|
|
|
|
|
|
+ <!-- <div style="display: flex;justify-content: flex-end;">
|
|
|
<el-button type="primary" size="mini" @click="onSubmit_contract">下一步<i class="el-icon-arrow-right el-icon--right"></i></el-button>
|
|
<el-button type="primary" size="mini" @click="onSubmit_contract">下一步<i class="el-icon-arrow-right el-icon--right"></i></el-button>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
|
|
|
|
|
</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="routeDataType" :evaluateId="serviceId" :category="serviceId" ></evaluation-list>
|
|
|
|
|
|
|
+ <evaluation-list ref="evaluation_list_one" :evaluateId="formData.Id" category="0" ></evaluation-list>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
- <el-tab-pane label="专业处室业绩评价" name="3" :disabled="departmentPerformance.disabled">
|
|
|
|
|
- <evaluation-list></evaluation-list>
|
|
|
|
|
|
|
+ <el-tab-pane v-if="formData.Id!=0" label="专业处室业绩评价" name="3" :disabled="departmentPerformance.disabled">
|
|
|
|
|
+ <evaluation-list :evaluateId="formData.Id" category="1"></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">
|
|
@@ -137,7 +132,7 @@
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
|
- <submitPopup ref="submitpopup" :eveId="formData.Id"></submitPopup>
|
|
|
|
|
|
|
+ <submitPopup ref="submitpopup" :eveId="formData.Id" :formData="formData" @refreshPage="refreshPage"></submitPopup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -169,10 +164,8 @@
|
|
|
return {
|
|
return {
|
|
|
routeData:{},//上一页面传过来的值
|
|
routeData:{},//上一页面传过来的值
|
|
|
routeDataType:'',//上一页面传过来的type
|
|
routeDataType:'',//上一页面传过来的type
|
|
|
- editFrom:{},
|
|
|
|
|
|
|
|
|
|
dialogVisibleCom:false,
|
|
dialogVisibleCom:false,
|
|
|
-
|
|
|
|
|
disabled:true,//禁用
|
|
disabled:true,//禁用
|
|
|
// 业绩评价
|
|
// 业绩评价
|
|
|
performance: {
|
|
performance: {
|
|
@@ -197,6 +190,7 @@
|
|
|
formData: {
|
|
formData: {
|
|
|
Id: '',
|
|
Id: '',
|
|
|
},
|
|
},
|
|
|
|
|
+ contractData:{},//合同信息
|
|
|
//下拉选择项
|
|
//下拉选择项
|
|
|
//wellNoOptions: [],
|
|
//wellNoOptions: [],
|
|
|
//supervisersOptions: [],
|
|
//supervisersOptions: [],
|
|
@@ -208,61 +202,83 @@
|
|
|
created() {
|
|
created() {
|
|
|
// this.routeData = this.$route.query.item
|
|
// this.routeData = this.$route.query.item
|
|
|
this.routeDataType = this.$route.query.type
|
|
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();
|
|
|
|
|
|
|
|
if(this.serviceId != 'add' && this.serviceId>0) {
|
|
if(this.serviceId != 'add' && this.serviceId>0) {
|
|
|
this.formData.Id = this.serviceId;
|
|
this.formData.Id = this.serviceId;
|
|
|
// this.initDatas();
|
|
// this.initDatas();
|
|
|
- this.showIdDatas(this.serviceId)
|
|
|
|
|
|
|
+ this.showIdDatas(this.formData.Id)
|
|
|
} else {
|
|
} else {
|
|
|
this.formData.Id = 0;
|
|
this.formData.Id = 0;
|
|
|
- this.editFrom.Status = 0
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.formData.Status = 0
|
|
|
|
|
+ this.approvalProcess.disabled = true
|
|
|
|
|
+ this.contractData = this.$route.query.item
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //刷新数据接口
|
|
|
|
|
+ refreshPage(){
|
|
|
|
|
+ //拿id查审核流程
|
|
|
|
|
+ this.showIdDatas(this.formData.Id)
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
//拿id查审核流程
|
|
//拿id查审核流程
|
|
|
showIdDatas(id){
|
|
showIdDatas(id){
|
|
|
- console.log('审批流程222',id)
|
|
|
|
|
api.getEntityAndCert(id, this.$axios).then(res => {
|
|
api.getEntityAndCert(id, this.$axios).then(res => {
|
|
|
- console.log('审批流程',res)
|
|
|
|
|
|
|
+ console.log('拿id查编辑数据',res)
|
|
|
var data = res.data
|
|
var data = res.data
|
|
|
- this.editFrom = res.data
|
|
|
|
|
|
|
+ this.formData = res.data
|
|
|
this.entrydetail.business = id
|
|
this.entrydetail.business = id
|
|
|
this.entrydetail.instance = data.WorkflowId
|
|
this.entrydetail.instance = data.WorkflowId
|
|
|
this.entrydetail.process = data.ProcessKey
|
|
this.entrydetail.process = data.ProcessKey
|
|
|
-
|
|
|
|
|
|
|
+ api.getEntity(data.ContractId, this.$axios).then(res => {
|
|
|
|
|
+ console.log('拿id查编辑数据合同数据',res)
|
|
|
|
|
+ this.contractData = res.data
|
|
|
|
|
+ // this.onSelectType(this.formData.ContractClass)
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ });
|
|
|
|
|
+ if(data.Status!=0){
|
|
|
|
|
+ this.approvalProcess.disabled = false
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.approvalProcess.disabled = true
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- // 初审
|
|
|
|
|
- commonAuditClick(){
|
|
|
|
|
- var data = {
|
|
|
|
|
- result:1,
|
|
|
|
|
- AuditRemark:'6666'
|
|
|
|
|
|
|
+ // 审核
|
|
|
|
|
+ commonAuditClick(index){
|
|
|
|
|
+ var index = Number(index)
|
|
|
|
|
+ switch(index){
|
|
|
|
|
+ // 初审
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ this.$refs.submitpopup.dialogVisibleCom = true
|
|
|
|
|
+ break;
|
|
|
|
|
+ // 复审
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
|
|
+ break;
|
|
|
|
|
+ // 专业科室接收
|
|
|
|
|
+ case 3:
|
|
|
|
|
+ this.$refs.submitpopup.auditOrgChange()
|
|
|
|
|
+ this.$refs.submitpopup.dialogBusinessOfficeSeparateAuditVisible = true
|
|
|
|
|
+ break;
|
|
|
|
|
+ // 专业处室审核
|
|
|
|
|
+ case 4:
|
|
|
|
|
+ this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
|
|
+ break;
|
|
|
|
|
+ // 企管法规处
|
|
|
|
|
+ case 7:
|
|
|
|
|
+ this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
- api.contractCommonAudit(this.serviceId,data, this.$axios).then(res => {
|
|
|
|
|
- console.log('初审',res)
|
|
|
|
|
-
|
|
|
|
|
- }).catch(err => {
|
|
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
},
|
|
},
|
|
|
commonAuditClick2(){
|
|
commonAuditClick2(){
|
|
|
var data = {
|
|
var data = {
|
|
@@ -353,14 +369,14 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getDictOptions() {
|
|
|
|
|
- api.getDictList(this.$axios).then(res => {
|
|
|
|
|
- //this.wellNoOptions = res.data.items['WellNo']
|
|
|
|
|
- //this.supervisersOptions = res.data.items['Supervisers']
|
|
|
|
|
- }).catch(err => {
|
|
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // getDictOptions() {
|
|
|
|
|
+ // api.getDictList(this.$axios).then(res => {
|
|
|
|
|
+ // //this.wellNoOptions = res.data.items['WellNo']
|
|
|
|
|
+ // //this.supervisersOptions = res.data.items['Supervisers']
|
|
|
|
|
+ // }).catch(err => {
|
|
|
|
|
+ // console.error(err)
|
|
|
|
|
+ // })
|
|
|
|
|
+ // },
|
|
|
|
|
|
|
|
//保存信息
|
|
//保存信息
|
|
|
saveEntity() {
|
|
saveEntity() {
|
|
@@ -423,9 +439,6 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- supplierChangeHandler() {
|
|
|
|
|
- this.formData.SupplierName = this.$refs['SupplierSelect'].selectedLabel
|
|
|
|
|
- },
|
|
|
|
|
|
|
|
|
|
jstimehandle(val) {
|
|
jstimehandle(val) {
|
|
|
if (val === '') {
|
|
if (val === '') {
|