Bläddra i källkod

批量接口联调,查看案件列表跳转

gyj 2 år sedan
förälder
incheckning
a22e5b79d0
2 ändrade filer med 41 tillägg och 34 borttagningar
  1. 30
    30
      src/views/batchManagement/batchManagList.vue
  2. 11
    4
      src/views/caseManagement/caseList.vue

+ 30
- 30
src/views/batchManagement/batchManagList.vue Visa fil

1
 <template>
1
 <template>
2
     <div class="app-container">
2
     <div class="app-container">
3
-            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="70px">
4
-            <el-form-item label="批号:" prop="batchNumber">
3
+            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="80px">
4
+            <el-form-item label="案件批号:" prop="batchNumber">
5
                 <el-input v-model="queryParams.batchNumber" placeholder="请输入批号" clearable @keyup.enter.native="handleQuery" />
5
                 <el-input v-model="queryParams.batchNumber" placeholder="请输入批号" clearable @keyup.enter.native="handleQuery" />
6
             </el-form-item>
6
             </el-form-item>
7
              <el-form-item label="申请人" prop="applicantName">
7
              <el-form-item label="申请人" prop="applicantName">
21
                     }}</span>
21
                     }}</span>
22
                 </template>
22
                 </template>
23
             </el-table-column>
23
             </el-table-column>
24
-            <el-table-column label="批号" align="center" prop="batchNumber" :show-overflow-tooltip="true" />
24
+            <el-table-column label="案件批号" align="center" prop="batchNumber" :show-overflow-tooltip="true" />
25
             <el-table-column label="申请人" align="center" prop="applicantName" :show-overflow-tooltip="true" />
25
             <el-table-column label="申请人" align="center" prop="applicantName" :show-overflow-tooltip="true" />
26
             <el-table-column label="仲裁方式" align="center" prop="arbitratMethodName" :show-overflow-tooltip="true" />
26
             <el-table-column label="仲裁方式" align="center" prop="arbitratMethodName" :show-overflow-tooltip="true" />
27
             <el-table-column label="仲裁员" align="center" prop="arbitratorName" :show-overflow-tooltip="true" />
27
             <el-table-column label="仲裁员" align="center" prop="arbitratorName" :show-overflow-tooltip="true" />
33
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="350">
33
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="350">
34
                 <template slot-scope="scope">
34
                 <template slot-scope="scope">
35
                     <el-button size="mini" type="text" icon="el-icon-view" @click="viewingCasesBtn(scope.row)">查看案件列表</el-button>
35
                     <el-button size="mini" type="text" icon="el-icon-view" @click="viewingCasesBtn(scope.row)">查看案件列表</el-button>
