Sfoglia il codice sorgente

案件列表查询调整

Your Name 2 anni fa
parent
commit
22d43781c6

+ 2
- 3
src/api/caseManagement/caseManagement.js Vedi File

@@ -10,12 +10,11 @@ export function arbitrateMethod(data, id) {
10 10
   });
11 11
 }
12 12
 // 书面审理
13
-export function writtenHear(data, id) {
13
+export function writtenHear(data) {
14 14
   return request({
15 15
     url: "/arbitrate/writtenHear",
16 16
     method: "post",
17
-    params: data,
18
-    data: id,
17
+    data: data,
19 18
   });
20 19
 }
21 20
 // 组庭确认

+ 51
- 24
src/views/caseManagement/caseList.vue Vedi File

@@ -147,6 +147,15 @@
147 147
             v-hasPermi="['monitor:online:forceLogout']"
148 148
             >修改</el-button
149 149
           >
150
+          <el-button
151
+            size="mini"
152
+            type="text"
153
+            icon="el-icon-edit"
154
+            @click="onsubmitRow(scope.row)"
155
+            v-if="scope.row.caseStatus == 0"
156
+            v-hasPermi="['monitor:online:forceLogout']"
157
+            >提交</el-button
158
+          >
150 159
           <el-button
151 160
             size="mini"
152 161
             type="text"
@@ -230,15 +239,17 @@
230 239
             v-hasPermi="['monitor:online:forceLogout']"
231 240
             >开庭审理</el-button
232 241
           >
233
-          <el-button
234
-            size="mini"
235
-            type="text"
236
-            icon="el-icon-document"
237
-            @click="generateawardRow(scope.row)"
238
-            v-if="scope.row.caseStatus == 10"
239
-            v-hasPermi="['monitor:online:forceLogout']"
240
-            >生成裁决书</el-button
241
-          >
242
+          <el-popconfirm title="确定生成裁决书吗?" @confirm="generateawardRow(scope.row)">
243
+            <el-button
244
+              size="mini"
245
+              slot="reference"
246
+              type="text"
247
+              icon="el-icon-document"
248
+              v-if="scope.row.caseStatus == 10"
249
+              v-hasPermi="['monitor:online:forceLogout']"
250
+              >生成裁决书</el-button
251
+            >
252
+          </el-popconfirm>
242 253
           <el-button
243 254
             size="mini"
244 255
             type="text"
@@ -256,7 +267,7 @@
256 267
       :total="total"
257 268
       :page.sync="queryParams.pageNum"
258 269
       :limit.sync="queryParams.pageSize"
259
-      @pagination="getcaseApply"
270
+      @pagination="getcaseApply(queryParams)"
260 271
     />
261 272
 
262 273
     <!-- 立案申请弹框 -->
@@ -264,6 +275,7 @@
264 275
       :visible="visible"
265 276
       @cancel="cancel"
266 277
       :form="form"
278
+      :queryParams="queryParams"
267 279
       :dialogtitle="dialogtitle"
268 280
       :getcaseApply="getcaseApply"
269 281
       :flag="flag"
@@ -273,6 +285,7 @@
273 285
     <!-- 批量申请弹框 openbatch-->
274 286
     <batchDialog
275 287
       :openbatch="openbatch"
288
+      :queryParams="queryParams"
276 289
       @cancelBatch="cancelBatch"
277 290
       :getcaseApply="getcaseApply"
278 291
     ></batchDialog>
@@ -280,6 +293,7 @@
280 293
     <formateCourtDialog
281 294
       :showformateCourt="showformateCourt"
282 295
       @cancelcourtDialog="cancelcourtDialog"
296
+      :queryParams="queryParams"
283 297
       :formateCourtData="formateCourtData"
284 298
       @getcaseApply="getcaseApply"
285 299
     ></formateCourtDialog>
@@ -287,6 +301,7 @@
287 301
     <courtReviewDialog
288 302
       :showcourtReview="showcourtReview"
289 303
       :form="form"
304
+      :queryParams="queryParams"
290 305
       @cancelcourtReview="cancelcourtReview"
291 306
       @getcaseApply="getcaseApply"
292 307
     ></courtReviewDialog>
@@ -294,6 +309,7 @@
294 309
     <choosetrialmethodDaiog
295 310
       :showchoosetrialmethod="showchoosetrialmethod"
296 311
       :choosetrialmethodata="choosetrialmethodata"
312
+      :queryParams="queryParams"
297 313
       @getcaseApply="getcaseApply"
298 314
       @cancelshowchoosetrialMethod="cancelshowchoosetrialMethod"
299 315
     ></choosetrialmethodDaiog>
@@ -302,6 +318,7 @@
302 318
       :showadjudicaterecord="showadjudicaterecord"
303 319
       :form="form"
304 320
       :adjudicatename="adjudicatename"
321
+      :queryParams="queryParams"
305 322
       @canceladjudicaterecord="canceladjudicaterecord"
306 323
       @getcaseApply="getcaseApply"
307 324
     ></adjudicaterecordDialog>
@@ -410,24 +427,21 @@ export default {
410 427
       this.loading = true;
411 428
       caseApply(val).then((response) => {
412 429
         this.dataList = response.rows;
413
-        // this.dataList.forEach((item) => {
414
-        //   item.caseStatus = item.caseStatus == 0 ? "立案申请" : "待缴费";
415
-        // });
416 430
         this.total = response.total;
417 431
         this.loading = false;
418 432
       });
419 433
     },
420 434
     /** 搜索按钮操作 */
421 435
     handleQuery() {
422
-      this.queryParams.caseStatusList = []
436
+      this.queryParams.caseStatusList = [];
423 437
       this.queryParams.pageNum = 1;
424 438
       this.getcaseApply(this.queryParams);
425 439
     },
426 440
     /** 重置按钮操作 */
427 441
     resetQuery() {
428 442
       this.resetForm("queryForm");
429
-      this.queryParams.caseStatusList = [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 16],
430
-      this.getcaseApply(this.queryParams);
443
+      (this.queryParams.caseStatusList = [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 16]),
444
+        this.getcaseApply(this.queryParams);
431 445
     },
432 446
     // 案件录入
433 447
     filingApplication() {
@@ -477,7 +491,7 @@ export default {
477 491
           return submitCaseApply({ id: row.id });
478 492
         })
479 493
         .then(() => {
480
-          this.getcaseApply();
494
+          this.getcaseApply(this.queryParams);
481 495
           this.$modal.msgSuccess("立案成功");
482 496
         })
483 497
         .catch(() => {});
@@ -498,20 +512,33 @@ export default {
498 512
       this.dialogtitle = "立案修改";
499 513
       this.getInfo(row);
500 514
     },
501
-    // 立案审查
502
-    filingreviewRow(row) {
503
-      console.log(row, "立案审查");
515
+    // 列表提交立案
516
+    onsubmitRow(row) {
504 517
       this.$modal
505
-        .confirm("确定提交案件数据吗?")
518
+        .confirm("是否提交立案申请?")
506 519
         .then(function () {
507 520
           return submitCaseApply({ id: row.id });
508 521
         })
509 522
         .then(() => {
510
-          this.getcaseApply();
511
-          this.$modal.msgSuccess("立案成功");
523
+          this.getcaseApply(this.queryParams);
524
+          this.$modal.msgSuccess("立案申请成功");
512 525
         })
513 526
         .catch(() => {});
514 527
     },
528
+    // 立案审查
529
+    filingreviewRow(row) {
530
+      console.log(row, "立案审查");
531
+      // this.$modal
532
+      //   .confirm("确定提交案件数据吗?")
533
+      //   .then(function () {
534
+      //     return submitCaseApply({ id: row.id });
535
+      //   })
536
+      //   .then(() => {
537
+      //     this.getcaseApply(this.queryParams);
538
+      //     this.$modal.msgSuccess("立案审查成功");
539
+      //   })
540
+      //   .catch(() => {});
541
+    },
515 542
     // 取消缴费
516 543
     paycancelRow(row) {
517 544
       this.openPay = false;
@@ -627,7 +654,7 @@ export default {
627 654
           return removeCaseApply({ id: row.id });
628 655
         })
629 656
         .then((res) => {
630
-          this.getcaseApply();
657
+          this.getcaseApply(this.queryParams);
631 658
           this.$modal.msgSuccess("删除成功");
632 659
         })
633 660
         .catch(() => {});

+ 12
- 11
src/views/caseManagement/components/adjudicaterecordDialog.vue Vedi File

@@ -182,7 +182,7 @@
182 182
           >
183 183
             <el-input
184 184
               type="textarea"
185
-              :autosize="{ minRows: 4}"
185
+              :autosize="{ minRows: 4 }"
186 186
               placeholder="请输入仲裁结果"
187 187
               v-model="form2.evidenDetermi"
188 188
             >
@@ -203,7 +203,7 @@
203 203
           >
204 204
             <el-input
205 205
               type="textarea"
206
-              :autosize="{ minRows: 4}"
206
+              :autosize="{ minRows: 4 }"
207 207
               placeholder="请输入"
208 208
               v-model="form2.factDetermi"
209 209
             >
@@ -286,7 +286,7 @@
286 286
 import { writtenHear } from "@/api/caseManagement/caseManagement.js";
287 287
 
288 288
 export default {
289
-  props: ["showadjudicaterecord", "form", "adjudicatename"],
289
+  props: ["showadjudicaterecord", "form", "adjudicatename", "queryParams"],
290 290
   data() {
291 291
     return {
292 292
       formData: {},
@@ -307,17 +307,18 @@ export default {
307 307
     submitForm() {
308 308
       this.$refs["form2"].validate((valid) => {
309 309
         if (valid) {
310
-          writtenHear(
311
-            {
312
-              accidentDescription: this.form2.accidentDescription,
313
-              arbitrationResult: this.form2.arbitrationResult,
314
-            },
315
-            { id: this.formData.id }
316
-          )
310
+          writtenHear({
311
+            caseAppliId: this.formData.id,
312
+            evidenDetermi: this.form2.evidenDetermi,
313
+            factDetermi: this.form2.factDetermi,
314
+            caseSketch: this.form2.caseSketch,
315
+            arbitrateThink: this.form2.arbitrateThink,
316
+            rulingFollows: this.form2.rulingFollows,
317
+          })
317 318
             .then((res) => {
318 319
               this.$modal.msgSuccess("提交成功");
319 320
               this.cancel();
320
-              this.$emit("getcaseApply");
321
+              this.$emit("getcaseApply",this.queryParams);
321 322
             })
322 323
             .catch((err) => {});
323 324
         }

+ 2
- 2
src/views/caseManagement/components/batchDialog.vue Vedi File

@@ -65,7 +65,7 @@
65 65
 import { importTemplate } from "@/api/caseAccess/caseEntry";
66 66
 import { getToken } from "@/utils/auth";
67 67
 export default {
68
-  props: ["openbatch","getcaseApply"],
68
+  props: ["openbatch","getcaseApply","queryParams"],
69 69
   data() {
70 70
     return {
71 71
       //   key: value,
@@ -141,7 +141,7 @@ export default {
141 141
         "导入结果",
142 142
         { dangerouslyUseHTMLString: true }
143 143
       );
144
-      this.getcaseApply();
144
+      this.getcaseApply(this.queryParams);
145 145
     },
146 146
   },
147 147
 };

+ 3
- 2
src/views/caseManagement/components/caseentryDialog.vue Vedi File

@@ -540,6 +540,7 @@ export default {
540 540
     "flag",
541 541
     "initpaymentArr",
542 542
     "initpaymentArr1",
543
+    "queryParams"
543 544
   ],
544 545
   data() {
545 546
     return {
@@ -755,7 +756,7 @@ export default {
755 756
                     }).then((res) => {
756 757
                       this.$modal.msgSuccess("修改成功");
757 758
                       this.$emit("cancel");
758
-                      this.getcaseApply();
759
+                      this.getcaseApply(this.queryParams);
759 760
                     });
760 761
                   } else {
761 762
                     addCaseApply({
@@ -764,7 +765,7 @@ export default {
764 765
                     }).then((response) => {
765 766
                       this.$modal.msgSuccess("新增成功");
766 767
                       this.$emit("cancel");
767
-                      this.getcaseApply();
768
+                      this.getcaseApply(this.queryParams);
768 769
                     });
769 770
                   }
770 771
                   // this.$emit("cancel");

+ 2
- 2
src/views/caseManagement/components/choosetrialmethodDaiog.vue Vedi File

@@ -31,7 +31,7 @@
31 31
 import { arbitrateMethod } from "@/api/caseManagement/caseManagement.js";
32 32
 export default {
33 33
   name: "showchoosetrialmethodDialog",
34
-  props: ["showchoosetrialmethod", "choosetrialmethodata"],
34
+  props: ["showchoosetrialmethod", "choosetrialmethodata", "queryParams"],
35 35
   data() {
36 36
     return {
37 37
       radio: 2,
@@ -50,7 +50,7 @@ export default {
50 50
         .then((res) => {
51 51
           this.$modal.msgSuccess("提交成功");
52 52
           this.cancel();
53
-          this.$emit("getcaseApply");
53
+          this.$emit("getcaseApply",this.queryParams);
54 54
         })
55 55
         .catch((err) => {});
56 56
     },

+ 2
- 2
src/views/caseManagement/components/courtReviewDialog.vue Vedi File

@@ -47,7 +47,7 @@ import { pendTralSure } from "@/api/caseManagement/caseManagement.js";
47 47
 import moment from "moment";
48 48
 export default {
49 49
   name: "courtReviewDialog",
50
-  props: ["showcourtReview", "form"],
50
+  props: ["showcourtReview", "form", "queryParams"],
51 51
   data() {
52 52
     return {
53 53
       hearDate: "",
@@ -68,7 +68,7 @@ export default {
68 68
             .then((res) => {
69 69
               this.$modal.msgSuccess("确认成功");
70 70
               this.cancel();
71
-              this.$emit("getcaseApply");
71
+              this.$emit("getcaseApply",this.queryParams);
72 72
             })
73 73
             .catch((err) => {});
74 74
         }

+ 5
- 5
src/views/caseManagement/components/formateCourtDialog.vue Vedi File

@@ -52,8 +52,8 @@
52 52
       <pagination
53 53
         v-show="total > 0"
54 54
         :total="total"
55
-        :page.sync="queryParams.pageNum"
56
-        :limit.sync="queryParams.pageSize"
55
+        :page.sync="queryParams1.pageNum"
56
+        :limit.sync="queryParams1.pageSize"
57 57
         @pagination="getarbitrAtor"
58 58
         v-if="isAgreePendTral == 0"
59 59
       />
@@ -74,12 +74,12 @@
74 74
 <script>
75 75
 import { arbitrAtor, pendTralCheck } from "@/api/formationCourt/formationCourt";
76 76
 export default {
77
-  props: ["showformateCourt", "formateCourtData"],
77
+  props: ["showformateCourt", "formateCourtData", "queryParams"],
78 78
   data() {
79 79
     return {
80 80
       dataList: [],
81 81
       total: 0,
82
-      queryParams: {
82
+      queryParams1: {
83 83
         pageNum: 1,
84 84
         pageSize: 10,
85 85
       },
@@ -127,7 +127,7 @@ export default {
127 127
       pendTralCheck(this.paramsdata).then((res) => {
128 128
         this.cancel();
129 129
         this.$modal.msgSuccess("组庭成功");
130
-        this.$emit("getcaseApply");
130
+        this.$emit("getcaseApply",this.queryParams);
131 131
       });
132 132
       // }
133 133
     },