Browse Source

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

hanchaobo 2 years ago
parent
commit
e6645c7685
1 changed files with 39 additions and 33 deletions
  1. 39
    33
      src/views/caseManagement/components/mediation.vue

+ 39
- 33
src/views/caseManagement/components/mediation.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <el-dialog :title="title" :visible="mediationVisable" @close="cancel" center :distroy-on-close="true" width="1000px">
3
+    <el-dialog :title="title" :visible="mediationVisable" @close="cancel" center :distroy-on-close="true"
4
+      width="1000px">
4
       <el-form ref="form" :model="formData" label-width="180px">
5
       <el-form ref="form" :model="formData" label-width="180px">
5
         <div class="caseInfo">案件信息:</div>
6
         <div class="caseInfo">案件信息:</div>
6
         <el-divider></el-divider>
7
         <el-divider></el-divider>
56
           </el-form-item>
57
           </el-form-item>
57
         </el-col>
58
         </el-col>
58
         <el-col :span="24">
59
         <el-col :span="24">
59
-          <el-form-item label="是否用印申请" v-if="formData.mediaResult == 1&& mediationData.mediationMethod=='1'">
60
-             <el-radio-group v-model="formData.sealFlag" :disabled="!selectRoido">
61
-                <el-radio :label="1">是</el-radio>
62
-                <el-radio :label="0">否</el-radio>
60
+          <el-form-item label="是否用印申请" v-if="formData.mediaResult == 1 && mediationData.mediationMethod == '1'">
61
+            <el-radio-group v-model="formData.sealFlag" :disabled="!selectRoido">
62
+              <el-radio :label="1">是</el-radio>
63
+              <el-radio :label="0">否</el-radio>
63
             </el-radio-group>
64
             </el-radio-group>
64
           </el-form-item>
65
           </el-form-item>
65
         </el-col>
66
         </el-col>
110
         <!-- </el-form> -->
111
         <!-- </el-form> -->
111
       </el-form>
112
       </el-form>
112
       <el-button @click="openmeeting" type="primary" v-if="mediationType">{{ isSecretaryRole ? '发起会议' :
113
       <el-button @click="openmeeting" type="primary" v-if="mediationType">{{ isSecretaryRole ? '发起会议' :
113
-        '进入会议' }}</el-button>
114
+      '进入会议' }}</el-button>
114
       <el-button @click="openArbitrationresults" type="primary"
115
       <el-button @click="openArbitrationresults" type="primary"
115
         v-if="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole">确认会议结果</el-button>
116
         v-if="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole">确认会议结果</el-button>
116
       <div slot="footer" class="dialog-footer">
117
       <div slot="footer" class="dialog-footer">
118
           <span>取 消</span>
119
           <span>取 消</span>
119
         </el-button>
120
         </el-button>
120
         <el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation"
121
         <el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation"
121
-          :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole" class="endbutton1"
122
-          type="primary" round>
122
+          :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole"
123
+          class="endbutton1" type="primary" round>
123
           提 交
124
           提 交
124
         </el-button>
125
         </el-button>
125
       </div>
126
       </div>
139
 import { reserveConferenceList } from "@/api/metting/metting.js";
140
 import { reserveConferenceList } from "@/api/metting/metting.js";
140
 import { getToken } from "@/utils/auth";
141
 import { getToken } from "@/utils/auth";