36
-                    <el-button size="mini" type="text" icon="el-icon-check" @click="confirmSubmission(scope.row)">提交</el-button>
37
-                    <el-button size="mini" type="text" icon="el-icon-view" @click="filingFeview(scope.row)">立案审查</el-button>
38
-                    <el-button size="mini" type="text" icon="el-icon-tickets" @click="batchPayments(scope.row)">缴费</el-button>
39
-                    <el-button size="mini" type="text" @click="paymentConfir(scope.row)">缴费确认</el-button>
40
-                    <el-button size="mini" type="text" @click="courtReviews(scope.row)">组庭审核</el-button>
41
-                    <el-button size="mini" type="text" @click="courtConfirmations(scope.row)">组庭确认</el-button>
42
-                    <el-button size="mini" type="text" @click="reviewArbitrations(scope.row)">审核仲裁方式</el-button>
43
-                    <el-button size="mini" type="text" @click="batchWrittenReview(scope.row)">书面审理</el-button>
44
-                    <el-button size="mini" type="text" @click="secretaryArbitration(scope.row)">秘书审核仲裁文书</el-button>
45
-                    <el-button size="mini" type="text" @click="arbitratorsVerify(scope.row)">仲裁员核验仲裁文书</el-button>
46
-                    <el-button size="mini" type="text" @click="departmentDocuments(scope.row)">部门长审核仲裁文书</el-button>
47
-                    <el-button size="mini" type="text" @click="batchSignatures(scope.row)">签名</el-button>
48
-                    <el-button size="mini" type="text" @click="batchPrintings(scope.row)">用印</el-button>
36
+                    <el-button size="mini" type="text" icon="el-icon-check" @click="confirmSubmission(scope.row)" v-if="scope.row.caseStatusstr == '0' && checkPermi(['batchManagement:list:submit'])">提交</el-button>
37
+                    <el-button size="mini" type="text" icon="el-icon-view" @click="filingFeview(scope.row)" v-if="scope.row.caseStatusstr == '1' && checkPermi(['batchManagement:list:filingReview'])">立案审查</el-button>
38
+                    <el-button size="mini" type="text" icon="el-icon-tickets" @click="batchPayments(scope.row)" v-if="scope.row.caseStatusstr == '2' && checkPermi(['batchManagement:list:pay'])">缴费</el-button>
39
+                    <el-button size="mini" type="text" icon="el-icon-tickets" @click="paymentConfir(scope.row)" v-if="scope.row.caseStatusstr == '3' && checkPermi(['batchManagement:list:payconfirm'])">缴费确认</el-button>
40
+                    <el-button size="mini" type="text" icon="el-icon-check" @click="courtReviews(scope.row)" v-if="scope.row.caseStatusstr == '5' && checkPermi(['batchManagement:list:checkgroup'])">组庭审核</el-button>
41
+                    <el-button size="mini" type="text" icon="el-icon-sort" @click="courtConfirmations(scope.row)" v-if="scope.row.caseStatusstr == '6' && checkPermi(['batchManagement:list:confirmgroup'])">组庭确认</el-button>
42
+                    <el-button size="mini" type="text" @click="reviewArbitrations(scope.row)" v-if="scope.row.caseStatusstr == '7' && checkPermi(['batchManagement:list:checkarbitrationway'])">审核仲裁方式</el-button>
43
+                    <!-- <el-button size="mini" type="text" @click="batchWrittenReviewy(scope.row)" v-if="scope.row.caseStatusstr == '9' && checkPermi(['batchManagement:list:hear'])">书面审理</el-button> -->
44
+                    <el-button size="mini" type="text" @click="batchWrittenReviewy(scope.row)">书面审理</el-button>
45
+                    <el-button size="mini" type="text" @click="secretaryArbitration(scope.row)" v-if="scope.row.caseStatusstr == '11' && checkPermi(['batchManagement:list:secretarycheck'])">秘书确认</el-button>
46
+                    <el-button size="mini" type="text" @click="arbitratorsVerify(scope.row)" v-if="scope.row.caseStatusstr == '18' && checkPermi(['batchManagement:list:arbitratorConfirm'])">仲裁员确认</el-button>
47
+                    <el-button size="mini" type="text" @click="departmentDocuments(scope.row)" v-if="scope.row.caseStatusstr == '12' && checkPermi(['batchManagement:list:confirmaward'])">部门长确认</el-button>
48
+                    <el-button size="mini" type="text" @click="batchSignatures(scope.row)" v-if="scope.row.caseStatusstr == '13' && checkPermi(['batchManagement:list:sign'])">签名</el-button>
49
+                    <el-button size="mini" type="text" @click="batchPrintings(scope.row)" v-if="scope.row.caseStatusstr == '14' && checkPermi(['batchManagement:list:signprint'])">用印</el-button>
49
                     <!-- <el-button size="mini" type="text" @click="arbitrationAward(scope.row)">生成裁决书</el-button> -->
50
                     <!-- <el-button size="mini" type="text" @click="arbitrationAward(scope.row)">生成裁决书</el-button> -->
