瀏覽代碼

异常管理

zbb 1 年之前
父節點
當前提交
de9e964f3a
共有 2 個文件被更改,包括 144 次插入71 次删除
  1. 52 0
      src/api/article_z.js
  2. 92 71
      src/pages/index/components/exception_handing.vue

+ 52 - 0
src/api/article_z.js

@@ -31,4 +31,56 @@ export default {
31 31
   editExceptionHandingLift(params) {
32 32
     return axios.post(`/opt/exception/handing/lift/edit`, params)
33 33
   },
34
+  // 异常管理——删除抬杆记录
35
+  deleteExceptionHandingLift(params) {
36
+    return axios.post(`/opt/exception/handing/lift/delete`, params)
37
+  },
38
+  // 异常管理——获取特殊放行记录分页
39
+  queryExceptionHandingSpecialByPage(params) {
40
+    return axios.get(`/opt/exception/handing/special/page`, {params})
41
+  },
42
+  // 异常管理——添加特殊放行记录
43
+  addExceptionHandingSpecial(params) {
44
+    return axios.post(`/opt/exception/handing/special/add`, params)
45
+  },
46
+  // 异常管理——编辑特殊放行记录
47
+  editExceptionHandingSpecial(params) {
48
+    return axios.post(`/opt/exception/handing/special/edit`, params)
49
+  },
50
+  // 异常管理——删除特殊放行记录
51
+  deleteExceptionHandingSpecial(params) {
52
+    return axios.post(`/opt/exception/handing/special/delete`, params)
53
+  },
54
+  // 异常管理——获取车牌修正记录分页
55
+  queryExceptionHandingCorrectionByPage(params) {
56
+    return axios.get(`/opt/exception/handing/correction/page`, {params})
57
+  },
58
+  // 异常管理——添加车牌修正记录
59
+  addExceptionHandingCorrection(params) {
60
+    return axios.post(`/opt/exception/handing/correction/add`, params)
61
+  },
62
+  // 异常管理——编辑车牌修正记录
63
+  editExceptionHandingCorrection(params) {
64
+    return axios.post(`/opt/exception/handing/correction/edit`, params)
65
+  },
66
+  // 异常管理——删除车牌修正记录
67
+  deleteExceptionHandingCorrection(params) {
68
+    return axios.post(`/opt/exception/handing/correction/delete`, params)
69
+  },
70
+  // 异常管理——获取僵尸车清理记录分页
71
+  queryExceptionHandingCleanByPage(params) {
72
+    return axios.get(`/opt/exception/handing/clean/page`, {params})
73
+  },
74
+  // 异常管理——添加车牌修正记录
75
+  addExceptionHandingClean(params) {
76
+    return axios.post(`/opt/exception/handing/clean/add`, params)
77
+  },
78
+  // 异常管理——编辑车牌修正记录
79
+  editExceptionHandingClean(params) {
80
+    return axios.post(`/opt/exception/handing/clean/edit`, params)
81
+  },
82
+  // 异常管理——删除车牌修正记录
83
+  deleteExceptionHandingClean(params) {
84
+    return axios.post(`/opt/exception/handing/clean/delete`, params)
85
+  },
34 86
 }

+ 92 - 71
src/pages/index/components/exception_handing.vue

@@ -96,7 +96,13 @@
96 96
           <el-row>
97 97
             <el-col :span="8">
98 98
               <el-form-item label="车场名称: ">
99
-                <el-input v-model="formInline2.carParkName" placeholder="请输入"></el-input>
99
+                <el-select clearable v-model="formInline2.parkId" placeholder="请选择">
100
+                  <el-option
101
+                    v-for="(item,index) in carParkingNameOptions"
102
+                    :key="index"
103
+                    :label="item.carParkName"
104
+                    :value="item.parkId" />
105
+                </el-select>
100 106
               </el-form-item>
101 107
             </el-col>
102 108
             <el-col :span="6">
@@ -136,7 +142,13 @@
136 142
           <div class="form-div">
137 143
             <el-form label-position="left" label-width="110px" :model="formLabelAlign2">
138 144
               <el-form-item label="车场名称">
139
-                <el-input v-model="formLabelAlign2.carParkName"></el-input>
145
+                <el-select v-model="formLabelAlign2.parkId" placeholder="请选择">
146
+                  <el-option
147
+                    v-for="(item,index) in carParkingNameOptions"
148
+                    :key="index"
149
+                    :label="item.carParkName"
150
+                    :value="item.parkId" />
151
+                </el-select>
140 152
               </el-form-item>
141 153
               <el-form-item label="车牌号">
142 154
                 <el-input v-model="formLabelAlign2.plateNo"></el-input>
@@ -145,13 +157,19 @@
145 157
                 <el-input v-model="formLabelAlign2.vehicleType"></el-input>
146 158
               </el-form-item>
147 159
               <el-form-item label="放行原因">
148
-                <el-input v-model="formLabelAlign2.releaseReason"></el-input>
160
+                <el-input v-model="formLabelAlign2.relaseReason"></el-input>
149 161
               </el-form-item>
150 162
               <el-form-item label="授权人员姓名">
151
-                <el-input v-model="formLabelAlign2.accreditName"></el-input>
163
+                <el-select v-model="formLabelAlign2.tollmanId" placeholder="请选择">
164
+                  <el-option
165
+                    v-for="(item,index) in tollmanOptions"
166
+                    :key="index"
167
+                    :label="item.tollmanName"
168
+                    :value="item.id" />
169
+                </el-select>
152 170
               </el-form-item>
153 171
               <el-form-item label="授权人员电话">
154
-                <el-input v-model="formLabelAlign2.accreditPhone"></el-input>
172
+                <el-input v-model="formLabelAlign2.tollmanPhone"></el-input>
155 173
               </el-form-item>
156 174
             </el-form>
157 175
           </div>
@@ -166,12 +184,12 @@
166 184
           <el-row>
167 185
             <el-col :span="8">
168 186
               <el-form-item label="车牌原始号码:">
169
-                <el-input v-model="formInline3.plateNoOld" placeholder="请输入"></el-input>
187
+                <el-input v-model="formInline3.plateNoBefore" placeholder="请输入"></el-input>
170 188
               </el-form-item>
171 189
             </el-col>
172 190
             <el-col :span="8">
173 191
               <el-form-item label="车牌修后号码:">
174
-                <el-input v-model="formInline3.plateNoNew" placeholder="请输入"></el-input>
192
+                <el-input v-model="formInline3.plateNoAfter" placeholder="请输入"></el-input>
175 193
               </el-form-item>
176 194
             </el-col>
177 195
             <el-col :span="8">
@@ -212,16 +230,20 @@
212 230
           <div class="form-div">
213 231
             <el-form label-position="left" label-width="100px" :model="formLabelAlign3">
214 232
               <el-form-item label="车牌原始号码">
215
-                <el-input v-model="formLabelAlign3.plateNoOld"></el-input>
233
+                <el-input v-model="formLabelAlign3.plateNoBefore"></el-input>
216 234
               </el-form-item>
217 235
               <el-form-item label="车牌修后号码">
218
-                <el-input v-model="formLabelAlign3.plateNoNew"></el-input>
236
+                <el-input v-model="formLabelAlign3.plateNoAfter"></el-input>
219 237
               </el-form-item>
220 238
               <el-form-item label="修正原因">
221
-                <el-input v-model="formLabelAlign3.amendReason"></el-input>
239
+                <el-input v-model="formLabelAlign3.correctionReason"></el-input>
222 240
               </el-form-item>
223 241
               <el-form-item label="修正时间">
224
-                <el-input v-model="formLabelAlign3.amendTime"></el-input>
242
+                <el-date-picker
243
+                  v-model="formLabelAlign3.createTime"
244
+                  type="datetime"
245
+                  placeholder="选择日期时间">
246
+                </el-date-picker>
225 247
               </el-form-item>
226 248
             </el-form>
227 249
           </div>
@@ -236,7 +258,13 @@
236 258
           <el-row>
237 259
             <el-col :span="8">
238 260
               <el-form-item label="车场名称:">
239
-                <el-input v-model="formInline4.carParkName" placeholder="请输入"></el-input>
261
+                <el-select clearable v-model="formInline4.parkId" placeholder="请选择">
262
+                  <el-option
263
+                    v-for="(item,index) in carParkingNameOptions"
264
+                    :key="index"
265
+                    :label="item.carParkName"
266
+                    :value="item.parkId" />
267
+                </el-select>
240 268
               </el-form-item>
241 269
             </el-col>
242 270
             <el-col :span="8">
@@ -282,13 +310,19 @@
282 310
           <div class="form-div">
283 311
             <el-form label-position="left" label-width="100px" :model="formLabelAlign4">
284 312
               <el-form-item label="车场名称">
285
-                <el-input v-model="formLabelAlign4.carParkName"></el-input>
313
+                <el-select v-model="formLabelAlign4.parkId" placeholder="请选择">
314
+                  <el-option
315
+                    v-for="(item,index) in carParkingNameOptions"
316
+                    :key="index"
317
+                    :label="item.carParkName"
318
+                    :value="item.parkId" />
319
+                </el-select>
286 320
               </el-form-item>
287 321
               <el-form-item label="车牌号">
288 322
                 <el-input v-model="formLabelAlign4.plateNo"></el-input>
289 323
               </el-form-item>
290 324
               <el-form-item label="车辆类型">
291
-                <el-input v-model="formLabelAlign4.carType"></el-input>
325
+                <el-input v-model="formLabelAlign4.vehicleType"></el-input>
292 326
               </el-form-item>
293 327
               <el-form-item label="清理通知">
294 328
                 <el-input v-model="formLabelAlign4.cleanNotice"></el-input>
@@ -382,19 +416,19 @@ export default {
382 416
         },
383 417
         {
384 418
           label: '放行原因',
385
-          key: 'releaseReason'
419
+          key: 'relaseReason'
386 420
         },
387 421
         {
388 422
           label: '授权人员姓名',
389
-          key: 'accreditName'
423
+          key: 'tollmanName'
390 424
         },
391 425
         {
392 426
           label: '授权人员电话',
393
-          key: 'accreditPhone'
427
+          key: 'tollmanPhone'
394 428
         },
395 429
         {
396 430
           label: '放行时间',
397
-          key: 'releaseTime'
431
+          key: 'createTime'
398 432
         },
399 433
       ],
400 434
       tableData2: [{carParkName: 'sasa1'}],
@@ -402,53 +436,53 @@ export default {
402 436
       pageSize2: 10,
403 437
       pageNum2: 1,
404 438
       formInline2: {
405
-        carParkName: '',
439
+        parkId: '',
406 440
       },
407 441
       title2: '',
408 442
       dialogVisible2: false,
409 443
       formLabelAlign2: {
410 444
         id: '',
411
-        carParkName: '',
445
+        parkId: '',
412 446
         plateNo: '',
413 447
         vehicleType: '',
414
-        releaseReason: '',
415
-        accreditName: '',
416
-        accreditPhone: '',
448
+        relaseReason: '',
449
+        tollmanId: '',
450
+        tollmanPhone: '',
417 451
       },
418 452
       columns3: [
419 453
         {
420 454
           label: '车牌原始号码',
421
-          key: 'plateNoOld'
455
+          key: 'plateNoBefore'
422 456
         },
423 457
         {
424 458
           label: '车牌修后号码',
425
-          key: 'plateNoNew'
459
+          key: 'plateNoAfter'
426 460
         },
427 461
         {
428 462
           label: '修正原因',
429
-          key: 'amendReason'
463
+          key: 'correctionReason'
430 464
         },
431 465
         {
432 466
           label: '修正时间',
433
-          key: 'amendTime'
467
+          key: 'createTime'
434 468
         },
435 469
       ],
436
-      tableData3: [{plateNoOld: 'sasa111'}],
470
+      tableData3: [{plateNoBefore: 'sasa111'}],
437 471
       total3: 0,
438 472
       pageSize3: 10,
439 473
       pageNum3: 1,
440 474
       formInline3: {
441
-        plateNoOld: '',
442
-        plateNoNew: ''
475
+        plateNoBefore: '',
476
+        plateNoAfter: ''
443 477
       },
444 478
       title3: '',
445 479
       dialogVisible3: false,
446 480
       formLabelAlign3: {
447 481
         id: '',
448
-        plateNoOld: '',
449
-        plateNoNew: '',
450
-        amendReason: '',
451
-        amendTime: '',
482
+        plateNoBefore: '',
483
+        plateNoAfter: '',
484
+        correctionReason: '',
485
+        createTime: '',
452 486
       },
453 487
       columns4: [
454 488
         {
@@ -461,7 +495,7 @@ export default {
461 495
         },
462 496
         {
463 497
           label: '车辆类型',
464
-          key: 'carType'
498
+          key: 'vehicleType'
465 499
         },
466 500
         {
467 501
           label: '清理通知',
@@ -481,16 +515,16 @@ export default {
481 515
       pageSize4: 10,
482 516
       pageNum4: 1,
483 517
       formInline4: {
484
-        carParkName: '',
518
+        parkId: '',
485 519
         plateNo: ''
486 520
       },
487 521
       title4: '',
488 522
       dialogVisible4: false,
489 523
       formLabelAlign4: {
490 524
         id: '',
491
-        carParkName: '',
525
+        parkId: '',
492 526
         plateNo: '',
493
-        carType: '',
527
+        vehicleType: '',
494 528
         cleanNotice: '',
495 529
         cleanResult: '',
496 530
         legalProcedure: '',
@@ -501,9 +535,9 @@ export default {
501 535
     this.getTableData1()
502 536
     this.getCarParkingName()
503 537
     this.getTollmanList()
504
-    // this.getTableData2()
505
-    // this.getTableData3()
506
-    // this.getTableData4()
538
+    this.getTableData2()
539
+    this.getTableData3()
540
+    this.getTableData4()
507 541
   },
508 542
   watch: {},
509 543
   methods: {
@@ -522,9 +556,9 @@ export default {
522 556
       this.dialogVisible = true
523 557
     },
524 558
     deleteRow(record) {
525
-      api.deleteWhiteIp({id: record.id}).then(res => {
559
+      api_z.deleteExceptionHandingLift([{id: record.id}]).then(res => {
526 560
         if (res.code === 200) {
527
-          this.$message({type: 'success', message: '删除成功!'})
561
+          this.$message({ message: '删除成功!',type: 'success'})
528 562
           this.getTableData1()
529 563
         }
530 564
       })
@@ -560,12 +594,7 @@ export default {
560 594
     },
561 595
     handleAdd2() {
562 596
       this.title2 = '添加'
563
-      this.formLabelAlign2.carParkName = ''
564
-      this.formLabelAlign2.arrears = ''
565
-      this.formLabelAlign2.overdueCharge = ''
566
-      this.formLabelAlign2.paymentMethod = ''
567
-      this.formLabelAlign2.notificationMode = ''
568
-      this.formLabelAlign2.treatmentMeasure = ''
597
+      this.formLabelAlign2 = {}
569 598
       this.dialogVisible2 = true
570 599
     },
571 600
 
@@ -575,7 +604,7 @@ export default {
575 604
       this.dialogVisible2 = true
576 605
     },
577 606
     deleteRow2(record) {
578
-      api.deleteWhiteIp({id: record.id}).then(res => {
607
+      api_z.deleteExceptionHandingSpecial([{id: record.id}]).then(res => {
579 608
         if (res.code === 200) {
580 609
           this.$message({type: 'success', message: '删除成功!'})
581 610
           this.getTableData2()
@@ -584,7 +613,7 @@ export default {
584 613
     },
585 614
     handleConfirm2() {
586 615
       if (this.title2 === '修改') {
587
-        api.addWhiteIp({ipAddr: this.formLabelAlign2.ipAddr, id: this.formLabelAlign2.id}).then(res => {
616
+        api_z.editExceptionHandingSpecial({...this.formLabelAlign2}).then(res => {
588 617
           if (res.code === 200) {
589 618
             this.dialogVisible2 = false
590 619
             this.$message({
@@ -595,7 +624,7 @@ export default {
595 624
           }
596 625
         })
597 626
       } else {
598
-        api.addWhiteIp({ipAddr: this.formLabelAlign2.ipAddr}).then(res => {
627
+        api_z.addExceptionHandingSpecial({...this.formLabelAlign2}).then(res => {
599 628
           if (res.code === 200) {
600 629
             this.dialogVisible2 = false
601 630
             this.$message({
@@ -613,10 +642,7 @@ export default {
613 642
     },
614 643
     handleAdd3() {
615 644
       this.title3 = '添加'
616
-      this.formLabelAlign3.plateNoOld = ''
617
-      this.formLabelAlign3.plateNoNew = ''
618
-      this.formLabelAlign3.amendReason = ''
619
-      this.formLabelAlign3.amendTime = ''
645
+      this.formLabelAlign3 = {}
620 646
       this.dialogVisible3 = true
621 647
     },
622 648
 
@@ -626,7 +652,7 @@ export default {
626 652
       this.dialogVisible3 = true
627 653
     },
628 654
     deleteRow3(record) {
629
-      api.deleteWhiteIp({id: record.id}).then(res => {
655
+      api_z.deleteExceptionHandingCorrection([{id: record.id}]).then(res => {
630 656
         if (res.code === 200) {
631 657
           this.$message({type: 'success', message: '删除成功!'})
632 658
           this.getTableData3()
@@ -635,7 +661,7 @@ export default {
635 661
     },
636 662
     handleConfirm3() {
637 663
       if (this.title3 === '修改') {
638
-        api.addWhiteIp({ipAddr: this.formLabelAlign3.ipAddr, id: this.formLabelAlign3.id}).then(res => {
664
+        api_z.editExceptionHandingCorrection({...this.formLabelAlign3}).then(res => {
639 665
           if (res.code === 200) {
640 666
             this.dialogVisible3 = false
641 667
             this.$message({
@@ -646,7 +672,7 @@ export default {
646 672
           }
647 673
         })
648 674
       } else {
649
-        api.addWhiteIp({ipAddr: this.formLabelAlign3.ipAddr}).then(res => {
675
+        api_z.addExceptionHandingCorrection({...this.formLabelAlign3}).then(res => {
650 676
           if (res.code === 200) {
651 677
             this.dialogVisible3 = false
652 678
             this.$message({
@@ -664,12 +690,7 @@ export default {
664 690
     },
665 691
     handleAdd4() {
666 692
       this.title4 = '添加'
667
-      this.formLabelAlign4.carParkName = ''
668
-      this.formLabelAlign4.plateNo = ''
669
-      this.formLabelAlign4.carType = ''
670
-      this.formLabelAlign4.cleanNotice = ''
671
-      this.formLabelAlign4.cleanResult = ''
672
-      this.formLabelAlign4.legalProcedure = ''
693
+      this.formLabelAlign4 = {}
673 694
       this.dialogVisible4 = true
674 695
     },
675 696
 
@@ -679,7 +700,7 @@ export default {
679 700
       this.dialogVisible4 = true
680 701
     },
681 702
     deleteRow4(record) {
682
-      api.deleteWhiteIp({id: record.id}).then(res => {
703
+      api_z.deleteExceptionHandingClean([{id: record.id}]).then(res => {
683 704
         if (res.code === 200) {
684 705
           this.$message({type: 'success', message: '删除成功!'})
685 706
           this.getTableData4()
@@ -688,7 +709,7 @@ export default {
688 709
     },
689 710
     handleConfirm4() {
690 711
       if (this.title4 === '修改') {
691
-        api.addWhiteIp({ipAddr: this.formLabelAlign4.ipAddr, id: this.formLabelAlign4.id}).then(res => {
712
+        api_z.editExceptionHandingClean({...this.formLabelAlign4}).then(res => {
692 713
           if (res.code === 200) {
693 714
             this.dialogVisible4 = false
694 715
             this.$message({
@@ -699,7 +720,7 @@ export default {
699 720
           }
700 721
         })
701 722
       } else {
702
-        api.addWhiteIp({ipAddr: this.formLabelAlign4.ipAddr}).then(res => {
723
+        api_z.addExceptionHandingClean({...this.formLabelAlign4}).then(res => {
703 724
           if (res.code === 200) {
704 725
             this.dialogVisible4 = false
705 726
             this.$message({
@@ -738,7 +759,7 @@ export default {
738 759
     },
739 760
     getTableData2() {
740 761
       const {pageNum2, pageSize2} = this
741
-      api.gjListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
762
+      api_z.queryExceptionHandingSpecialByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
742 763
         this.tableData2 = res.data.records || []
743 764
         this.total2 = res.data.total
744 765
       })
@@ -748,7 +769,7 @@ export default {
748 769
     },
749 770
     getTableData3() {
750 771
       const {pageNum3, pageSize3} = this
751
-      api.tcjlListByPage({current: pageNum4, size: pageSize4, ...this.formInline4}).then(res => {
772
+      api_z.queryExceptionHandingCorrectionByPage({current: pageNum3, size: pageSize3, ...this.formInline3}).then(res => {
752 773
         this.tableData3 = res.data.records || []
753 774
         this.total3 = res.data.total
754 775
       })
@@ -758,7 +779,7 @@ export default {
758 779
     },
759 780
     getTableData4() {
760 781
       const {pageNum4, pageSize4} = this
761
-      api.tcjlListByPage({current: pageNum4, size: pageSize4, ...this.formInline4}).then(res => {
782
+      api_z.queryExceptionHandingCleanByPage({current: pageNum4, size: pageSize4, ...this.formInline4}).then(res => {
762 783
         this.tableData4 = res.data.records || []
763 784
         this.total4 = res.data.total
764 785
       })