141
 export default {
142
 export default {
142
-  props: ["mediationVisable", "mediationData", "queryParams","applicant"],
143
+  props: ["mediationVisable", "mediationData", "queryParams", "applicant"],
143
   data() {
144
   data() {
144
     return {
145
     return {
145
-      sealFlag:1,
146
+      sealFlag: 1,
146
       loanStartDate: "",
147
       loanStartDate: "",
147
       codes: null,
148
       codes: null,
148
       title: "线上调解",
149
       title: "线上调解",
156
       // isReconci:0,
157
       // isReconci:0,
157
       formData: {
158
       formData: {
158
         affiliate: {},
159
         affiliate: {},
159
-        mediaResult:1,
160
-        sealFlag:1,
160
+        mediaResult: 1,
161
+        sealFlag: 1,
161
       },
162
       },
162
       user: "",
163
       user: "",
163
       userId: null,
164
       userId: null,
168
       },
169
       },
169
       filedata: {
170
       filedata: {
170
         annexType: 7,
171
         annexType: 7,
171
-        isMediaBook:1,
172
+        isMediaBook: 1,
172
       },
173
       },
173
       fileList: [],
174
       fileList: [],
174
       attachList: [],
175
       attachList: [],
175
       isSecretaryRole: true,
176
       isSecretaryRole: true,
176
       loadingSubmit: false,
177
       loadingSubmit: false,
177
-      selectRoido:true
178
+      selectRoido: true
178
     };
179
     };
179
   },
180
   },
180
   watch: {
181
   watch: {
196
         this.caseApplicationSelectByIdFn({
197
         this.caseApplicationSelectByIdFn({
197
           id: this.mediationData.id
198
           id: this.mediationData.id
198
         });
199
         });
199
-        this.getUser(); 
200
+        this.getUser();
200
       }
201
       }
201
     },
202
     },
202
-    recordArrMediate(val){
203
-      if(val.length >= 1){
203
+    recordArrMediate(val) {
204
+      if (val.length >= 1) {
204
         this.selectRoido = false;
205
         this.selectRoido = false;
205
       }
206
       }
206
     }
207
     }
213
         userId: this.userId,
214
         userId: this.userId,
214
         caseId: this.mediationData.id
215
         caseId: this.mediationData.id
215
       }).then(res => {
216
       }).then(res => {
216
-         this.isSecretaryRole = res.data.isSecretaryRole;
217
+        this.isSecretaryRole = res.data.isSecretaryRole;
217
       })
218
       })
218
     },
219
     },
219
     /**上传地址*/
220
     /**上传地址*/
232
     handlSuccess(res, file) {
233
     handlSuccess(res, file) {
233
       this.codes = res.code
234
       this.codes = res.code
234
       console.log(res)
235
       console.log(res)
235
-      this.attachList.push({ annexId: res.annexId,annexType:res.annexType});
236
+      this.attachList.push({ annexId: res.annexId, annexType: res.annexType });
236
       // this.$set(this.mediationData, "attachList", {annexId:res.annexId});
237
       // this.$set(this.mediationData, "attachList", {annexId:res.annexId});
237
     },
238
     },
238
     /** 获取案件详情信息 */
239
     /** 获取案件详情信息 */
