Browse Source

审理页面案件证据显示问题修复

Your Name 2 years ago
parent
commit
d601d9a2fe

+ 5
- 2
src/views/awardManagement/listofAwards.vue View File

41
             </el-table-column>
41
             </el-table-column>
42
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
42
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
43
                 <template slot-scope="scope">
43
                 <template slot-scope="scope">
44
-                    <!-- <el-button size="mini" type="text" icon="el-icon-reading" v-if="scope.row.caseStatus == 10" @click="showModel(scope.row, 0)"
45
-                        v-hasPermi="['monitor:online:forceLogout']">生成裁决书</el-button> -->
44
+                    <el-button size="mini" type="text" icon="el-icon-reading" v-if="scope.row.filearbitraUrl && scope.row.filearbitraUrl !== ''" @click="showModel(scope.row, 0)">查看裁决书</el-button>
46
                     <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 11 && checkPermi(['awardManagement:list:check'])" @click="showModel(scope.row, 1)"
45
                     <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 11 && checkPermi(['awardManagement:list:check'])" @click="showModel(scope.row, 1)"
47
                     >核查</el-button>
46
                     >核查</el-button>
48
                     <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 12 && checkPermi(['awardManagement:list:confirmaward'])" @click="showModel(scope.row, 2)"
47
                     <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 12 && checkPermi(['awardManagement:list:confirmaward'])" @click="showModel(scope.row, 2)"
168
         showModel(row, type) {
167
         showModel(row, type) {
169
 
168
 
170
             switch (type) {
169
             switch (type) {
170
+                case 0:
171
+                    let url = row.filearbitraUrl;
172
+                    window.open(url)
173
+                    break;
171
                 case 1:
174
                 case 1:
172
                     this.getDetail({ id: row.id });
175
                     this.getDetail({ id: row.id });
173
                     this.openDialog = true;
176
                     this.openDialog = true;

+ 1
- 0
src/views/caseManagement/caseList.vue View File

750
           feePayable: res.data.feePayable,
750
           feePayable: res.data.feePayable,
751
           hearDate: res.data.hearDate,
751
           hearDate: res.data.hearDate,
752
           arbitratorName: res.data.arbitratorName,
752
           arbitratorName: res.data.arbitratorName,
753
+          caseAttachList: res.data.caseAttachList
753
         };
754
         };
754
         this.initpaymentArr = [];
755
         this.initpaymentArr = [];
755
         this.initpaymentArr1 = [];
756
         this.initpaymentArr1 = [];

+ 62
- 4
src/views/caseManagement/components/adjudicaterecordDialog.vue View File

10
       <el-form
10
       <el-form
11
         ref="form"
11
         ref="form"
12
         :model="formData"
12
         :model="formData"
13
-        label-width="150px"
13
+        label-width="180px"
14
         :disabled="true"
14
         :disabled="true"
15
       >
15
       >
16
         <p>案件信息:</p>
16
         <p>案件信息:</p>
119
             </el-form-item>
119
             </el-form-item>
120
           </el-col>
120
           </el-col>
121
         </el-row>
121
         </el-row>
122
-        <el-col :span="24">
122
+        <!-- <el-col :span="24">
123
           <el-form-item label="案件资料:" prop="claimPrinciOwed">
123
           <el-form-item label="案件资料:" prop="claimPrinciOwed">
124
             <el-input v-model="formData.claimPrinciOwed" placeholder="请输入" />
124
             <el-input v-model="formData.claimPrinciOwed" placeholder="请输入" />
125
           </el-form-item>
125
           </el-form-item>
126
+        </el-col> -->
127
+        <el-col :span="24">
128
+            <el-form-item
129
+              label="申请人案件证据:"
130
+            >
131
+              <div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
132
+              <div v-else v-for="(item, index) in applicateArr" :key="index">
133
+                <a href="#" @click="toFile(item, index)" style="color: blue">
134
+                  {{ item.annexName }}
135
+                </a>
136
+              </div>
137
+            </el-form-item>
138
+        </el-col>
139
+        <el-col :span="24">
140
+            <el-form-item
141
+              label="被申请人案件证据:"
142
+            >
143
+            <div v-if="quiltArr.length == 0">被申请人暂未提供证据!</div>
144
+            <div v-else v-for="(item, index) in quiltArr" :key="index">
145
+                <a href="#" @click="toFile1(item, index)" style="color: blue">
146
+                  {{ item.annexName }}
147
+                </a>
148
+            </div>
149
+            </el-form-item>
126
         </el-col>
150
         </el-col>
127
       </el-form>
151
       </el-form>
128
       <el-form ref="form2" :model="form2" label-width="150px">
152
       <el-form ref="form2" :model="form2" label-width="150px">
275
         </el-col>
299
         </el-col>
276
       </el-form>
300
       </el-form>
277
       <div slot="footer" class="dialog-footer">
301
       <div slot="footer" class="dialog-footer">
278
-        <el-button type="primary" @click="submitForm">提交仲裁结果</el-button>
302
+        <el-button type="primary" @click="submitForm">提交庭审笔录</el-button>
279
         <el-button @click="cancel">取 消</el-button>
303
         <el-button @click="cancel">取 消</el-button>
280
       </div>
304
       </div>
281
     </el-dialog>
305
     </el-dialog>
291
     return {
315
     return {
292
       formData: {},
316
       formData: {},
293
       form2: {},
317
       form2: {},
318
+      applicateArr: [],//申请人案件资料
319
+      quiltArr: [],//被申请人案件资料
294
     };
320
     };
295
   },
321
   },
296
   watch: {
322
   watch: {
297
     showadjudicaterecord: {
323
     showadjudicaterecord: {
298
       handler(val) {
324
       handler(val) {
299
         if (val) {
325
         if (val) {
326
+          this.applicateArr = [];
327
+          this.quiltArr = [];
300
           this.formData = this.form;
328
           this.formData = this.form;
329
+          setTimeout(() => {    
330
+          this.adjudicatename.caseAttachList.forEach(item => {
331
+            if (item.annexType == 2) {
332
+                this.applicateArr.push({
333
+                  annexName: item.annexName,
334
+                  annexPath: item.annexPath,
335
+                });
336
+              }
337
+              if (item.annexType == 6) {
338
+                this.quiltArr.push({
339
+                  annexName: item.annexName,
340
+                  annexPath: item.annexPath,
341
+                });
342
+              }
343
+          });
344
+          }, 500);
301
           this.form2 = {};
345
           this.form2 = {};
302
         }
346
         }
303
       },
347
       },
304
     },
348
     },
305
   },
349
   },
306
   methods: {
350
   methods: {
351
+     // 详情显示,展示申请人案件文件
352
+    toFile(item, index) {
353
+      window.open(
354
+        window.location.origin + "/API" + this.applicateArr[index].annexPath,
355
+        "_black"
356
+      );
357
+    },
358
+    // 被申请人文件
359
+    toFile1(item, index) {
360
+      window.open(
361
+        window.location.origin + "/API" + this.quiltArr[index].annexPath,
362
+        "_black"
363
+      );
364
+    },
307
     submitForm() {
365
     submitForm() {
308
       this.$refs["form2"].validate((valid) => {
366
       this.$refs["form2"].validate((valid) => {
309
         if (valid) {
367
         if (valid) {
333
 
391
 
334
 <style lang="scss" scoped>
392
 <style lang="scss" scoped>
335
 ::v-deep .el-dialog {
393
 ::v-deep .el-dialog {
336
-  width: 800px;
394
+  width: 900px;
337
   background: #ffffff;
395
   background: #ffffff;
338
   border-radius: 20px;
396
   border-radius: 20px;
339
 }
397
 }

+ 71
- 9
src/views/caseManagement/components/trialincourtDialog.vue View File

9
       <el-form
9
       <el-form
10
         ref="form"
10
         ref="form"
11
         :model="formData"
11
         :model="formData"
12
-        label-width="150px"
12
+        label-width="180px"
13
         :disabled="true"
13
         :disabled="true"
14
       >
14
       >
15
         <p>案件信息:</p>
15
         <p>案件信息:</p>
118
             </el-form-item>
118
             </el-form-item>
119
           </el-col>
119
           </el-col>
120
         </el-row>
120
         </el-row>
121
-        <el-col :span="24">
121
+        <!-- <el-col :span="24">
122
           <el-form-item label="案件资料:" prop="claimPrinciOwed">
122
           <el-form-item label="案件资料:" prop="claimPrinciOwed">
123
             <el-input v-model="formData.claimPrinciOwed" placeholder="请输入" />
123
             <el-input v-model="formData.claimPrinciOwed" placeholder="请输入" />
124
           </el-form-item>
124
           </el-form-item>
125
+        </el-col> -->
126
+        <el-col :span="24">
127
+            <el-form-item
128
+              label="申请人案件证据:"
129
+            >
130
+              <div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
131
+              <div v-else v-for="(item, index) in applicateArr" :key="index">
132
+                <a href="#" @click="toFile(item, index)" style="color: blue">
133
+                  {{ item.annexName }}
134
+                </a>
135
+              </div>
136
+            </el-form-item>
125
         </el-col>
137
         </el-col>
138
+        <el-col :span="24">
139
+            <el-form-item
140
+              label="被申请人案件证据:"
141
+            >
142
+            <div v-if="quiltArr.length == 0">被申请人暂未提供证据!</div>
143
+            <div v-for="(item, index) in quiltArr" :key="index">
144
+                <a href="#" @click="toFile1(item, index)" style="color: blue">
145
+                  {{ item.annexName }}
146
+                </a>
147
+            </div>
148
+            </el-form-item>
149
+        </el-col>
150
+      <!-- </el-form> -->
126
       </el-form>
151
       </el-form>
127
       <el-button @click="openmeeting" type="primary"
152
       <el-button @click="openmeeting" type="primary"
128
         >发起会议
153
         >发起会议
129
         <!-- <iframe src="http://47.97.117.253:9005/#/">发起会议</iframe> -->
154
         <!-- <iframe src="http://47.97.117.253:9005/#/">发起会议</iframe> -->
130
       </el-button>
155
       </el-button>
131
       <el-button @click="openArbitrationresults" type="primary"
156
       <el-button @click="openArbitrationresults" type="primary"
132
-        >提交仲裁结果</el-button
133
-      >
157
+        >生成庭审笔录</el-button
158
+      >    
134
       <div slot="footer" class="dialog-footer">
159
       <div slot="footer" class="dialog-footer">
135
         <!-- <el-button @click="submitForm" class="endbutton"
160
         <!-- <el-button @click="submitForm" class="endbutton"
136
           ><span>结束审理</span></el-button
161
           ><span>结束审理</span></el-button
137
         > -->
162
         > -->
163
+        <el-button @click="openArbitrationresults" class="endbutton"
164
+        ><span>提交庭审笔录</span></el-button
165
+      >
138
         <el-button @click="cancel" class="endbutton1"
166
         <el-button @click="cancel" class="endbutton1"
139
           ><span>关 闭</span></el-button
167
           ><span>关 闭</span></el-button
140
         >
168
         >
141
       </div>
169
       </div>
142
     </el-dialog>
170
     </el-dialog>
143
     <el-dialog
171
     <el-dialog
144
-      title="提交仲裁结果"
172
+      title="提交庭审笔录"
145
       :visible="showArbitrationresults"
173
       :visible="showArbitrationresults"
146
       @close="closeArbitrationresults"
174
       @close="closeArbitrationresults"
147
       center
175
       center
255
       </el-form>
283
       </el-form>
256
       <div slot="footer" class="dialog-footer">
284
       <div slot="footer" class="dialog-footer">
257
         <el-button @click="submitForm" class="endbutton">
285
         <el-button @click="submitForm" class="endbutton">
258
-          <span>提交仲裁结果</span></el-button
286
+          <span>提交</span></el-button
259
         >
287
         >
260
         <el-button @click="closeArbitrationresults" class="endbutton1"
288
         <el-button @click="closeArbitrationresults" class="endbutton1"
261
           ><span>取 消</span></el-button
289
           ><span>取 消</span></el-button
277
       user: "",
305
       user: "",
278
       showArbitrationresults: false,
306
       showArbitrationresults: false,
279
       form2: {},
307
       form2: {},
308
+      applicateArr: [],//申请人案件资料
309
+      quiltArr: [],//被申请人案件资料
280
     };
310
     };
281
   },
311
   },
282
   watch: {
312
   watch: {
283
     showtrialincourt: {
313
     showtrialincourt: {
284
       handler(val) {
314
       handler(val) {
285
         if (val) {
315
         if (val) {
286
-          this.formData = this.form;
316
+          this.formData = this.form;      
317
+          this.applicateArr = [];
318
+          this.quiltArr = [];
319
+          setTimeout(() => {    
320
+          this.adjudicatename.caseAttachList.forEach(item => {
321
+            if (item.annexType == 2) {
322
+                this.applicateArr.push({
323
+                  annexName: item.annexName,
324
+                  annexPath: item.annexPath,
325
+                });
326
+              }
327
+              if (item.annexType == 6) {
328
+                this.quiltArr.push({
329
+                  annexName: item.annexName,
330
+                  annexPath: item.annexPath,
331
+                });
332
+              }
333
+          });
334
+          }, 500);
287
         }
335
         }
288
       },
336
       },
289
     },
337
     },
292
     this.getUser();
340
     this.getUser();
293
   },
341
   },
294
   methods: {
342
   methods: {
343
+     // 详情显示,展示申请人案件文件
344
+    toFile(item, index) {
345
+      window.open(
346
+        window.location.origin + "/API" + this.applicateArr[index].annexPath,
347
+        "_black"
348
+      );
349
+    },
350
+    // 被申请人文件
351
+    toFile1(item, index) {
352
+      window.open(
353
+        window.location.origin + "/API" + this.quiltArr[index].annexPath,
354
+        "_black"
355
+      );
356
+    },
295
     getUser() {
357
     getUser() {
296
       getUserProfile().then((response) => {
358
       getUserProfile().then((response) => {
297
         this.user = response.data.userName;
359
         this.user = response.data.userName;
339
 
401
 
340
 <style lang="scss" scoped>
402
 <style lang="scss" scoped>
341
 ::v-deep .el-dialog {
403
 ::v-deep .el-dialog {
342
-  width: 800px;
404
+  width: 900px;
343
   background: #ffffff;
405
   background: #ffffff;
344
   border-radius: 20px;
406
   border-radius: 20px;
345
 }
407
 }
346
 .endbutton {
408
 .endbutton {
347
   width: 154px;
409
   width: 154px;
348
   height: 37px;
410
   height: 37px;
349
-  background: #0072ff;
411
+  background: #488de2;
350
   border-radius: 19px;
412
   border-radius: 19px;
351
   span {
413
   span {
352
     width: 96px;
414
     width: 96px;

+ 1
- 1
vue.config.js View File

13
 
13
 
14
 const API = 'http://121.40.189.20:9001'  //测试
14
 const API = 'http://121.40.189.20:9001'  //测试
15
 // const API = 'http://192.168.3.18:9001'  //B
15
 // const API = 'http://192.168.3.18:9001'  //B
16
-// const API = 'http://192.168.3.77:8080' //Q
16
+// const API = 'http://192.168.3.77:9001' //Q
17
 
17
 
18
 // vue.config.js 配置说明
18
 // vue.config.js 配置说明
19
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
19
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions