|
@@ -1,6 +1,8 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <el-form :model="form" ref="reportForm" label-width="140px">
|
|
|
+ <div >
|
|
|
+ <div style="display:flex;align-items: self-start;flex-direction: row-reverse;">
|
|
|
+ <el-button type="primary" size="small" style="width:80px;" @click="edit">编辑</el-button>
|
|
|
+ <el-form style="width:100%" :model="form" ref="reportForm" label-width="140px">
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<template>
|
|
@@ -159,17 +161,20 @@
|
|
|
<div class="box1" v-html="$commonJS.getColumnData(form, { type: 'String', value: 'description' })"></div>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
-
|
|
|
+ </div>
|
|
|
<flow-Path :projectId="projectId" :taskId="taskId" v-if="reportType == 7"></flow-Path>
|
|
|
+ <CreateReport ref="ReportForm" @getList="save"></CreateReport>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex';
|
|
|
import flowPath from '@/views/report/InvalidResponse/components/flowPath/flowPath.vue';
|
|
|
+import CreateReport from '@/views/report/components/dialog/addAndEditReport.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
- flowPath
|
|
|
+ flowPath,
|
|
|
+ CreateReport
|
|
|
},
|
|
|
props: {
|
|
|
projectId:{
|
|
@@ -198,6 +203,18 @@ export default {
|
|
|
this.getReportMessage()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //编辑报告信息
|
|
|
+ edit(){
|
|
|
+ if(!this.form.id){
|
|
|
+ this.$message.error('没有报告信息可以编辑')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$refs.ReportForm.open(this.form)
|
|
|
+ },
|
|
|
+ save(){
|
|
|
+ this.getReportMessage()
|
|
|
+ this.$emit('refreshData',true)
|
|
|
+ },
|
|
|
//编辑案件梳理意见
|
|
|
editSuggestions(row){
|
|
|
this.$set(this,'editSuggestion',!this.editSuggestion)
|