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

裁决书上传无法更新问题

hanchaobo 2 лет назад
Родитель
Сommit
7cf0427b56

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

164
       params: data
164
       params: data
165
   })
165
   })
166
 }
166
 }
167
+// 根据案件id查询当前登陆人是否为仲裁员
168
+export function secretaryRoleByUserId(data) {
169
+  return request({
170
+      url: '/video/secretaryRoleByUserId',
171
+      method: 'get',
172
+      params: data
173
+  })
174
+}

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

5
         <el-input style="width:180px" v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
5
         <el-input style="width:180px" v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
6
       </el-form-item>
6
       </el-form-item>
7
       <el-form-item label="案件批号" prop="caseNum">
7
       <el-form-item label="案件批号" prop="caseNum">
8
-        <el-input style="width:180px" v-model="queryParams.batchNumber" placeholder="请输入案件批号" clearable @keyup.enter.native="handleQuery" />
8
+        <el-input style="width:180px" @input="handleInput" v-model="queryParams.batchNumber" placeholder="请输入案件批号" clearable @keyup.enter.native="handleQuery" />
9
       </el-form-item>
9
       </el-form-item>
10
       <!-- <el-form-item label="申请人" prop="applicantName"> -->
10
       <!-- <el-form-item label="申请人" prop="applicantName"> -->
11
         <!-- <el-input
11
         <!-- <el-input
150
           <el-button size="mini" type="text" icon="el-icon-check" @click="courtreviewRow(scope.row)" v-if="scope.row.caseStatus == 5 &&
150
           <el-button size="mini" type="text" icon="el-icon-check" @click="courtreviewRow(scope.row)" v-if="scope.row.caseStatus == 5 &&
151
             checkPermi(['caseManagement:list:checkgroup']) && btnStatus
151
             checkPermi(['caseManagement:list:checkgroup']) && btnStatus
152
             ">组庭审核</el-button>
152
             ">组庭审核</el-button>
153
-          <el-button size="mini" type="text" icon="el-icon-sort" @click="choosetrialmethodRow(scope.row)">审核仲裁方式</el-button>
153
+          <el-button size="mini" type="text" icon="el-icon-sort" @click="choosetrialmethodRow(scope.row)" v-if="scope.row.caseStatus == 7 &&
154
+            checkPermi(['caseManagement:list:checkarbitrationway']) && btnStatus
155
+            ">审核仲裁方式</el-button>
154
           <el-button size="mini" type="text" icon="el-icon-edit-outline" @click="adjudicaterecordRow(scope.row)" v-if="scope.row.caseStatus == 9 &&
156
           <el-button size="mini" type="text" icon="el-icon-edit-outline" @click="adjudicaterecordRow(scope.row)" v-if="scope.row.caseStatus == 9 &&
155
             scope.row.arbitratMethod == 2 &&
157
             scope.row.arbitratMethod == 2 &&
156
             checkPermi(['caseManagement:list:hear']) && btnStatus
158
             checkPermi(['caseManagement:list:hear']) && btnStatus
518
     this.getInstitution();
520
     this.getInstitution();
519
   },
521
   },
520
   methods: {
522
   methods: {
523
+    handleInput(event) {
524
+      const value = event;
525
+      this.queryParams.batchNumber = value.replace(/[^\d]/g, ''); // 去除非数字字符
526
+    },
521
     cancel() {
527
     cancel() {
522
       this.visible = false;
528
       this.visible = false;
523
     },
529
     },

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

184
             <div>{{ startTime }}</div>
184
             <div>{{ startTime }}</div>
185
           </el-form-item>
185
           </el-form-item>
186
         </el-col>
186
         </el-col>
187
-        <el-col :span="24">
187
+        <el-col :span="24" v-if="submitFlag">
188
           <el-form-item label="上传裁决书:">
188
           <el-form-item label="上传裁决书:">
189
             <el-upload
189
             <el-upload
190
               class="upload-demo"
190
               class="upload-demo"
210
             </el-upload>
210
             </el-upload>
211
           </el-form-item>
211
           </el-form-item>
212
         </el-col>
212
         </el-col>
213
-        <el-col :span="24">
213
+        <el-col :span="24" v-if="submitFlag">
214
           <el-form-item label="上传庭审笔录:">
214
           <el-form-item label="上传庭审笔录:">
215
             <el-upload
215
             <el-upload
216
               class="upload-demo"
216
               class="upload-demo"
217
               ref="fileupload"
217
               ref="fileupload"
218
               accept=".doc,.docx"
218
               accept=".doc,.docx"
219
-              :action="UploadUrl()"
219
+              :action="UploadUrlsT()"
220
               :on-success="handlSuccess"
220
               :on-success="handlSuccess"
221
               :on-remove="handleRemove"
221
               :on-remove="handleRemove"
222
               :on-preview="handlePreview"
222
               :on-preview="handlePreview"
242
       <el-button
242
       <el-button
243
         @click="openArbitrationresults"
243
         @click="openArbitrationresults"
244
         type="primary"
244
         type="primary"
245
-        v-if="this.awardArr.length <= 0"
245
+        v-if="this.awardArr.length <= 0 && submitFlag"
246
         >确认会议结果</el-button>
246
         >确认会议结果</el-button>
247
       <div slot="footer" class="dialog-footer">
247
       <div slot="footer" class="dialog-footer">
248
         <el-button
248
         <el-button
252
           "
252
           "
253
           @click="submitResults"
253
           @click="submitResults"
254
           :loading="loadingSub"
254
           :loading="loadingSub"
255
+          v-if="submitFlag"
255
           >提交</el-button
256
           >提交</el-button
256
         >
257
         >
257
         <el-button @click="cancel" class="endbutton1"
258
         <el-button @click="cancel" class="endbutton1"
468
   creatTrialRecord,
469
   creatTrialRecord,
469
   creatTrialRecordnew,
470
   creatTrialRecordnew,
470
   document,
471
   document,
471
-  changeCaseStatus
472
+  changeCaseStatus,
473
+  secretaryRoleByUserId
472
 } from "@/api/caseManagement/caseManagement.js";
474
 } from "@/api/caseManagement/caseManagement.js";
