ソースを参照

会议各个角色都有权限

hanchaobo 2 年 前
コミット
6d606a6794
共有2 個のファイルを変更した59 個の追加40 個の削除を含む
  1. 8
    0
      src/api/caseManagement/caseManagement.js
  2. 51
    40
      src/views/caseManagement/components/mediation.vue

+ 8
- 0
src/api/caseManagement/caseManagement.js ファイルの表示

231
     data: data
231
     data: data
232
   })
232
   })
233
 }
233
 }
234
+// 根据用户id查询是否为调解员
235
+export function secretaryRoleByUserId(query) {
236
+  return request({
237
+    url: '/video/secretaryRoleByUserId',
238
+    method: 'get',
239
+    params: query
240
+  })
241
+}

+ 51
- 40
src/views/caseManagement/components/mediation.vue ファイルの表示

39
         <el-col :span="24">
39
         <el-col :span="24">
40
           <el-form-item label="申请人案件证据:">
40
           <el-form-item label="申请人案件证据:">
41
             <div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
41
             <div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
42
-            <div  v-for="(item, index) in applicateArr" :key="index" v-if="item.annexType == 2">
42
+            <div v-for="(item, index) in applicateArr" :key="index" v-if="item.annexType == 2">
43
               <a href="#" @click="toFile(item, index)" style="color: blue">{{ item.annexName }}</a>
43
               <a href="#" @click="toFile(item, index)" style="color: blue">{{ item.annexName }}</a>
44
             </div>
44
             </div>
45
           </el-form-item>
45
           </el-form-item>
46
         </el-col>
46
         </el-col>
47
         <el-col :span="24" v-if="mediationType">
47
         <el-col :span="24" v-if="mediationType">
48
           <el-form-item label="调解结果:">
48
           <el-form-item label="调解结果:">
49
-             <el-radio-group v-model="mediaResult" @change="resultsMediation">
50
-                <el-radio :label="1">达成调解</el-radio>
51
-                <el-radio :label="2">未达成调解</el-radio>
52
-                <el-radio :label="3">未达成调解但不在争议</el-radio>
53
-                <el-radio :label="4">未达成调解但同意引入仲裁</el-radio>
54
-                <el-radio :label="5">达成和解</el-radio>
49
+            <el-radio-group v-model="mediaResult" :disabled="!isSecretaryRole" @change="resultsMediation">
50
+              <el-radio :label="1">达成调解</el-radio>
51
+              <el-radio :label="2">未达成调解</el-radio>
52
+              <el-radio :label="3">未达成调解但不在争议</el-radio>
53
+              <el-radio :label="4">未达成调解但同意引入仲裁</el-radio>
54
+              <el-radio :label="5">达成和解</el-radio>
55
             </el-radio-group>
55
             </el-radio-group>
56
           </el-form-item>
56
           </el-form-item>
57
         </el-col>
57
         </el-col>
98
         <!-- v-if="!mediationType" -->
98
         <!-- v-if="!mediationType" -->
99
         <el-col :span="24">
99
         <el-col :span="24">
100
           <el-form-item label="上传调解书">
100
           <el-form-item label="上传调解书">
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"
103
-              :file-list="fileList">
104
-              <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
101
+            <el-upload class="upload-demo" accept=".png,.jpg,.doc,.docx,.txt,.pdf" ref="upload" :action="UploadUrl()"
102
+              :headers="headers" :data="filedata" :on-preview="handlePreview" :on-remove="handleRemove" :limit="1"
103
+              :on-change="beforeUpload" :on-success="handlSuccess" :file-list="fileList">
104
+              <el-button slot="trigger" size="small" :disabled="!isSecretaryRole" type="primary">选取文件</el-button>
105
               <!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button> -->
105
               <!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button> -->
106
               <div slot="tip" class="el-upload__tip">只能上传.jpg,png,.doc,docx,.txt,.pdf文件</div>
106
               <div slot="tip" class="el-upload__tip">只能上传.jpg,png,.doc,docx,.txt,.pdf文件</div>
107
             </el-upload>
107
             </el-upload>
109
         </el-col>
109
         </el-col>
110
         <!-- </el-form> -->
110
         <!-- </el-form> -->
111
       </el-form>
111
       </el-form>
112
-      <el-button @click="openmeeting" type="primary" v-if="mediationType">发起会议</el-button>
112
+      <el-button @click="openmeeting" type="primary" v-if="mediationType">{{ isSecretaryRole ? '发起会议' :
113
+        '进入会议' }}</el-button>
113
       <!-- v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'" -->
114
       <!-- v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'" -->
114
       <el-button @click="openArbitrationresults" type="primary"
115
       <el-button @click="openArbitrationresults" type="primary"
115
-     v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'"
116
-        >确认会议结果</el-button>
116
+        v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'">确认会议结果</el-button>
117
       <div slot="footer" class="dialog-footer">
117
       <div slot="footer" class="dialog-footer">
118
         <el-button @click="cancel" class="endbutton1" round>
118
         <el-button @click="cancel" class="endbutton1" round>
119
           <span>取 消</span>
119
           <span>取 消</span>
120
         </el-button>
120
         </el-button>
121
-        <el-button @click="submitMediation" :disabled="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'"
121
+        <el-button v-if="isSecretaryRole" @click="submitMediation" :disabled="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'"
122
           class="endbutton1" type="primary" round>
122
           class="endbutton1" type="primary" round>
123
           <span>提 交</span>
123
           <span>提 交</span>
124
         </el-button>
124
         </el-button>
131
 import {
131
 import {
132
   caseApplicationSelectById,
132
   caseApplicationSelectById,
133
   mediation,
133
   mediation,
134
-  confirmMeetingResult
134
+  confirmMeetingResult,
135
+  secretaryRoleByUserId
135
 } from "@/api/caseManagement/caseManagement.js";
136
 } from "@/api/caseManagement/caseManagement.js";
136
 import { getUserProfile } from "@/api/system/user";
137
 import { getUserProfile } from "@/api/system/user";
137
 import { reserveConferenceList } from "@/api/metting/metting.js";
138
 import { reserveConferenceList } from "@/api/metting/metting.js";
