zhuliu 7 mesi fa
parent
commit
9574e5650a

+ 10 - 10
src/views/report/InvalidResponse/components/dialog/editFlowPath.vue

@@ -432,7 +432,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -449,7 +449,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -466,7 +466,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -483,7 +483,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -500,7 +500,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -517,7 +517,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -534,7 +534,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -551,7 +551,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -568,7 +568,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{
@@ -585,7 +585,7 @@ const defaultSendEmail = ['6','1','7','8','16','3','17','27','28']
           }
           this.$api[api](this.form).then(response=>{
             if(response.code == 200){
-              this.$emit('save',true)
+              this.$emit('save',this.form)
               this.handleClose()
             }
           }).catch(error=>{

+ 6 - 1
src/views/report/InvalidResponse/components/flowPath/flowPath.vue

@@ -89,7 +89,7 @@
       </el-timeline>
     </div>
 
-    <responseDialog ref="responseDialog" :projectId="projectId" @save="getList"></responseDialog>
+    <responseDialog ref="responseDialog" :projectId="projectId" @save="saveFlowPath"></responseDialog>
   </div>
 </template>
 
@@ -137,6 +137,10 @@ export default {
     this.getList()
   },
   methods: {
+    saveFlowPath(form){
+      this.getList()
+      this.$emit('changeFlowPath',form)
+    },
     async getMenuList(){
       await this.$api.queryAssoCasePhaseList().then(response=>{
         if(response.code == 200){
@@ -242,6 +246,7 @@ export default {
           this.$api.deleteReportAffair(ids).then((res) => {
             if (res.code==200) {
               this.$message.success('删除成功')
+              this.$emit('changeFlowPath',item)
               this.getList()
             }
           })

+ 4 - 1
src/views/report/InvalidResponse/components/litigation/components/form.vue

@@ -6,7 +6,10 @@
                     <el-row>
                         <el-col v-for="(column,index) in columnList" :key="index" :span="column.span || 12">
                             <el-form-item :label="`${column.label}:`">
-                                <div v-if="model=='view' || column.noEdit" class="box1 textEmpty" v-html="$commonJS.getColumnData(form, { type: 'String', value: column.field })"></div>
+                                <div v-if="model=='view' || column.noEdit" class="box1 textEmpty">
+                                    <div v-if="column.field == 'conclusion'"  v-html="$constants.litigationResult[form[column.field]]"></div>
+                                    <div v-else  v-html="$commonJS.getColumnData(form, { type: 'String', value: column.field })"></div>
+                                </div>
                                 <template v-if="model=='edit' && !column.noEdit">
                                     <el-date-picker v-if="column.type=='date'"  v-model="form[column.field]" value-format="yyyy-MM-dd" type="date"  placeholder="请选择时间" style="width: 100%;"></el-date-picker>
                                     <el-input v-else v-model="form[column.field]" autocomplete="off" :placeholder="`请输入${column.label}`"></el-input>

+ 33 - 10
src/views/report/components/details/components/basicMessage_official.vue

@@ -170,8 +170,13 @@
 
                                 <el-row>
                                     <el-col :span="12">
-                                        <el-form-item label="案件阶段:" prop="caseStage">
-                                            <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'caseStage' })"></div>
+                                        <el-form-item label="案件阶段:" prop="casePhase">
+                                            <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'casePhase' })"></div>
+                                        </el-form-item>
+                                    </el-col>
+                                    <el-col :span="12">
+                                        <el-form-item label="案件子阶段:" prop="caseChildPhase">
+                                            <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'caseChildPhase' })"></div>
                                         </el-form-item>
                                     </el-col>
                                     <el-col :span="12">
@@ -179,8 +184,11 @@
                                             <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'acceptYear' })"></div>
                                         </el-form-item>
                                     </el-col>
-                                </el-row>
-                                <el-row>
+                                    <el-col :span="12">
+                                        <el-form-item label="负责人:" prop="headId">
+                                            <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'headName' })"></div>
+                                        </el-form-item>
+                                    </el-col>
                                     <el-col :span="12">
                                         <el-form-item label="请求人代理所:" prop="applicantAgency">
                                             <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'applicantAgency' })"></div>
@@ -191,12 +199,11 @@
                                             <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'rightHolderAgency' })"></div>
                                         </el-form-item>
                                     </el-col>
+                                    
                                 </el-row>
                             </div>
                         </template>
-                        <el-form-item label="负责人:" prop="headId">
-                            <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'headName' })"></div>
-                        </el-form-item>
+                        
                         <el-form-item label="备注:" prop="description">
                             <div class="box1 textEmpty" v-html="$commonJS.getColumnData(reportMessage, { type: 'String', value: 'description' })"></div>
                         </el-form-item>
@@ -368,7 +375,7 @@
                 </span>
             </div>
             <div v-show="show.showLitigation">
-                <el-card shadow="always">
+                <el-card shadow="always" v-if="show.ifLitigation">
                     <litigationVue :projectId="projectId"></litigationVue>
                 </el-card>
             </div>
@@ -383,7 +390,7 @@
             </div>
             <div v-show="show.showFlowPath">
                 <el-card shadow="always">
-                    <flow-Path :projectId="projectId"></flow-Path>
+                    <flow-Path :projectId="projectId" @changeFlowPath="changeFlowPath"></flow-Path>
                 </el-card>
             </div>
         </div>
@@ -422,7 +429,8 @@ export default {
             showCaseMessage:true,
             showOtherMessage:false,
             showFlowPath:true,
-            showLitigation:true
+            showLitigation:true,
+            ifLitigation:true
         },
         statutes:{
             invalidStatutes1:[],
@@ -449,6 +457,21 @@ export default {
     this.queryInvalidStatutes()
   },
   methods: {
+    //修改了案件流程
+    changeFlowPath(form){
+        if(!form){
+            return
+        }
+        if(!form.id || form.flowType == 7){
+          this.$emit('refreshData')  
+        }
+        if(form.flowType == 16 || form.flowType == 26){
+            this.show.ifLitigation = false
+            this.$nextTick(()=>{
+                this.show.ifLitigation = true
+            })
+        }
+    },
     //查询无效发条
     queryInvalidStatutes(){
         var params = {

+ 1 - 1
src/views/report/components/dialog/components/handelPersonTable.vue

@@ -174,7 +174,6 @@ export default {
     },
     //添加
     add(){
-
       if(this.model != 'list' ){
         this.$message.warning('已有数据正在编辑,请先保存修改的数据')
         return
@@ -253,6 +252,7 @@ export default {
       }
       this.loading = true
       row.reportId = this.reportId
+      row.type = this.type
       this.$api.matchCasePersonUpdate(row).then(response=>{
         if(response.code == 200){
           this.$message.success(a+'成功')