|
@@ -5,7 +5,7 @@
|
|
<template slot="title">
|
|
<template slot="title">
|
|
<span style="font-size:20px; margin-left:20px;letter-spacing:2px;color:red">
|
|
<span style="font-size:20px; margin-left:20px;letter-spacing:2px;color:red">
|
|
<i class="el-icon-warning"></i>
|
|
<i class="el-icon-warning"></i>
|
|
- <span> 当前节点:{{ currentNode == null ? '???' : currentNode.nodeName }}</span>
|
|
|
|
|
|
+ <span> 当前节点:{{currentNode==null ?'???':currentNode.nodeName?currentNode.nodeName:'结束'}}</span>
|
|
<!-- <span v-if = "currentNode.tasks.length>0" style="margin-left:30px">任务:</span> -->
|
|
<!-- <span v-if = "currentNode.tasks.length>0" style="margin-left:30px">任务:</span> -->
|
|
<!-- <span v-for="( t,index) in currentNode.tasks" :key=index >{{t.info}}</span> -->
|
|
<!-- <span v-for="( t,index) in currentNode.tasks" :key=index >{{t.info}}</span> -->
|
|
<!-- <span style="margin-left:30px" v-if="statementNo || reportNo">该流程已取:<el-tag type="success" v-if="statementNo">{{statementNo}}</el-tag> <el-tag type="danger" v-if="reportNo">{{reportNo}}</el-tag></span> -->
|
|
<!-- <span style="margin-left:30px" v-if="statementNo || reportNo">该流程已取:<el-tag type="success" v-if="statementNo">{{statementNo}}</el-tag> <el-tag type="danger" v-if="reportNo">{{reportNo}}</el-tag></span> -->
|
|
@@ -18,7 +18,7 @@
|
|
@getPreviousNode="getPreviousNode" />
|
|
@getPreviousNode="getPreviousNode" />
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
</el-collapse>
|
|
</el-collapse>
|
|
- <div class="button-area">
|
|
|
|
|
|
+ <div class="button-area" v-if="couldEdit">
|
|
<el-button @click="openProductionDialog"
|
|
<el-button @click="openProductionDialog"
|
|
v-if="currentNode.nodeCode === 'PRODUCT_CHOICE' || currentNode.nodeCode === 'REPORT_CHOICE'" type="danger" round>
|
|
v-if="currentNode.nodeCode === 'PRODUCT_CHOICE' || currentNode.nodeCode === 'REPORT_CHOICE'" type="danger" round>
|
|
选择产品
|
|
选择产品
|
|
@@ -43,7 +43,7 @@
|
|
<el-tabs v-model="activeTagName" @tab-click="handleClick" type="border-card">
|
|
<el-tabs v-model="activeTagName" @tab-click="handleClick" type="border-card">
|
|
<el-tab-pane name="baseInfo" class="pane-class" :lazy=true>
|
|
<el-tab-pane name="baseInfo" class="pane-class" :lazy=true>
|
|
<span slot="label"><i class="el-icon-document"></i>基本信息</span>
|
|
<span slot="label"><i class="el-icon-document"></i>基本信息</span>
|
|
- <y-detail-page-layout ref="addAssetsOrder" name="assets" :editStatus="editStatus">
|
|
|
|
|
|
+ <y-detail-page-layout ref="addAssetsOrder" name="assets">
|
|
<el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules" :disabled="disabledStatus">
|
|
<el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules" :disabled="disabledStatus">
|
|
<div class="createMajor-main-container">
|
|
<div class="createMajor-main-container">
|
|
<div class="postInfo-container">
|
|
<div class="postInfo-container">
|
|
@@ -365,21 +365,21 @@
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
- <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'" type="danger"
|
|
|
|
|
|
+ <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' && couldEdit" type="danger"
|
|
@click="openTargetDialog(), changeStatus('add')" round>添加评估对象</el-button>
|
|
@click="openTargetDialog(), changeStatus('add')" round>添加评估对象</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="2" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT'">
|
|
|
|
|
|
+ <el-col :span="2" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' && couldEdit">
|
|
<el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
|
|
<el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
|
|
<el-button type="success" @click="takeAssetsStatementProductionNo" round>意见书取号</el-button>
|
|
<el-button type="success" @click="takeAssetsStatementProductionNo" round>意见书取号</el-button>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="2" v-if="currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO'">
|
|
|
|
|
|
+ <el-col :span="2" v-if="currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO' && couldEdit">
|
|
<el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
|
|
<el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
|
|
<el-button type="success" @click="takeAssetsReportProductionNo" round>报告取号</el-button>
|
|
<el-button type="success" @click="takeAssetsReportProductionNo" round>报告取号</el-button>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="2"
|
|
<el-col :span="2"
|
|
- v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' || currentNode.nodeCode === 'WRITE_REPORT'">
|
|
|
|
|
|
+ v-if="(currentNode.nodeCode === 'GENERATE_STATEMENT' || currentNode.nodeCode === 'WRITE_REPORT') && couldEdit">
|
|
<el-tooltip class="item" effect="dark" content="请仔细确认产品内容" placement="right">
|
|
<el-tooltip class="item" effect="dark" content="请仔细确认产品内容" placement="right">
|
|
<el-button type="success" @click="openWriteProductionDialog(false, 'add')" round>撰写产品信息</el-button>
|
|
<el-button type="success" @click="openWriteProductionDialog(false, 'add')" round>撰写产品信息</el-button>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
@@ -463,7 +463,7 @@
|
|
</h3>
|
|
</h3>
|
|
</el-divider>
|
|
</el-divider>
|
|
</div>
|
|
</div>
|
|
- <span v-if="currentNode.nodeCode === 'GENERATE_STATEMENT'">
|
|
|
|
|
|
+ <span style="margin-top: 5px;" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' && couldEdit ">
|
|
选择要提交的意见书:
|
|
选择要提交的意见书:
|
|
<el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
|
|
<el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
|
|
style="width: 300px;">
|
|
style="width: 300px;">
|
|
@@ -471,7 +471,7 @@
|
|
:label="pro.productionNo" :value="pro.productionNo" :key="pro.id"></el-option>
|
|
:label="pro.productionNo" :value="pro.productionNo" :key="pro.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</span>
|
|
</span>
|
|
- <span v-if="currentNode.nodeCode === 'WRITE_REPORT'">
|
|
|
|
|
|
+ <span v-if="currentNode.nodeCode === 'WRITE_REPORT' && couldEdit ">
|
|
选择要提交的报告:
|
|
选择要提交的报告:
|
|
<el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
|
|
<el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
|
|
style="width: 300px;">
|
|
style="width: 300px;">
|
|
@@ -1706,14 +1706,16 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.couldEdit = true;
|
|
|
|
- this.couldBack = true;
|
|
|
|
|
|
+ this.disabledStatus = this.$route.query.disabledStatus ==='true';
|
|
|
|
+ this.couldEdit = this.$route.query.couldEdit ==='true';
|
|
|
|
+ this.couldBack = this.$route.query.couldBack ==='true';
|
|
this.nodeBusinessInfo.doWorkflow = true;
|
|
this.nodeBusinessInfo.doWorkflow = true;
|
|
// 获取页面参数
|
|
// 获取页面参数
|
|
this.pageParams.back = this.$route.query.back;
|
|
this.pageParams.back = this.$route.query.back;
|
|
this.pageParams.row = JSON.parse(this.$route.query.row);
|
|
this.pageParams.row = JSON.parse(this.$route.query.row);
|
|
this.getProductionTypes(this.pageParams.row.assetsId);
|
|
this.getProductionTypes(this.pageParams.row.assetsId);
|
|
this.nodeBusinessInfo.mainBusiness = 'ASSET_BUSINESS';
|
|
this.nodeBusinessInfo.mainBusiness = 'ASSET_BUSINESS';
|
|
|
|
+ this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
|
|
this.nodeBusinessInfo.businessSubId = this.pageParams.row.statementNo;
|
|
this.nodeBusinessInfo.businessSubId = this.pageParams.row.statementNo;
|
|
this.nodeBusinessInfo.businessMinId = this.pageParams.row.reportNo;
|
|
this.nodeBusinessInfo.businessMinId = this.pageParams.row.reportNo;
|
|
this.getCurrentNodeInfo();
|
|
this.getCurrentNodeInfo();
|
|
@@ -2019,7 +2021,7 @@ export default {
|
|
this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
|
|
this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
|
|
this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
|
|
this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
|
|
this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
|
|
this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
|
|
- this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
|
|
|
|
|
|
+ // this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
|
|
|
|
|
|
if (this.currentNode.nodeCode === 'REPORT_IN') {
|
|
if (this.currentNode.nodeCode === 'REPORT_IN') {
|
|
this.getProductionRealAmount(this.pageParams.row.reportNo);
|
|
this.getProductionRealAmount(this.pageParams.row.reportNo);
|
|
@@ -2929,7 +2931,7 @@ export default {
|
|
type: 'success',
|
|
type: 'success',
|
|
duration: 3000
|
|
duration: 3000
|
|
});
|
|
});
|
|
- if(this.currentNode.nodeCode === 'CHECK_ARCHIVING'){
|
|
|
|
|
|
+ if (this.currentNode.nodeCode === 'CHECK_ARCHIVING') {
|
|
this.updateProductionFileInfo();
|
|
this.updateProductionFileInfo();
|
|
}
|
|
}
|
|
this.resetBusinessPerformanceDistributionForm();
|
|
this.resetBusinessPerformanceDistributionForm();
|
|
@@ -3004,7 +3006,7 @@ export default {
|
|
type: 'success',
|
|
type: 'success',
|
|
duration: 3000
|
|
duration: 3000
|
|
});
|
|
});
|
|
- if(this.currentNode.nodeCode === 'CHECK_ARCHIVING'){
|
|
|
|
|
|
+ if (this.currentNode.nodeCode === 'CHECK_ARCHIVING') {
|
|
this.updateProductionFileInfo();
|
|
this.updateProductionFileInfo();
|
|
}
|
|
}
|
|
this.resetBusinessPerformanceDistributionForm();
|
|
this.resetBusinessPerformanceDistributionForm();
|