50
-                    <el-button size="mini" type="text" @click="servicearBitration(scope.row)">仲裁文书送达</el-button>
51
-                    <el-button size="mini" type="text" @click="archive(scope.row)">归档</el-button>
51
+                    <el-button size="mini" type="text" @click="servicearBitration(scope.row)" v-if="scope.row.caseStatusstr == '15' && checkPermi(['batchManagement:list:sendaward'])">送达裁决书</el-button>
52
+                    <el-button size="mini" type="text" @click="archive(scope.row)" v-if="scope.row.caseStatusstr == '16' && checkPermi(['batchManagement:list:file'])">案件归档</el-button>
52
                 </template>
53
                 </template>
53
             </el-table-column>
54
             </el-table-column>
54
         </el-table>
55
         </el-table>
83
 </template>
84
 </template>
84
   
85
   
85
 <script>
86
 <script>
86
-import {listBatch,submitCaseApplicationBatch,payListBatch,batchWrittenReview,caseFileBatch,serviceBatch} from '@/api/batchManagement/batchManagement.js'
87
+import {listBatch,submitCaseApplicationBatch,payListBatch,writtenHearBatch,caseFileBatch,serviceBatch} from '@/api/batchManagement/batchManagement.js'
87
 import { listDept } from "@/api/system/dept";
88
 import { listDept } from "@/api/system/dept";
88
 import batchPayment from './components/batchPayment.vue'
89
 import batchPayment from './components/batchPayment.vue'
89
 import paymentConfirmation from './components/paymentConfirmation.vue'
90
 import paymentConfirmation from './components/paymentConfirmation.vue'
172
         },
173
         },
173
            // 机构发生变化
174
            // 机构发生变化
174
         changeDept(data) {
175
         changeDept(data) {
175
-        this.queryParams.nameId = data[0];
176
+            if(data){
177
+              this.queryParams.nameId = data[0];  
178
+            }
176
         },
179
         },
177
         // 获取机构数据
180
         // 获取机构数据
178
         getInstitution() {
181
         getInstitution() {
182
                 item.label = item.deptName;
185
                 item.label = item.deptName;
183
                 });
186
                 });
184
             this.options = this.handleTree(res.data, "deptId");
187
             this.options = this.handleTree(res.data, "deptId");
188
+            
185
         });
189
         });
186
         },
190
         },
187
         // 查询列表
191
         // 查询列表
195
         },
199
         },
196
         // 批量提交
200
         // 批量提交
197
         confirmSubmission(row){
201
         confirmSubmission(row){
202
+            console.log(row)
198
             this.$modal.confirm("您确定要批量提交吗?").then((res) => {
203
             this.$modal.confirm("您确定要批量提交吗?").then((res) => {
199
                     this.submitCaseApplicationBatchs({ batchNumber: row.batchNumber })
204
                     this.submitCaseApplicationBatchs({ batchNumber: row.batchNumber })
200
                 }).catch(() =>{
205
                 }).catch(() =>{
210
         },
215
         },
211
         // 批量立案审查
216
         // 批量立案审查
212
         filingFeview(row){
217
         filingFeview(row){
218
+            console.log(row)
213
            this.filingFeviewbatchNumber = row.batchNumber
219
            this.filingFeviewbatchNumber = row.batchNumber
214
            this.caseVisableReviewF = true
220
            this.caseVisableReviewF = true
215
         },
221
         },
274
             this.caseVisableReviewl = false
280
             this.caseVisableReviewl = false
275
         },
281
         },
276
         // 批量书面审理
282
         // 批量书面审理
277
-        batchWrittenReview(row){
278
-           this.$modal.confirm("你确定要批量书面审理吗?").then((res) => {
279
-                    this.batchWrittenReviews({ batchNumber: row.batchNumber })
280
-                }).catch(() =>{
281
-                    
282
-            }) 
283
-        },
284
-        //批量书面审理接口
285
-        batchWrittenReviews(val){
286
-            batchWrittenReview(val).then(res=>{
283
+        batchWrittenReviewy(row){
284
+           this.$modal.confirm("你确定要批量书面审理吗1?").then(res => {
285
+                 writtenHearBatch({batchNumber: row.batchNumber}).then(res=>{
287
                 this.$modal.msgSuccess("提交成功!");
286
                 this.$modal.msgSuccess("提交成功!");
288
                 this.getList(this.queryParams);
287
                 this.getList(this.queryParams);
289
             })
288
             })
289
+            })
290
         },
290
         },
291
         // 批量归档
291
         // 批量归档
292
         archive(row){
292
         archive(row){

+ 11
- 4
src/views/caseManagement/caseList.vue Visa fil

1
 <template>
1
 <template>
2
   <div class="app-container">
2
   <div class="app-container">
3
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="98px">
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
4
       <el-form-item label="案件编号" prop="caseNum">
4
       <el-form-item label="案件编号" prop="caseNum">
5
-        <el-input 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>
7
+      <el-form-item label="案件批号" prop="caseNum">
8
+        <el-input style="width:180px" v-model="queryParams.batchNumber" placeholder="请输入案件批号" clearable @keyup.enter.native="handleQuery" />
6
       </el-form-item>
9
       </el-form-item>
7
       <el-form-item label="申请人" prop="applicantName">
10
       <el-form-item label="申请人" prop="applicantName">
8
         <!-- <el-input
11
         <!-- <el-input
88
         </template>
91
         </template>
89
       </el-table-column>
92
       </el-table-column>
90
       <el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
93
       <el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
94
+      <el-table-column label="案件批号" align="center" prop="batchNumber" :show-overflow-tooltip="true" />
91
       <el-table-column label="申请人" align="center" prop="applicantName" :show-overflow-tooltip="true" />
95
       <el-table-column label="申请人" align="center" prop="applicantName" :show-overflow-tooltip="true" />
92
       <el-table-column label="案件标的" align="center" prop="caseSubjectAmount" />
96
       <el-table-column label="案件标的" align="center" prop="caseSubjectAmount" />
93
       <el-table-column label="仲裁方式" align="center" prop="arbitratMethodName" :show-overflow-tooltip="true" />
97
       <el-table-column label="仲裁方式" align="center" prop="arbitratMethodName" :show-overflow-tooltip="true" />
348
         caseStatusList: [0, 1, 2, 5, 6, 7, 8, 9, 10, 31],
352
         caseStatusList: [0, 1, 2, 5, 6, 7, 8, 9, 10, 31],
349
         // hearDate: "",
353
         // hearDate: "",
350
         caseStatus: null,
354
         caseStatus: null,
355
+        batchNumber:null,
351
         applicantName: "",
356
         applicantName: "",
352
         nameId: "",
357
         nameId: "",
353
         pageNum: 1,
358
         pageNum: 1,
425
       if (params >= 0) {
430
       if (params >= 0) {
426
         this.queryParams.caseStatus = params;
431
         this.queryParams.caseStatus = params;
427
       }
432
       }
428
-      // console.log(this.$route.params.batchNumber)
433
+      this.queryParams.batchNumber = this.$route.params.batchNumber;
434
+     console.log(this.$route.params.batchNumber)
429
       this.getcaseApply(this.queryParams);
435
       this.getcaseApply(this.queryParams);
430
     })
436
     })
431
     // this.getcaseApply(this.queryParams);
437
     // this.getcaseApply(this.queryParams);
587
     /** 重置按钮操作 */
593
     /** 重置按钮操作 */
588
     resetQuery() {
594
     resetQuery() {
589
       this.resetForm("queryForm");
595
       this.resetForm("queryForm");
590
-      (this.queryParams.caseStatusList = [0, 1, 2, 5, 6, 7, 8, 9, 10, 31]),
596
+        (this.queryParams.caseStatusList = [0, 1, 2, 5, 6, 7, 8, 9, 10, 31]),
591
         (this.queryParams.applicantName = ""),
597
         (this.queryParams.applicantName = ""),
592
         (this.queryParams.nameId = ""),
598
         (this.queryParams.nameId = ""),
599
+        (this.queryParams.batchNumber=""),
593
         this.getcaseApply(this.queryParams);
600
         this.getcaseApply(this.queryParams);
594
     },
601
     },
595
     // 案件录入
602
     // 案件录入