141
   data() {
142
   data() {
142
     return {
143
     return {
143
       loanStartDate: "",
144
       loanStartDate: "",
144
-      codes:null,
145
+      codes: null,
145
       title: "线上调解",
146
       title: "线上调解",
146
       applicateArr: [],
147
       applicateArr: [],
147
       quiltArr: [],
148
       quiltArr: [],
148
       recordArr: [],
149
       recordArr: [],
149
-      recordArrMediate:[],
150
+      recordArrMediate: [],
150
       roomId: null,
151
       roomId: null,
151
       startTime: null,
152
       startTime: null,
152
-      mediaResult:1,
153
+      mediaResult: 1,
153
       // isReconci:0,
154
       // isReconci:0,
154
       formData: {
155
       formData: {
155
         affiliate: {}
156
         affiliate: {}
164
       filedata: {
165
       filedata: {
165
         annexType: 7,
166
         annexType: 7,
166
       },
167
       },
167
-      fileList:[],
168
-      attachList:[],
168
+      fileList: [],
169
+      attachList: [],
170
+      isSecretaryRole: true,
169
     };
171
     };
170
   },
172
   },
171
   watch: {
173
   watch: {
189
   },
191
   },
190
   created() { },
192
   created() { },
191
   methods: {
193
   methods: {
194
+    // 根据用户id查询是否为调解员
195
+    secretaryRoleByUserIdFn() {
196
+      secretaryRoleByUserId({
197
+        userId: this.userId
198
+      }).then(res => {
199
+        this.isSecretaryRole = res.data.isSecretaryRole;
200
+      })
201
+    },
192
     /**上传地址*/
202
     /**上传地址*/
193
     UploadUrl() {
203
     UploadUrl() {
194
       return window.location.origin + "/API/common/upload";
204
       return window.location.origin + "/API/common/upload";
196
     handlePreview(file) {
206
     handlePreview(file) {
197
     },
207
     },
198
     handleRemove(file, fileList) {
208
     handleRemove(file, fileList) {
199
-     
209
+
200
     },
210
     },
201
     beforeUpload(flie, fileList) {
211
     beforeUpload(flie, fileList) {
202
       this.fileList = fileList;
212
       this.fileList = fileList;
203
     },
213
     },
204
     handlSuccess(res, file) {
214
     handlSuccess(res, file) {
205
       this.codes = res.code
215
       this.codes = res.code
206
-      this.attachList = [{annexId:res.annexId}];
216
+      this.attachList = [{ annexId: res.annexId }];
207
       // this.$set(this.mediationData, "attachList", {annexId:res.annexId});
217
       // this.$set(this.mediationData, "attachList", {annexId:res.annexId});
208
     },
218
     },
209
     /** 获取案件详情信息 */
219
     /** 获取案件详情信息 */
214
         res.data.caseAttachList.forEach(item => {
224
         res.data.caseAttachList.forEach(item => {
215
           if (item.annexType == 6) {
225
           if (item.annexType == 6) {
216
             this.recordArr.push(item);
226
             this.recordArr.push(item);
217
-          }else if(item.annexType == 7){
227
+          } else if (item.annexType == 7) {
218
             this.recordArrMediate.push(item);
228
             this.recordArrMediate.push(item);
219
           }
229
           }
220
         });
230
         });
225
       getUserProfile().then(response => {
235
       getUserProfile().then(response => {
226
         this.user = response.data.userName;
236
         this.user = response.data.userName;
227
         this.userId = response.data.userId;
237
         this.userId = response.data.userId;
238
+        this.secretaryRoleByUserIdFn();
228
       });
239
       });
229
     },
240
     },
230
     /** 发起会议 */
241
     /** 发起会议 */
250
         id: this.mediationData.id,
261
         id: this.mediationData.id,
251
         caseFlowId: this.mediationData.caseFlowId,
262
         caseFlowId: this.mediationData.caseFlowId,
252
         batchNumber: "",
263
         batchNumber: "",
253
-        mediaResult:this.mediaResult,
254
-      }).then(res =>{
264
+        mediaResult: this.mediaResult,
265
+      }).then(res => {
255
         caseApplicationSelectById({
266
         caseApplicationSelectById({
256
-        id: this.mediationData.id
267
+          id: this.mediationData.id
257
         }).then(res => {
268
         }).then(res => {
258
           res.data.caseAttachList.forEach(item => {
269
           res.data.caseAttachList.forEach(item => {
259
             if (item.annexType == 7) {
270
             if (item.annexType == 7) {
286
         this.$modal.msgError("请上传调解书");
297
         this.$modal.msgError("请上传调解书");
287
         return
298
         return
288
       }
299
       }
289
-      let mediationVal ={}
290
-      if (this.codes == 200){
300
+      let mediationVal = {}
301
+      if (this.codes == 200) {
291
         mediationVal = {
302
         mediationVal = {
292
-        id: this.mediationData.id,
293
-        caseFlowId: this.mediationData.caseFlowId,
294
-        attachList: this.attachList,
295
-        // isReconci:this.isReconci,
296
-        mediaResult:this.mediaResult,
303
+          id: this.mediationData.id,
304
+          caseFlowId: this.mediationData.caseFlowId,
305
+          attachList: this.attachList,
306
+          // isReconci:this.isReconci,
307
+          mediaResult: this.mediaResult,
297
         }
308
         }
298
-      }else{
309
+      } else {
299
         mediationVal = {
310
         mediationVal = {
300
-        id: this.mediationData.id,
301
-        caseFlowId: this.mediationData.caseFlowId,
302
-        mediaResult:this.mediaResult,
311
+          id: this.mediationData.id,
312
+          caseFlowId: this.mediationData.caseFlowId,
313
+          mediaResult: this.mediaResult,
303
         }
314
         }
304
       }
315
       }
305
       this.mediationFn(mediationVal);
316
       this.mediationFn(mediationVal);
306
     },
317
     },
307
-    resultsMediation(){
308
-      
318
+    resultsMediation() {
319
+
309
     }
320
     }
310
   }
321
   }
311
 };
322
 };