Просмотр исходного кода

Merge branch 'gyj' of SH-Arbitrate/Mediation-Frontend into dev

gaogaoyujie 2 лет назад
Родитель
Сommit
8f19584ded

+ 8
- 1
src/api/caseManagement/caseManagement.js Просмотреть файл

@@ -223,4 +223,11 @@ export function getUserInfo(query) {
223 223
     params: query
224 224
   })
225 225
 }
226
-
226
+// 确定会议结果
227
+export function confirmMeetingResult(data) {
228
+  return request({
229
+    url: '/caseApplication/confirmMeetingResult',
230
+    method: 'post',
231
+    data: data
232
+  })
233
+}

+ 3
- 3
src/views/caseManagement/components/caseAcceptance.vue Просмотреть файл

@@ -3,7 +3,7 @@
3 3
     <!-- 案件受理 -->
4 4
     <el-dialog title="案件受理" :visible="showAcceptance" @close="cancel" :destroy-on-close="true" center>
5 5
       <el-form ref="courtReviewform" :model="courtReviewform">
6
-        <el-form-item label="是否同意受理:">
6
+        <el-form-item label="被申请人是否同意调解:">
7 7
           <el-radio-group v-model="courtReviewform.agreeFlag">
8 8
             <el-radio :label="1">是</el-radio>
9 9
             <el-radio :label="0">否</el-radio>
@@ -21,12 +21,12 @@
21 21
             <el-radio :label="0">否</el-radio>
22 22
           </el-radio-group>
23 23
         </el-form-item>
24
-        <el-form-item label="是否仲裁确认:" v-if="courtReviewform.agreeFlag == 1" >
24
+        <!-- <el-form-item label="是否仲裁确认:" v-if="courtReviewform.agreeFlag == 1" >
25 25
           <el-radio-group v-model="courtReviewform.arbitrateConfirm">
26 26
             <el-radio :label="1">是</el-radio>
27 27
             <el-radio :label="0">否</el-radio>
28 28
           </el-radio-group>
29
-        </el-form-item>
29
+        </el-form-item> -->
30 30
         <el-form-item v-if="courtReviewform.agreeFlag == 0" label="拒绝理由:" prop="rejectReason" :rules="[