473
 import { reserveConferenceList } from "@/api/meeting/index.js";
475
 import { reserveConferenceList } from "@/api/meeting/index.js";
474
 export default {
476
 export default {
475
   props: ["showtrialincourt", "adjudicatename", "form", "queryParams"],
477
   props: ["showtrialincourt", "adjudicatename", "form", "queryParams"],
476
   data() {
478
   data() {
477
     return {
479
     return {
480
+      submitFlag: false,
478
       formData: {},
481
       formData: {},
479
       headers: {
482
       headers: {
480
         Authorization: "Bearer " + getToken(),
483
         Authorization: "Bearer " + getToken(),
481
       },
484
       },
482
       filedata: {
485
       filedata: {
483
         annexType: 7,
486
         annexType: 7,
484
-        id: 0,
487
+        id: null,
485
       },
488
       },
486
       filedatas: {
489
       filedatas: {
487
         annexType: 3,
490
         annexType: 3,
488
-        id:null
491
+        officeFlag:1,
492
+        caseId:null
489
       },
493
       },
490
       upLife: "",
494
       upLife: "",
491
       user: "",
495
       user: "",
560
   },
564
   },
561
   created() {},
565
   created() {},
562
   methods: {
566
   methods: {
567
+    // 根据案件id和用户id查询当前登陆人是否为仲裁员
568
+    secretaryRoleByUserIdFn(data){
569
+      secretaryRoleByUserId(data).then(res=>{
570
+        this.submitFlag = res.data.isSecretaryRole;
571
+      })
572
+    },
563
     // 根据案件id查询会议号
573
     // 根据案件id查询会议号
564
     reserveConferenceListFn(data) {
574
     reserveConferenceListFn(data) {
565
       reserveConferenceList(data).then((res) => {
575
       reserveConferenceList(data).then((res) => {
583
     },
593
     },
584
     //裁决书文件
594
     //裁决书文件
585
     awardToFile(item) {
595
     awardToFile(item) {
586
-      console.log(item,"LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL");
587
       // window.open(
596
       // window.open(
588
       //   window.location.origin + "/API" + this.awardArr[index].annexPath,
597
       //   window.location.origin + "/API" + this.awardArr[index].annexPath,
589
       //   "_black"
598
       //   "_black"
605
       getUserProfile().then((response) => {
614
       getUserProfile().then((response) => {
606
         this.user = response.data.userName;
615
         this.user = response.data.userName;
607
         this.userId = response.data.userId;
616
         this.userId = response.data.userId;
617
+        this.secretaryRoleByUserIdFn({caseId:this.form.id,userId:this.userId})
608
       });
618
       });
609
     },
619
     },
610
     // 打开会议
620
     // 打开会议
714
         });
724
         });
715
       }
725
       }
716
     },
726
     },
717
-    // 上传庭审笔录
718
-    UploadUrl() {
719
-      return window.location.origin + "/API/evidence/uploadRecord";
720
-    },
721
     // 文件上传成功
727
     // 文件上传成功
722
     handlSuccess(res, file) {
728
     handlSuccess(res, file) {
723
       // this.fileList.push(file);
729
       // this.fileList.push(file);
760
     },
766
     },
761
     // 上传裁决书
767
     // 上传裁决书
762
     UploadUrls() {
768
     UploadUrls() {
769
+      return window.location.origin + "/API/video/upload";
770
+    },
771
+    UploadUrlsT() {
763
       return window.location.origin + "/API/evidence/uploadRecord";
772
       return window.location.origin + "/API/evidence/uploadRecord";
764
     },
773
     },
765
     beforeRemoves(file,fileList){
774
     beforeRemoves(file,fileList){
780
                 this.adjudicatename.caseAttachList = res.data.caseAttachList;
789
                 this.adjudicatename.caseAttachList = res.data.caseAttachList;
781
                  this.adjudicatename.caseAttachList.forEach(item=>{
790
                  this.adjudicatename.caseAttachList.forEach(item=>{
782
                   if(item.annexType==3){
791
                   if(item.annexType==3){
783
-                    this.awardArr.push({
784
-                    annexName: item.annexName,
785
-                    annexPath: item.annexPath,
786
-                  });
792
+                    this.awardArr.push(item);
787
                   }
793
                   }
788
                  })
794
                  })
789
                 
795
                 
790
               });
796
               });
791
     },
797
     },
792
     beforeAvatarUploads(){
798
     beforeAvatarUploads(){
793
-      this.filedatas.id = this.formData.id;
799
+      this.filedatas.caseId = this.formData.id;
794
     }
800
     }
795
   },
801
   },
796
 };
802
 };

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

12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
13
 
13
 
14
 // const API = 'http://121.40.189.20:9001'  //生产
14
 // const API = 'http://121.40.189.20:9001'  //生产
15
-//  const API = 'http://121.40.189.20:8001'  //测试
16
-const API = 'http://172.16.1.26:8001'  //Bs
15
+ const API = 'http://121.40.189.20:8001'  //测试
16
+// const API = 'http://172.16.1.26:8001'  //Bs
17
 // const API = 'http://192.168.3.77:9001' //Q
17
 // const API = 'http://192.168.3.77:9001' //Q
18
 // const API = 'http://172.16.1.26:8001' //W
18
 // const API = 'http://172.16.1.26:8001' //W
19
 
19