239
     caseApplicationSelectByIdFn(data) {
240
     caseApplicationSelectByIdFn(data) {
240
       caseApplicationSelectById(data).then(res => {
241
       caseApplicationSelectById(data).then(res => {
241
-        if(res.data.mediaResult){
242
-           this.formData = res.data;
243
-        }else{
242
+        if (res.data.mediaResult) {
243
+          this.formData = res.data;
244
+        } else {
244
           this.formData = res.data;
245
           this.formData = res.data;
245
           this.formData.mediaResult = 1;
246
           this.formData.mediaResult = 1;
246
         }
247
         }
247
-        if(res.data.sealFlag==1||res.data.sealFlag==0){
248
-           this.formData = res.data;
249
-        }else{
248
+        if (res.data.sealFlag == 1 || res.data.sealFlag == 0) {
249
+          this.formData = res.data;
250
+        } else {
250
           this.formData = res.data;
251
           this.formData = res.data;
251
           this.formData.sealFlag = 1;
252
           this.formData.sealFlag = 1;
252
         }
253
         }
293
         caseFlowId: this.mediationData.caseFlowId,
294
         caseFlowId: this.mediationData.caseFlowId,
294
         batchNumber: "",
295
         batchNumber: "",
295
         mediaResult: this.formData.mediaResult,
296
         mediaResult: this.formData.mediaResult,
296
-        sealFlag:this.formData.sealFlag
297
+        sealFlag: this.formData.sealFlag
297
       }).then(res => {
298
       }).then(res => {
298
         caseApplicationSelectById({
299
         caseApplicationSelectById({
299
           id: this.mediationData.id
300
           id: this.mediationData.id
312
       window.open(window.location.origin + "/API" + annexPath, "_black");
313
       window.open(window.location.origin + "/API" + annexPath, "_black");
313
     },
314
     },
314
     toFileMediate(val) {
315
     toFileMediate(val) {
316
+      if (this.checkPermi(['caseManagement:list:editOffice'])) {
317
+        this.$router.push({ path: '/onlyoffice', query: { id: val, flag: 1 } })
318
+      } else {
319
+        this.$router.push({ path: '/onlyoffice', query: { id: val, flag: 0 } })
320
+      }
315
       // window.open(window.location.origin + "/API" + annexPath, "_black");
321
       // window.open(window.location.origin + "/API" + annexPath, "_black");
316
-      this.$router.push({ path: '/onlyoffice', query: {id:val,flag:1} })
317
     },
322
     },
318
     /** 生成调解书 */
323
     /** 生成调解书 */
319
     mediationFn(data) {
324
     mediationFn(data) {
322
         this.$emit("cancelMediation");
327
         this.$emit("cancelMediation");
323
         this.$emit("getList", this.queryParams);
328
         this.$emit("getList", this.queryParams);
324
         this.loadingSubmit = false;
329
         this.loadingSubmit = false;
325
-      }).catch(err=>{
330
+      }).catch(err => {
326
         this.loadingSubmit = false;
331
         this.loadingSubmit = false;
327
       });
332
       });
328
     },
333
     },
338
         this.loadingSubmit = true;
343
         this.loadingSubmit = true;
339
       }
344
       }
340
       let mediationVal = {}
345
       let mediationVal = {}
341
-      
346
+
342
       if (this.codes == 200) {
347
       if (this.codes == 200) {
343
-        if(this.formData.mediaResult != 1){
348
+        if (this.formData.mediaResult != 1) {
344
           this.sealFlag = 0
349
           this.sealFlag = 0
345
         }
350
         }
346
         mediationVal = {
351
         mediationVal = {
350
           mediaResult: this.formData.mediaResult,
355
           mediaResult: this.formData.mediaResult,
351
         }
356
         }
352
       } else {
357
       } else {
353
-        if(this.formData.mediaResult != 1){
358
+        if (this.formData.mediaResult != 1) {
354
           this.sealFlag = 0
359
           this.sealFlag = 0
355
         }
360
         }
356
         mediationVal = {
361
         mediationVal = {
357
           id: this.mediationData.id,
362
           id: this.mediationData.id,
358
           caseFlowId: this.mediationData.caseFlowId,
363
           caseFlowId: this.mediationData.caseFlowId,
359
-          sealFlag:this.sealFlag,
364
+          sealFlag: this.sealFlag,
360
           attachList: this.attachList,
365
           attachList: this.attachList,
361
           mediaResult: this.formData.mediaResult,
366
           mediaResult: this.formData.mediaResult,
362
         }
367
         }
370
   }
375
   }
371
 };
376
 };
372
 </script>
377
 </script>
373
-  
378
+
374
 <style lang="scss" scoped>
379
 <style lang="scss" scoped>
375
 .steps {
380
 .steps {
376
   display: flex;
381
   display: flex;
377
   flex-wrap: wrap;
382
   flex-wrap: wrap;
378
 }
383
 }
384
+
379
 ::v-deep .el-input--medium .el-input__inner {
385
 ::v-deep .el-input--medium .el-input__inner {
380
   height: 40px;
386
   height: 40px;
381
   line-height: 40px;
387
   line-height: 40px;