31 31
           {
32 32
             required: true,

+ 57
- 10
src/views/caseManagement/components/mediation.vue Просмотреть файл

@@ -47,7 +47,7 @@
47 47
         <el-col :span="24" v-if="mediationType">
48 48
           <el-form-item label="调解结果:">
49 49
              <el-radio-group v-model="mediaResult" @change="resultsMediation">
50
-                <el-radio :label="1">达成调解</el-radio>
50
+                <el-radio :label="1">达成调解</el-radio>
51 51
                 <el-radio :label="2">未达成调解</el-radio>
52 52
                 <el-radio :label="3">未达成调解但不在争议</el-radio>
53 53
                 <el-radio :label="4">未达成调解但同意引入仲裁</el-radio>
@@ -78,6 +78,13 @@
78 78
             </div>
79 79
           </el-form-item>
80 80
         </el-col>
81
+        <el-col :span="24">
82
+          <el-form-item label="调解书:" v-if="recordArrMediate.length > 0">
83
+            <div v-for="(item, index) in recordArrMediate" :key="index" style="color: blue">
84
+              <a href="#" @click="toFileMediate(item.annexPath)">{{ item.annexName }}</a>
85
+            </div>
86
+          </el-form-item>
87
+        </el-col>
81 88
         <el-col :span="24" v-if="mediationType">
82 89
           <el-form-item label="预约会议房间号:">
83 90
             <div>{{ formData.roomId }}</div>
@@ -88,22 +95,25 @@
88 95
             <div>{{ formData.hearDate }}</div>
89 96
           </el-form-item>
90 97
         </el-col>
91
-        <el-col :span="24" v-if="!mediationType">
98
+        <!-- v-if="!mediationType" -->
99
+        <el-col :span="24">
92 100
           <el-form-item label="上传调解书">
93
-            <el-upload class="upload-demo" ref="upload" :action="UploadUrl()" :headers="headers" :data="filedata"
94
-              :on-preview="handlePreview" :on-remove="handleRemove" :on-change="beforeUpload" :on-success="handlSuccess"
101
+            <el-upload class="upload-demo" accept=".png,.jpg,.doc,.docx,.txt,.pdf" ref="upload" :action="UploadUrl()" :headers="headers" :data="filedata"
102
+              :on-preview="handlePreview" :on-remove="handleRemove" :limit="1" :on-change="beforeUpload" :on-success="handlSuccess"
95 103
               :file-list="fileList">
96 104
               <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
97 105
               <!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button> -->
98
-              <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
106
+              <div slot="tip" class="el-upload__tip">只能上传.jpg,png,.doc,docx,.txt,.pdf文件</div>
99 107
             </el-upload>
100 108
           </el-form-item>
101 109
         </el-col>
102 110
         <!-- </el-form> -->
103 111
       </el-form>
104 112
       <el-button @click="openmeeting" type="primary" v-if="mediationType">发起会议</el-button>
113
+      <!-- v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'" -->
105 114
       <el-button @click="openArbitrationresults" type="primary"
106
-        v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'">确认会议结果</el-button>
115
+     v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'"
116
+        >确认会议结果</el-button>
107 117
       <div slot="footer" class="dialog-footer">
108 118
         <el-button @click="cancel" class="endbutton1" round>
109 119
           <span>取 消</span>
@@ -120,7 +130,8 @@
120 130
 <script>
121 131
 import {
122 132
   caseApplicationSelectById,
123
-  mediation
133
+  mediation,
134
+  confirmMeetingResult
124 135
 } from "@/api/caseManagement/caseManagement.js";
125 136
 import { getUserProfile } from "@/api/system/user";
126 137
 import { reserveConferenceList } from "@/api/metting/metting.js";
@@ -130,10 +141,12 @@ export default {
130 141
   data() {
131 142
     return {
132 143
       loanStartDate: "",
144
+      codes:null,
133 145
       title: "线上调解",
134 146
       applicateArr: [],
135 147
       quiltArr: [],
136 148
       recordArr: [],
149
+      recordArrMediate:[],
137 150
       roomId: null,
138 151
       startTime: null,
139 152
       mediaResult:1,
@@ -158,6 +171,7 @@ export default {
158 171
   watch: {
159 172
     mediationVisable(val) {
160 173
       this.recordArr = [];
174
+      this.recordArrMediate = [];
161 175
       if (this.mediationData.mediationMethod == "1") {
162 176
         this.title = "线上调解";
163 177
         this.mediationType = true;
@@ -188,6 +202,7 @@ export default {
188 202
       this.fileList = fileList;
189 203
     },
190 204
     handlSuccess(res, file) {
205
+      this.codes = res.code
191 206
       this.attachList = [{annexId:res.annexId}];
192 207
       // this.$set(this.mediationData, "attachList", {annexId:res.annexId});
193 208
     },
@@ -199,6 +214,8 @@ export default {
199 214
         res.data.caseAttachList.forEach(item => {
200 215
           if (item.annexType == 6) {
201 216
             this.recordArr.push(item);
217
+          }else if(item.annexType == 7){
218
+            this.recordArrMediate.push(item);
202 219
           }
203 220
         });
204 221
       });
@@ -222,17 +239,37 @@ export default {
222 239
       caseApplicationSelectById({
223 240
         id: this.mediationData.id
224 241
       }).then(res => {
242
+        console.log(res)
225 243
         res.data.caseAttachList.forEach(item => {
226 244
           if (item.annexType == 6) {
227 245
             this.recordArr.push(item);
228 246
           }
229 247
         });
230 248
       });
249
+      confirmMeetingResult({
250
+        id: this.mediationData.id,
251
+        caseFlowId: this.mediationData.caseFlowId,
252
+        batchNumber: "",
253
+        mediaResult:this.mediaResult,
254
+      }).then(res =>{
255
+        caseApplicationSelectById({
256
+        id: this.mediationData.id
257
+        }).then(res => {
258
+          res.data.caseAttachList.forEach(item => {
259
+            if (item.annexType == 7) {
260
+              this.recordArrMediate.push(item);
261
+            }
262
+          });
263
+        });
264
+      })
231 265
     },
232 266
     /** 庭审笔录附件 */
233 267
     toFile2(annexPath) {
234 268
       window.open(window.location.origin + "/API" + annexPath, "_black");
235 269
     },
270
+    toFileMediate(annexPath) {
271
+      window.open(window.location.origin + "/API" + annexPath, "_black");
272
+    },
236 273
     /** 生成调解书 */
237 274
     mediationFn(data) {
238 275
       mediation(data).then(res => {
@@ -245,17 +282,27 @@ export default {
245 282
       this.$emit("cancelMediation");
246 283
     },
247 284
     submitMediation() {
248
-      if (this.fileList.length < 1 && !this.mediationType) {
285
+      if (this.fileList.length < 1 && !this.mediationType && this.mediationData.mediationMethod == "2") {
249 286
         this.$modal.msgError("请上传调解书");
250 287
         return
251 288
       }
252
-      this.mediationFn({
289
+      let mediationVal ={}
290
+      if (this.codes == 200){
291
+        mediationVal = {
253 292
         id: this.mediationData.id,
254 293
         caseFlowId: this.mediationData.caseFlowId,
255 294
         attachList: this.attachList,
256 295
         // isReconci:this.isReconci,
257 296
         mediaResult:this.mediaResult,
258
-      });
297
+        }
298
+      }else{
299
+        mediationVal = {
300
+        id: this.mediationData.id,
301
+        caseFlowId: this.mediationData.caseFlowId,
302
+        mediaResult:this.mediaResult,
303
+        }
304
+      }
305
+      this.mediationFn(mediationVal);
259 306
     },
260 307
     resultsMediation(){
261 308