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

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Arbitrate-Frontend into hcb

fz 2 лет назад
Родитель
Сommit
25ca3ecf1c

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

@@ -105,3 +105,29 @@ export function logistics(data) {
105 105
     params: data,
106 106
   })
107 107
 }
108
+// 申请人撤销修改
109
+export function revoke(data) {
110
+  return request({
111
+    url: "/caseApplicationLog/revoke",
112
+    method: "post",
113
+    data: data,
114
+  })
115
+}
116
+// 秘书审核修改
117
+export function updateAudit(data) {
118
+  return request({
119
+    url: "/caseApplicationLog/updateAudit",
120
+    method: "post",
121
+    data: data,
122
+  })
123
+}
124
+// 查询案件对比信息
125
+export function selectCompareCase(data) {
126
+  return request({
127
+    url: "/caseApplicationLog/selectCompareCase",
128
+    method: "post",
129
+    data: data,
130
+  })
131
+}
132
+
133
+

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

@@ -89,9 +89,11 @@
89 89
           <el-button size="mini" type="text" icon="el-icon-zoom-in" @click="viewProcess(scope.row)">查看流程</el-button>
90 90
           <!-- 案件日志 -->
91 91
           <el-button size="mini" type="text" icon="el-icon-notebook-2" @click="caselogRow(scope.row)">案件日志</el-button>
92
-          <el-button size="mini" type="text" icon="el-icon-edit" @click="editRow(scope.row)" v-if="scope.row.caseStatus == 0 &&
92
+          <el-button size="mini" type="text" icon="el-icon-edit" @click="editRow(scope.row)" v-if="(scope.row.caseStatus < 10 && scope.row.caseStatus != 2 && scope.row.updateSubmitStatus !== 1) &&
93 93
             checkPermi(['caseManagement:list:update']) && btnStatus
94 94
             ">修改</el-button>
95
+          <!-- 撤销修改 -->
96
+          <el-button size="mini" type="text" icon="el-icon-edit" @click="undoRow(scope.row,1)" v-if="(scope.row.updateSubmitStatus == 1 || scope.row.updateSubmitStatus == 3) && scope.row.caseStatus > 0 && checkPermi(['caseManagement:list:undo'])">撤销修改</el-button>
95 97
           <el-button size="mini" type="text" icon="el-icon-check" @click="onsubmitRow(scope.row)" v-if="scope.row.caseStatus == 0 &&
96 98
             checkPermi(['caseManagement:list:submit']) && btnStatus
97 99
             ">提交</el-button>
@@ -115,6 +117,10 @@
115 117
             v-hasPermi="['monitor:online:forceLogout']"
116 118
             >组庭</el-button
117 119
           > -->
120
+          <!-- 审核修改,秘书角色 -->
121
+          <el-button size="mini" type="text" icon="el-icon-s-check" @click="reviewCase(scope.row)" v-if="scope.row.updateSubmitStatus == 1 && checkPermi(['caseManagement:list:reviewCase'])">审核修改</el-button>
122
+          <!-- 审核撤销,秘书角色 -->
123
+          <el-button size="mini" type="text" icon="el-icon-s-check" @click="reviewRevocation(scope.row)" v-if="scope.row.updateSubmitStatus == 2 && checkPermi(['caseManagement:list:reviewRevocation'])">审核撤销</el-button>
118 124
           <el-button size="mini" type="text" icon="el-icon-s-check" @click="courtconfirmationRow(scope.row)" v-if="scope.row.caseStatus == 6 &&
119 125
             checkPermi(['caseManagement:list:confirmgroup']) && btnStatus
120 126
             ">组庭确认</el-button>
@@ -133,7 +139,10 @@
133 139
             scope.row.arbitratMethod == 1 &&
134 140
             checkPermi(['caseManagement:list:hear']) && btnStatus
135 141
             ">开庭审理</el-button>
136
-          <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus < 8 &&
142
+          <!-- <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus < 8 &&
143
+            checkPermi(['caseManagement:list:evidenceUpdate']) && btnStatus"
144
+            @click="evidenceUpload(scope.row)">证据修改</el-button> -->
145
+          <el-button size="mini" type="text" icon="el-icon-edit" v-if="(scope.row.caseStatus < 10 && scope.row.caseStatus != 2 && scope.row.caseStatus != 0) &&
137 146
             checkPermi(['caseManagement:list:evidenceUpdate']) && btnStatus"
138 147
             @click="evidenceUpload(scope.row)">证据修改</el-button>
139 148
           <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 31 && btnStatus"
@@ -144,8 +153,9 @@
144 153
           <el-button size="mini" type="text" icon="el-icon-unlock"
145 154
             v-if="checkPermi(['caseManagement:list:lock']) && scope.row.lockStatus == 1 && btnStatus"
146 155
             @click="ulockClick(scope.row)">解锁</el-button>
147
-          <el-button v-if="checkPermi(['caseManagement:list:listEvidence']) && scope.row.caseStatus <= 1 && btnStatus"
148
-            size="mini" type="text" icon="el-icon-upload" @click="uploadCase(scope.row)">上传证据目录</el-button>
156
+            <!-- 暂时隐藏后期可能会放其他地方 -->
157
+          <!-- <el-button v-if="checkPermi(['caseManagement:list:listEvidence']) && scope.row.caseStatus <= 1 && btnStatus"
158
+            size="mini" type="text" icon="el-icon-upload" @click="uploadCase(scope.row)">上传证据目录</el-button> -->
149 159
           <!-- <el-button
150 160
             size="mini"
151 161
             type="text"
@@ -217,6 +227,10 @@
217 227
     <uploadCaseDialog :uploadCaseVisable="uploadCaseVisable" @uploadCaseCancel="uploadCaseCancel"
218 228
       :uploadCaseData="uploadCaseData">
219 229
     </uploadCaseDialog>
230
+    <!-- 秘书审核修改页面 -->
231
+    <caseentryExamineDialog :dialogtitle="dialogtitle" :caseentryExamineVisible="caseentryExamineVisible" :queryParams="queryParams"
232
+    :getcaseApply="getcaseApply"
233
+    @caseentryExamineCancel="caseentryExamineCancel" :caseentryExamineData="caseentryExamineData" :caseentryExamineDataAll="caseentryExamineDataAll"></caseentryExamineDialog>
220 234
   </div>
221 235
 </template>
222 236
 
@@ -236,6 +250,8 @@ import evidenceDialog from './components/evidenceDialog.vue';
236 250
 import timeDialog from './components/timeDialog.vue';
237 251
 import operateDialog from './components/operateDialog.vue';
238 252
 import uploadCaseDialog from './components/uploadCaseDialog.vue';
253
+// 秘书审核页面
254
+import caseentryExamineDialog from './components/caseentryExamine.vue';
239 255
 import { caseApplicationDetail } from "@/api/pay/pay";
240 256
 import {
241 257
   caseApply,
@@ -248,6 +264,9 @@ import { listDept } from "@/api/system/dept";
248 264
 import {
249 265
   document,
250 266
   caseLogRecordList,
267
+  revoke,
268
+  selectCompareCase,
269
+  updateAudit
251 270
 } from "@/api/caseManagement/caseManagement";
252 271
 import { getDicts } from '@/api/system/dict/data.js';
253 272
 export default {
@@ -268,7 +287,8 @@ export default {
268 287
     evidenceDialog,
269 288
     timeDialog,
270 289
     operateDialog,
271
-    uploadCaseDialog
290
+    uploadCaseDialog,
291
+    caseentryExamineDialog
272 292
   },
273 293
   data() {
274 294
     return {
@@ -332,6 +352,9 @@ export default {
332 352
       operateTitle: "",
333 353
       operateStatus: 0,
334 354
       uploadCaseVisable: false,
355
+      caseentryExamineVisible: false,
356
+      caseentryExamineData: {},
357
+      caseentryExamineDataAll: {},
335 358
       uploadCaseData: {},
336 359
       selectCaseStatusList: [
337 360
         {
@@ -603,7 +626,7 @@ export default {
603 626
     },
604 627
     // 是否进行缴费
605 628
     payStatus(val) {
606
-      this.getDetail({ id: val.id });
629
+      this.getDetail({ id: val.id, version: val.version });
607 630
       this.payTitle = "缴费";
608 631
       this.openPay = true;
609 632
       this.payId = val.id;
@@ -629,6 +652,33 @@ export default {
629 652
     cancelcourtDialog() {
630 653
       this.showformateCourt = false;
631 654
     },
655
+    // 审核案件 selectCompareCase caseentryExamineData
656
+    reviewCase(row) {
657
+      this.caseentryExamineVisible = true;
658
+      this.dialogtitle = "审核修改详情";
659
+      this.getSelectCompareCase(row)
660
+    },
661
+    // 秘书审核修改页面 caseentryExamineVisible
662
+    caseentryExamineCancel() {
663
+      this.caseentryExamineVisible = false;
664
+    },
665
+    // 查询修改字段
666
+    getSelectCompareCase(val) {
667
+      let param = {
668
+        caseId:val.id,
669
+        version:val.version
670
+      }
671
+      selectCompareCase(param).then((res) => {
672
+        this.caseentryExamineData = res.data.afterCase
673
+        this.caseentryExamineDataAll = res.data.afterCase
674
+      })
675
+    },
676
+    // 审核撤销
677
+    reviewRevocation(row) {
678
+      this.caseentryExamineVisible = true;
679
+      this.dialogtitle = "审核撤销";
680
+      this.getSelectCompareCase(row)
681
+    },
632 682
     // 组庭确认
633 683
     courtconfirmationRow(row) {
634 684
       // console.log(row, "组庭确认");
@@ -696,8 +746,11 @@ export default {
696 746
     },
697 747
     // 查找主体信息数据
698 748
     getInfo(row) {
699
-      const id = row.id;
700
-      selectCaseApply({ id }).then((res) => {
749
+      let params = {
750
+        id: row.id,
751
+        version: row.version
752
+      }
753
+      selectCaseApply(params).then((res) => {
701 754
         // this.visible = true;
702 755
         // this.formData = res.data;
703 756
         this.form.caseName = res.data.caseName;
@@ -738,6 +791,31 @@ export default {
738 791
         })
739 792
         .catch(() => { });
740 793
     },
794
+    // 申请人撤销修改 revoke
795
+    undoRow(row) {
796
+      if (row.updateSubmitStatus == 1) {
797
+        this.$modal.confirm("是否确认撤销修改?").then(function () {
798
+          return revoke({ caseId: row.id, version: row.version });
799
+        }).then((res) => {
800
+          if (res.code == 200) {
801
+            this.getcaseApply(this.queryParams);
802
+            this.$modal.msgSuccess("撤销成功");
803
+          }      
804
+        })
805
+        .catch(() => { });
806
+      } else if (row.updateSubmitStatus == 3) {
807
+        this.$modal.confirm("是否确认撤销已审核的修改?").then(function () {
808
+          return revoke({ caseId: row.id, version: row.version });
809
+        }).then((res) => {
810
+          if (res.code == 200) {
811
+            this.getcaseApply(this.queryParams);
812
+            this.$modal.msgSuccess("撤销申请已提交,等待审核");
813
+          }
814
+        })
815
+        .catch(() => { });
816
+      }
817
+      
818
+    }
741 819
   },
742 820
 };
743 821
 </script>

+ 1209
- 0
src/views/caseManagement/components/caseentryExamine.vue
Разница между файлами не показана из-за своего большого размера
Просмотреть файл