ソースを参照

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

gyj 2 年 前
コミット
f658034734
共有3 個のファイルを変更した45 個の追加9 個の削除を含む
  1. 17
    1
      src/api/caseManagement/caseManagement.js
  2. 26
    4
      src/views/caseManagement/caseList.vue
  3. 2
    4
      src/views/caseManagement/components/caseAcceptance.vue

+ 17
- 1
src/api/caseManagement/caseManagement.js ファイルの表示

71
       method: "post",
71
       method: "post",
72
       data: data,
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
         <!-- 缴费确认查看详情 -->
101
         <!-- 缴费确认查看详情 -->
102
         <paymentdetailsDialog :openDialog="openDialog" @cancelpaymentdetails="cancelpaymentdetails" :title="payTitle" :detailform="detailform" :flag="flag" :paymentConfirma="paymentConfirma" :getList="getList"></paymentdetailsDialog>
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
     </div>
105
     </div>
106
 </template>
106
 </template>
107
 
107
 
108
 <script>
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
 import { listDept } from '@/api/system/dept.js'
110
 import { listDept } from '@/api/system/dept.js'
111
 import moment from "moment";
111
 import moment from "moment";
112
 import addCase from './components/addCase.vue'
112
 import addCase from './components/addCase.vue'
291
         },
291
         },
292
         // 法律顾问用印申请
292
         // 法律顾问用印申请
293
         consultantApplica(row) {
293
         consultantApplica(row) {
294
+            let paramsValue ={
295
+                caseId:row.id,
296
+                batchNumber:"",
297
+                caseFlowId:row.caseFlowId
298
+            }
294
             this.$modal.confirm("你确定要用印申请吗?").then((res) => {
299
             this.$modal.confirm("你确定要用印申请吗?").then((res) => {
295
-
300
+                sealApply(paramsValue).then(res=>{
301
+                    this.getList(this.queryParams);
302
+                    this.$modal.msgSuccess("用印申请成功");
303
+                })
296
             }).catch(() => {
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
         caseAccep(row){
327
         caseAccep(row){

+ 2
- 4
src/views/caseManagement/components/caseAcceptance.vue ファイルの表示

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