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

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

Your Name 2 лет назад
Родитель
Сommit
d601d9a2fe

+ 5
- 2
src/views/awardManagement/listofAwards.vue Просмотреть файл

@@ -41,8 +41,7 @@
41 41
             </el-table-column>
42 42
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
43 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 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 46
                     >核查</el-button>
48 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,6 +167,10 @@ export default {
168 167
         showModel(row, type) {
169 168
 
170 169
             switch (type) {
170
+                case 0:
171
+                    let url = row.filearbitraUrl;
172
+                    window.open(url)
173
+                    break;
171 174
                 case 1:
172 175
                     this.getDetail({ id: row.id });
173 176
                     this.openDialog = true;

+ 1
- 0
src/views/caseManagement/caseList.vue Просмотреть файл

@@ -750,6 +750,7 @@ export default {
750 750
           feePayable: res.data.feePayable,
751 751
           hearDate: res.data.hearDate,
752 752
           arbitratorName: res.data.arbitratorName,
753
+          caseAttachList: res.data.caseAttachList
753 754
         };
754 755
         this.initpaymentArr = [];
755 756
         this.initpaymentArr1 = [];

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

@@ -10,7 +10,7 @@
10 10
       <el-form
11 11
         ref="form"
12 12
         :model="formData"
13
-        label-width="150px"
13
+        label-width="180px"
14 14
         :disabled="true"
15 15
       >
16 16
         <p>案件信息:</p>
@@ -119,10 +119,34 @@
119 119
             </el-form-item>
120 120
           </el-col>
121 121
         </el-row>
122
-        <el-col :span="24">
122
+        <!-- <el-col :span="24">
123 123
           <el-form-item label="案件资料:" prop="claimPrinciOwed">
124 124
             <el-input v-model="formData.claimPrinciOwed" placeholder="请输入" />
125 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 150
         </el-col>
127 151
       </el-form>
128 152
       <el-form ref="form2" :model="form2" label-width="150px">
@@ -275,7 +299,7 @@
275 299
         </el-col>
276 300
       </el-form>
277 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 303
         <el-button @click="cancel">取 消</el-button>
280 304
       </div>
281 305
     </el-dialog>
@@ -291,19 +315,53 @@ export default {
291 315
     return {
292 316
       formData: {},
293 317
       form2: {},
318
+      applicateArr: [],//申请人案件资料
319
+      quiltArr: [],//被申请人案件资料
294 320
     };
295 321
   },
296 322
   watch: {
297 323
     showadjudicaterecord: {
298 324
       handler(val) {
299 325
         if (val) {
326
+          this.applicateArr = [];
327
+          this.quiltArr = [];
300 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 345
           this.form2 = {};
302 346
         }
303 347
       },
304 348
     },
305 349
   },
306 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 365
     submitForm() {
308 366
       this.$refs["form2"].validate((valid) => {
309 367
         if (valid) {
@@ -333,7 +391,7 @@ export default {
333 391
 
334 392
 <style lang="scss" scoped>
335 393
 ::v-deep .el-dialog {
336
-  width: 800px;
394
+  width: 900px;
337 395
   background: #ffffff;
338 396
   border-radius: 20px;
339 397
 }

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

@@ -9,7 +9,7 @@
9 9
       <el-form
10 10
         ref="form"
11 11
         :model="formData"
12
-        label-width="150px"
12
+        label-width="180px"
13 13
         :disabled="true"
14 14
       >
15 15
         <p>案件信息:</p>
@@ -118,30 +118,58 @@
118 118
             </el-form-item>
119 119
           </el-col>
120 120
         </el-row>
121
-        <el-col :span="24">
121
+        <!-- <el-col :span="24">
122 122
           <el-form-item label="案件资料:" prop="claimPrinciOwed">
123 123
             <el-input v-model="formData.claimPrinciOwed" placeholder="请输入" />
124 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 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 151
       </el-form>
127 152
       <el-button @click="openmeeting" type="primary"
128 153
         >发起会议
129 154
         <!-- <iframe src="http://47.97.117.253:9005/#/">发起会议</iframe> -->
130 155
       </el-button>
131 156
       <el-button @click="openArbitrationresults" type="primary"
132
-        >提交仲裁结果</el-button
133
-      >
157
+        >生成庭审笔录</el-button
158
+      >    
134 159
       <div slot="footer" class="dialog-footer">
135 160
         <!-- <el-button @click="submitForm" class="endbutton"
136 161
           ><span>结束审理</span></el-button
137 162
         > -->
163
+        <el-button @click="openArbitrationresults" class="endbutton"
164
+        ><span>提交庭审笔录</span></el-button
165
+      >
138 166
         <el-button @click="cancel" class="endbutton1"
139 167
           ><span>关 闭</span></el-button
140 168
         >
141 169
       </div>
142 170
     </el-dialog>
143 171
     <el-dialog
144
-      title="提交仲裁结果"
172
+      title="提交庭审笔录"
145 173
       :visible="showArbitrationresults"
146 174
       @close="closeArbitrationresults"
147 175
       center
@@ -255,7 +283,7 @@
255 283
       </el-form>
256 284
       <div slot="footer" class="dialog-footer">
257 285
         <el-button @click="submitForm" class="endbutton">
258
-          <span>提交仲裁结果</span></el-button
286
+          <span>提交</span></el-button
259 287
         >
260 288
         <el-button @click="closeArbitrationresults" class="endbutton1"
261 289
           ><span>取 消</span></el-button
@@ -277,13 +305,33 @@ export default {
277 305
       user: "",
278 306
       showArbitrationresults: false,
279 307
       form2: {},
308
+      applicateArr: [],//申请人案件资料
309
+      quiltArr: [],//被申请人案件资料
280 310
     };
281 311
   },
282 312
   watch: {
283 313
     showtrialincourt: {
284 314
       handler(val) {
285 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,6 +340,20 @@ export default {
292 340
     this.getUser();
293 341
   },
294 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 357
     getUser() {
296 358
       getUserProfile().then((response) => {
297 359
         this.user = response.data.userName;
@@ -339,14 +401,14 @@ export default {
339 401
 
340 402
 <style lang="scss" scoped>
341 403
 ::v-deep .el-dialog {
342
-  width: 800px;
404
+  width: 900px;
343 405
   background: #ffffff;
344 406
   border-radius: 20px;
345 407
 }
346 408
 .endbutton {
347 409
   width: 154px;
348 410
   height: 37px;
349
-  background: #0072ff;
411
+  background: #488de2;
350 412
   border-radius: 19px;
351 413
   span {
352 414
     width: 96px;

+ 1
- 1
vue.config.js Просмотреть файл

@@ -13,7 +13,7 @@ const port = process.env.port || process.env.npm_config_port || 80 // 端口
13 13
 
14 14
 const API = 'http://121.40.189.20:9001'  //测试
15 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 18
 // vue.config.js 配置说明
19 19
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions