浏览代码

用印申请,确认用印接口联调

gyj 2 年前
父节点
当前提交
f658034734

+ 17
- 1
src/api/caseManagement/caseManagement.js 查看文件

@@ -71,4 +71,20 @@ export function selectPaymentDetail(data) {
71 71
       method: "post",
72 72
       data: data,
73 73
     });
74
-  }
74
+  }
75
+  //用印申请
76
+  export function sealApply(data) {
77
+    return request({
78
+      url: "/mssignSeal/sealApply",
79
+      method: "post",
80
+      data: data,
81
+    });
82
+  }
83
+// 用印确认
84
+export function selectSealUrl(data) {
85
+  return request({
86
+    url: "/mssignSeal/selectSealUrl",
87
+    method: "post",
88
+    data: data,
89
+  });
90
+}

+ 26
- 4
src/views/caseManagement/caseList.vue 查看文件

@@ -101,12 +101,12 @@
101 101
         <!-- 缴费确认查看详情 -->
102 102
         <paymentdetailsDialog :openDialog="openDialog" @cancelpaymentdetails="cancelpaymentdetails" :title="payTitle" :detailform="detailform" :flag="flag" :paymentConfirma="paymentConfirma" :getList="getList"></paymentdetailsDialog>
103 103
         <!-- 案件受理 -->
104
-        <caseAcceptance :showAcceptance="showAcceptance" @cancelAcceptance="cancelAcceptance" :caseAcceptanceData="caseAcceptanceData" :getList="getList"></caseAcceptance>
104
+        <caseAcceptance :showAcceptance="showAcceptance" @cancelAcceptance="cancelAcceptance" :caseAcceptanceData="caseAcceptanceData" @getList="getList" :queryParams="queryParams"></caseAcceptance>
105 105
     </div>
106 106
 </template>
107 107
 
108 108
 <script>
109
-import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail } from '@/api/caseManagement/caseManagement.js'
109
+import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail,sealApply,selectSealUrl } from '@/api/caseManagement/caseManagement.js'
110 110
 import { listDept } from '@/api/system/dept.js'
111 111
 import moment from "moment";
112 112
 import addCase from './components/addCase.vue'
@@ -291,15 +291,37 @@ export default {
291 291
         },
292 292
         // 法律顾问用印申请
293 293
         consultantApplica(row) {
294
+            let paramsValue ={
295
+                caseId:row.id,
296
+                batchNumber:"",
297
+                caseFlowId:row.caseFlowId
298
+            }
294 299
             this.$modal.confirm("你确定要用印申请吗?").then((res) => {
295
-
300
+                sealApply(paramsValue).then(res=>{
301
+                    this.getList(this.queryParams);
302
+                    this.$modal.msgSuccess("用印申请成功");
303
+                })
296 304
             }).catch(() => {
297 305
 
298 306
             })
299 307
         },
300 308
         // 部门长用印申请
301
-        departmentApplica() {
309
+        departmentApplica(row) {
310
+             this.$modal.confirm("你确定要用印确认吗?").then((res) => {
311
+                 let paramsValue ={
312
+                     caseId:row.id
313
+                 }
314
+                 selectSealUrl(paramsValue).then(res=>{
315
+                     window.open(res.data.sealUrl)
316
+                     this.$modal.confirm("你确认用印了吗?").then((res) => {
317
+                     this.getList(this.queryParams);
318
+                    }).catch(() => {
319
+
320
+                    })
321
+                 })
322
+            }).catch(() => {
302 323
 
324
+            })
303 325
         },
304 326
         // 案件受理
305 327
         caseAccep(row){

+ 2
- 4
src/views/caseManagement/components/caseAcceptance.vue 查看文件

@@ -40,7 +40,7 @@
40 40
 import {accept} from '@/api/caseManagement/caseManagement.js'
41 41
 export default {
42 42
   name: "caseAcceptance",
43
-  props: ["showAcceptance", "caseAcceptanceData", "getList"],
43
+  props: ["showAcceptance", "caseAcceptanceData", "getList","queryParams"],
44 44
   data() {
45 45
     return {
46 46
       courtReviewform: {
@@ -69,9 +69,7 @@ export default {
69 69
         let mergeValue = Object.assign({}, this.courtReviewform, paramsdata)
70 70
           accept(mergeValue).then((res) => {
71 71
               this.$modal.msgSuccess("确认成功");
72
-              if (res.code == 200) {
73
-                this.getList();
74
-            }
72
+              this.$emit("getList",this.queryParams)
75 73
               this.cancel();
76 74
             })
77 75
             .catch((err) => {});