Explorar el Código

选择调解员,时间

Your Name hace 2 años
padre
commit
9e4d326150

+ 17
- 2
src/api/caseManagement/caseManagement.js Ver fichero

@@ -72,7 +72,6 @@ export function selectPaymentDetail(data) {
72 72
       data: data,
73 73
     });
74 74
   }
75
-  //获取调解员列表
76 75
   export function listMediator(data) {
77 76
     return request({
78 77
       url: "caseApplication/listMediator",
@@ -87,4 +86,20 @@ export function updateBooking(data) {
87 86
       method: "post",
88 87
       data: data,
89 88
     });
90
-  }
89
+  }
90
+  //用印申请
91
+  export function sealApply(data) {
92
+    return request({
93
+      url: "/mssignSeal/sealApply",
94
+      method: "post",
95
+      data: data,
96
+    });
97
+  }
98
+// 用印确认
99
+export function selectSealUrl(data) {
100
+  return request({
101
+    url: "/mssignSeal/selectSealUrl",
102
+    method: "post",
103
+    data: data,
104
+  });
105
+}

+ 25
- 3
src/views/caseManagement/caseList.vue Ver fichero

@@ -109,7 +109,7 @@
109 109
 </template>
110 110
 
111 111
 <script>
112
-import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail } from '@/api/caseManagement/caseManagement.js'
112
+import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail,sealApply,selectSealUrl } from '@/api/caseManagement/caseManagement.js'
113 113
 import { listDept } from '@/api/system/dept.js'
114 114
 import moment from "moment";
115 115
 import addCase from './components/addCase.vue'
@@ -316,15 +316,37 @@ export default {
316 316
         },
317 317
         // 法律顾问用印申请
318 318
         consultantApplica(row) {
319
+            let paramsValue ={
320
+                caseId:row.id,
321
+                batchNumber:"",
322
+                caseFlowId:row.caseFlowId
323
+            }
319 324
             this.$modal.confirm("你确定要用印申请吗?").then((res) => {
320
-
325
+                sealApply(paramsValue).then(res=>{
326
+                    this.getList(this.queryParams);
327
+                    this.$modal.msgSuccess("用印申请成功");
328
+                })
321 329
             }).catch(() => {
322 330
 
323 331
             })
324 332
         },
325 333
         // 部门长用印申请
326
-        departmentApplica() {
334
+        departmentApplica(row) {
335
+             this.$modal.confirm("你确定要用印确认吗?").then((res) => {
336
+                 let paramsValue ={
337
+                     caseId:row.id
338
+                 }
339
+                 selectSealUrl(paramsValue).then(res=>{
340
+                     window.open(res.data.sealUrl)
341
+                     this.$modal.confirm("你确认用印了吗?").then((res) => {
342
+                     this.getList(this.queryParams);
343
+                    }).catch(() => {
344
+
345
+                    })
346
+                 })
347
+            }).catch(() => {
327 348
 
349
+            })
328 350
         },
329 351
         // 案件受理
330 352
         caseAccep(row){

+ 2
- 4
src/views/caseManagement/components/caseAcceptance.vue Ver fichero

@@ -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) => {});

+ 2
- 2
vue.config.js Ver fichero

@@ -12,10 +12,10 @@ const name = process.env.VUE_APP_TITLE || '调解系统' // 网页标题
12 12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
13 13
 
14 14
 // const API = 'http://121.40.189.20:9001'  //生产
15
-// const API = 'http://121.40.189.20:6001'  //测试
15
+const API = 'http://121.40.189.20:6001'  //测试
16 16
 // const API = 'http://192.168.3.18:6001'  //B
17 17
 // const API = 'http://192.168.3.77:9001' //Q
18
-const API = 'http://172.16.1.14:6001' //w
18
+// const API = 'http://172.16.1.14:6001' //w
19 19
 
20 20
 // vue.config.js 配置说明
21 21
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions